Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By a3lemv0.3.1In 1 marketplace
Persistent agent memory: storage layout and conventions for what belongs in it
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Persistent, self-maintained memory for an agent: a git repository of markdown the agent owns, compiled into its system prompt each session and kept honest by an enforced contract. See docs/ for the architecture, specs, and glossary.
By default, an agent's memory is stored at ~/.agents/memories/<agent-id>/,
which holds exactly two directories: main/, the main branch's checkout, and
worktrees/, the per-session checkouts beside it.
MEMORY_AGENT_ID sets <agent-id> (default my-claude).MEMORY_ROOT_DIR moves the root (default ~/.agents/memories).MEMORY_ENABLED=0 is the kill switch: every hook becomes a silent no-op
and the session leaves no memory trace.MEMORY_SESSION= (set empty) runs a session without a branch or
worktree: memory is injected read-only from main, nothing is written.MEMORY_SESSION_ID=<id> pins the session id, so any number of sessions
share one memory branch.MEMORY_SESSION_DIR=<path> puts the session worktree at an explicit
path -- a debugging aid.The same configuration can live per project in <cwd>/.agents/memory.conf
-- KEY = value lines, keys named like the variables above with the
MEMORY_ prefix left off (ROOT_DIR, AGENT_ID, ENABLED, SESSION,
SESSION_ID, SESSION_DIR). Environment variables win over the file.
No further setup: the first session scaffolds the store, and hooks handle injection, validation, and end-of-turn commits from then on.
The index-md skill from the context-wikis plugin is a companion: reference
directories keep generated index.md tables of contents. The hooks refresh
them at SessionStart and SessionEnd through the bundled
scripts/generate_index.py, a copy of the context-wikis plugin's
generator, and the memory skills invoke the index-md skill for creation and
manual regeneration.
To make the agent's own skills loadable, launch Claude Code with the store
on --add-dir:
claude --add-dir ~/.agents/memories/<agent-id>/main
main/ carries a tracked .claude/skills symlink pointing the harness at
the skills/ tier, so the agent's skills load like any others. Only --add-dir (or /add-dir) loads skills;
permissions.additionalDirectories in settings.json grants file access
without loading them.
A skill the agent writes during a session lives on that session's branch
and becomes loadable only once it reaches main: /sync now, or the next
consolidation. Session branches inherit the symlink too, so a branch can be
pointed at the same way for testing.
/consolidate -- full maintenance pass over the queued session branches
(or one process: mine, unify, refine)./sync -- share this session's memory into main now, when it merges
cleanly./discard -- mark this session not worth remembering./calibrate -- review memories with the human, grading both their truth
and the agent's confidence in them.Consolidation does not have to wait to be asked for. Run headless on a cron job or a scheduled routine --
claude -p /consolidate
-- it becomes the agent's sleep cycle: queued session branches unify and
staged history distills while nobody is at the keyboard. Between scheduled
runs, the consolidation queue and staged-history counts in the injected
<memory-metadata> are the signal that a pass is due.
This README, the injected instructions, the keeping-memories skill, the
memory-store and validation specs, and the verify how-to are rendered
from .shablon/templates/. Facts like the size caps and store defaults
come from memoryctl.py through .shablon/vars.py, so the enforcing code
is their single source. Edit the template, never the rendered file, and
run shablon generate; the verify how-to's static checks catch a
mismatch.
npx claudepluginhub a3lem/knowledge-powerups --plugin agent-memoryBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground