v0.3.9
v0.3.9 — 2026-05-28
Final pre-0.4.0 release focused on smarter memory briefing, cache-first context, tool-call repair, and cleaner CLI configuration.
Breaking Changes
-
Removed CLI
.envbehavior loading-
Runtime settings now live in:
~/.config/brainrouter/config.json -
API key env vars still supported
-
-
Removed native Anthropic provider
- Claude now used through OpenAI-compatible providers
- (OpenRouter, Together, Fireworks, etc.)
-
Removed CLI recall fallback wrapper
- Brain-side recall pipeline now owns fallback logic
Highlights
-
Adaptive memory briefing
-
Smarter recall triggers for:
- first turn
- continuations
- debug/file workflows
- post-compaction
- child-agent synthesis
-
-
New
/briefinginspector-
Shows:
- recall reasons
- queried/skipped sources
- injected tokens
- compaction savings
- warnings
-
-
Cache-first context system
ImmutablePrefixAppendOnlyLogVolatileScratch
-
Prefix-pinned memory cards
- Stable first-turn memory caching
/refresh-memoryfor intentional repins
-
Tool-call repair pipeline
- Repairs malformed/truncated JSON
- Extracts leaked tool calls from content
- Prevents repeated identical calls
-
Model-tier escalation
<<<NEEDS_HIGH>>>/tier flash|standard|pro|auto
-
Cost + cache telemetry
-
/tokensnow shows:- turn/session cost
- cache hit %
- token savings
-
Other Improvements
-
Consolidated CLI config system
-
Externalized provider/model catalogs
-
Better LM Studio metadata support
-
Improved token estimation for:
- CJK
- code-heavy prompts
- prose-heavy prompts
-
Slimmer provider picker UX
-
Hardened memory secret redaction
-
Stale/superseded memory warnings
Testing
-
Added briefing benchmark coverage
-
Added tests for:
- cache stats
- repair pipeline
- pricing
- config loading
- tier escalation
Notes
0.3.9 intentionally does not yet include:
- federation
- durable agent queues
- cross-CLI inboxes
- vault mirrors
- active-session registries
Those are planned for 0.4.x.
What's Changed
- Release 0.3.9 — Memory briefing + Cache-first loop; drop Anthropic native by @kinqsradio in #57
Full Changelog: v0.3.8...v0.3.9