Skip to content

feat(plugin): add per-agent persistent memory across sessions#956

Merged
JeremyDev87 merged 1 commit intomasterfrom
feat/agent-memory-947
Mar 26, 2026
Merged

feat(plugin): add per-agent persistent memory across sessions#956
JeremyDev87 merged 1 commit intomasterfrom
feat/agent-memory-947

Conversation

@JeremyDev87
Copy link
Owner

Summary

  • Add AgentMemory class for per-agent persistent knowledge storage in ~/.codingbuddy/agent_memory/
  • Store findings, patterns, and preferences per agent in JSON files with FIFO eviction (default 50 items)
  • Integrate with stop hook to record session agent activity on session end
  • Provide get_context_prompt() for injecting agent memory into system prompts at SessionStart
  • 17 tests covering load/save, FIFO eviction, persistence, context prompt formatting, clear, and list

Test plan

  • 17 unit tests in test_agent_memory.py — all passing
  • 9 tests in test_stop.py — all passing (including agent memory integration)
  • codingbuddy-claude-plugin workspace CI: lint, format, typecheck, test:coverage, circular, build — all passing

Closes #947

- Create AgentMemory class with load/save/add_finding/add_pattern/add_preference
- FIFO eviction when exceeding max_items (default 50)
- JSON storage in ~/.codingbuddy/agent_memory/ per agent
- Integrate with stop hook to record session agent activity
- 17 tests covering all methods including edge cases
@JeremyDev87 JeremyDev87 self-assigned this Mar 26, 2026
@JeremyDev87 JeremyDev87 merged commit e53ec79 into master Mar 26, 2026
25 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/agent-memory-947 branch March 26, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Agent memory — per-agent persistent knowledge across sessions

1 participant