Outside-in web observer for Claude Code sessions and callstack call trees
Project description
unwind
See all you Claude Code sessions, where your budget went, which subagent is stuck, and how a multi-agent run actually branched.
unwind reads Claude Code's own session logs and renders every session 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 two sources, both already on your machine:
~/.claude/projects/<slug>/*.jsonl— Claude Code's own session logs (source of truth for conversations, tool calls, and token usage).<project>/.claude/callstack/log/—/callinvocation reports written by the callstack plugin (source of truth for nested/calltrees).
It joins these into a unified call tree, prices each turn at the model that produced it, and serves the result over a local HTTP port.
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 |
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unwind_labs-0.4.2.tar.gz.
File metadata
- Download URL: unwind_labs-0.4.2.tar.gz
- Upload date:
- Size: 317.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47e0c574e85b9bd65deb4d49ad8c56bbf428f3e194103b651b9b5a08b55e65e9
|
|
| MD5 |
231509fb513e785b46fc3f92adcf9525
|
|
| BLAKE2b-256 |
0fda6ac994ab7513671daeaa2be1a305c649d7aac3c1f779f001e44597387f19
|
Provenance
The following attestation bundles were made for unwind_labs-0.4.2.tar.gz:
Publisher:
publish.yaml on unwind-labs/unwind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unwind_labs-0.4.2.tar.gz -
Subject digest:
47e0c574e85b9bd65deb4d49ad8c56bbf428f3e194103b651b9b5a08b55e65e9 - Sigstore transparency entry: 1686047582
- Sigstore integration time:
-
Permalink:
unwind-labs/unwind@ee0e52ca1ebcd4c88efb7e4c533eec8b0ecdd6e0 -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/unwind-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ee0e52ca1ebcd4c88efb7e4c533eec8b0ecdd6e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file unwind_labs-0.4.2-py3-none-any.whl.
File metadata
- Download URL: unwind_labs-0.4.2-py3-none-any.whl
- Upload date:
- Size: 338.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d791d1a754e3fc3623c01442e00362146af40a219bd8efddf3e53bde30155e70
|
|
| MD5 |
d5dfddba204260b586583247a7db7bc5
|
|
| BLAKE2b-256 |
0b3b8edf9c271e7c486b3c211ccbdf954afef6c86e309595872cabca399dabe0
|
Provenance
The following attestation bundles were made for unwind_labs-0.4.2-py3-none-any.whl:
Publisher:
publish.yaml on unwind-labs/unwind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
unwind_labs-0.4.2-py3-none-any.whl -
Subject digest:
d791d1a754e3fc3623c01442e00362146af40a219bd8efddf3e53bde30155e70 - Sigstore transparency entry: 1686047688
- Sigstore integration time:
-
Permalink:
unwind-labs/unwind@ee0e52ca1ebcd4c88efb7e4c533eec8b0ecdd6e0 -
Branch / Tag:
refs/tags/v0.4.2 - Owner: https://github.com/unwind-labs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@ee0e52ca1ebcd4c88efb7e4c533eec8b0ecdd6e0 -
Trigger Event:
push
-
Statement type: