Oscar-Williams/dsh-deepcanary
À propos
Know when your DeepSeek Harness tasks need you. Native task inbox, real-time local alerts, and away-from-desk webhook escalation.
IA et apprentissage automatiqueWhat you can do
- Deterministic Triage - Classifies every session signal into C3 blocking waits, C2 failures or stalls, C1 routine activity, and C0 healthy execution using public DSH runtime facts.
- Native DSH Workspace - Integrates directly into DSH 0.2.2+ via a two-column main panel, a footer quick-peek drawer, sidebar session dots, hover summaries, and a right-click context menu action.
- Real-Time Multi-Tab Sync - Streams revision deltas over Server-Sent Events at GET /api/dsh-deepcanary/events with ETag fallback, keeping open tabs synchronized without polling lag.
- Quiet Hours & Budgets - Enforces IANA time-zone quiet hours and rolling hourly C2 interrupt caps while allowing authoritative C3 approvals and questions through immediately.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalDeepCanary
Native task inbox, real-time local notifications, and away-from-desk webhook alerts for DeepSeek Harness.
English · 简体中文 · Documentation · Changelog · Releases · npm
DeepCanary monitors running sessions, subagents, user questions, and background jobs in DeepSeek Harness so you do not have to poll tabs manually. Blocking approvals and questions surface immediately in a native DSH workspace, highlight the affected session in the sidebar, send local notifications, and optionally escalate unhandled alerts to an external webhook while keeping prompts and credentials strictly on your machine.
Capabilities · Install · Workflow · Notifications & Webhooks · For Developers · Update · Compatibility · Troubleshooting · Privacy & Security
Key Capabilities
| Area | What DeepCanary Does |
|---|---|
| Deterministic Triage | Classifies every session signal into C3 blocking waits, C2 failures or stalls, C1 routine activity, and C0 healthy execution using public DSH runtime facts. |
| Native DSH Workspace | Integrates directly into DSH 0.2.2+ via a two-column main panel, a footer quick-peek drawer, sidebar session dots, hover summaries, and a right-click context menu action. |
| Real-Time Multi-Tab Sync | Streams revision deltas over Server-Sent Events at GET /api/dsh-deepcanary/events with ETag fallback, keeping open tabs synchronized without polling lag. |
| Quiet Hours & Budgets | Enforces IANA time-zone quiet hours and rolling hourly C2 interrupt caps while allowing authoritative C3 approvals and questions through immediately. |
| Away-from-Desk Webhooks | Escalates unhandled C3 or C2+ alerts after a configurable delay to Generic JSON, Feishu, DingTalk, WeCom, Bark, or ntfy with optional HMAC-SHA256 signing. |
| Local-First Privacy | Never persists or transmits prompts, conversation text, tool arguments, raw error output, or credentials. |
Install
DeepCanary 0.2.0-rc.3 ships as one package for both Windows Desktop and WebUI, targeting DeepSeek Harness >=0.2.2-rc.5. WebUI requires Node.js >=24.9.0; Windows Desktop bundles its own runtime. See the DeepSeek Harness installation guide if you have not installed DSH yet.
Windows Desktop
- Open Plugins → Add Plugin → Install Third-Party Plugin.
- Enter
[email protected]and click Install. - Restart DeepSeek Harness when prompted, then open DeepCanary from the left navigation bar or the footer quick-peek icon.
WebUI
Stop any running DSH WebUI process, install the plugin, and start WebUI:
dsh plugin --profile web add [email protected] --registry=https://registry.npmjs.org/
dsh web
After WebUI opens, click DeepCanary in the left navigation bar.
Custom DSH_HOME or non-default profile name
Replace web with your profile name if you use a custom profile. When running DSH with a custom DSH_HOME, set the same DSH_HOME variable in your shell before running dsh plugin commands.
PowerShell:
$env:DSH_HOME = "<existing DSH data directory>"
Bash or Zsh:
export DSH_HOME="<existing DSH data directory>"
Offline install from a GitHub Release archive
Download dsh-deepcanary-0.2.0-rc.3.tgz and SHA256SUMS from the GitHub Release page, then verify the checksum before installing:
Get-FileHash ./dsh-deepcanary-0.2.0-rc.3.tgz -Algorithm SHA256
shasum -a 256 ./dsh-deepcanary-0.2.0-rc.3.tgz
For WebUI, stop DSH and run:
dsh plugin --profile web add ./dsh-deepcanary-0.2.0-rc.3.tgz --registry=https://registry.npmjs.org/
dsh web
For Windows Desktop, launch the app once to initialize its profile and quit cleanly via App → Quit. Open PowerShell in resources/runtime/cli/bin under your DSH installation directory, set DSH_HOME if customized, and run:
.\dsh.cmd plugin --profile desktop add "<full path to dsh-deepcanary-0.2.0-rc.3.tgz>" --registry=https://registry.npmjs.org/
Workflow
Inbox Views & Attention Levels
DeepCanary separates active tasks from historical noise using three views and four deterministic levels:
| View | Contents |
|---|---|
| Pending | Blocking approvals, unanswered user questions, repeated tool failures, stalled runs, and unhandled execution errors |
| Scheduled | Items you explicitly snoozed for a later reminder |
| Activity | Routine completions, context compactions, and tasks cancelled by the user |
| Level | Trigger Criteria | Default Delivery |
|---|---|---|
| C3 · Blocking | Authoritative pending approval or unanswered blocking question from DSH | Immediate inbox highlight, local notification, optional webhook escalation |
| C2 · Issue | Repeated tool failure loop, stalled active turn, or unexpected failure | Inbox highlight, subject to hourly interrupt budget and quiet hours |
| C1 · Activity | Normal turn completion, compaction, timed question continuation, or user abort | Quietly recorded in Activity without interrupting |
| C0 · Healthy | Ongoing healthy execution | No alert created |
Sidebar Integration & Quick-Peek Drawer
You can stay inside an active conversation and still monitor background sessions:
- Quick-peek drawer: Click the DeepCanary badge in the sidebar footer to inspect or act on pending items without switching away from your current chat.
- Ambient session row indicators: Non-blank sessions with pending C3 or C2 alerts display a colored status dot in the sidebar, a hover summary, and an Inspect in DeepCanary right-click menu item.
- Direct session return: Click the primary action button on any item to jump straight back to the exact DSH session.
Keyboard Shortcuts
Keyboard shortcuts work in the main DeepCanary workspace and automatically pause whenever a modal dialog or form input is focused:
| Key | Action |
|---|---|
J / K |
Move to the next or previous item |
Enter |
Open the associated DSH session |
E |
Mark the selected item done |
S |
Snooze the selected item |
M |
Mute or unmute the selected item for 1 hour |
/ |
Focus the search input |
Esc |
Close the quick-peek drawer and restore focus |
Notifications and Webhooks
Open Settings → DeepCanary or click the gear icon in the DeepCanary header to choose a preset or configure delivery rules. All settings save atomically through DSH's native ConfigForm with optimistic concurrency protection across browser tabs.
Built-in Presets
| Preset | Alert Threshold | Hourly C2 Cap | Stall Check | Intended Use |
|---|---|---|---|---|
| Focus | C3 only | 0 |
8 min | Deep coding sessions where only blocking waits should interrupt |
| Balanced | C2 and C3 | 3 |
5 min | Everyday multi-session work with bounded failure alerts |
| Unattended | C2 and C3 | 6 |
3 min | Long background runs paired with away-from-desk webhook escalation |
Time-Zone Quiet Hours
Set a start time, end time, and optional IANA time zone such as Asia/Shanghai or America/New_York. Leave the time zone blank to follow the host machine's local time. During quiet hours, C2 items stay in the inbox digest while C3 blocking waits remain active.
Away-from-Desk Webhook Escalation
When an eligible C3 or C2+ alert stays unhandled past your configured delay, DeepCanary dispatches a single metadata-only webhook request. If you open, acknowledge, snooze, or resolve the task in DSH before the delay expires, the scheduled escalation is cancelled automatically.
| Channel Format | Delivery Notes |
|---|---|
| Generic JSON | Structured JSON payload suitable for custom automation endpoints or Slack/Discord bridges |
| Feishu / Lark | Compatible with custom bot webhook URLs (msg_type: "text") |
| DingTalk | Compatible with custom robot webhook URLs |
| WeCom | Compatible with group bot webhook URLs |
| Bark | iOS push notifications via Bark server endpoints |
| ntfy | Self-hosted or public ntfy topic notifications |
Optional HMAC-SHA256 signing adds an X-DeepCanary-Signature-256: sha256=<hex> header. Use the built-in Send Test Payload button in Settings to verify connectivity immediately.
Example metadata-only Generic JSON webhook payload
{
"schemaVersion": 4,
"source": "dsh-deepcanary",
"event": "attention.escalation",
"level": "C3",
"reasonCode": "HUMAN_APPROVAL_REQUIRED",
"title": "DeepCanary · Approval required",
"summary": "A session requires explicit approval before continuing.",
"waitSeconds": 180,
"itemId": "att-9f4c2a1b",
"occurredAt": "2026-12-01T10:15:00.000Z"
}
Prompts, chat messages, tool arguments, raw stderr output, file contents, and credentials are never included.
For Developers
Authenticated Host API Surface
All endpoints are registered through DSH's authenticated connection.fetch host boundary with same-origin enforcement and protocol version 4 fencing:
| Method & Path | Purpose |
|---|---|
GET /api/dsh-deepcanary/state |
Returns the current inbox snapshot with weak ETag support (304 Not Modified) |
GET /api/dsh-deepcanary/events |
Real-time SSE stream emitting connected and delta revision events |
POST /api/dsh-deepcanary/action |
Executes idempotent state transitions (seen, acknowledge, snooze, unsnooze, mute, unmute, clear-activity, notification-claim) with expectedRevision checks |
GET /api/dsh-deepcanary/settings |
Returns effective normalized settings with secrets redacted |
POST /api/dsh-deepcanary/webhook/test |
Sends a sanitized test payload to verify an HTTPS or loopback webhook endpoint |
GET /api/dsh-deepcanary/health |
Returns plugin version, revision, and host adapter health status |
GET /api/dsh-deepcanary/explain?id=... |
Returns the structured decision trace for a specific inbox item |
POST /api/dsh-deepcanary/dry-run |
Evaluates attention classification rules without mutating persisted state |
Local Development & Verification
git clone https://github.com/Oscar-Williams/dsh-deepcanary.git
cd dsh-deepcanary
npm ci
npm test
npm run build
npm run verify:docs
npm run verify:distribution
To run the complete 12-check candidate verifier including all five real DSH host contracts:
npm run verify:candidate -- --runtime /absolute/path/to/dsh-0.2.2-rc.5
See the full developer guides in docs/README.md: Architecture, Public DSH Interfaces, Development Guide, Web & Desktop Testing, and Contributing.
Update and Uninstall
- Update in Windows Desktop: Open Plugins → Add Plugin → Install Third-Party Plugin, enter
[email protected], install, and restart DSH. - Update in WebUI:
dsh plugin --profile web add [email protected] --registry=https://registry.npmjs.org/
- Uninstall in WebUI:
dsh plugin --profile web remove dsh-deepcanary
- Uninstall in Windows Desktop: Open Plugins, select DeepCanary, and click Uninstall.
Compatibility
| DSH Version | WebUI | Windows Desktop | Node.js for WebUI |
|---|---|---|---|
0.2.2-rc.5 |
Verified | Official app verified | >=24.9.0 |
>=0.2.3-alpha.3 |
Forward-compatible API surface | Planned after 0.2.3-rc.1 desktop release |
>=24.19.0 |
DeepCanary declares engines.dsh = ">=0.2.2-rc.5" and omits @deepseek-ai/dsh-client-ui-settings-plugins removed in DSH 0.2.3-alpha.3 so future host upgrades stay smooth. See Compatibility and Roadmap.
Troubleshooting
| Symptom | Cause & Fix |
|---|---|
| No local notifications appear | Check browser or OS notification permission for the DSH origin, verify system Do Not Disturb is off, and check whether quiet hours or the hourly C2 interrupt cap downgraded the item to the inbox. |
| Settings show a conflict banner | Another tab or process updated settings concurrently. Your unsaved draft is preserved; review the values and click Save Changes again or Discard. |
| Persistence warning banner appears | Confirm the user account running DSH can write to profiles/<profile>/state/deepcanary/, then click Refresh. Local notification claims pause while disk writes fail. |
| Webhook test fails | Ensure the URL uses https:// or loopback http://, contains no embedded credentials, and responds within 5 seconds. |
Privacy and Security
DeepCanary stores only compact operational metadata under profiles/<profile>/state/deepcanary/ inside your DSH data directory. Session titles and short workspace names are read in browser memory only and never written to inbox.json. Prompts, replies, tool arguments, raw errors, and secrets never enter plugin state, local notifications, or outbound webhooks.
Read Data and Privacy for storage details and Security Policy for vulnerability reporting.
Acknowledgments
Built for DeepSeek Harness and the Cordis plugin ecosystem.
License
Explorer des projets similaires
Chargement…