Implementation: How to implement agent distinction and real-time memory tier...

Documentation for Sessions

⚙️ Implementation: How to implement agent distinction and real-time memory tier...

📋 Decision Context

Question:

How to implement agent distinction and real-time memory tier tracking in Command Center?

Task: Phase 1 & 2 of MCP Command Center enhancement


🎯 Decision Made

Chosen:

Add agentCategory field ('execution' | 'training') to distinguish AI assistants from MCP learning agents. Create two separate UI panels with computed signals. Emit memory tier events from getHotDecisions/getWarmDecisions/getColdDecisions using dynamic imports. Update frontend WebSocket listener to set memory tier stats.

Options Considered:


💭 Reasoning

Agent distinction solves fundamental UX confusion - users need to see: 1) Execution layer (Claude/Cursor writing code NOW) vs 2) Training layer (MCP agents learning for FUTURE). Two panels with visual distinction (blue vs green) makes this crystal clear. Memory tiers showed 0 because tiered-memory.ts never emitted events - added commandCenter.memoryTierAccessed() calls with dynamic imports to avoid circular deps. Non-blocking (.catch) ensures memory access never fails. Frontend listener updates memoryTierStats signal which automatically updates UI via computed properties. Zero linter errors, ~150 lines added across 5 files.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation