# Thread mind

> Persistent project memory for AI coding agents: a git-friendly tree of thread summaries that every new session starts from.

Thread mind is a paid AI agent skill on Agensi by Mahmoud NBET, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Mahmoud NBET](https://www.agensi.io/creators/mahmoud-nbet)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/thread-mind
- Tags: llm-ops, mcp-server, context-management, git-workflow, productivity, memory, claude-code, cursor

## About this skill

Long coding sessions lose their context: the conversation fills the model's window, gets compacted or cleared, and the next session starts from scratch. You spend tokens and time re-explaining architecture decisions, constraints and where the work stands.

### What it does
- **Persistent memory**: keeps a tree of thread summaries in a `.threadmind/` directory inside your project.
- **Inherited context**: each thread inherits the decisions and constraints of its parent threads, so a sub-task starts with the rules it must follow.
- **Structured summaries**: the agent records Decisions, Constraints, State, Open questions and Next steps, one section at a time, without rewriting everything.
- **Follows git**: a thread created on a feature branch becomes the active thread whenever that branch is checked out, and summaries get flagged when the files they cover change.
- **One thread per topic**: create, switch, move, merge finished threads into their parent, or mark them done or abandoned with the reason.

### How it works
1. **Create** a project with `tm:project <title>`. ThreadMind stores it in `.threadmind/`.
2. **Load** the context when a session starts: the agent calls `context_get` and gets the active thread's summary plus its ancestors' decisions and constraints, a few hundred tokens instead of the whole history.
3. **Save** as work progresses: `tm:summary`, or let the agent record each decision and update the state.
4. **Branch** into a new thread with `tm:create <title>` when a sub-task starts, and `tm:merge` it back when it's done.

### Frameworks & tools
Requires the ThreadMind MCP server, the open-source `thread-mind-mcp` npm package (Node.js 18+), declared in your agent's MCP configuration. The skill includes the setup for Claude Code, Cursor, VS Code (GitHub Copilot), GitHub Copilot CLI, Codex, Gemini CLI, Windsurf and Claude Desktop. In Claude Code, the ThreadMind plugin also loads the context at session start and reminds the agent to save its summary.

### Why this beats prompting it yourself
Notes in a prompt or a chat summary get lost at the next compaction, can't be reviewed, and grow until they no longer fit. ThreadMind keeps decisions in plain markdown files, organized by topic: the agent loads only the thread it works on plus the durable rules above it, and your team reviews the summaries in pull requests like code.

### Use cases
- Resuming a complex refactor after a weekend, or after `/clear`, without re-explaining it.
- Sharing architecture decisions and constraints across a team, through summaries committed with the code.
- Running parallel sub-tasks in separate threads, each linked to its git branch.
- Keeping a record of why a library or pattern was chosen.
- Switching agents mid-project: the same `.threadmind/` serves Claude Code, Cursor, Codex or Copilot.

### Known limitations
- The ThreadMind MCP server must be set up once in each agent's configuration; the skill shows how, but never installs it itself.
- Outside Claude Code with the plugin, saving relies on the agent following the instructions: ask for `tm:summary` before closing a long conversation.
- Branch linking and outdated-summary warnings need git.
- Summaries are meant to be committed: keep secrets and personal data out of them.

## Requires

- Node.js

## 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 Thread mind skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does Thread Mind prevent my AI agent from losing project context during long coding sessions?

Thread Mind creates a structured, git-versioned tree of summaries and decisions in a `.threadmind/` directory, allowing your AI agent to recall project constraints and architectural choices even after a session restart or token limit reset.

### Which AI agents and IDEs are compatible with this skill?

The skill is designed for any MCP-compliant environment; it is fully compatible with Claude Code, Cursor, VS Code, and the GitHub Copilot CLI, provided you have Node.js 18+ installed.

### Can I share the project context and thread summaries with my teammates via Git?

Yes, because the context is stored in a local directory, you can commit it to your repository. This ensures that when a teammate switches to a feature branch, their AI agent automatically inherits the specific decisions and sub-task status associated with that branch.

### Will storing all this project context bloat my token usage or slow down the model?

No, Thread Mind uses a smart summarization technique that records only critical milestones, decisions, and constraints, ensuring your model's context window stays lean and focused on the current task.

### What exactly is included with my purchase of the Thread Mind skill?

After purchase, you receive the full Thread Mind MCP server configuration and access to the `thread-mind-mcp` npm package, along with a guide for initializing the system in your local development environment.

---

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.
