Skip to content

Latest commit

 

History

History
96 lines (61 loc) · 6.43 KB

README.md

File metadata and controls

96 lines (61 loc) · 6.43 KB

plotkeeper

A local control room for coding agents that explains what your prompts changed.

npm version Platforms License: MIT

npx plotkeeper

plotkeeper: the system map of a project, with the session list on the right

plotkeeper sits beside the sessions you run in your own terminals and editors. It hooks into your coding agents, tracks unseen changes as Fog on your system map, and keeps your understanding in step turn by turn and PR by PR.

What you get

  • Know what your prompt changed. Every turn ends with a one-sentence Headline, and ready PRs get a stepped brief on your system map. The story rail and PR briefs hold both.

    A finished turn: its Headline and its evidence line

  • Facts apart from model words. Files, line counts and check results come from hooks and git; brief code is quoted from the diff, never retyped. On the rail, an unverified fix is marked "Agent says:".

  • Pick up where you left off. "Where we were" and the Brief sum up an idle session: the last Headline, what changed since you looked, and what is open.

    Where we were

  • See who needs you. Every session sits in one list; only "needs you" is in colour, and you can answer Claude Code's questions, plans and permissions from the page.

  • A map that stays true. First map drafts it, and plotkeeper map check fails CI when code and map disagree. Back a law has a sandboxed run write a test for a rule, proven to fail when the rule breaks.

Supported agents

All record sessions and turns live; the rest varies:

Agent Files per turn Needs you Context size
Claude Code ✓ ✓ ✓
Codex ✓ ✓
Cursor (IDE and CLI) ✓
Antigravity CLI (agy)
OpenCode (2.x) ✓ ✓ ✓
Qwen Code ✓
GitHub Copilot (CLI and VS Code)
Cline (CLI)

The last four are newer, with fewer real runs.

Writers and models

Turn summaries come from the writer you pick in Settings: claude -p (the default, Haiku), codex exec (GPT models), Antigravity CLI (Gemini models), Copilot CLI, Cursor CLI, an Anthropic API key, or an OpenAI-compatible API such as local Ollama. PR briefs (Opus), First map and background runs use Claude Code.

Map languages

The map proves its links from imports in Rust, TypeScript and JavaScript, Go, Python, Java, PHP, Dart, C and C++, and .NET projects (C#, F#, Visual Basic). Other languages get parts with unproven links.

Quick start

Run npx plotkeeper with Node.js. First start lists detected agents and asks Wire these? [Y/n]. Yes wires them and opens the page (in Codex, run /hooks once to trust its hooks); No starts without recording. Answers are kept per agent; Ctrl+C stops plotkeeper.

A git repository with no map opens on First map: a free scan, then Draft the map with Claude Code, then Accept writes system-map.json or opens a draft PR (how it works).

  • Daily use: npm i -g plotkeeper && plotkeeper (avoids ~70 s offline npx wait; or npx --prefer-offline plotkeeper).
  • CLI: plotkeeper install (--yes for scripts), plotkeeper uninstall (undoes wiring, keeps history; details), plotkeeper map check (for CI), plotkeeper --version.
  • From source (with Rust): git clone https://github.com/danielrispler/plotkeeper && cd plotkeeper && npm ci && npm start.

Platforms

  • macOS: Apple silicon and Intel.
  • Linux: x86_64 and arm64, a desktop as the target. Background runs need bubblewrap and socat; API keys need libsecret-tools and a keyring (GNOME Keyring or KWallet). A Docker trial confirmed Claude Code, Codex and the sandbox; other agents and a real keyring are untried.
  • WSL2 (untried): agents inside WSL2 should work as on Linux; API keys and Windows-side agents do not.
  • Windows: not yet (native port).
  • Remote box: ssh -L <port>:127.0.0.1:<port> <host> reaches its page.

Local-first & privacy

  • Local only: serves on 127.0.0.1 with a per-run token; events stay local, and the writer uses your subscription with no tools.
  • Consent & credentials: asks before wiring, never opens ~/.claude/settings.json, ~/.codex/config.toml or credential files; plotkeeper uninstall reverses everything.
  • Sandboxed background runs: never starts sessions unasked. Only on your click does a background run run claude -p on a project copy inside Claude Code's OS sandbox (loopback only, no push/gh, no credentials); draft PRs open only on Open draft PR.

Why

Coding agents write code faster than I can read their diffs. I was losing track of how my own codebase worked, and every session ended in a long, painful review. I built plotkeeper so I could follow along turn by turn, while the code is being written. If you want to run many agents side by side, herdr and T3 Code are good at that. plotkeeper is for understanding what they changed.

Status

Early preview. Issues are welcome; pull requests are not reviewed yet.

Documentation

Licence

MIT.