Skip to content

Update agent prompts to use Memory Router interface (ADR-037) #731

@rjmurillo-bot

Description

@rjmurillo-bot

Summary

After ADR-037 Memory Router Architecture is approved and MemoryRouter.psm1 is implemented, update agent prompts to use the unified Memory Router interface instead of direct backend calls.

Background

ADR-037 defines a unified interface:

  • Search-Memory: Semantic/lexical search with Forgetful→Serena fallback
  • Get-Memory: Direct memory retrieval by ID
  • Save-Memory: Store memories with automatic deduplication

Files to Modify (Enumerated)

File Lines/Symbols Current State Required Change
.claude/agents/skillbook.md Lines 43, 1230-1267 Uses mcp__serena__* Use Memory Router
.claude/agents/memory.md Entire memory section Uses Serena-only Use Memory Router
.claude/agents/retrospective.md Lines with cloudmcp-manager Deprecated refs Remove, use router

Grep Command to Find All Affected Files

grep -rn "mcp__serena__\|mcp__forgetful__\|cloudmcp" .claude/agents/

Dependencies

Acceptance Criteria

  • grep -rn "mcp__serena__\|mcp__forgetful__\|cloudmcp" .claude/agents/ returns ONLY Memory Router usage patterns
  • skillbook.md uses Search-Memory for deduplication checks
  • memory.md uses Memory Router for all memory operations
  • retrospective.md has zero cloudmcp-manager references
  • All prompts document Memory Router fallback behavior
  • Integration tests verify agent prompts work with router

Exit Criteria Verification

# Must return 0 matches for direct MCP calls
grep -c "mcp__serena__list_memories\|mcp__serena__read_memory\|cloudmcp" .claude/agents/*.md
# Expected: 0

# Must return matches for Memory Router usage
grep -c "Search-Memory\|Get-Memory\|Save-Memory" .claude/agents/*.md  
# Expected: >0

Related

Metadata

Metadata

Assignees

Labels

agent-memoryContext persistence agentagent-qaTesting and verification agentagent-retrospectiveLearning extraction agentarea-promptsAgent prompts and templatesarea-skillsSkills documentation and patternsenhancementNew feature or requestpriority:P1Important: Affects user experience significantly, high business valuetechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions