Cchistory — Git skill for Claude Code
by eckardt - Like the shell history command but for your Claude Code sessions.
How to install Cchistory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eckardt/cchistory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cchistory does
[](https://badge.fury.io/js/cchistory)
Alternatives in Git
- Contributing To Context-mode — This project is licensed under the Elastic License 2.0 (ELv2) and moves forward with your support 5.6k ★
- Skill Copilot Provider — GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode 2.8k ★
- Tâches Claude Code Resources — by TÂCHES - A well-balanced, "down-to-Earth" set of sub agents, skills, and commands, that are well-organized 1.6k ★
README
cchistory
[](https://badge.fury.io/js/cchistory)
Like the shell `history` command but for your Claude Code sessions.
Why cchistory?
When Claude Code runs shell commands, they don't appear in your shell history. This makes it hard to:
- Re-run useful commands from past sessions
- Build on previous work
- Learn from command patterns Claude uses
- Copy command sequences for documentation
$ cchistory | tail -5
46 git status
47 git pull origin main
48 git log --oneline -5
49 docker-compose up -d
50 curl -I localhost:8080/health
📦 Installation
npm (recommended)
npm install -g cchistory
npx (try without installing)
npx cchistory --help
From source
git clone https://github.com/eckardt/cchistory
cd cchistory
npm install
npm run build
npm link
Usage
cchistory # Current project history
cchistory --global # All projects
cchistory --list-projects # See all available projects
cchistory | grep docker # Find Docker commands
cchistory | tail -5 # Last 5 commands
cchistory my-app | tail -10 # Last 10 from specific project
cchistory ~/code/my-app # Project by full path
✨ Features
- 🔍 Extract all Bash commands Claude executed across projects
- 🗂️ Filter by specific project or search globally
- 📊 Standard Unix tool compatibility (
grep,awk,sort) - ⚡ Fast streaming parser for large conversation logs
- 🚀 Zero-config - works with existing Claude Code setup
How It Works
Claude Code stores conversation history in `~/.claude/projects/`. This tool:
- Finds your Claude projects
- Streams through conversation logs
- Extracts shell commands Claude executed
- Formats them like traditional shell history
📋 Example Output
$ cchistory --global | head -10
1 [web-scraper ] npm install puppeteer
2 [web-scraper ] mkdir src tests
3 [api-project ] docker-compose up -d
...
Related Skills
Claude Session Bridge
Durable file-based message bridge between long-running Claude Code sessions, with per-session push watcher and
Unity Sessions
List all saved sessions with branch, phase, modified-file count, and timestamp. Sessions are snapshots in .cla
List Tasks
Render tasks as a kanban board grouped into vertical sections by status — dispatches to the configured handler
Vmctl
Agent skill to control VMware Workstation VMs via vmrun: power on/off, start, stop, suspend, reset, guest IP,
Knowledge Graph
Built on Anthropic internal engineering practices and Karpathy's AutoResearch methodology. A zero-dependency,
Check Active Git Files.Prompt
You are an expert at analyzing git history. Given a list of files and their modification counts, return exactl
Related Agents
Citation Formatter
Citation and reference list specialist for academic papers. Verifies that all in-text citations have matching
Session Error Analyzer
Analyzes specific AI IDE sessions (Claude Code, OpenAI Codex, OpenCode) for LLM behavior errors and returns a
Conversation Historian
Use when analyzing Claude Code conversation history, finding past sessions by topic, tracing how implementatio