Skip to content

Installation ​

Preview

critterstack is a preview, built as part of the .NET 11 release train. The coordination model, the MCP tools and the UI are real and in daily use, but the surface can still change before 1.0. Tell us what breaks: https://github.com/JasperFx/critterstack/issues.

Requirements ​

.NET10.0 or 11.0 (the package carries a build for each)
A databaseNone to install. The store is Fisher on a SQLite file, created on first run.

Nothing else is required. critterstack does not need your solution to reference anything. Runs reach it as HTTP posts from Bobcat's publisher, so it needs no Bobcat package either. For GitHub issue and PR nodes, critterstack needs a GitHub token: GITHUB_TOKEN, GH_TOKEN, or a signed-in gh CLI (see Configuration).

Install ​

critterstack ships as one package: a .NET global tool. Two commands install it and wire a repository:

bash
dotnet tool install -g critterstack
critterstack setup

If this is the first .NET global tool on the machine, dotnet prints a line adding ~/.dotnet/tools to your PATH: run it, or open a new terminal, before critterstack setup.

Then start the server in its own terminal:

bash
critterstack

critterstack setup is run from your repository. It writes the critterstack MCP server into the repository's .mcp.json, checks whether a critterstack server answers, and says what to do next. With a server answering, it also registers the server's local folder feeds with NuGet on this machine and says which skills your plans use that are not installed. Restart Claude Code in that repository afterwards so it reads .mcp.json, and approve the critterstack MCP server when it asks.

Commit .mcp.json. It gives everyone who clones the repository the critterstack server, and until it is committed, a gate run in that checkout reads "with uncommitted changes in the tree" and proves no commit.

The tool is a web application. Starting it binds two ports and serves the web UI, the API and the MCP endpoint from one process:

Coordination  http://localhost:5526
Run receiver  http://localhost:5527
MCP           http://localhost:5526/api/mcp

Open http://localhost:5526 for the ready board, the plans, repositories and memories. The run board and the Event Model canvas are Bobcat's: bobcat ui, on http://localhost:5525, from the free bobcat tool (dotnet tool install -g Bobcat.Console).

Why not 5525

5525 is the address every Bobcat publisher probes by default, and it belongs to bobcat ui, the run board and Event Model canvas in Bobcat's free tool. critterstack receives runs on its own port, and a run reaches both because BOBCAT_MONITOR_URL is a list. See Ports and wire contracts.

What critterstack setup writes ​

$ critterstack setup
critterstack setup 0.5.0 (preview)

Changed /Users/you/code/my-repo/.mcp.json
  + mcpServers.critterstack -> http://localhost:5526/api/mcp
Recorded what was written in /Users/you/.claude/critterstack/setup.json, so setup can upgrade it and --uninstall can take it back.

Server    http://localhost:5526  answering
Receiver  http://localhost:5527  answering
.mcp.jsonOne critterstack entry under mcpServers, merged into whatever servers the file already names. The file is created if the repository has none.
NuGet's user configWith a server answering that has local folder feeds configured: each folder registered as a package source (with a * source mapping where the config maps packages), so a local pack restores in every checkout on this machine. Recorded in ~/.claude/critterstack/nuget-setup.json, and taken back by --uninstall.
A backupEach file it changes is copied to ~/.claude/critterstack/backups/ first.
A record~/.claude/critterstack/setup.json lists what setup wrote, so it can change it later and take it back.

Setup installs no Claude Code hooks. Earlier versions wrote session hooks into ~/.claude/settings.json; the next critterstack setup takes out exactly the ones its record says it wrote, and leaves every other hook alone, including one it wrote that you have since edited.

It is built to be re-run:

  • Re-running is safe. Nothing that is already in place is written again, so a second run changes nothing and backs nothing up.
  • It owns only what it wrote. A server entry you wrote by hand, even one identical to setup's, is left alone and never removed. So is an entry setup wrote that you have since edited.
  • Upgrades change only setup's own entries. Run critterstack setup again after an upgrade; it replaces what it recorded and leaves the rest.
  • It refuses rather than guesses. A file with comments (rewriting it would lose them), a file that does not parse, or a critterstack server that setup did not write: each is reported and left exactly as it was.
Flag
--dry-runPrint what would change, and write nothing
--uninstallRemove exactly what setup added: its entry in every .mcp.json it wrote to, and any hooks an earlier setup wrote. A file setup created and that is empty again is deleted
--repo <folder>The repository to wire, when not the git root above the current folder
--no-repoLeave every .mcp.json alone
--claude-dir <folder>Claude Code's config folder, when not CLAUDE_CONFIG_DIR or ~/.claude
--url <url>critterstack's address, when it is not http://localhost:5526. The MCP entry points at it
--receiver-url <url>critterstack's run receiver, for the server check, when it is not CRITTERSTACK_RUN_RECEIVER_URL or http://localhost:5527

