ThreadLens ships a keyboard-first terminal workbench for Search, Sessions, and Cleanup.
pnpm dev:api
pnpm dev:tui
pnpm start:tuipnpm start:tui runs the source entrypoint directly, so it works from a fresh clone after pnpm install.
The TUI expects the local API at http://127.0.0.1:8788 by default.
pnpm start:tui -- --query project-notes
pnpm start:tui -- --query project-notes --results
pnpm start:tui -- --view sessions --provider codex
pnpm start:tui -- --view cleanup --filter risk- Search raw conversation text across Codex, Claude, Gemini, and Copilot
- Group repeated hits by session
- Open the matching session
- Jump into cleanup when a Codex thread match exists
The TUI follows the shared searchable-provider contract used in the web workbench.
- Browse provider session rows
- Open transcript previews
- Run backup, archive, and delete flows
- Use dry-run and confirm-token execution for destructive actions
- Browse Codex thread rows
- Select multiple threads
- Run impact analysis
- Run a cleanup dry-run
- Execute only after a confirm token is issued
1 / 2 / 3: Search / Sessions / Cleanup?: help overlayq: quit- Search:
Esc,Enter,Ctrl+N,Tab,Ctrl+O - Sessions:
b,a,A,d,D - Cleanup:
space,a,d,D,x
The TUI must run in a real TTY terminal such as Terminal, iTerm, or tmux.

