Skip to content

Auto-load Argus KB and inbox-first dream consolidation#286

Merged
drn merged 2 commits intomasterfrom
argus/Kb-and-dream
Apr 28, 2026
Merged

Auto-load Argus KB and inbox-first dream consolidation#286
drn merged 2 commits intomasterfrom
argus/Kb-and-dream

Conversation

@drn
Copy link
Copy Markdown
Owner

@drn drn commented Apr 28, 2026

Wires the Argus KB into Claude Code as the primary durable memory store
and reshapes /dream into a scheduled consolidation pass.

  • SessionStart hook injects memory/user/ + memory/feedback/ + KB index into
    every session via hookSpecificOutput.additionalContext (fail-soft when
    argus or jq is missing, UTF-8-safe truncation at 50 KB).
  • PostToolUse hook logs every kb_ingest write to ~/.dots/sys/kb-changes/ so
    /dream can run incrementally instead of re-scanning the vault.
  • /improve auto-loads relevant KB docs at start and captures new knowledge
    to memory/inbox/-.md (inbox-first; /dream triages later).
  • /dream gains Triage (Phase 3), Conflict Detection with recency-wins
    supersession (Phase 4), and Decay → Archive (Phase 5). Designed to run
    unattended via Argus scheduled tasks with --auto.
  • cli/commands/install/agents.go registers the two new hooks idempotently
    alongside the existing skill-tracking hook and status line.

Co-Authored-By: Claude noreply@anthropic.com

drn and others added 2 commits April 28, 2026 14:30
- /improve: load memory/user + memory/feedback at start; capture new
  knowledge to memory/inbox/<date>-<slug>.md so /dream can triage later
- /dream: new Phase 1 (triage inbox), Phase 2 (conflict resolution by
  recency), Phase 3 (decay → archive); --auto mode for scheduled runs
- SessionStart hook: inject memory/user + memory/feedback + KB index into
  every session via hookSpecificOutput.additionalContext
- PostToolUse hook: log every kb_ingest write so /dream can run
  incrementally instead of rescanning the vault

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
dream/SKILL.md
- Reorder phases so Orient + Gather Signal come before Triage/Conflict/Decay
  (the link graph and filename map need to exist before Decay reads them)
- Renumber report section labels and Phase 5 cross-references
- Drop unimplemented --since flag
- Tighten decay rule: change log only tracks writes, not reads
- Note Phase 5 dependency on Phase 4 supersession data
- Replace company-specific tag in routing rules with generic example
- Move "skip if no writes since last run" guard from Scheduling into the
  Instructions preamble so --auto sees it

improve/SKILL.md
- Add allowed-tools frontmatter for Argus KB MCP tools
- Add MCP tool name fallback note (mcp__argus__* / mcp__argus-kb__*)
- Replace company-specific topical-folder examples with generic guidance
- Extract Step 8 Part 0 details to references/argus-kb.md (under 500 lines)

session-start-memory.sh
- Replace jq call in fail-soft path with printf so emit_empty works even
  when jq is missing
- Switch 50KB cap from byte-truncation to awk line-truncation so we never
  split a multi-byte UTF-8 character
- Document why the head -200 cap exists

track-kb-change.sh
- Add explicit jq guard so the hook fails soft if jq is missing
- mkdir -p ~/.dots/sys/dream-runs alongside kb-changes so /dream --auto's
  log directory exists on first run

cli/commands/install/agents.go
- Comment registerSessionStartMemoryHook's nested traversal: SessionStart
  entries have no matcher, so we dedupe on inner command strings

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@drn drn merged commit fc13c75 into master Apr 28, 2026
@drn drn deleted the argus/Kb-and-dream branch April 30, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant