# ctxmem agent skill

> Git-native local project memory for tracking architectural decisions and context across agent sessions.

ctxmem agent skill is a free AI agent skill on Agensi by Giuseppe Gillini, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Giuseppe Gillini](https://www.agensi.io/creators/giuseppe-gillini)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ctxmem-agent-skill
- Tags: ai-agents, llm-ops, automation, python, git, context-management, sqlite, persistent-memory

## About this skill

Stop losing track of architectural decisions and project context between coding sessions. Developers often struggle with agents that forget previous discussions or hallucinate outdated patterns in growing repositories. This skill implements a Git-native memory layer that keeps your project knowledge where it belongs: in the repository.

### What it does
- **Persistent recall** uses local keyword search to retrieve relevant project history before starting new tasks.
- **Context management** generates task-specific context within token budgets to prevent LLM noise.
- **Decision tracking** records architectural choices and rationales with a built-in superseding mechanism for updates.
- **Git-native storage** saves memories in JSONL format within your repo for easy versioning and sharing.
- **State reconciliation** identifies when current code conflicts with historical records to ensure accuracy.

### How it works
1. **Inspection** checks for the presence of the ctxmem CLI and repository configuration files.
2. **Setup** installs the local utility and configures persistent agent instructions for automatic recall.
3. **Retrieval** runs targeted queries against the local memory store to gather evidence for the current prompt.
4. **Recording** captures new decisions or corrections using specific types and file path associations.

### Frameworks & tools
This skill requires Python 3.8+ with SQLite FTS5 support and Git. It operates locally using the `ctxmem` CLI tool.

### Why this beats prompting it yourself
Manual prompts rely on the agent's short-term context window which clears every session. This skill provides a structured, searchable database that persists across tool restarts and different developer environments.

### Use cases
- Onboard new agents or developers to a complex codebase with historical context.
- Prevent regressions by surfacing previous architectural "why" decisions.
- Synchronize project knowledge across a team using standard Git workflows.
- Manage large-scale refactors where decisions must be tracked over multiple days.

### Known limitations
Requires local execution permissions for Python and Git. Does not store secrets or credentials. Memory recall performance depends on the quality of recorded titles and descriptions.

## Requires

- Python
- their own MCP

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ctxmem agent skill skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does ctxmem prevent an agent from forgetting decisions made in previous sessions?

ctxmem provides persistent, searchable project memory that survives across AI coding sessions. It stores architectural decisions, technical notes, and project context in a Git-native format. Once configured, compatible coding agents are instructed to retrieve relevant memories before starting tasks, helping them maintain consistency, avoid repeating mistakes, and reuse previous decisions.

### What are the technical requirements for integrating this skill into my current workflow?

ctxmem requires Python 3.8 or higher with SQLite FTS5 support, Git, and an AI coding agent capable of executing local terminal commands. The skill provides setup instructions and integration with supported agent configurations, including Codex and GitHub Copilot. No cloud services, API keys, or external accounts are required for normal operation.

### Can I share the project memory with other team members using Git?

Yes! ctxmem stores project memory in Git-friendly JSONL files that can be committed and shared alongside your code. Team members can pull the repository and access the same architectural decisions, technical notes, and project context using ctxmem. Memory stays local and follows your existing Git workflow, without requiring a centralized cloud service.

### How does the skill handle conflicting information if project decisions change over time?

ctxmem supports decision superseding, allowing outdated architectural decisions to be replaced by newer ones while preserving their history. When retrieving context, the agent is instructed to compare stored memories with the current codebase and prioritize up-to-date information. This helps reduce inconsistencies without silently discarding historical decisions.

### What is included in the free ctxmem agent skill?

The free skill includes agent instructions, a setup helper, configuration guidance, and documentation for integrating ctxmem into your coding workflow. The ctxmem Python package is distributed separately through PyPI and is available as open-source software on GitHub under the MIT license. Once configured, compatible agents can retrieve, record, and synchronize project memory across coding sessions.

### Is there a premium version of ctxmem?

Not yet! ctxmem is currently free and open source under the MIT license.

A premium offering is planned for the future, introducing additional advanced features and workflows for AI coding agents.

The existing core functionality will remain free and open source. Premium features will be optional, allowing developers to continue using ctxmem without any subscription or payment.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
