GitHub - pig-dot-dev/muscle-mem: A cache for AI agents to learn and replay complex behaviors.
Muscle Memory
muscle-mem is a behavior cache for AI agents.
It is a Python SDK that records your agent's tool-calling patterns as it solves tasks, and will deterministically replay those learned trajectories whenever the task is encountered again, falling back to agent mode if edge cases are detected.
The goal of muscle-mem is to get LLMs out of the hotpath for repetitive tasks, increasing speed, reducing variability, and eliminating token costs for the many cases that could have just been a scr...
Read more at github.com