MuscleMemory
thewariend.com
Open-source, local-first procedural memory for coding agents that learns from tasks whose tests passed and hands the agent a short how-to next time.
- Pricing
- Open source
- Published
- Oct 26, 2026
Next steps
What it does
MuscleMemory is an Apache-2.0 procedural memory for AI coding agents by TheWariend. It watches your agent work and, when a task truly succeeds (tests pass after the last change), learns how it was done. When a similar task comes up, it gives the agent a short note: which files to change, the test that proves it worked and what to avoid. In the project's benchmark with real Codex sessions it cut input tokens by 25.5%, tool calls by 30.4% and time by 28.2% with all tasks still passing; an early Claude Code run with Sonnet showed 43.5% fewer input tokens. Results can be checked with a reproduce script. It runs locally by default (pipx install thewariend-musclememory, then musclememory init and start).
Use cases
- Cut repeated exploration tokens when an agent works on the same codebase
- Reuse what worked in past Codex tasks for Claude Code
- Keep agent learning local without sending data to a cloud service
Frequently asked questions
- How does MuscleMemory decide a task succeeded?
- When tests pass after the agent's last change; only then does it learn the procedure.
- Which agents does it support?
- The project benchmarks Codex and Claude Code sessions.
- How do I install it?
- pipx install thewariend-musclememory, then run musclememory init and musclememory start.