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                      # last 24h, every project, as a flowchart
arvre --this-dir           # only sessions from the current directory
arvre --all-time           # every session, not only the last 24 hours
arvre --style compact      # start with the compact tree instead
arvre --theme ocean        # start with a colour theme
arvre --show-archived      # start with archived sessions visible too
arvre --claude-dir ~/.claudeultra  # read sessions from another Claude config directory
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)
f Fork the selected session
n Start a new session in the selected session's directory
x Archive / unarchive the selected session (hides it from the graph; never touches the session file itself)
z Toggle whether archived sessions are shown
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 the same actions as the keys above, plus:

  • 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, including the verified behavior of f (fork) and n (new session), are in docs/forks.md and docs/plan-0.3.md.

Session data is read from ~/.claude/projects by default. To use another Claude Code config directory (for example if you set CLAUDE_CONFIG_DIR), pass --claude-dir PATH or set ARVRE_CLAUDE_DIR; arvre also honours $CLAUDE_CONFIG_DIR. Precedence: flag, ARVRE_CLAUDE_DIR, CLAUDE_CONFIG_DIR, ~/.claude. When it isn't the default, the claude processes arvre launches (and the copied command) get the same CLAUDE_CONFIG_DIR, so resume and fork find the same sessions. This is an undocumented format, so a future Claude Code release could change it.

Performance

A cold start parses every session file once; a warm start (most runs) skips any file whose size and modified time haven't changed since the last scan, via a cache at ~/.cache/arvre/ (override with $XDG_CACHE_HOME, or skip it entirely with --no-cache). On a 300-session / 650 MB corpus this took a cold scan from ~3s to a warm one of ~30ms. If a scan is slow, arvre prints an animated building your arvre... to the terminal instead of a blank screen.

The cache is purely disposable: deleting ~/.cache/arvre/ just costs one slow rescan, never any data loss.

Archiving

Archiving a session (x) hides it from the graph without touching the session file in ~/.claude. Its forks stay visible and reconnect to the nearest ancestor still shown. The flag lives separately, at ~/.local/share/arvre/state.json (override with $XDG_DATA_HOME), since losing it would be more annoying than losing the cache. There's no way to delete a session from arvre -- only to hide 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.3.1

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.3.1
File Size Uploaded Provenance Actions
arvre-0.3.1.tar.gz 32.2 kB With provenance Details for arvre-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 59.1 kB

Release files / arvre-0.3.1.tar.gz

Download URL arvre-0.3.1.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fa38cd729104edf35fa86de34b39fa407aa45f357cc09f394bb473ad500c7650
BLAKE2b-256 checksum
How to use checksums
0d36cb93a3b2c2dba869eeb91230678928ab9b148d25691cdc2e8ae732af8d3f
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 Nov 18, 2026.

Transparency log

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

Download URL arvre-0.3.1-py3-none-any.whl
Size 27.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d60a06711bae121de4c0072365dea3242bc2f930b955dd22c754cc4145f3812
BLAKE2b-256 checksum
How to use checksums
664b0ee0804bc1bece0e18858b90bcc0ebc979c1c7b9f9258d3c9005fd35f103
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 Nov 18, 2026.

Transparency log

Security for arvre 0.3.1

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.3.1.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 Nov 18, 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