Add Dispatch Brain V1 — repo-scoped shared memory for agents - #569
Merged
Conversation
Introduces two primitives for cross-agent state sharing within a repo: objects (mutable key-value with optimistic concurrency) and events (append-only structured history). Includes migration, store, 6 MCP tools, input validation, and 19 unit tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
selfcontained added a commit
that referenced
this pull request
May 21, 2026
… (#573) PR #569 added 6 new MCP tools (brain_get_object, brain_store_object, brain_list_objects, brain_delete_object, brain_append_event, brain_query_events) to both AGENT_TOOLS and JOB_TOOLS but the docs surfaces were not updated. - Add brain tools to docs-pane "Built-in tools" list - Add brain tools to docs-pane "Tools available to job agents" list - Add "Brain (shared memory)" subsection to Repo Tools section - Update "State across runs" to mention Brain as alternative to filesystem handoff - Add brain tools to README Interactive agents table and Job agents list - Add missing brain/ directory to CLAUDE.md project structure tree Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
brain_objects,brain_events) via migration0025_brain.sql, with appropriate indexes for collection/kind/subject/tags queries.brain_get_object,brain_store_object,brain_list_objects,brain_delete_object,brain_append_event,brain_query_events) available to agent and job scopes.BrainStoreclass with optimistic concurrency (revision-based updates), TOCTOU race protection on concurrent creates, LIKE wildcard escaping, and clamped query limits (default 50, max 200).0006-brain-tables.yaml) for the new tables.Test plan
pnpm run check)pnpm run test)pnpm run test:e2e)🤖 Generated with Claude Code