Setup never starts a server.

Prefer to write the configuration yourself? It is on An agent's first session.

Where its state lives ​

~/.critterstack/coordination/stoat.db   the coordination store (plans, claims, memories, observations)
~/.critterstack/plans/                  plan YAML that seeds plans the store has never had
~/.critterstack/icons/                  repositories' icons
~/.critterstack/purged/                 the YAML of plans a person purged
~/.bobcat/monitor/runs/                 the run archive and the Event Model store
~/.claude/critterstack/                 setup's record and backups

CritterStack:Home moves the whole ~/.critterstack folder, and each path in it has its own setting: CritterStack:ConnectionString or CritterStack:DataPath for the store, CritterStack:PlansPath, CritterStack:IconsPath and CritterStack:PurgedPath. Monitor:DataPath moves the run archive. See Configuration. The store's file keeps the name stoat.db, so a store moved over from Stoat is found where it was.

Coming from Stoat ​

critterstack is what Stoat became. Its package is critterstack, and the command is critterstack: this package does not provide a stoat command. An installed Stoat (dotnet tool install -g Stoat) is its own tool and keeps working until you uninstall it; nothing here changes it. To switch:

  1. Stop the Stoat server. critterstack never moves a folder a running server is using: while a Stoat server answers on http://localhost:5526, critterstack's first start says so and starts nothing.
  2. Install critterstack and start it: dotnet tool install -g critterstack, then critterstack.
  3. Run critterstack setup in each repository Stoat's setup wired, and restart Claude Code there.
  4. Uninstall Stoat when you no longer want it: dotnet tool uninstall -g Stoat.

The data folder moves once. The first start that finds ~/.stoat and no ~/.critterstack moves ~/.stoat to ~/.critterstack, whole (store, plans, icons, purged plans), and says so:

Moved /Users/you/.stoat to /Users/you/.critterstack: critterstack keeps its store, plans, repository icons and purged
plans there now. This is said once; the earlier folder no longer exists.
  • Both folders there: critterstack uses ~/.critterstack, says that ~/.stoat was left alone, and never reads it.
  • The move fails (another volume, permissions): ~/.stoat is left exactly as it was, critterstack does not start, and it says how to move the folder by hand (mv ~/.stoat ~/.critterstack), or to set CritterStack:Home to ~/.stoat to keep the data where it is.
  • Nothing to move when every path is set (CritterStack:Home, or the store, plans, icons and purged paths each set): critterstack then never looks in your home folder.

Setup replaces its own entry. critterstack setup moves Stoat setup's records from ~/.claude/stoat to ~/.claude/critterstack and, by that record, replaces the stoat server it wrote in .mcp.json with a critterstack one. A stoat entry you wrote, or edited since, is left alone and said.

Settings keep working. Every Stoat:* setting (Stoat__X in the environment) and the STOAT_URL, STOAT_RUN_RECEIVER_URL and STOAT_PLANS variables are still read. Their new names are CritterStack:* (CritterStack__X) and CRITTERSTACK_URL, CRITTERSTACK_RUN_RECEIVER_URL, CRITTERSTACK_PLANS; where both are set, the new name wins.

What stays the same: the ports (5526 and 5527), the MCP tool names, the REST routes, and every plan, claim, memory and observation in the store. A page an earlier Stoat served sent X-Stoat-Person; it is still accepted beside X-CritterStack-Person.

Compacting the store ​

The server keeps the observed streams short on its own. To give back the space a store already used, stop the server and compact it:

bash
critterstack db-compact

That compacts every observed stream (GitHub, feeds, pins, runs, spec evidence) to its latest state, checks that each one still produces the state the plans read, and runs VACUUM to give the space back. Plans, claims, memories and repositories are never compacted: their history is the record. It refuses to run while a critterstack server answers at --url (default http://localhost:5526).

Flag
--keep <n>Keep the newest n events on each observed stream (default 0)
--batch <n>Events replaced per step (default 25). Keep it small: each step loads that many
--no-vacuumSkip the VACUUM
--adopt-rebuiltWhere a stream no longer produces its stored state, store what it produces instead
--url <url>The critterstack server to check for before starting

If the check finds a stream whose stored state does not match what the stream produces, it names the stream and stops before VACUUM. That mismatch was already there, not caused by the compaction. --adopt-rebuilt stores what the stream produces, which is what a rebuild would do anyway.

Security ​

critterstack has no sign-in and no authentication, so it serves the machine it runs on and nothing else: it listens on localhost, and it refuses any request that did not come from this machine. That covers everything its own users do: the web UI in a browser on the same machine, Claude Code's MCP client, critterstack gate exec and critterstack gate run.

Serving other machines is possible, and is always a deliberate step: see Who can reach the server.

The web UI's ⓘ button opens About critterstack: the version, and links to these docs and the release notes. GET /api/about answers the same.

Next steps ​