█████╗ ███████╗██████╗ ██╗ ██╗
██╔══██╗██╔════╝██╔══██╗██║ ██║
███████║███████╗██║ ██║██║ ██║
██╔══██║╚════██║██║ ██║██║ ██║
██║ ██║███████║██████╔╝╚██████╔╝
╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝
agent session disk usage
asdu shows where Antigravity (agy), Claude, Codex, Gemini CLI, Hermes, Kimi,
OpenCode, OMP, and Pi sessions use disk space.
If Pi and OMP roots overlap, a transcript appears once under the first scanned
source. Use --source pi or --source omp to choose which source interprets it.
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 with uv:
uv tool install asdu
asduOn 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 asduRun asdu inside any project:
asduStart 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. Enteropens a folder or session brief.Backspacegoes back or moves to the parent folder./orCtrl-Fsearches every scanned session by title, folder, or ID.gswitches between folder, source, and all-session views.ffilters by source.Ffilters by session type: main, child, review, or?when unknown.schanges the sort order.ttoggles trees.←→fold/open and move between parents and children;zfolds or opens all.ashows the actions supported by the selected source.- In folder and all-sessions views, bulk marking is available when the current
session list contains one source. Use
fto filter, or start with--source claude. Mark rows withSpace; in tree mode, it marks only the selected session.aoffers shared actions and shows the combined count and size. rrescans.qquits.
Text selection stays with your terminal. On terminals that support alternate scroll, the mouse wheel moves through the list while selection remains available.
Press ? for help. Run asdu --help for command-line options.
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
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 and Pi transcripts can move to the system Trash. Close Pi sessions before trashing them; asdu cannot reliably identify every active Pi session. 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 ZIP or permanently delete a session through its
native ACP interface. Antigravity delete removes the conversation database,
summary entry, and matching brain/ artifacts; active or
5DF1
changed sessions are
refused. Tree actions include descendants. Antigravity sizes include each
conversation database and its matching brain/ artifacts once. Gemini CLI,
Hermes, and OMP have no storage actions.
Successful actions append a content-free record to
$XDG_STATE_HOME/asdu/actions.jsonl, normally
~/.local/state/asdu/actions.jsonl.
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.