Skip to main content

asdu

        █████╗ ███████╗██████╗ ██╗   ██╗
       ██╔══██╗██╔════╝██╔══██╗██║   ██║
       ███████║███████╗██║  ██║██║   ██║
       ██╔══██║╚════██║██║  ██║██║   ██║
       ██║  ██║███████║██████╔╝╚██████╔╝
       ╚═╝  ╚═╝╚══════╝╚═════╝  ╚═════╝

            agent session disk usage

asdu shows where Antigravity (agy), Claude, Codex, Gemini CLI, Hermes, Kimi, OpenCode, and OMP sessions use disk space.

It works like a file browser. Start in a folder, inspect its sessions, and move up or down the directory tree. Everything stays local.

Install

Install with uv:

uv tool install asdu
asdu

On Windows, use CPython 3.11–3.14 in Windows Terminal. The required curses compatibility package is installed automatically. WSL continues to work normally.

Update an existing installation:

uv tool upgrade asdu

Use

Run asdu inside any project:

asdu

Start somewhere else:

asdu ~/

The initial view shows folders. Press g for one flat list, then sources of sessions in the current folder. Press t to show session trees; they open folded.

 asdu  ~/Code/demo                                                         143.9 MiB  12 sessions  size↓
    74.2 MiB  ████████████      5  /api
    38.1 MiB  ██████▏░░░░░      3  /docs

›   23.5 MiB  ████████████  codex     main    now       ▸ Fix flaky tests (+2)
     8.1 MiB  ████▏░░░░░░░  claude    main    12m ago   Review the release notes

 codex 019bcb82-bef5-7503 | 2026-09-09 11:52 | ~/.codex/sessions/…jsonl
 Enter open  Backspace back  a action  t tree  / find  g group  f source  F type  s sort   ? help  q quit
  • Arrow keys select rows. In trees, ↑↓ select siblings and ←→ move between parents and children.
  • Enter opens a folder or session brief.
  • Backspace goes back or moves to the parent folder.
  • / or Ctrl-F searches every scanned session by title, folder, or ID.
  • g switches between folder, source, and all-session views.
  • f filters by source.
  • F filters by session type: main, child, review, or ? when unknown.
  • s changes the sort order.
  • t toggles trees. Space folds one branch and z folds or opens all.
  • a shows the actions supported by the selected source.
  • r rescans.
  • q quits.

Press ? for help. Run asdu --help for command-line options.

Session briefs

Press Enter on a session to see its folder, size, ID, activity, recent request, last reply, and resume command.

Center the login form

18.2 MiB  claude main  2h ago
Folder: /demo/web-app
24 messages across 384 events; 0 compactions.

╭ Latest request
│ Why did the login page disappear?
│
├ Last reply
│ The login page is back and the form is centered.
│
├ First request
│ Move the form two pixels to the left.
╰

ID: demo-css-001
Resume: claude --resume demo-css-001

Session actions

Browsing never changes a session. Press a to review an action before it runs.

Codex archive and restore use Codex itself. Codex delete is permanent. Claude sessions can move to the system Trash. OpenCode delete is permanent and includes the selected session's descendants. Tree actions include folded descendants. Active Claude sessions are refused.

OpenCode and Hermes store sessions together in SQLite. Their ~ sizes rank logical session content; deleting one may not immediately shrink the database file. Kimi can export a verified session ZIP to the current directory; it does not provide a CLI storage action. Antigravity, Gemini CLI, Hermes, and OMP have no storage actions. Antigravity sizes include each conversation database and its matching brain/ artifacts once. Native child agents appear as trees.

Successful actions append a content-free record to $XDG_STATE_HOME/asdu/actions.jsonl, normally ~/.local/state/asdu/actions.jsonl.

Contributing

Bug reports, UI improvements, and new session sources are welcome. Keep changes small and use fictional session data in tests.

uv run pytest
uv run ruff check .

New sources start read-only. Add file-changing actions only when their lifecycle is understood and tested.

License

MIT

Metadata

Release files for asdu 0.8.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 asdu 0.8.0
File Size Uploaded
asdu-0.8.0.tar.gz 82.4 kB Details

Built distribution (wheel)

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

Total release size: 148.4 kB

Release files / asdu-0.8.0.tar.gz

Download URL asdu-0.8.0.tar.gz
Size 82.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f38d29bba5a4179dd79bc387610681559e47dce96721050c64037a7e006d8faf
BLAKE2b-256 checksum
How to use checksums
817f75c5dee73ade0edfcd9692098adf4ef822d931d4adf316ef2447812785bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release files / asdu-0.8.0-py3-none-any.whl

Download URL asdu-0.8.0-py3-none-any.whl
Size 66.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
920cbb46fb35cff9281cad41fa55e7cf25ea96d091f3ee8ebf6031a33a50458f
BLAKE2b-256 checksum
How to use checksums
fda1f37921cf54973dc39957b7b191ffc63af9614e910c6c24acd2c91827933f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.2

2 release files

0.8.1

2 release files

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

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