v0.4.0
v0.4.0 — 2026-05-28
Major release introducing persona injection, federation, cross-CLI messaging, and typed multi-agent delegation. This release also lays the foundation for the 0.4.1 brain-agent job runtime.
Core Identity / Persona
-
Core Identity now injects directly into briefings
- Stable cache-pinned persona prefix
- Zero extra tokens after first turn unless persona changes
-
New
/personacommand/persona/persona refresh/persona on|off
-
Added MCP tools:
memory_personamemory_persona_refresh
-
New config:
cli.personaAnchor -
/wherenow shows persona anchor state -
/briefingnow includes persona source stats
Memory Improvements
-
Added
/memories list [query]- Shows citation precision
- Detects noisy memories automatically
-
Memory cards now show:
- citation %
- cited / uncited counts
- noisy flags
-
Briefing pipeline expanded to:
- persona
- recall
- working context
- task state
- failed attempts
- file history
Federation Stage 1 — Shared Memory
-
SQLite WAL hardening
-
workspaceTagsupport on memories -
Multi-client MCP install snippets
- Claude Code
- Codex
- Gemini CLI
Federation Stage 2 — Active Sessions
-
Added
active_sessionsregistry -
New MCP tools:
session_registersession_heartbeatsession_unregistersession_list
-
CLI auto-registers + heartbeats every 30s
-
Added:
/agents --remote
-
New Live Sessions dashboard panel
-
Stale session sweeper
-
Per-session token/cost telemetry
Federation Stage 3 — Cross-CLI Messaging
-
Added
session_inbox -
New MCP tools:
session_sendsession_inbox_readsession_inbox_ack
-
Added:
/dm <session> <message> /broadcast <message>
-
Supports:
- direct messaging
- broadcasts
- client-group broadcasts
-
Incoming message banners inside CLI
-
Inbox sweeper added
-
SSE push deferred to 0.4.1
Major Federation Fixes
- Fixed idle sessions disappearing
- Fixed multiple terminals collapsing into one session
- Fixed MCP session breakage after brain restart
- Fixed
/agents --remote --watchfreezing the REPL
CLI Multi-Agent Phase 2
-
Generated typed delegation tools:
delegate_explorer delegate_worker delegate_reviewer ... -
Added
route_task- typed routing decisions
- memory-aware routing
- confidence scoring
-
Added
ParentExecutionContextSnapshot- typed parent-child context transfer
-
Added:
/agents show <id>
-
Typed output contracts for built-in agents
-
Added
agent_route_feedbackmemory emission
Brain-Agent Runtime Foundations (Design Pass)
Design-only groundwork for 0.4.1:
-
BrainAgent -
MemoryJobRecord -
MemoryBlackboardItem -
Planned MCP tools:
memory_agent_statusmemory_agent_runmemory_job_retry
-
Full design freeze documented in:
brainrouter-docs/brain-agents.md
Testing
Massive test expansion across:
- Persona system
- Federation stages 1–3
- Messaging
- Multi-agent routing
- Output contracts
- Parent context snapshots
Final totals:
- 321 brain vitest
- 23 brain integration tests
- 717 CLI node tests
Notes
Deferred to 0.4.1:
- SSE federation streams
- Persona conflict detection
- Reranker precision boosts
- Durable job execution runtime
- Cross-vendor delegate execution
brainrouter runfederation registration
What's Changed
- feat(0.4.0): persona injection — wire Core Identity into the cache-stable briefing prefix by @kinqsradio in #60
- feat(0.4.0): federation Stage 1 — WAL hardening, per-client install docs, workspaceTag by @kinqsradio in #61
- feat(0.4.0): federation Stage 2 — active-session registry + cross-vendor presence by @kinqsradio in #63
- feat(0.4.0): federation Stage 3 — cross-CLI messaging by @kinqsradio in #64
- feat(0.4.0): CLI Multi-Agent Phase 2 — typed delegation by @kinqsradio in #65
- feat(0.4.0): brain-side design pass — BrainAgent + memory_jobs + blackboard by @kinqsradio in #66
- release(0.4.0): ship-the-cycle gate — bump versions + close OQs + defer augmentations by @kinqsradio in #67
- Release 0.4.0 — Persona injection + Federation + Multi-Agent delegation + Brain design pass by @kinqsradio in #68
Full Changelog: v0.3.9...v0.4.0