Skip to content

Document Brain cleanup, the built-in reviewer, and the Brain HTTP API - #932

Merged
selfcontained merged 1 commit into
mainfrom
agt_c44747b3affe/job-doc-ter-9d5bfc56
Aug 11, 2026
Merged

Document Brain cleanup, the built-in reviewer, and the Brain HTTP API#932
selfcontained merged 1 commit into
mainfrom
agt_c44747b3affe/job-doc-ter-9d5bfc56

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Nightly docs audit (d561a3b1..9319fcaa).

Deep-dive: Status Events — clean, no changes. Verified every claim in docs-sections/events.tsx against source: the dispatch_event enum (agent-lifecycle-tools.ts), the event-type meanings injected at launch (buildLaunchGuidance in tmux/command-builder.ts), the activity monitor's 3-minute stale window and its two correction messages plus the conditional-write rule (activity-monitor.ts, writeLatestEventIfCurrent), the sidebar card's label/timestamp/repo line and expanded message (agent-card-status.tsx), the Activity page's heatmap / active-hours / working-time / status-breakdown surfaces (activity-pane.tsx), and the done / waiting_user / blocked notification set (slack.ts, web-notifications.ts).

Diff-driven fixes:

  • docs-sections/automations.tsxbrain_delete_events (Add brain_delete_events MCP tool #928) was missing from the job-agent Brain tool list, which claims parity with standard agents. The Brains-tab paragraph also never mentioned deletion at all: now covers per-card delete, the per-section Delete all scoped to the selected collection or the whole project (Add bulk delete by entry type to the Brain UI #929), Clear collection, Clear project, and that confirmations quote real scope totals rather than the capped/filtered rows on screen.
  • docs-sections/tools.tsx — events are append-only but not permanent: brain_delete_events prunes by id or by filter within a collection, dryRun previews the count. The Brains tab is for cleanup, not just inspection.
  • docs/03-api-spec.md — new Brain (Shared Memory) section: all 15 routes (read/delete only; writes go through MCP), plus the bulk delete-by-entry-type rules (collection XOR allCollections, single-value query keys, list-item cascade). Closes a long-standing backlog item.
  • docs/03-api-spec.mdnote field on POST /agents/:id/launch-review (Ship a built-in generic review persona and a launch focus note #923: 2,000 chars, collapsed to one line, quote/marker-stripped), and GET /personas now appends built-ins after the repo's own.
  • README.md, CLAUDE.md, AGENTS.md — persona review no longer requires repo setup; the built-in code-review generalist ships with Dispatch.
  • lib/tips/tips.ts — new ambient tip "Review With No Setup" (since 0.33.6) deep-linking the new personas#built-in-reviewer anchor.

Deferred to a future run: whether to add a caveat that Codex resume (#927) recovers its session id from ~/.codex rollout logs, so pruned logs or a different machine silently start a fresh conversation — filed in the audit backlog.

Next run's focus: Worktrees section deep-dive (shortest core section, untouched since #798).

🤖 Generated with Claude Code

Nightly docs audit. Status Events was the scheduled deep-dive and came
back clean, so this is diff-driven work from d561a3b..9319fca.
- automations.tsx: `brain_delete_events` was missing from the job-agent
Brain tool list, which claims parity with standard agents; and the
Brains-tab paragraph never mentioned that entries can be deleted at
all. Documents per-card delete, the per-section Delete all scoped to
the selected collection or the whole project, Clear collection, and
Clear project — plus that the confirmation quotes scope totals rather
than the capped/filtered rows on screen.
- tools.tsx: events are append-only but not permanent — `brain_delete_events`
prunes by id or by filter within a collection, with a `dryRun` count
first. The Brains tab is for cleanup, not just inspection.
- 03-api-spec.md: adds the Brain section (15 routes, all read/delete —
writes go through MCP), including the bulk delete-by-entry-type rules
(`collection` XOR `allCollections`, single-value keys, cascade).
- 03-api-spec.md: `note` on POST /agents/:id/launch-review, and GET
/personas now lists built-ins after the repo's own.
- README / CLAUDE.md / AGENTS.md: personas no longer require repo setup.
- tips.ts: ambient tip for the built-in reviewer, anchored to the new
personas#built-in-reviewer heading.
Verified unchanged: the Status Events section holds on every claim —
the dispatch_event enum, the meanings injected by buildStartupRules,
the activity monitor's 3-minute stale window and its two correction
messages, the sidebar card's label/timestamp/repo line, the Activity
page charts, and the done/waiting_user/blocked notification set.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@selfcontained
selfcontained merged commit 11b0525 into mainAug 11, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_c44747b3affe/job-doc-ter-9d5bfc56 branch August 11, 2026 04:15
Sign up for freeto 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

@selfcontained