Skip to main content

arvre

A terminal graph of your Claude Code sessions and their forks.

arvre shows your Claude Code sessions and their forks as a tree. Navigate through them, resume sessions, see which session was forked from which, and jump between parents and children.

Example output (sample names, flowchart style):

                                  ┌──────────────────────────┐
                               ┌──│ Spike rename test        │
┌──────────────────────────┐   │  │ 1m ago · no children     │
│ Auth refactor            │───┤  └──────────────────────────┘
│ 3h ago · 2 children      │   │
└──────────────────────────┘   │  ┌──────────────────────────┐      ┌──────────────────────────┐
                               └──│ Try the other approach   │──────│ Fix token refresh        │
                                  │ 1h ago · 1 child         │      │ 30m ago · no children    │
                                  └──────────────────────────┘      └──────────────────────────┘

Install

With pipx (macOS and Linux, Python 3.11+):

pipx install arvre

You need Claude Code installed, with claude on your PATH, for the "open in this terminal" action.

Usage

arvre                      # all sessions from every project, as a flowchart
arvre --this-dir           # only sessions from the current directory
arvre --last-day           # only sessions from the last 24 hours
arvre --style compact      # start with the compact tree instead
arvre --theme ocean        # start with a colour theme
arvre --print              # print the tree as text and exit

Run arvre --help for all options.

Keys

Key Action
↑ / ↓ (k / j) Move. In compact style, through the tree. In flowchart style, to the next session at the same depth.
← / → (h / l) Go to the parent / first child
Enter Open the action menu for the selected session (or click it twice)
a Toggle last 24 hours / all time
p Toggle this directory / all projects
v Toggle compact / flowchart style
t Cycle colour themes (classic, ocean, forest, sunset)
r Reload
q Quit

The action menu offers:

  • Open in this terminal: runs claude --resume <id> in the session's directory, and returns to arvre when Claude exits.
  • Copy command: copies cd '<dir>' && claude --resume <id> to the clipboard, for pasting into another terminal.

How forks are detected

Claude Code doesn't record a parent link when you fork a session. A fork is a copy of its parent's messages, so arvre links each session to the earlier session that shares the most message IDs with it. The details are in docs/forks.md.

Session data is read from ~/.claude/projects. This is an undocumented format, so a future Claude Code release could change it.

Development

python3 -m venv .venv
.venv/bin/pip install -e ".[test]"
.venv/bin/python -m pytest

License

MIT. See LICENSE.

Metadata

Release files for arvre 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arvre 0.2.0
File Size Uploaded Provenance Actions
arvre-0.2.0.tar.gz 17.3 kB With provenance Details for arvre-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arvre 0.2.0
File Interpreter ABI Platform Actions
arvre-0.2.0-py3-none-any.whl Python 3 none any Details for arvre-0.2.0-py3-none-any.whl

Total release size: 33.8 kB

Release files / arvre-0.2.0.tar.gz

Download URL arvre-0.2.0.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
003fe5769a3ffe4286b20760c0be19b2b07487e29274fd466ff5b212ab8fb6b9
BLAKE2b-256 checksum
How to use checksums
269fe0aeef44695dfb406f580bd3fe7de25a9ba3f8ebdffedbd327189caf9475
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 31, 2026.

Transparency log

Release files / arvre-0.2.0-py3-none-any.whl

Download URL arvre-0.2.0-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51f94c8c0f2c0672772439f3d52dbf26248b4d9b69baf0b55795e22319cdb5f9
BLAKE2b-256 checksum
How to use checksums
c9d9b944cad22d530a25f2ce97bdb26a0da608cbc72a4d69e537be7cb53cddef
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 31, 2026.

Transparency log

Security for arvre 0.2.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.

Select from 2 files

Attestation for arvre-0.2.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 31, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page