Skip to main content

TUI for browsing, searching, and resuming Claude Code sessions

Project description

clack

PyPI Python License

A terminal UI for browsing, searching, and resuming Claude Code sessions.

Browse your full session history, read past conversations, jump into stats, and resume any session — all without leaving the terminal.


Install

# pipx
pipx install clack-tui

# uvx (run without installing)
uvx clack-tui

The package name is clack-tui because clack is already taken on PyPI. The package installs both clack and clack-tui executables.

Requires Python 3.11+ and Claude Code installed.


Quick start

clack

clack reads your Claude Code session files directly from ~/.claude/projects/ — no configuration needed.


Features

Tab Key What it does
Dashboard 1 Browse all sessions, search with full-text search (DuckDB FTS / BM25)
Stats 2 Token usage and model breakdown, daily sparklines
Dialog 3 Read any conversation turn-by-turn, export to HTML
Query 4 Write SQL directly against your session data (DuckDB)

Dashboard key bindings

Key Action
/ Focus search
Esc Clear search
Enter Resume session (opens claude --resume)
v View full conversation
r Refresh session list
q Quit

tmux / cmux: If clack is running inside a tmux session, resuming opens the session in a new tmux window (or jumps to the existing pane if that session is already live). The same behavior works inside cmux — clack opens a new cmux workspace via cmux new-workspace --cwd ... --command ..., or focuses the existing pane with cmux focus-pane. Outside any multiplexer, clack suspends the TUI, runs claude --resume, and returns when you exit.

If the DuckDB FTS extension is unavailable, dashboard search falls back to simple substring matching.

Query console

The Query console exposes your session data as DuckDB SQL views:

View Contents
v_sessions One row per session — date, project, summary, model, turn count
v_assistant_turns Individual assistant turns with token counts
v_stats Aggregated usage by model
v_sessions_by_day Daily session and token totals
raw_records Raw JSONL records

Example queries:

-- Sessions from the last week
SELECT title, cwd, turn_count FROM v_sessions
WHERE last_active > now() - INTERVAL '7 days';

-- Most token-heavy sessions
SELECT sessionId, SUM(output_tokens) AS total
FROM v_assistant_turns GROUP BY 1 ORDER BY 2 DESC LIMIT 10;

Dev setup

git clone https://github.com/jcc-ne/clack
cd clack
uv sync
uv run clack

Release notes for TestPyPI and Trusted Publishing live in docs/releasing.md.


Requirements

  • Python 3.11+
  • Claude Code (session files at ~/.claude/projects/)
  • tmux or cmux (optional — enables jumping to live sessions and opening resumed sessions in a new window/workspace)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clack_tui-0.2.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clack_tui-0.2.1-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file clack_tui-0.2.1.tar.gz.

File metadata

  • Download URL: clack_tui-0.2.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clack_tui-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f3942b3ab3621102a7a2e18fa9ba2858f7bb91e2611ac02f23acfc3ede185dee
MD5 3fbdf24c9ddf98a7d66d631127e589e9
BLAKE2b-256 e12afefc7fcf9a5987f44c7ec0e8d6688553319437c59e5d2d3170d87148a7c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for clack_tui-0.2.1.tar.gz:

Publisher: publish.yml on jcc-ne/clack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clack_tui-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: clack_tui-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clack_tui-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6970d00121ee1010c018f4fb4a5aafd5be61d6fbce491da1ba006f00dd69ab70
MD5 7a61b2c181bad685a684305635396281
BLAKE2b-256 a77ecef48235969ac3f5e67f5728a60d825dc520b4371fa81de37350e0390e15

See more details on using hashes here.

Provenance

The following attestation bundles were made for clack_tui-0.2.1-py3-none-any.whl:

Publisher: publish.yml on jcc-ne/clack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page