- Home
- Skills
- Agents & Orchestration
- Agent Memory — Long-Term Memory for AI Agents
More screenshots
Works with the AI Agents you already use
Agent Memory — Long-Term Memory for AI Agents
by Li Tieniu
Durable, inspectable memory for AI agents. Append-only facts, a human-editable MEMORY.md, and BM25 recall with no vector database — so your agent remembers preferences, conventions, and decisions between sessions.
$9.99
Agent Memory — Long-Term Memory for AI Agents
Example session with this skill installed
Our project uses pnpm, not npm. Please remember that for all future commands and update the memory.
- Read your context and instructions
- Compiled the agent memory
I have updated the project memory to reflect the preference for pnpm. This change has been recorded as a keyed fact to prevent future conflicts with npm-related instructions.
Memory Update Log
| Action | Key | Value | Scope | Confidence |
|---|---|---|---|---|
UPDATE | pkg.manager | Use pnpm; package-lock.json is not maintained. | project | 1.0 |
ARCHIVE | pkg.manager | Use npm for package management. | project | 1.0 |
Next steps
- Run
python scripts/memory.py recall "package manager"to verify the active fact. - Check
MEMORY.mdto see the updated status in the rendered view. - Run
python scripts/memory.py statsto confirm the old fact was successfully archived.
Connects securely to your tools. The creator never sees your data.
About this skill
Agents lose context the moment a session ends or a context window overflows. Standard RAG is often too heavy for simple project preferences, while basic prompting leads to "hallucinated" memories that you cannot audit or fix.
This skill provides a durable, file-based memory system that stores facts as plain text. It uses an append-only architecture to ensure every change is traceable, providing a human-readable MEMORY.md file that allows you to manually override agent inferences.
What it does
- Persistent storage saves project conventions, user preferences, and technical decisions across restarts.
- Hybrid recall uses BM25 retrieval to pull relevant facts into the prompt without heavy vector database overhead.
- Manual overrides allow humans to edit a specific section of the memory file that the agent can read but never overwrite.
- Session compaction manages long-running conversations by summarizing goals and decisions before hitting context limits.
- Conflict resolution uses a keyed system to ensure new facts supersede old ones rather than creating contradictory duplicates.
How it works
- Initialize the system to create the local file structure and the human-readable view.
- Recall previous context at the start of a task or when the user references past decisions.
- Record new stable conclusions using the
addorupdatecommands after a preference is confirmed. - Rebuild the store after manual edits to the Markdown file to synchronize the agent's internal state.
Why this beats prompting it yourself
Generic "remember this" prompts are volatile and easily ignored by the model over time. This skill enforces a strict write discipline, ensuring only high-confidence, actionable data is stored. Because it uses local files, your memory is portable, version-controllable, and completely transparent to the developer.
Use cases
- Maintain coding standards by storing specific linting rules or architecture patterns for a project.
- Track environment details like staging ports, API versions, and deployment targets.
- Manage user preferences such as preferred libraries, language nuances, or CLI flags.
- Audit agent logic by reviewing the append-only history of what the agent thinks it knows.
Known limitations
Requires Python 3.9 or higher. Does not support third-party vector databases or network-based retrieval. Designed for project-specific facts rather than large-scale document RAG.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python 3.9+
Runs entirely on local text files. No API key, no network calls, no packages to install. The script refuses any memory folder outside the current project, and one corrupt line is quarantined instead of breaking the store.
Permissions
What's inside
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.