# agentpack

Keeps task state inside repository files so AI coding agents do not repeat dead ends after context compaction or session resets.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 18
- Author: ihorponom
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ihorponom/agentpack
- Updated: 2026-10-17
- HTML: https://affpapa.org/en/nevibecode/mcp/agentpack

## What it does

Context drops wipe out agent investigations. The next session usually repeats the same troubleshooting steps. Agentpack records task objectives, rejected approaches, and checkpoints into `.agentpack/` in your repository. Any subsequent session picks up where the last one stopped.

Work centers on a Task Passport. It defines the goal alongside allowed editing boundaries. Notes about source files store file hashes, so Agentpack flags a note as soon as that file changes. The built-in task gate monitors edits, alerting when changes stray outside the designated folders.

Running the tool requires Node.js 20 or higher: without it the CLI cannot start. The server works entirely on your machine without telemetry or cloud calls. Initialization adds local configurations to `.git/info/exclude`, leaving your repo `.gitignore` file untouched.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add agentpack -- npx -y agentpack-cli
```

### Codex

**Platform CLI**
```bash
codex mcp add agentpack -- npx -y agentpack-cli
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agentpack": {
            "command": "npx",
            "args": [
                "-y",
                "agentpack-cli"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agentpack": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "agentpack-cli"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add agentpack npx -y agentpack-cli
```

## When to use it
- retain investigation findings across context compactions
- resume tasks in new sessions without repeated code analysis
- restrict agent modifications to specific repository folders
- spot stale agent conclusions after code modifications

## Example prompts
- Load the current task context from Agentpack and check the next step
- Record this failed attempt in Agentpack and create a checkpoint
- Display the active Task Passport and allowed write boundaries

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
