unwind
See your Claude Code and Codex/ChatGPT sessions, where your budget went, which subagent is stuck, and how a multi-agent run actually branched.
unwind reads local Claude Code and Codex session logs and renders sessions as a call tree — including subagents and forked/fresh /call invocations from the callstack plugin. No instrumentation, no plugin, no startup hook. Point it at a project that's been running for months and the whole history is there.
Try it
pip install unwind-labs
cd /path/to/your/claude-project
unwind serve # opens a browser at http://127.0.0.1:<port>
Ctrl-C to stop. unwind serve --help for flags (custom port, --all project picker, --no-browser).
What unwind is not
- Not a profiler or APM. No live instrumentation, no hooks.
- Everything stays local. Does not send data anywhere.
- Doesn't modify Claude Code.
How it works
unwind reads session sources already on your machine:
~/.claude/projects/<slug>/*.jsonl— Claude Code's own session logs (source of truth for conversations, tool calls, and token usage).$CODEX_HOME/sessions/**/*.jsonland$CODEX_HOME/archived_sessions/**/*.jsonl— local Codex CLI and desktop sessions (CODEX_HOMEdefaults to~/.codex).<project>/.claude/callstack/log/—/callinvocation reports written by the callstack plugin (source of truth for nested/calltrees).
The session list identifies each source with an icon. Filter sessions and monthly reports by source, or see both together. Codex messages, tool calls, readable reasoning summaries, and token usage are available in the existing views.
Claude callstack logs add nested call trees. Claude costs use the existing model estimates; Codex uses OpenAI Standard API prices, including cached input, cache writes, and long-context rates where applicable. These are token cost estimates, not ChatGPT subscription charges. Unknown models remain unpriced and are excluded from USD totals. Codex sessions refresh every 30 seconds. Live-process detection and nested agent relationships remain Claude-only. This reads local Codex logs, including sessions signed in with ChatGPT; it does not import cloud-only ChatGPT conversations.
To add another source, implement and register a SessionSource adapter. See
Session sources for the contract and extension guide.
The whole multi-agent run as one tree. Subagents, /call with forked context, and /call with fresh context — nested to any depth. Click any node to read the conversation it had, including thinking blocks. |
|
| Live status across the tree. Session cards light up on the agent currently working; anything paused waiting on you turns amber back to the root. Glance to know if it's stuck or just busy. | |
| Cost on every session card. USD spent on each session and on its whole subtree, priced per turn at the model that produced it. When a run blows the budget, point at the branch that did it. | |
Cross-project monthly rollup. unwind usage report --month 2026-05 (or the Reports view) totals tokens + USD across every project. Answer "am I going to overshoot my month?" in one command. |
|
| Zoom into every session. Investigate any agent session quickly, including those stuck or errored out. |
CLI
The same data the web UI shows is also available from the CLI. Run any of them with --help for full options; most accept --json for scripting.
| Command | Subcommands |
|---|---|
unwind project |
list, show, current, path — discover known projects and resolve slugs |
unwind session |
list, show, tree — list sessions in a project, inspect one, or render its call/subagent tree |
unwind messages |
dump, grep — dump a session's normalized messages (text/json/markdown) or grep them |
unwind task |
tree, list, roots, forks — explore the unified call+subagent tree, top-level roots, and in-flight forks |
Use --harness claude or --harness codex to filter session/project listings.
For usage, run unwind usage report --month 2026-10 --provider codex.
Let Claude Code introspect its own runs
Because every command speaks --json, Claude Code can call unwind as a tool against its own logs. Ask it things like "use unwind CLI to summarize what the last subagent did," "which branch of yesterday's session cost the most, use unwind CLI" or "find the earlier turn where we solved this same bug" — and let it unwind messages grep / unwind task tree --json its way to the answer instead of replaying from memory.
Keyboard shortcuts
←/→— switch between panes↑/↓— select a session or call-tree nodeEnter— open the selected node's detailsEsc— close details
Optional dependencies
Canvas PNG export uses ImageMagick to stitch large trees. If magick isn't on PATH, single-tile exports still work; only oversized trees (a single dimension above ~16k px) require it. Install with brew install imagemagick (macOS) or apt-get install imagemagick (Debian/Ubuntu).
License
Metadata
Release files for unwind-labs 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unwind_labs-0.5.0.tar.gz | 346.9 kB | With provenance | Details for unwind_labs-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unwind_labs-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for unwind_labs-0.5.0-py3-none-any.whl |
Total release size: 717.3 kB
Release files / unwind_labs-0.5.0.tar.gz
| Download URL | unwind_labs-0.5.0.tar.gz |
|---|---|
| Size | 346.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e41ec98a80aea93470776e8d650788ef8a61a24f3ce1bd86617b5709cc4f0e39
|
|
BLAKE2b-256 checksum How to use checksums |
2a115b19db077bb177f6c18faed50a2a086a04ce1307cdf739b041bb5dea02b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / unwind_labs-0.5.0-py3-none-any.whl
| Download URL | unwind_labs-0.5.0-py3-none-any.whl |
|---|---|
| Size | 370.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1131fbcbf53acf52abaf93dc09d4f3ea9e722a13baca30abf8f19d05f8a12e5c
|
|
BLAKE2b-256 checksum How to use checksums |
d9485eb33d70150a3e8a0149d4bb6dbdd741555586a17201d80484ad0c62c345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for unwind-labs 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for unwind_labs-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.