TUI “box” for managing coding-agent sessions (Codex, Claude, Gemini, OpenCode): browse local session logs now, and later reconstruct exactly what the agent did (files, tools, tokens).
- Features
- Key features (what it’s for)
- Install
- Screenshots
- Roadmap
- Run
- Skill (skills.sh)
- Keybindings (prototype)
- License
- Full-screen Projects → Sessions → Session Detail timeline
- Multi-engine support (Codex, Claude, Gemini, OpenCode) with TUI + CLI filters
- Type-to-filter + highlight, multi-select, and batch delete (with confirmation)
- “Online” dot (
●) for recently modified projects/sessions - Skill span tracing (colored gutter + loop detection) and a Skills overlay (
S) - Fork/resume Codex from a selected timeline item (
f) - Statistics windows for projects/sessions (
F3) - Tasks screen + editor (including clipboard image paste)
- New Session prompt editor (
n) that spawns agents inPipesorTTYmode - Processes screen (
P) for stdout/stderr/log viewing + killing spawned agents; attach/detach TTY (a,Ctrl-]) - Auto-rescans when session sources change (file watcher for Codex/Claude/Gemini/OpenCode)
- Update notifications and self-update (
ccbox update)
When an agent session activates a skill (for example a commit helper, design-doc generator, or an install workflow), ccbox detects the skill boundaries and overlays that context on the timeline:
- Visual overlay (TUI): colored gutter markers show which timeline items happened “inside” which skill span; nested skills get their own span depth.
- Loop detection: repeated consecutive invocations of the same top-level skill are flagged so you can spot “skill recursion” quickly.
- CLI export:
ccbox skillsprints a per-skill summary (or--json) so other automation can reason over skill usage.
Use cases:
- “Why did this session burn tokens?”: see which skill dominated time/tool calls.
- “Which skill caused the failures?”: attribute tool failures to the active skill context.
- “Is a skill looping?”: catch repeated skill invocations early and adjust instructions/skills.
How to use:
- TUI: open a session → press
Sfor the Skills overlay. - CLI:
ccbox skills [log|project] [session-id] --json(use--idif you prefer flags).
The Session Detail timeline is the evidence trail of what happened: user requests, assistant output, tool calls, tool outputs, and token/stat markers (when available).
Use cases:
- Root-cause a failed run by replaying tool calls and their outputs.
- Write a precise “what happened” report for teammates or incident notes.
- Confirm what was actually executed (commands, files touched) without guessing.
How to use:
- TUI: open a session →
Tabchanges focus between timeline/details →Enterjumps Tool → ToolOut. - CLI:
ccbox history [log|project] [session-id] --fullfor a complete, copy/paste-friendly timeline.
For Codex sessions, ccbox can fork/resume from a selected point in the timeline to create a new run with the same context up to that moment.
Use cases:
- “Try a different fix” from the same starting point without re-reading the whole session.
- Continue after a bad turn or failed tool call with a clean branch.
- Break a long session into smaller, more focused follow-up runs.
How to use:
- TUI: open a Codex session → select a Turn/User/Out/ToolOut item → press
f(or use the Session menu).
ccbox-insights is an installable agent skill that reads session history via ccbox (including optional skill-span context) and produces:
- A “lessons learned” memo backed by evidence
- A list of recurring failure patterns (invalid tool use vs runtime failures)
- Copy-ready, additive instruction snippets for project
AGENTS.md(and optional global rules)
Use cases:
- After a week of work, turn noisy session logs into better standing instructions.
- Reduce repeated tool-call errors and avoid “clarify/correct” churn.
- Save time and tokens by standardizing the workflows that actually worked.
How to use:
- Install:
npx skills add diskd-ai/ccbox --skill ccbox-insights --global --yes - Prompt: “Use the ccbox-insights skill to analyze the latest N sessions for this project and propose AGENTS.md additions.”
Quick install from GitHub Releases (macOS/Linux):
curl -fsSL -H 'Cache-Control: no-cache' -o - https://raw.githubusercontent.com/diskd-ai/ccbox/main/scripts/install.sh | /bin/bashHomebrew (recommended):
brew tap diskd-ai/ccbox
brew install ccboxDeveloper build (from source): see AGENTS.md.
What’s happening / features:
- Browse projects discovered from your local Codex/Claude/Gemini session logs and OpenCode sessions.
- Type to filter (matching text is highlighted);
Escclears. - Shift+Arrows multi-select;
Deldeletes selected (with confirmation). - Project table includes path, session count, and last modified time;
●indicates a recently modified (“online”) project.
What’s happening / features:
F2opens the menu; arrows/Enter (and mouse) navigate.- The Engine menu (Projects/Sessions) filters by agent engine: All/Codex/Claude/Gemini/OpenCode.
- The Window menu provides shortcuts to every screen.
What’s happening / features:
- Timeline shows session events in order; details are always expanded.
Tabswitches focus (focused pane uses a double border); scrollbars indicate overflow.Enterjumps Tool → ToolOut;opreviews the last Out;F3opens statistics.
What’s happening / features:
- Fork/resume Codex from a selected Turn/User/Out/ToolOut record.
- Toggle Visible Context for the current turn.
What’s happening / features:
- Time spent, token usage, tool-call breakdown (success/error/unknown), and
apply_patchchanges.
What’s happening / features:
- Type to filter;
ncreates;Ctrl+Enterspawns; Shift+Tab switches engine.
What’s happening / features:
- View output (
s/e/l), kill (k), attach (a), and open the related session.
See ROADMAP.md.
ccboxCLI mode (no TUI):
ccbox projects
ccbox sessions # defaults to current folder (or a parent folder) project
ccbox sessions "/path/to/project"
ccbox history # defaults to latest session in current folder project
ccbox history "/path/to/session.jsonl"
ccbox history "/path/to/session.jsonl" --full
ccbox skills # defaults to latest session in current folder project
ccbox skills "/path/to/project" # latest session in that project
ccbox skills "/path/to/project" "SESSION_ID"
ccbox skills --id "SESSION_ID" --json
ccbox sessions --limit 50 --offset 0 --size
ccbox history --limit 200 --offset 0 --full --size
ccbox updateCLI details:
- Auto-selects the project for the current folder (or nearest parent) when
project-pathis omitted. - Pagination:
sessionsandhistorydefault to--limit 10; use--limit Nand--offset N. projectsoutput:project_name<TAB>project_path<TAB>session_countsessionsoutput:started_at_rfc3339<TAB>session_id<TAB>title<TAB>log_path(newest-first;--sizeaddsfile_size_bytesbeforelog_path)historyaccepts a session.jsonlpath or a project directory; if a directory is provided it selects that project’s latest session.historyprints a readable timeline;--fullincludes long details (tool calls/outputs, full messages);--sizeprints stats to stderr.skillsaccepts a session.jsonlpath or a project directory, plus an optionalsession-id(positional or--id);--jsonprints structured spans/loops.- Pipe-friendly output (handles broken pipes like
ccbox history | head). - Parse warnings and “truncated” notices are printed to stderr.
- On TUI start,
ccboxchecks for a newer GitHub Release in the background and shows a hint if one is available.
Optional overrides:
CODEX_SESSIONS_DIR(defaults to~/.codex/sessions; Windows:%USERPROFILE%\\.codex\\sessions)CLAUDE_PROJECTS_DIR(defaults to~/.claude/projects)CCBOX_GEMINI_DIR(defaults to~/.gemini; sessions are discovered fromtmp/<project-hash>/chats/session-*.json)CCBOX_OPENCODE_DB_PATH(defaults toXDG_DATA_HOME/opencode/opencode.db, else~/.local/share/opencode/opencode.db)
Notes:
- Spawning sessions requires
codexon your$PATH(andclaudeif you switch engines).
This repo ships agent skills:
ccbox: inspect local session logs using theccboxCLI (projects,sessions,history)ccbox-insights: analyze tool-call failures in session logs and propose additive instructions (projectAGENTS.md+ global)
Install the code-insights skill (ccbox-insights):
npx skills add diskd-ai/ccbox --skill ccbox-insights --global --yesAnalyzes unsuccessful tool calls and suggests additive fixes in AGENTS.md (project-level).
Helps save time and tokens.
Install one or both:
npx skills add diskd-ai/ccbox --skill ccbox --global --yes
npx skills add diskd-ai/ccbox --skill ccbox-insights --global --yesNo additional setup is required after npx skills add ... --global.
Requirements: ccbox on your $PATH and access to your sessions directory (CODEX_SESSIONS_DIR if needed).
Example prompts:
- Codex:
codex "Use the ccbox skill to summarize the latest session for this repo." - Claude:
claude "Use the ccbox skill to summarize the latest session for this repo." - Gemini:
gemini "Use the ccbox skill to summarize the latest session for this repo." - Insights (project):
Use the ccbox-insights skill to analyze tool-call failures in the latest 20 sessions for "/path/to/project". - Insights (global for codex):
Use the ccbox-insights skill to analyze **codex** tool-call failures across my top 5 projects (by session count) and propose global instruction updates.
- Global:
Ctrl+Rrescan ·F2system menu ·Pprocesses ·F1/?help ·Ctrl+Q/Ctrl+Cquit - Mouse: wheel scrolls lists/outputs/details · left click selects/focuses
- Lists: arrow keys move selection ·
PgUp/PgDnpage - Projects: type to filter ·
Escclears filter ·Enteropens ·Spaceresult (newest session) ·Deldelete (confirm) - Sessions:
Enteropens ·Spaceresult (last Out) ·nnew session ·Del/Backspacedelete (confirm) ·Escback - New Session: edit/paste ·
Ctrl+Enter/Cmd+Entersend ·Shift+Tabswitch engine ·F4switchPipes/TTY·Esccancel - Session Detail:
EnterToolOut (Tool call) ·ffork/resume (Codex) ·oresult (last Out) ·cvisible context window ·Esc/Backspaceback - Processes:
aattach (TTY) ·Ctrl-]detach ·sstdout ·estderr ·llog ·kkill ·Enteropens session (Codex only)
MIT. See LICENSE.






