v5 · runs on your machine

Watch an AI coding agent think, type, and act.

Pi Scope is a control room for autonomous coding agents. Chat drives Pi and the coding-agent CLIs already on your PATH — Claude Code, Codex, Gemini CLI, opencode and more — while every message, tool call, shell command and file edit streams into a live dashboard you can watch over SSE, or replay later like a movie of your agent's brain. It runs locally, needs no account, and uploads nothing.

git clone https://github.com/NerdAtWork24X7/Pi_Scope.git Pi_Scope
cd Pi_Scope && ./pi-scope

Node 24+ is the only prerequisite — the first launch fetches everything the app needs into one shared project under ~/.pi-scope/pi (Electron, the build tooling and Pi Scope's own pi agent), plus the shared Python env and Playwright browsers the web-fetch tools use. The checkout stays free of node_modules.

0accounts
0 bytesuploaded
1 filesqlite db
MITopen source
agent-lifecycle · ~/.pi-scope/scope.db live
10 staged events per turn machine agent you
  1. 01session startpi -e pi-scope.ts
  2. 02user messageyour prompt
  3. 03prompt assembly18,204 tok in
  4. 04thinkingbudget 8k
  5. 05tool callbash · grep -rn
  6. 06shell execexit 0 · 0.21s
  7. 07file edit+18 −2
  8. 08tool resultsaved to disk
  9. 09checkpointyou label a moment
  10. 10run end$0.042 · 14.2s
● connected events 12,408 tools 4 cache 41.2k read context 37% left branch main

the problem

It reads, edits, runs — and then it's gone.

Your agent reads files, rewrites functions, runs test suites and hits APIs. What you are left with afterwards is a scrollback buffer: no timeline, no tool calls with exit codes, no diff, no cost, and no way back in.

001

Gone in a scroll

A finished run leaves text, not a record. The tool call that broke everything is 400 lines up, in a window you already closed.

002

Tracing means uploading

Cloud LLM tracers want your prompts, your code and your file paths inside their account. That should be a decision, never a default.

003

Watch, never act

A trace tells you what happened. It can't open a shell on that host, fix the agent's diff, or stop the run while it is still running.

004

Replay is a rewind

Scrolling back through a terminal is not a timeline. Timing, tokens and cost per turn are simply not in there.

introducing

Pi Scope is a control room, not a log file.

One server on your machine ingests the agent's event stream, writes it to a single SQLite file, and broadcasts it to the browser over Server-Sent Events. The same screen that shows you the run also gives you a real shell, an editable diff view and git checkpoints — so when the agent goes sideways, you fix it where you saw it.

pi-scope · session sess-7f3a · /home/you/app 4 tools
12:04:31user_message"add dark mode to the settings panel"
12:04:32prompt18,204 tokens in · tools bash, read, edit, write · temp 0.2
12:04:33thinking"first find how the theme is toggled — don't touch the wizard."
12:04:35tool_callbash grep -rn "data-theme" src/
12:04:35tool_result6 matches · exit 0 · 0.21s
12:04:38tool_calledit src/theme.ts +18 −2
12:04:41tool_resultwritten to disk · 0.04s
12:04:44checkpoint"dark mode wip" → git commit-tree 8f2c1a9 restorable
12:04:45assistantDark mode is in. Toggle it from the header; the light palette is untouched.
12:04:46run_endexit 0 · 14.2s · 9 events · $0.042
➜ pi -e extension/pi-scope.ts

↑ every line is a real event type · captured from a live session by docs/seed-demo.mjs

every view is a plugin

Ten surfaces, one screen.

Enable or disable any of them from Settings. Server-side, the routes that feature owns stop answering — so turning one off is a real uninstall, not a hidden button.

›_

Chat

Drive Pi — or Claude Code, Codex, Gemini CLI, opencode and more — and steer a live run mid-flight.

≡

Single

The complete forensic timeline — every event, expandable to its raw JSON payload.

▦

Office

Your agent team as a pixel-art floor; live runs land on the board as cards.

∿

Trajectory

Turns, cost and tokens side by side, with a strip that exposes the slow call.

⑃

Workflow

Wire coding-agent harnesses into a graph, gate it, and run it server-side — Pi nodes run through Chat.

>_

Terminal

A real bash shell on the agent's host, over WebSocket, in the browser.

±

Review

Side-by-side diffs with an editable right pane, plus a dependency diagram and blast-radius overlay.

◆

Checkpoints

Label a moment before the agent goes wild, restore it later with one click.

⑂

Git

Stage, commit, merge, push, branches, stashes, submodules and a commit-lane graph.

⚙

Settings

Agents, teams, models, keys, extensions and plugins — plus Updates for pi and the coding harnesses it finds.

⊞

Plugins

Drop a folder with a plugin.json and you get a view, routes, hooks and storage.

▤

Phone

A purpose-built mobile layout — sessions, transcript, composer — on the same server.

feature tour

Real runs. Real screenshots.

Every image below was captured from a live Pi Scope dashboard with an actual agent session — no mockups, no magic. Dark theme by default; light is one click away.

office · the team floor 3 desks busy
The Office view: a pixel-art floor with an orchestrator office, a meeting room and shared team rooms, each desk showing its model and token/cost totals.
Office orchestrator ★ · meeting room · team rooms · kanban sign · reference shelf
chat · pick a harness working
The Chat view in dark theme: a session transcript with per-message harness glyphs, an agent-team rail and a composer with a harness picker, provider-grouped model menu and thinking controls.
Chatharness picker · provider-grouped models · slash commands · agent team rail
chat · light idle
The same Chat view in light theme, showing the identical session with a light palette.
Same session, light themeone click apart
single · forensic timeline live
The Single view: a time-ordered feed of events with a stats bar showing cost, tokens, cache reads and a context-usage bar.
Singlecost · tokens · cache · context bar · exact request
trajectory · where did the time go 42 records
The Trajectory view: turns folded into a ledger of message and tool rows with per-record time, cost and token columns.
Trajectoryper-record time · cost · in/out tokens
terminal · real bash attached
The Terminal view: an xterm.js bash shell running on the agent's host inside the dashboard.
Terminalshares its cwd with Files, Git and Checkpoints
review · working tree vs HEAD 2 modified
The Review pane: a side-by-side diff of a modified file, git HEAD on the left and the editable working tree on the right.
Revieweditable right pane — fix it where you saw it
review · dependency diagram blast radius
The Review dependency diagram: file nodes with changed files highlighted, the selected file's transitive dependents marked red, and a side panel listing its imports and dependents.
Review · diagram changed files glow · click a file for what depends on it · double-click straight to the diff
checkpoints · a save button for your agent git-backed
The Checkpoints pane: a list of labelled git-backed snapshots with restore and merge actions.
Checkpointsgit commit-tree under the hood
git · history main
The Git view: a commit history with a commit-lane graph and a diff for the selected commit.
Githistory graph · merge from the context menu · ✨ generate a commit message
settings · the whole agent 8 tabs
The Settings view: tabs for SubAgent, Models, Extensions, API Keys, Auth, pi, Update and Plugins.
Settingsagents & teams · provider-grouped models · extensions · keys · pi & harness updates
office · kanban & reference library runner paused
The Kanban board drawn on the office wall, with Todo, Planned, In Progress, Waiting and Done columns.
KanbanTodo → Planned → In Progress → Waiting → Done
workflow · Model Selector CI 6 nodes · 6 edges
The Workflow view: a canvas graph of start, planner, builder and tester agents, a human approval gate and an end node, with each node's harness and model shown and the messages sidebar beside it.
Workflow any harness per node · Pi runs through Chat · approval gate · every past run kept in the workspace
office · reference library full screen
The reference library open full screen: each reference is a row showing its path, an optional note, and the agent it belongs to.
Reference library injected at the start of every new conversation
office · hire a subagent adds a teammate
The hire form on the orchestrator's desk: pick a team, a name, a model, and a fresh agents file to grow from.
Hire a name, a model, and a fresh agents/<name>.md
showcase · every view, one take 1:52
Prefer video? one unbroken take through every view · recorded on a live instance

why it's different

Local-first, and still a control surface.

Close to a terminal log in its privacy, close to a cloud tracer in its fidelity — and the only one of the three that lets you reach into the run.

Capability Pi Scope Cloud LLM tracers Terminal / chat logs
Runs locally, no account ✓ ✗ ✓
Nothing leaves your machine ✓ ✗ ✓
Live watching of agent actions ✓ traces only scrolling text
Replay past sessions ✓ ✓ ✗
Control surface — shell, file edit, git ✓ ✗ manual, elsewhere
Coding-agent aware — tool calls, cwd, context % ✓ LLM-centric ✗
One Chat for Pi and external coding CLIs ✓ ✗ one at a time
Exact LLM request args captured ✓ varies ✗
Zero-install AppImage with bundled Node ✓ n/a n/a
Open source ✓ varies ✓

built for

Developers running autonomous agents who won't ship their prompts.

◇

Private by default

One server, one SQLite file, no account. Nothing is uploaded anywhere, and the database is created mode 0600. Delete a session from the sidebar or DELETE /sessions for everything.

⊞

Yours to extend

Every header view is a plugin. Drop a folder with a plugin.json into ~/.pi-scope/plugins/ and it gets a view, its own HTTP routes, an event hook and persistent JSON state.

⌘

Agent-aware, not LLM-aware

Tool calls with exit codes, the shell's live working directory, context-window usage, compactions, model switches, external-harness sessions and branch navigation — the parts a generic tracer throws away.

faq

The short answers.

Do I need an account or a cloud service?+
No. Pi Scope is a single Node server on your machine that serves the dashboard and stores everything in a local SQLite file. There is no sign-up and no telemetry; the only outbound calls are the ones your agent makes, plus update and model-catalog checks, which send no prompts or code.
What exactly gets captured?+
Session start and end, every user and assistant message, thinking blocks, tool calls and their results including exit codes, the LLM request arguments and system prompt, model changes, compactions and branch navigation — plus, for an external harness, which CLI produced each turn.
Which coding agents can it drive?+

Pi Scope ships its own copy of pi, so Chat, the commit-message generator and the in-browser terminal work with nothing installed. Chat can also drive the coding agents already on your PATH — Claude Code, Codex CLI, Gemini CLI, opencode, Cline, Kilo Code, Aider and Cursor Agent — in the same dashboard. Each keeps its own models, and the ACP (Agent Client Protocol) harnesses publish their own slash commands and modes to the composer. Settings → Update uses each CLI's own updater, or the package manager its docs specify.

Anything else can still feed the dashboard by POSTing JSON to /events.

Where does my data live?+
One SQLite file — db/scope.db in development, ~/.pi-scope/ when packaged — created with permissions 0600. Session data never leaves it unless you export it. The agent dir, the bundled pi and the shared Python and Playwright installs sit beside it under ~/.pi-scope/, so removing that folder is a clean uninstall.
What does the first run download?+
Everything the app needs, once, into one shared project in your data dir — ~/.pi-scope/pi: Electron, the build tooling, and Pi Scope's own pi agent with its runtime packages (roughly 1 GB). It also builds the shared Python environment (~/.pi-scope/.venv) and, in the background, the Playwright Chromium (~/.pi-scope/playwright-browsers) that the web-fetch and video-creator tools share. External coding CLIs are yours: Pi Scope detects them on PATH and never installs them. Your checkout stays free of node_modules.
Can I run two instances at once?+
Yes. The desktop app checks its port before booting. If it is taken, it shows a port console — open the running instance, free (or kill) the port, or start a second, fully independent instance on another port with its own token and database. It also lists every Pi Scope server this machine has listening, each with a Kill button. How the port console works.
Can I use it from my phone?+
Yes, with SCOPE_HOST=0.0.0.0. A QR code in the header opens a purpose-built mobile layout — sessions, transcript, composer and stop — on any device on the same network. It does not download the desktop bundle, and it exposes a shell to that network, so only do it somewhere you trust.
Is it free?+
MIT licensed

Stop scrolling back. Start watching.

One command, one local database, and the next run your agent makes is a record you can read, replay and step into.