Skip to content

Configuration ​

critterstack is an ASP.NET Core application, so everything below is ordinary .NET configuration: an appsettings.json in the folder you start it from, environment variables (CritterStack__DataPath, with a double underscore for each :), or command-line configuration. Every key has a working default, so nothing needs to be set to get started.

Earlier names still work. Every CritterStack: key is also read as the Stoat: key an earlier Stoat read (Stoat__DataPath in the environment), and each CRITTERSTACK_ variable as its STOAT_ name. Where both are set, the critterstack name wins.

The store ​

KeyDefaultWhat it does
CritterStack:Home~/.critterstackThe folder every path below defaults into: the store, plans, repository icons and purged plans. Set, it is used as it is, and nothing is ever moved into it.
CritterStack:ConnectionString—A SQLite connection string. Wins over CritterStack:DataPath when set.
CritterStack:DataPath~/.critterstack/coordinationDirectory for stoat.db when no connection string is given.
CritterStack:LiveUpdatestrueLets the await_* tools wake the moment a fact changes, and pushes changes to the web UI. Leave it on: with it off, waiting agents and open pages no longer hear about changes as they happen. Plan status stays correct either way.

The store is one SQLite file, created on first run. There is no database server to install.

Ports ​

KeyDefault
CritterStack:RunReceiverUrl (or CRITTERSTACK_RUN_RECEIVER_URL)http://localhost:5527: where critterstack receives Bobcat runs. Never 5525, which is bobcat ui's
ASPNETCORE_URLSunset: critterstack binds http://localhost:5526 and the run receiver

