
\ Open source · Rust · runs on your machine \
See exactly what is loaded in your coding agent's context window.
40%
of the window, and the model starts to slip
Past a point, a full context makes the model worse at its job.
At AI Engineer, Dex Horthy gave a talk about the dumb zone. Once a session fills about 40% of its context window, the model gets worse. It skips instructions and repeats its own mistakes.
Then pi showed that an agent can start with a tiny prompt, and Matt Pocock and others started to talk about keeping the context clean. I wanted to know what was in mine.
I went through my Claude Code settings and turned off what I never use: 13 built-in tools, the claude.ai connectors, artifacts and prompt suggestions. Every tool sends its description into every session, used or not.
But I was guessing. I could not see what a change saved, which skills loaded, or which commands kept failing. Asking the agent costs context too. So I built a tool that reads the session files and shows it all.
~/.claude/settings.json
permissions.deny
also off
Peak context against the window, what filled it, the turn it crossed 40%, and every compaction.

Not one session at a time: every session on the machine.
561/603
lint runs piped into head, so every failure read as a pass
Stats reads every session on the machine and ranks what fails and what costs time, cheapest fix first. Each finding counts the retries it caused and gives a one-line fix.
Copy prompt hands a finding to your agent, with the numbers and the sessions to look at.

It reads the files each agent already leaves on your disk.
anthropic
Claude Code
Sessions, the full context breakdown and memory.
openai
Codex
Sessions and most of the breakdown. Codex reports its own window.
any provider
pi
Sessions and most of the breakdown.
open source
OpenCode
Sessions and most of the breakdown.
The same data, wherever you work.
peektrace tui
Terminal
The same data in the terminal. Good on a server over SSH.
claude only
Memory
Edit memories in every project. See which ones Claude never reads.
cli and mcp
Scripts
Every report as one command with --json, or as tools for your agent.
status line
ctx 42%
Context fill in the Claude Code status line, in 4.5 ms.
The first version ran on TypeScript and Bun. Same commands and output now, in Rust.
list every session
135 ms
was 1,639 ms
memory at peak
32 MiB
was 1,158 MiB
status line
4.5 ms
was 118 ms
download
6.3 MB
was ~97 MB
Your sessions hold your code and your keys. They stay with you.
loopback
127.0.0.1
The server listens only on your machine. For a remote box, tunnel over SSH.
redaction
Secrets hidden
In every transcript and export, until you reveal one session.
no model
No AI reads it
Peektrace parses the files itself. No transcript goes to a model.
run log
Local only
One SQLite file on your disk. Off with --no-telemetry.
The tool is free. If you want your team's agents measured and cut, I do that.
open source · MIT
Free
One binary for macOS, Linux and Windows. It opens in your browser.
curl -fsSL https://raw.githubusercontent.com/Mark-Life/peektrace/main/scripts/install.sh | sh
peektrace serve
# or, with Node
npx peektrace servedone in 1 week
$1,200
I measure what your agents load before the first useful step and cut it. Then I write the rules and checks your repo needs, and merge them.

\ Andrey Markin \
Tell me how your team works with coding agents. The first call is free.