@merittdev/horus 0.20.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -78,10 +78,8 @@ Trace reconstruction is not shipped yet. Connectors are read-only and project-sc
78
78
  ## Example output (illustrative)
79
79
 
80
80
  ```bash
81
- horus investigate \
82
- --project atlas-payments \
83
- --env production \
84
- "checkout latency spike"
81
+ cd ~/code/atlas-payments
82
+ horus investigate --env production "checkout latency spike"
85
83
  ```
86
84
 
87
85
  ```text
@@ -113,7 +111,9 @@ Hint: checkout latency spike
113
111
 
114
112
  **Local-first** — Connectors read from your own clusters, not a hosted black box.
115
113
 
116
- **Project-scoped** — Every investigation belongs to a specific project and environment.
114
+ **Project-scoped** — The repo you run in (its `.horus/config.json`) is the project identity; `--config <path>` targets another repo.
115
+
116
+ **Agent-ready** — Every investigation/analysis command takes `--json` (compact by default, `--full` for the raw structure) with a `nextSteps` array to chain from. `horus packet` builds a compact, honesty-framed briefing sized for an agent's context window.
117
117
 
118
118
  ## Capabilities
119
119
 
@@ -312,35 +312,48 @@ horus investigate --help
312
312
 
313
313
  | Command | What it does |
314
314
  | --- | --- |
315
- | `horus status [--project --env]` | Per-project/env connector-health matrix |
315
+ | `horus status [--env]` | Per-project/env connector-health matrix |
316
316
  | `horus connect <type>` | Add/update a runtime connector — `elasticsearch` / `mongodb` / `postgres` / `sentry` / `axiom` / `grafana` / `redis` (plus `ai` to configure an AI provider) |
317
- | `horus init --project <p> --env <e>` | Build the queue map (stitcher) for a project |
317
+ | `horus init [--env <e>]` | Set up the current repo: config, source-intelligence host, index, queue map |
318
318
  | `horus hosts [--reap]` | List source-intelligence hosts and live status; `--reap` stops orphaned hosts |
319
319
  | `horus stop [--all]` | Stop this repo's source-intelligence host (`--all` stops every host) |
320
- | `horus investigate --project <p> --env <e> "<hint>"` | Full deterministic investigation report |
321
- | `horus logs [service] --project <p> --env <e>` | Error-signature evidence (`--raw` for lines) |
322
- | `horus state --project <p> --env <e>` | MongoDB application-state evidence (read-only) |
323
- | `horus metrics [hint] --project <p> --env <e>` | Grafana metrics evidence |
324
- | `horus explain <symbol>` · `blast-radius` · `architecture` · `what-changed` | Source-aware code intelligence (requires source intelligence backend) |
320
+ | `horus investigate --env <e> "<hint>"` | Full deterministic investigation report (`--format json` for agents) |
321
+ | `horus packet <hint\|savedId> [--for claude] [--json]` | Compact, honesty-framed briefing for a coding-agent context window |
322
+ | `horus logs [service] --env <e>` | Error-signature evidence (`--raw` for lines) |
323
+ | `horus state --env <e>` | MongoDB application-state evidence (read-only) |
324
+ | `horus metrics [hint] --env <e>` | Grafana metrics evidence |
325
+ | `horus queues [name] [--live]` | Queue topology from source intelligence; `--live` reads real-time Redis/BullMQ state |
326
+ | `horus search <query>` · `explain <symbol>` · `blast-radius` · `architecture` · `what-changed` | Source-aware code intelligence — one canonical resolver, so a query resolves to the same symbol across commands (qualified `Class.method` supported) |
325
327
  | `horus memory <show\|add\|list\|link\|...>` | Inspect/author deterministic incident memory; `memory link` adds `supersedes` / `contradicts` / `recurs-with` edges |
326
328
  | `horus feedback <id> [--resolved] [--note] [--cause]` | Record outcome feedback on an investigation (improves Horus) |
327
329
  | `horus report [hint] [--title --body --labels]` | File a Horus bug or capability gap — opens a pre-filled GitHub issue (no auth, nothing sent automatically) |
328
330
 
329
331
  ## Local project workflow (git-style)
330
332
 
331
- A repo carries a `.horus/config.json` (discovered by walking up from the working directory, like `.git`), and a global registry (`~/.horus/registry.json`) lets `--name` resolve a project from anywhere.
333
+ A repo carries a `.horus/config.json` (discovered by walking up from the working directory, like `.git`) — the repo's config IS the project identity. Work from inside the repo, or pass `--config <path>` to target another repo explicitly.
332
334
 
333
335
  ```bash
334
336
  cd /repos/atlas-payments
335
337
  horus init
336
338
 
337
339
  horus investigate "checkout latency spike"
338
- horus investigate --name atlas-payments "checkout latency spike"
339
- horus projects
340
+ horus investigate --config /repos/atlas-payments/.horus/config.json "checkout latency spike" # from anywhere
341
+ horus projects # list registered repos (informational)
340
342
  ```
341
343
 
342
344
  `horus init` reuses an already-running source intelligence host when one is healthy. Runtime connectors are added to the env block of `.horus/config.json` afterwards.
343
345
 
346
+ ## For coding agents
347
+
348
+ Horus is built to be an agent's evidence layer. Install a skill that teaches your agent to reach for Horus before guessing:
349
+
350
+ ```bash
351
+ horus skill install claude # .claude/skills/horus/SKILL.md (also: codex · gemini · cursor · generic)
352
+ horus mcp # expose the local knowledge index to agents over MCP (stdio)
353
+ ```
354
+
355
+ Every investigation/analysis command takes `--json` (`--format json` for `investigate`/`replay`) — compact by default, `--full` for the raw structure — and each result carries a deterministic `nextSteps` array. `horus packet "<hint>" --json` returns a compact briefing sized for a context window.
356
+
344
357
  ## Layout
345
358
 
346
359
  ```
Binary file