Procedural memory for LLM agents: record solved tasks, compile them into replayable skills, run them without reasoning again
pip install scriptflow-procedural-memory Copy PIP instructions
Give your AI agent a memory of how it solves tasks.
procedural-memory saves successful tasks as reusable skills. When a similar request comes in, it replays the saved steps instead of asking the LLM to solve the same problem again.
USER REQUEST │ intent + parameters ← one cheap classification call │ ┌────┴─────┐ │ STORE │ └────┬─────┘ ┌──┴──┐ MATCH NO MATCH │ │ SKILL AGENT → success check → compile → STORE │ │ └────┬─────┘ RESULT How it works Your agent receives a request. The library checks whether a matching skill already exists. If a skill matches, it replays the saved tool calls. If no skill matches, your agent solves the task. If the task succeeds, the library saves it as a reusable skill. Features Save reasoning costs — reuse previous solutions instead of solving the same task again. Works with any LLM — you provide your own classify and call_tool functions. No dependencies — only Python 3.10+ is required. Sync and async — supports both synchronous and asynchronous functions. Safe by design — skills contain JSON tool calls, not executable code. Human-readable skills — inspect and edit saved procedures manually. Keep control — your existing permissions, confirmations, rate limits and auditing still apply. Skills are learned only from successful executions. A skill is not saved if it depends on a fixed identifier or contains unused request parameters.
agent agent-memory caching llm mcp procedural-memory skills tool-calling
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