To move only the receiver, set CritterStack:RunReceiverUrl or CRITTERSTACK_RUN_RECEIVER_URL. To move coordination off 5526, set ASPNETCORE_URLS. It replaces both addresses, so list the receiver in it too (http://localhost:6526;http://localhost:6527). Use the environment variable: a --urls argument on the command line has no effect. Every route is served on every bound port.

Who can reach the server ​

Neither port has authentication, so by default critterstack serves this machine only:

  • It listens on localhost, so no other machine can connect.
  • It refuses, with 403, any request that is not local: one from an address that is not loopback, or one carrying an X-Forwarded-For or Forwarded header, which is what a reverse proxy on the same machine sends when it forwards for someone else.

To serve other machines, do both:

StepHow
Listen where they can reach itASPNETCORE_URLS with a wider address (http://0.0.0.0:5526;http://0.0.0.0:5527), or a reverse proxy on this machine
Accept their requestsCritterStack:AllowRemoteRequests set to true (CritterStack__AllowRemoteRequests=true)

A wider address alone changes nothing for another machine: its requests are still refused, and the startup log says so. With both, the startup log warns that the server is open. There are no accounts, so anyone who can reach the address can read and change every plan, claim and memory: put such a server on a network only the team can reach.

Observation ​

critterstack watches GitHub, nuget.org, npmjs.org and the runs it receives, and records something only when what it sees differs from what it last saw.

KeyDefaultWhat it does
CritterStack:GitHubTokenGITHUB_TOKEN, else GH_TOKEN, else gh auth tokenToken for issue and PR observation, and for the GitHub text a zoomed-in node shows. With none of these, GitHub is not observed at all, issue and PR nodes read unknown, and the startup log says so.
CritterStack:GitHubTokenFromGhtruefalse stops critterstack from asking a signed-in GitHub CLI for its token.
CritterStack:GitHubPollSeconds60How often GitHub is swept: one GraphQL query per repository a plan references. Open issues and pull requests are read on every sweep; closed and merged ones every 15 minutes, so a reopened issue can take that long to show. When GitHub's rate limit is spent, sweeps pause until it resets, and the plan page says so.
CritterStack:NuGetPollSeconds60How often the package feeds — nuget.org, npmjs.org and any configured feed — are polled.
CritterStack:Feeds:{name}:Url / :Path / :RegistryA named feed a publish node can reference: a NuGet V3 service index, a local folder of .nupkg files, or an npm registry. Username/Password authenticate it; for npm, Password is the auth token. nuget.org and npmjs.org need no configuration.
CritterStack:RunObservationBackstopSeconds300Runs are observed as they arrive, so this is only a safety net. It catches a run whose publisher went silent (an orphaned run), which no arriving event can announce.
CritterStack:BobcatUrl—Read runs from a run console on another server instead of this process's own receiver. Leave it unset unless runs are received somewhere else.
CritterStack:BobcatPollSeconds15How often that remote console is polled.
CritterStack:RepositoryIconRefreshHours24How often each repository critterstack knows is looked at for an icon of its own: one REST tree read per repository through the GitHub token, and the file only when it changed. No GitHub token, no icons.
CritterStack:IconsPath~/.critterstack/iconsWhere the repository icons are kept, with an index of what each look found, so a restart asks GitHub nothing until an entry is due.
CritterStack:Pollerstruefalse runs no pollers at all: nothing is observed, which is only useful for a test host.
CritterStack:ObservationHistoryEvents100How many recent observations critterstack keeps for each observed thing (an issue, a feed, a session) beside its latest state. Once a day older ones are compacted away; nothing reads them. A negative value turns compaction off.
CritterStack:ObservationRetentionHours24How often that compaction runs. The first run is CritterStack:ObservationRetentionDelaySeconds (600) after startup.

Plans and sessions ​

KeyDefaultWhat it does
CritterStack:PlansPath (CRITTERSTACK_PLANS)~/.critterstack/plansA directory of plan YAML, imported at startup and on POST /api/plans/rescan. It only seeds: a file creates a plan the store has never had, and is otherwise ignored, because the store is the master copy.
CritterStack:PurgedPath~/.critterstack/purgedWhere a purged plan's YAML is written before it is deleted.
CritterStack:AskPersonParkSeconds240The longest one ask_person call parks before it answers pending with the question's id. Kept under the 300 seconds an MCP client commonly allows a tool call, so the client never cuts the call off; the question stays open either way.

Runs and the Event Model ​

The run receiver uses the same Monitor: / BOBCAT_MONITOR_* names as Bobcat's own run console.

KeyEnvironment variableDefaultWhat it does
Monitor:DataPathBOBCAT_MONITOR_DATA~/.bobcat/monitor/runsRun archives and the Event Model store.
Monitor:RetentionDaysBOBCAT_MONITOR_RETENTION_DAYS14Ages out run archives that have not changed for this many days. The only setting that ever deletes an archive file. 0 turns aging off.
Monitor:RetentionRunsBOBCAT_MONITOR_RETENTION_RUNS10How many runs the receiver lists per job (a repository plus a suite), so a busy repository cannot push a quiet one's runs out. Older runs are ejected: their archive moves to ejected/ and is not deleted.
CritterStack:EventModelStaleAfterDays7How far a producer's Event Model half may trail the newest half of its model before it is flagged stale. Flagged, never dropped.

The command-line tools ​

critterstack gate exec, critterstack gate run and critterstack warnings push are clients of a running critterstack, and find it from the environment:

VariableDefaultRead by
CRITTERSTACK_URLhttp://localhost:5526critterstack gate exec, critterstack gate run and critterstack warnings push, unless --url is given
CRITTERSTACK_RUN_RECEIVER_URLhttp://localhost:5527critterstack gate exec and critterstack gate run, which add critterstack's receiver to the command's BOBCAT_MONITOR_URL
BOBCAT_RUN_TAG—critterstack gate exec and critterstack gate run: the gate to report for, {plan}/{node}, when none is named

Memory recall ​

recall is a full-text search over each memory's title, tags and body, matching whole words and the start of longer ones (wolverine finds WolverineFx), best match first. The critterstack tool ships without an embedding model, so there is no semantic search and nothing to configure.