ClaudeCodeMod

All shelves / MCP servers

Agentpack

ihorponom/agentpack · 18 stars · TypeScript · MIT

MCP server Agentpack is a local-first continuity layer for AI coding agents. It stores reviewed task state inside a repo-local .agentpack/ ledger so Codex, Claude Code, Cursor, Claude Desktop, and other MCP clients can resume work without rebuilding context from chat history.

Install

The repo has no one-line install. Follow its README.

Published as

  • npmagentpack-clistdio

From the server's entry in the official MCP Registry.

Open the repo

Files

README.md

Agentpack

npm version CI node license agentpack MCP server

Repo-native task continuity for AI coding agents.

Agent memory remembers how you work. Agentpack remembers where the task stands.

When a chat closes or its context is compacted, the next session may need to reconstruct the task from files and conversation history. Decisions and failed approaches can be easy to miss.

Agentpack keeps a small, reviewable task ledger in .agentpack/ inside your repo. Connected agents record durable state as they work: the goal, decisions, dead ends, verification evidence, and checkpoints. The next session loads it back and continues. That next session can be the same agent after compaction, a different client, or you returning next week.

How Agentpack works: an agent records task state into .agentpack/ in the repo, and any next session, whether the same agent, another client, or later, continues from it

Here it is live. In session 1, Claude Code investigates a flaky test and records what it learns through the Agentpack MCP tools. In session 2, the next day with an empty context, the agent loads the task state and picks up where the first session stopped, without re-investigating:

Live demo: a Claude Code session records its findings through Agentpack MCP tools, and a fresh session the next day continues from the recorded task state

Prefer to try it by hand? The same flow driven from the CLI is in docs/DEMOS.md.

  • Local-first. Plain files in your repo. No cloud, no telemetry, no network calls.
  • Agent-oriented. A local MCP server plus generated project instructions (AGENTS.md, CLAUDE.md, Cursor rules) tell agents when to load and record state.
  • Human-friendly. The same state is available through the CLI for inspection, debugging, and manual handoff.

How is this different from agent memory?

Claude Code memory, Codex memories, and CLAUDE.md or AGENTS.md remember how to work: your preferences, project conventions, and facts that stay true. Agentpack records where the work is: the current task's goal, constraints, decisions, dead ends, next actions, and whether the result was verified.

Agent memory Agentpack
Holds Preferences, conventions, long-lived facts The state of a specific task
Lives in One client's profile or account .agentpack/ in the repo, local by default, portable with task bundles
Read by That client only Any MCP client: Claude Code, Codex, Cursor, Claude Desktop
Shape Free-form notes recalled by relevance A Task Passport with lifecycle, write scope, and verification bound to a commit
Staleness Not tied to file changes Source conclusions carry file hashes, so changed files are flagged

Use both: memory for how you like to work, Agentpack for what the task needs next.

Quick start

Requires Node.js >= 20.

npm install -g agentpack-cli

cd path/to/your/repo
agentpack init                     # once per repo
agentpack install claude --write   # per client: codex | claude | cursor | claude-desktop

In a Git repository, init adds patterns for untracked local files to Git's info/exclude. It leaves the project's .gitignore untouched. Files already tracked by Git remain tracked.

Restart or reconnect the coding-agent client. From then on the agent loads Agentpack context at session start, records decisions and evidence while working, and checkpoints meaningful progress.

Run agentpack doctor to verify the setup, and agentpack resume --preset agent --query "<topic>" to see the task state yourself.

See docs/INTEGRATIONS.md for client-by-client setup, including what each installer writes and why.

How it works

  1. At session start, the agent loads compact Agentpack context: the current Task Passport, recent checkpoints, decisions, and reviewed conclusions about source files.
  2. While working, it records what is worth keeping: decisions, approaches that failed, and verification evidence. Conclusions about files are stored with file hashes, so a later session can tell when a file has changed since. A matching hash means the file is unchanged, not that the conclusion is right.
  3. At a natural stopping point, it creates a checkpoint with status, next actions, and git state.
  4. The next session, in any MCP-connected agent, continues from that state instead of rebuilding it from chat history.

Each task gets a Task Passport: its goal, status, constraints, write scope, next actions, and verification. Tasks can be started, parked, switched, and finalized, which makes handoffs explicit.

An optional task gate warns when edits fall outside the active task. It uses native Claude Code, Codex, and Cursor hooks plus a pre-commit hook. It only warns by default; set "gateMode": "block" in .agentpack/config.json to stop such edits (see docs/CLI.md).

Resume output stays within a rough token budget, so agents get the useful state back, not the whole history.

Codex, Claude Code, and Cursor installs also include an optional builder subagent for larger implementation work. The main agent says what it will hand off before using it; small tasks stay with the main agent.

When it helps

  • The context window is compacted mid-task and the next turn needs the state back.
  • You start a fresh chat on an ongoing task.
  • You switch between Claude Code, Cursor, Codex, or another MCP client.
  • You return to a refactor or bugfix days later.
  • Another agent continues from your checkpoint.
  • You work across parts of a monorepo (api/, frontend/, cron/) with short scoped tasks, and the task gate keeps the agent inside the folder the current task owns.

Agentpack context uses tokens too. Its compact output keeps the task state available without including the full ledger history.

Security posture

  • Zero runtime dependencies, exact dev dependencies, committed lockfile, ignore-scripts=true.
  • No telemetry and no network calls during normal CLI or MCP operation.
  • Best-effort redaction of secret-looking values in stored context and handoff output.
  • Releases are published from GitHub Actions with npm provenance (Trusted Publisher, no long-lived tokens); verify with npm audit signatures.

See SECURITY.md for the full policy.

Documentation

Contributing / local development

Clone the repo and use Node 20+:

npm ci --ignore-scripts
npm test
npm run mcp:smoke
node dist/src/agentpack.js --help

See docs/SETUP.md for development setup and docs/RELEASING.md for release steps.


Mirror: Codeberg. Issues, releases, and npm provenance stay on GitHub.

Facts

Kind
MCP server
Repo
ihorponom/agentpack
Group
Uncategorized
Stars
18
License
MIT
Language
TypeScript
Last push
2026-10-10
Forks
1
MCP Registry
io.github.ihorponom/agentpack
Homepage
www.npmjs.com/package/agentpack-cli
Topics
agent-state, claude-code, cli, codex, coding-agents, developer-tools, local-first, mcp, ai-agents, context-engineering, cursor, task-continuity, mcp-server, model-context-protocol, typescript

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k