Chathist โ AI skill for Claude Code
๐ A lightweight CLI tool to view and export your AI coding agent's chat history.
How to install Chathist
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open shuntaka9576/chathist and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Chathist does
๐ A lightweight CLI tool to view and export your AI coding agent's chat history.
Alternatives in AI
- Skills Manager โ A lightweight desktop app to manage, sync, and organize AI agent skills across 15+ coding tools โ Cursor, Clau 813 โ
- Claude Chat Exporter โ Claude Chat Exporter is a JavaScript tool that allows you to export your conversations with Claude AI into a w 407 โ
- Ataru โ High-performance AI memory retrieval for local agent history โ a Rust search core (SDK / API / JSON CLI) plus 351 โ
README
chathist
A lightweight CLI tool to view and export your AI coding agent's chat historyโcurrently optimized for Claude Code.
Built for speed and flexibility, chathist hooks into fzf / fzf-tmux to let you breeze through past sessions with instant previews. Itโs fully customizable via Lua configuration and Jinja2 templates, so you can tailor the output to your exact workflow.

Installation
Brew (MacOS)
brew install shuntaka9576/tap/chathist
Cargo (git)
git clone https://github.com/shuntaka9576/chathist
cd chathist
cargo install --path .
Getting Started
`chathist` is designed to pair perfectly with `fzf`.
`chathist list` appends normalized conversation text as an extra tab-separated field, so you can search by message body with `fzf` while keeping the session ID in the first column for previews and selection.
Zsh Integration
Add this to your `.zshrc` to get a unified session picker on `Ctrl+H`.
**Session picker keybindings (inside fzf)**
| Key | Action |
|---|---|
Tab |
Multi-select sessions |
Shift+Up/Down |
Scroll preview |
Ctrl+S |
Switch to cross-worktree mode |
Ctrl+A |
Switch to all repositories mode |
Ctrl+D |
Switch back to current project |
After selecting sessions, you choose an action.
| Action | Description |
|---|---|
resume |
Resume the session in Claude Code (claude --resume) |
open |
Open in editor with a template |
function chathist-widget() {
local selection=$(chathist list | fzf-tmux --multi \
--delimiter=$'\t' \
--with-nth=2.. \
--header 'ctrl-s: cross-worktree / ctrl-a: all repos / ctrl-d: current project' \
--preview 'chathist pick {1} --stdout' \
--preview-window 'right:45%:wrap' \
--bind 'ctrl-s:reload(chathist list -w)+change-preview(chathist pick -w {1} --stdout)+change-header(cross-worktree | ctrl-a: all repos | ctrl-d: current project)' \
--bind 'ctrl-a:reload(cha
Related Skills
Ctk
Conversation Toolkit - Unified CLI for managing AI conversations from ChatGPT, Claude, Gemini, and more. Impor
LightHistory
โก ๆฌๅฐไผๅ ็ AI ๅฏน่ฏ่ตไบง็ฎก็ๅจ Local-first AI chat history manager โ archive, search & export your Claude / Claude Code co
Chat History Importer
Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses
Chat Recall
One memory across every AI coding tool. Indexes Claude Code, Gemini CLI, Codex, OpenCode and Antigravity sessi
Herdr App
macOS desktop app for the herdr terminal multiplexer: manage Claude Code, pi and other AI coding agents across
Lovcode
A desktop companion app for AI coding tools. Browse Claude Code chat history, manage configurations, commands,
Related Agents
Clean Architect
Plans clean implementation from approved clean behavioral specs and the clean destination foundation without r
Feature Crew Reviewer
Code reviewer. Spawned with fresh context โ no memory of build. Reads spec.md, design.md, ADRs, and the diff o
A0dev
Most people who want an app cannot navigate Xcode, signing certificates, or store submission, so a0.dev remove