CLAUDE.md
internal/watcher/assets/watcher-templates/CLAUDE.mdCLAUDE.md
Quality
62/100
Scores the file, not the repository.Length
301 words
5 headings · 3 code blocksRepository
656
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Watcher: Shared Knowledge Base23This file contains shared infrastructure knowledge for all watcher instances.4Each watcher has its own identity in its subdirectory and its own LEARNINGS.md.5Agent sessions inspecting this directory will find the layout and CLI reference below.67## Layout89The singular watcher root mirrors `~/.agent-deck/conductor/`:1011```12~/.agent-deck/watcher/13 CLAUDE.md — this file (shared knowledge base)14 POLICY.md — behavior rules (escalation, dedup, retry, health thresholds)15 LEARNINGS.md — cross-watcher patterns accumulated over time16 clients.json — routing map: sender key -> conductor name1718 <name>/ — per-watcher directory (one per registered watcher)19 meta.json — watcher registration metadata (type, created_at, expiry)20 state.json — latest health snapshot (last_event_ts, error_count, adapter_healthy)21 task-log.md — append-only event log (one Markdown heading per event)22 LEARNINGS.md — per-watcher patterns (optional, watcher-specific)23```2425## Files2627| File | Purpose |28|------|---------|29| `CLAUDE.md` | Shared mechanism knowledge. Read by agent sessions to understand watcher infrastructure. |30| `POLICY.md` | Behavior rules: escalation thresholds, dedup strategy, retry backoff, health thresholds. |31| `LEARNINGS.md` | Cross-watcher patterns. Add entries as you notice recurring behaviors. |32| `clients.json` | Routing map loaded by the engine. Key format: `<adapter>:<channel>` or email address. |3334## For Agents Inspecting This Directory3536To inspect watcher health and list all registered watchers:3738```bash39agent-deck watcher list --json40agent-deck watcher status <name>41```4243The `list --json` output includes `last_event_ts`, `error_count`, and `health_status` per watcher.4445To check if a specific sender would be routed:4647```bash48agent-deck watcher test <name>49```5051## Why This Folder Shape5253Watcher state mirrors the conductor pattern (`~/.agent-deck/conductor/`) for consistency:54both subsystems use a singular directory root with shared top-level files and55per-instance subdirectories. This makes the layout predictable and tooling reusable.5657The legacy `~/.agent-deck/watchers/` path is preserved as a relative compatibility58symlink pointing to `watcher/`. Existing tooling that reads `watchers/` continues59to work without modification.60
Also in asheshgoplani/agent-deck
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| asheshgoplani/agent-deckassets/watcher-templates/CLAUDE.md · 656 | CLAUDE.md | arch | 62/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| stacklok/toolhiveCLAUDE.md · 2.0k | CLAUDE.md | buildteststylearch+4 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today |
