PCSKit
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PCSKit: Project Continuity Kit
Your AI agent stopped. The next one picks up exactly where it left off.
PCSKit is a local-first command line tool (pcs) and MCP server that hands work from one AI coding agent to the next. When an agent hits a token limit, you start a new chat, or you switch from Claude to Cursor, PCSKit rebuilds what actually happened in the project from git and recorded evidence, and gives the next agent a brief it can trust.
Never trust an agent's "done". PCS keeps what it saw itself apart from what an agent claimed.
The problem
Agents lose context when a session ends. The usual fix is a summary written by the agent that just ran out of room, which is exactly the part you cannot trust. It may say tests pass when they never ran, or forget the file it was halfway through editing. The next agent then builds on a story instead of on facts.
Related MCP server: Evidence MCP
How it works
PCS sits beside your agents and records evidence while they work. When one stops, it assembles a handoff. When the next one starts, it checks that handoff against the evidence before presenting it.
flowchart LR
A["Agent A<br/>Claude, Cursor, ..."] -->|"MCP tools and hooks"| P["PCS"]
G["Git state<br/>and file hashes"] --> P
T["Test runs<br/>executed by PCS"] --> P
P --> L[("Append-only<br/>evidence log<br/>SHA-256 hash chain")]
L --> H["HANDOFF.md"]
H -->|"pcs resume<br/>checks against the log"| B["Agent B<br/>any tool"]A handoff, from the first session to the next agent:
sequenceDiagram
participant A as Agent A
participant P as PCS
participant B as Agent B
A->>P: session start, tasks, notes
A->>P: pcs test -- npm test
P-->>P: runs the command, records exit code and code state
A->>P: session end (token limit)
P-->>P: build handoff from the evidence log
B->>P: pcs resume
P-->>P: verify chain, snapshot repo, compare with handoff
P->>B: brief with every line labelledEvery fact carries its source
Level | Meaning | Example |
| PCS observed it itself | git state, file hashes, a test run PCS executed with its exit code |
| A person or agent claimed it | "task done", "next step is X" |
| Derived from other facts | "the session was interrupted" |
A task counts as verified only when a passing test run that PCS executed is linked to it, and only while the code still matches the state that run saw.
What the next agent receives
An abbreviated example of a brief:
Original task
[reported by claude] Add the --json flag to the exporter
Completed
[verified] Parse --json option (tests passed, code unchanged since)
[reported by claude] Update the help text (no test run linked)
In progress
[verified] src/cli/export.ts has uncommitted changes
Next steps
[reported by claude] Wire the flag in src/cli/export.ts, then update the tests
Warnings
[inferred] Previous session ended at the token limitFeatures
Handoffs you can trust. Original task, completed work (verified, passing-but-code-changed, or reported only), work in progress, files touched, test results with the output of failing runs, open problems, next steps and do-not-touch notes.
Tamper-evident history. Events are stored in an append-only SHA-256 hash chain.
pcs verifydetects edits, deletions and reordering. A signed anchor kept outside the project also detects truncation and rewrites.Audit export.
pcs exportwrites the log as JSON or Markdown that can be checked without PCS.Secrets stay out. Redaction runs before anything is stored. Files flagged sensitive (keys,
.env) are listed by name and never read.Works with your agents. MCP server for any MCP client, Claude Code hooks, and instruction blocks for CLAUDE.md, AGENTS.md and Cursor rules.
Always on, if you want. A background watcher snapshots the repo as files change and flags stalled sessions.
pcs autostart installstarts it at login.Many repositories.
pcs workspacelists all your projects. Each keeps its own log.Read-only dashboard.
pcs dashboardshows sessions, tasks with their evidence, notes, test runs and the event timeline on 127.0.0.1.Recovery. If an agent died before writing a handoff, PCS builds one from the evidence log and marks the interrupted session as
inferred.
Supported clients
Client | Connect | Automation |
Claude Code |
| Hooks start, checkpoint and end sessions |
Claude Desktop |
| MCP tools, instruction block |
Cursor |
| MCP tools, |
Any MCP client |
| MCP tools |
Setup details for each app are in docs/CLIENTS.md.
Quick start
You need Node.js 22.13 or newer and git.
npm install -g @knihal/pcskit
cd your-repo
pcs initPrefer a package manager? Homebrew (macOS/Linux) and Scoop (Windows) are also available. Both install the same npm package:
# Homebrew
brew install KNIHAL/pcskit/pcskit
# Scoop
scoop bucket add pcskit https://github.com/KNIHAL/scoop-pcskit
scoop install pcskitConnect the agents you use. One command each, and --remove undoes it:
pcs connect claude-desktop
pcs connect cursor
pcs connect claude-codeTell agents how to use PCS. For Claude Code, hooks do it automatically:
pcs agents install # adds a marked block to CLAUDE.md, AGENTS.md, .cursor/rules
pcs hooks install # Claude Code: sessions start, checkpoint and end by themselvesCheck that everything is in place:
pcs doctorFull documentation is at pcskit.causly.in/docs.
Walkthrough
pcs session start --agent claude
pcs note add task "Add the --json flag to the exporter"
pcs test --task <task-id> -- npm test # PCS runs it and records the result
pcs note add next "Wire the flag in src/cli/export.ts, then update the tests"
pcs session end --reason limit
pcs handoff # writes .pcs/HANDOFF.mdThe next agent, in any tool:
pcs resume --agent cursorResume checks the handoff against the evidence log, snapshots the repo, warns if the code moved since the handoff, and prints the brief. With MCP connected, agents call pcs_resume and pcs_handoff themselves. No agent running? pcs resume --prompt prints a ready-to-paste takeover prompt.
Command overview
Area | Commands |
Setup |
|
Work |
|
Handoff |
|
Trust |
|
Many projects |
|
Run pcs <command> --help for options. Several commands accept --json for scripts.
MCP server
Start the server with pcs mcp, or let pcs connect write the config. Agents should start with pcs_resume.
Group | Tools |
Continuity |
|
Sessions |
|
Tasks and notes |
|
Evidence |
|
--read-onlyexposes only tools that cannot change anything.pcs_test, which runs a command on your machine, is off unless you pass--allow-test.Recorded content is returned as data, with control characters stripped, and the server instructions tell the model not to follow it.
Security
PCS reads repositories and agent output that it does not trust, so it is built defensively.
Local only: no network access and no telemetry. Data lives in
.pcs/inside your project, git-excluded and owner-only (POSIX modes, Windows ACLs).Git is run read-only with a hardened adapter: no repo-defined commands, no optional locks, timeouts, validated hashes.
Commands are argument arrays, never shell strings.
pcs testcan be limited to an allowlist.Untrusted text is sanitized before it reaches the terminal, markdown or the dashboard.
Policy files can only tighten defaults. The global file is the trusted one, because a project file can be edited by an agent.
Honest limits
The hash chain proves changes only if you keep the anchor or an export somewhere else.
Redaction is pattern based. Add your own rules for your secrets.
reportedclaims are labelled, not proven.
The full reasoning is in docs/DECISIONS.md. To report a vulnerability, see SECURITY.md.
Platform support
Tested in CI on Linux, Windows and macOS with Node 22 and 24, including git worktrees and submodules, concurrent writers and fuzzed input.
Uninstall
pcs deinit removes everything PCS added to a project: the .pcs folder, hooks, instruction blocks and the login entry. pcs connect <app> --remove removes the MCP entry.
Contributing
Issues and pull requests are welcome. Start with CONTRIBUTING.md. Everyone is expected to follow the code of conduct. Rules for AI agents working on this repository are in AGENTS.md. Changes are listed in CHANGELOG.md.
License
Apache-2.0. See LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared project docs, task planning and GitHub evidence for people and their AI agents.
Evidence-backed project memory and checkpoints for AI coding agents.
Project memory, documentation and controlled secret access for AI coding agents.
Shared team record of decisions, changes and handoffs that every coding agent reads and writes.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI coding agents to record and resume engineering work as durable, byte-exact threads of focus, decisions, evidence, and next steps.4304Functional Source , Version 1.1, ALv2 Future
- AlicenseBqualityBmaintenanceEnables AI coding agents to assemble tamper-evident, locally stored evidence bundles that capture Git state, command results, and file hashes, then verify freshness and export shareable reports.241MIT
- AlicenseNot gradedqualityBmaintenanceEnables LLM agents to capture every project turn into an encrypted write-ahead log, retroactively filter entries against the shipped product, and semantically recall what mattered in later sessions.Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI coding agents to read agreed project baselines, append evidence-backed conversation and command records, query pending branches and evidence gaps, and propose cited facts or ideas to a local-first project workbench.6Apache 2.0