Your terminal as a private,
searchable ChatGPT
Every conversation saved as a local, greppable folder. cchat is a lightweight bash harness around Claude Code — terminal Q&A that feels like the Claude desktop app, with nothing leaving your machine.
What you get
-
Local & private
Every conversation is stored as plaintext on your own machine under ~/chats/. No web UI, no export buttons, no cloud round-trip.
-
Greppable history
cchat search runs ripgrep across every transcript and groups matches by session — recall a fact from any past chat in seconds.
-
Self-contained sessions
Each chat is its own folder: the raw JSONL log, a clean markdown transcript, a meta.json, and any files the assistant created.
-
Zero lock-in
A single self-contained bash script — no build step. The on-disk format is index-ready for a future SQLite full-text search.
Install
cchat is a single bash script. Clone it, make it executable, and symlink it onto your
PATH.
git clone git@github.com:Dzhuneyt/cchat.git
cd cchat
chmod +x cchat
ln -s "$PWD/cchat" /usr/local/bin/cchat
Needs claude (sessions), jq (transcript rendering) and
rg / ripgrep (search).
Usage
cchat # prompts for a topic, then opens the session
cchat "tax deadline" # skip the prompt — topic preset from the argument
cchat search "deadline" # ripgrep across every transcript, grouped by session End the session the way you normally exit Claude Code; the transcript is archived automatically and the saved folder path is printed. Full details live in the README.