Repository navigation
v2.3.0 — Autonomous Memory Optimizer, Dashboard Trigger & Multi-Agent Concurrency
⚡ Muse Memory v2.3.0 — Autonomous Storage Optimizer, UI Dashboard Trigger & Multi-Agent Concurrency
Muse Memory v2.3.0 is a major feature release introducing the Autonomous Memory Storage Optimizer Engine, Zero-Daemon Automated Cadence, Embedded Web UI Dashboard Optimization Trigger, and Concurrent Multi-Agent Workstream Tracking across parallel agent swarms.
🚀 What's New in v2.3.0
1. Autonomous Memory Optimizer (src/optimize.ts)
- Multi-Factor Noise Pruning:
- High-precision detection and pruning of test assertion noise (
expect(...)traces, test runner outputs, mock data). - Junk fragment detection: prunes single-character debris (
'1','+'), micro-snippets, accidental system transcript dumps (MODEL PLANNER_RESPONSE,</SYSTEM_MESSAGE>,The above content does NOT show the entire file contents, and truncated outputs). - Candidate deduplication across normalized title and content keys, while strictly protecting human-confirmed and verified memories.
- High-precision detection and pruning of test assertion noise (
- SQLite Storage Defragmentation:
- Automatically executes
VACUUM;andPRAGMA optimize;in SQLite WAL mode to reclaim fragmented disk space. - Reclaimed 9.24 MB on local store during real-world benchmark runs.
- Automatically executes
- Operational Audit Ledger:
- Emits structured
AuditOperation = "optimize"events and stores metadata in.memory/optimization_meta.json.
- Emits structured
2. Zero-Daemon Automated Cadence
- Automatically governs storage hygiene without persistent background daemons:
- 7-Day Cadence: Runs optimization if
now - last_optimized_at >= 7 days. - 48-Hour Inactivity Window: Runs optimization if workspace is idle for 48 hours and hasn't been optimized in 48 hours.
- Automatically evaluated on turn start during context grounding (
get_context,muse_context).
- 7-Day Cadence: Runs optimization if
3. CLI Command: memory optimize
- Command-line interface with formatted terminal scoreboard:
memory optimize # Run optimization with SQLite VACUUM memory optimize --dry-run # Preview candidate items to prune memory optimize --force # Force immediate run ignoring cadence memory optimize --project core # Target specific project scope
4. Dashboard "⚡ Optimize" Trigger (src/ui.ts)
- Web Observability Studio Header: Added
#optimizeBtnwith⚡ Optimizebutton and hover tooltip. - REST Endpoints: Added
POST /api/optimizeandGET /api/optimize/status. - Live Client Feedback: Real-time spinner animations and flash toasts reporting items pruned and bytes reclaimed.
5. Concurrent Multi-Agent Workstream Tracking (src/governor.ts)
- Multi-Agent Coordination Protocol: Tracks parallel agents running simultaneously in separate IDE windows or chat sessions via
AgentWorkstream. - Live Markdown Table in
CURRENT.md:## 🤖 Active Concurrent Agent Workstreams | Agent / Session ID | Status | Active Task | Target Scope / Files | Last Active | | :--- | :--- | :--- | :--- | :--- |
- Prompt Context Awareness:
formatPromptContext(src/retrieval.ts) andresolveMuseContext(src/orchestrator/context.ts) inject active concurrent workstreams so agents never clash or overwrite each other's files. - Auto-prunes completed tasks after 48 hours.
6. CURRENT.md Guidelines & Bloat Sanitation
- Cleared
.memory/CURRENT.mdfrom 5,234 lines down to 26 clean, high-signal invariants. - Established clear operational guidelines:
- For Humans: Single-pane executive summary of active hard constraints and in-flight tasks. Zero verbose logs or transient filler.
- For AI Agents: Mandatory grounding rules (never violate active constraints) and concurrent workstream awareness.
- Hardened
syncConstraintsandparseCurrentFileto reject multi-line transcript chunks and normalize duplicates.
🧪 Verification & Reliability
- Unit & Integration Tests: 502/502 passed across 85 test files (
bun test). - Static Typing: Zero TypeScript errors (
tsc --noEmit). - Production Bundle: Clean 1.50 MB bundle in
dist/index.js(bun run build). - Vibeguard Audit: 0 credential leaks (
SecretScan.ts).