- Home
- Skills
- Agents & Orchestration
- Persistent Agent Memory for Claude Code — Context Engine
More screenshots
Works with the AI Agents you already use
Persistent Agent Memory for Claude Code — Context Engine
Stop re-explaining your project architecture and coding preferences every time you restart your agent session.
$9.99
Persistent Agent Memory for Claude Code — Context Engine
Example session with this skill installed
I've decided we should use pnpm instead of npm for this project because it handles our monorepo dependencies faster. Remember that for all future installs.
- Read your context and instructions
- Compiled the persistent agent memory
I have recorded this rule and updated the project index. I will use pnpm for all future package management tasks in this repository.
Memory Stored
| ID | Class | Subject | Statement |
|---|---|---|---|
m-20250522-package-manager | rule | package manager | Use pnpm for package management, not npm. |
Frontmatter Recorded:
- ID:
m-20250522-package-manager - Class: rule
- Scope: project
- Confidence: 0.9 (user_stated)
- Why: faster handling of monorepo dependencies (stated 2025-05-22)
Next steps
- I have appended the session event to
LOG.md. - I will now check for a
package-lock.jsonto see if we need to migrate it topnpm-lock.yaml. - The rule is now pinned in
projects/github-com-user-repo/INDEX.mdand will be loaded in all future sessions.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop re-explaining your project architecture and coding preferences every time you restart your agent session. This skill provides a private, local memory system for AI coding agents that ensures corrections, project rules, and task states persist across restarts and context compactions. It manages memory through plain Markdown files stored on your machine, using a deterministic project key based on your git repository to share context between different agents like Claude Code and Cursor.
What it does
- Persistent memory stores durable project facts, user preferences, and standing rules in local Markdown files.
- Task state management tracks multi-step goals, progress, and next steps to resume work exactly where you left off.
- Automatic stale detection uses git anchors to flag memories that might be out of date because the underlying code changed.
- Smart recall retrieves relevant memories using grep and synonyms only when needed to keep the context window lean.
- Conflict resolution prioritizes user-stated rules over inferred facts and manages supersession when instructions change.
How it works
- Initialize the project by computing a unique key from your git remote or root hash.
- Review the session periodically to extract durable lessons, decisions, and environment quirks into discrete memory files.
- Recall context automatically when you refer to the past or perform high-stakes actions like deployments.
- Maintain health via Python scripts that lint for secrets, archive old items, and rebuild the search index.
Frameworks & tools
This tool uses Python 3.8+ for maintenance scripts and relies on standard git commands for repository identification and file hashing. It is designed for file-capable agents including Claude Code, Cursor, Windsurf, and Cline.
Why this beats prompting it yourself
Manual prompting loses context once the session ends or the buffer fills up. This skill enforces a strict "one fact per file" rule and a durable log, ensuring that "don't do that again" actually sticks for the life of the project.
Use cases
- Preventing the agent from repeating the same library or styling mistakes after a correction.
- Resuming complex refactors after a model's context window has been cleared or compacted.
- Sharing project-specific conventions between different IDE agents working on the same repo.
Known limitations
Requires a local environment capable of running Python scripts and git. It does not support cloud-based storage or syncing between different machines without manual file transfers.
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.
Requires Python 3.8+ and git. Local file access required. No built-in cloud sync. Does not store secrets. Context limit for INDEX.md is approximately 1,200 tokens.
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 10 days ago
- Accounts
GitHub
- Software
Git
Permissions
Allowed Hosts