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.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.2.1
File Size Uploaded Provenance Actions
arvre-0.2.1.tar.gz 18.1 kB With provenance Details for arvre-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 35.1 kB

Release files / arvre-0.2.1.tar.gz

Download URL arvre-0.2.1.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96ac553810769bd857cbbd0dd1da0b1b29fd65addb3c15b8de3b25cbe467b543
BLAKE2b-256 checksum
How to use checksums
35e811b788ba2d49c33c474ffb13c475b0672e91ef1503b6f71903acb23283c8
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 3, 2026.

Transparency log

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

Download URL arvre-0.2.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f69c1658ad68046d635972ca64002221dc4635a3420768626478db0d5297148
BLAKE2b-256 checksum
How to use checksums
e5a7720dddc36d062ff3be092ac6c0c372a8cd1a8ad87c41da52d156db6d186a
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 3, 2026.

Transparency log

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