Skip to content

Load persistent memory for configured agents#25

Open
shouc wants to merge 3 commits into
masterfrom
audit/claude-parity-gaps-6
Open

Load persistent memory for configured agents#25
shouc wants to merge 3 commits into
masterfrom
audit/claude-parity-gaps-6

Conversation

@shouc
Copy link
Copy Markdown
Contributor

@shouc shouc commented Apr 12, 2026

Summary

  • load persistent agent memory into the agent system prompt when an agent resource declares memory: user|project|local
  • add a dedicated runtime helper module for agent-memory path resolution and prompt assembly
  • add focused tests for project/local agent memory loading and prompt integration

Audit scope

This was a fresh parity pass on latest master in a repo-local worktree after checking open PR scope first.

Explicitly excluded overlapping in-flight work:

The concrete non-overlapping gap here was subagent memory:

  • Puffer's agent resource model already exposes memory: user|project|local
  • but the runtime ignored it when building agent system prompts
  • Claude's reference agent runtime loads persistent agent memory for agents that opt into it

Testing

  • cargo test -p puffer-core agent_memory -- --nocapture
  • cargo test -p puffer-core agent_runtime -- --nocapture

Notes

  • The implementation uses Claude-compatible .claude/agent-memory and .claude/agent-memory-local paths, plus the same PUFFER_HOME-derived .claude home root that Puffer already uses for team artifacts.
  • For parity verification in the repo-local worktree, I temporarily mounted the existing local references/ corpus into the worktree so the audit could compare against the Claude reference tree. No references/ content is included in this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant