Skip to main content

How SITREP works

The pieces​

laptop Claude Code ── plugin ───────────────┐
workstation Codex ──────── plugin + reporter ────┤
OpenCode ───── reporter ─────────────┼──▶ SITREP server ──▶ your browser (live)
Pi ─────────── extension ────────────┤ (Node, SQLite) ──▶ your phone
server Hermes ─────── read-only sidecar ────┤
any app ────── OpenTelemetry ────────┘
PieceWhere it runsWhat it does
The serverOne machine that stays onOne Node process with a SQLite database. Port 7487 carries everything: the reporters' API, the dashboard and its live stream
The Claude Code plugin, sitrep-reporterInside each Claude Code sessionReports the session's state, its asks and their answers
Claude Code's own telemetryEach Claude Code sessionCarries the session's usage to the server, one event per API request. The installer turns it on
The Codex plugin, sitrep-codex, and codex-reporterEach machine that runs CodexThe plugin's hooks write to a local spool; the reporter service reads the spool, Codex's session files and the Codex daemon, and sends the reports
hermes-reporterBeside Hermes, as a sidecarReads Hermes's own store read-only and reports its sessions. It never answers
opencode-reporterEach machine that runs OpenCodeFollows OpenCode's background service through OpenCode's own client and reports its sessions, their asks and their answers
The Pi extension, pi-reporterInside each Pi sessionReports the session from inside Pi. It never answers
OpenTelemetry tracesAny app with an OpenTelemetry SDKThe app's own exporter sends its traces to the server, which shows each conversation as a session. It never answers (OpenTelemetry traces)
The dashboardYour browserServed by the server and updated live
The phone pageYour phone, served by the server at /phone/The sessions that need you, each ask and its answer. It installs on the home screen and is notified when a session starts needing you
The agent toolsThe server, at /api/fleet/mcpTwo read-only tools an agent in Claude Code or Codex can call: what the fleet is doing, and one session's detail

The reporters connect out to the server, and to nothing else off their machine.

A session​

A report is the session's whole current state, never a change to it. A report that is lost costs nothing: the next one carries everything.

A session is known by its machine and the id its harness gave it. A machine is known by a small id file the reporters share (~/.claude/sitrep-machine-id), so it keeps its row across reinstalls; an app that sends OpenTelemetry traces, by the host name it reports, else by the address its traces come from.

Each session is in one state, shown with the same word, mark and colour everywhere:

StateMeaning
WorkingIt is running
Needs youIt is waiting on a permission, a question or a plan
IdleIts turn ended and it asked nothing
StuckIt is running but has been silent longer than the threshold for its model
FailedA model API error, or tool calls that keep failing (three in a row, or one followed by a minute of silence)
DoneIt ended

A session that stops reporting keeps what it last showed for 75 seconds, then leaves the board and is recorded in History as "Went offline". An ended session stays 8 seconds as Done, then moves to History. Both timers, and the stuck thresholds, are settings.

Answering​

When a session asks for a permission, an answer or a plan approval, its reporter announces the ask and waits on the server for the answer. Signed in, you answer in the dashboard or on the phone page, and the reporter gives the session exactly that answer. You can still answer in the terminal: the first answer wins, and the dashboard says what became of yours.

  • Claude Code sessions are answered through the plugin.
  • Codex sessions running in Codex's managed daemon on that machine are answered through it. The others (codex exec, a desktop-app local project, a machine without the daemon) are shown, not answered.
  • OpenCode sessions, which the reporter sees only in OpenCode's background service, are answered through it: Allow once, Deny with or without a reason, and OpenCode's questions.
  • Pi and Hermes sessions, and those of apps that send OpenTelemetry traces, are shown, not answered.

Where a Claude Code or Codex session can be answered you can also send it a message or /compact; a Claude Code session also takes /clear. An OpenCode session takes neither from the dashboard: type them in OpenCode.

That is all SITREP does to a session. It never controls a terminal, and never starts, stops or restarts one.

Usage and cost​

  • Claude Code: every API request is counted once, from Claude Code's own telemetry, so the figure covers its side requests too. A fast-mode request is priced at the model's fast rate.
  • Codex: from the usage Codex records for each response in its session files, at the tier Codex recorded for it (fast, flex or ultrafast); a response with no recorded tier is priced at the standard rate.
  • OpenCode, Pi and Hermes: from the tokens each records per model.
  • Apps that send OpenTelemetry traces: from the tokens on each model call's span, each call counted once.

The server prices the tokens with LiteLLM's public price table, plus your own overrides. Every cost is an estimate and is marked "est.". Plan windows show each provider's limits as the harness reports them.

What is stored​

Everything lives in one SQLite database on the server (~/.sitrep/data/): sessions, their agents, plans and events, usage, and the record: a row for each turn, model request and tool call, with your feedback, what you did to each issue, and the name each sign-in gave. History and the record are kept for as long as the retention settings say.

By default no transcript is stored. The free text a report carries (a prompt's opening, a command, a failed tool's output) is redacted on the machine it comes from and cut to a fixed length, and the record's rows carry no text. An app's traces keep no text at all: the server keeps only the names and figures it shows, and reads a tool call's input and a failed span's error only to fingerprint them, as a reporter does.

Two options keep more, each set on a machine and off by default. Full capture keeps the record's text: prompts, the model's messages and visible reasoning, tool input and output, and each agent's whole prompt and answer. fullPrompts keeps those agents' texts alone. Both are redacted on the machine by pattern, cut at 20,000 characters, and shown only to a signed-in browser; a server with no admin secret has no sign-in and shows them to anyone who can reach it. The record says what each level sends and who can read it.

While the server cannot be reached, a reporter keeps each session's latest state, up to 500 events and up to 500 of the record's rows, and sends them when it is back.

Security​

SITREP is built for one person on a trusted LAN.

  • It speaks plain HTTP. By default anyone who can reach port 7487 can read every session; Settings → Require sign-in to view closes that.
  • One admin secret does everything else: the reporters send it with their reports and apps with their traces, and you sign in with it to answer a session, change a setting, leave feedback, claim or close an issue, export, and read kept text.
  • From outside the LAN, reach it through an SSH tunnel. A phone reaches the phone page over your own private network through a TLS proxy on the server's machine, such as Tailscale Serve; the server believes a proxy's forwarded headers only when the proxy runs on that machine.

Operations: Security has the detail and the ways to narrow it.

What it reaches on the internet​

The server fetches LiteLLM's public price table. The dashboard and the phone page load their fonts from Google Fonts.

Two things carry facts about your sessions beyond your server:

  • Notifications on the phone page, once you turn them on. For each session that starts needing you, the server sends a notice (the session's name, its project and its machine) to the push service your browser uses (Google's, Apple's or Mozilla's), encrypted so that only your device can read it. The push service sees where it goes, how big it is and when. Your phone's own settings decide whether its lock screen shows the text.
  • The agent tools, when an agent in Claude Code or Codex calls them (Agent tools).

Nothing else about your sessions goes anywhere but your server.