cc-history
Reference documentation for analyzing Claude Code conversation history files
Skill by Abhinavexists
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/abhinavexists-cc-history
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
cc-history- Description
- Reference documentation for analyzing Claude Code conversation history files
- License
- MIT
- Instructions
- 269 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: contains an absolute path from the author's machine
Files (3)
- CLAUDE.md
- README.md
- SKILL.md
SKILL.md (first lines)
# Claude Code History Analysis
Reference documentation for querying and analyzing Claude Code's conversation history. Use shell commands and jq to extract information from JSONL conversation files.
## Directory Structure
```
~/.claude/projects/{encoded-path}/
|-- {session-uuid}.jsonl # Main conversation
|-- {session-uuid}/
|-- subagents/
| |-- agent-{hash}.jsonl # Subagent conversations
|-- tool-results/ # Large tool outputs
```
## Project Path Resolution
Convert working directory to project directory:
```bash
PROJECT_DIR="~/.claude/projects/$(echo "$PWD" | sed 's|^/|-|; s|/\.|--|g; s|/|-|g')"
```
Encoding rules:
- Leading `/` becomes `-`
- Regular `/` becomes `-`
- `/.` (hidden directory) becomes `--`
Examples:
- `/Users/bill/.claude` -> `-Users-bill--claude`
- `/Users/bill/git/myproject` -> `-Users-bill-git-myproject`
## Message Types
| Type | Description |
| ----------------- | --------------------------------------------- |
| `user` | User input messages |
| `assistant` | Model responses (thinking, tool_use, text) |
| `system` | System messages |
| `queue-operation` | Background task notifications (subagent done) |
## Message Structure
Each line in a JSONL file is a message object:
```json
{
"type": "assistant",
"uuid": "abc123",
"parentUuid": "xyz789",
"timestamp": "2025-01-15T19:39:16.000Z",
"sessionId": "session-uuid",
"message": {
"role": "assistant",
"content": [...],
"usage": {
"input_tokens": 20000,
"output_tokens": 500,
"cache_read_input_tokens": 15000,
"cache_creation_input_tokens": 5000
}
}
}
```
Assistant message content blocks:
- `type: "thinking"` - Model thinking (has `thinking` field)
- `type: "tool_use"` - Tool invocation (has `name`, `input` fields)
- `type: "text"` - Text response (has `text` field)
## Common Queries
### Find Conversations
```bash
# List by modification time (most recent first)
ls -lt "$PROJECT_DIR"/*.jsonl
# Find by date
ls -la "$PROJECT_DIR"/*.jsonl | grep "Jan 15"
# Find by content
grep -l "search term" "$PROJECT_DIR"/*.jsonl
```
### Extract Messages
```bash
# Get message by line number (1-indexed)
sed -n '42p' file.jsonl | jq .
# Get message by uuid
jq -c 'select(.uuid=="abc123")' file.jsonl
# All user messages
jq -c 'select(.type=="user")' file.jsonl
# All assistant messages
jq -c 'select(.type=="assistant")' file.jsonl
```
### Tool Call Analysis
```bash
# List all tool calls
jq -c 'select(.type=="assistant") | .message.content[]? | select(.type=="tool_use") | {name, input}' file.jsonl
# Count tool calls by name
jq -c 'select(.type=="assistant") | .message.content[]? | select(.type=="tool_use") | .name' file.jsonl | sort | uniq -c | sort -rn
# Find specific tool calls
jq -c 'select(.type=="assistant") | .message.content[]? | select(.type=="tool_use" and .name=="Bash")' file.jsonl
```
### Skill Invocation DetectionFrom Abhinavexists/claude-config, MIT.
More from Abhinavexists/claude-config
- 0.497score
agent-base
Abhinavexists
Internal scaffolding preloaded by custom subagents via the skills frontmatter field.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
handoff
Abhinavexists
Write a session-resume note before /clear or before quitting, so the next session picks up where you left off.
SkillCFreshness: C★ 1Claude Code +9 - 0.472score
pdf
Abhinavexists
Use this skill whenever the user wants to do anything with PDF files.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 26, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Abhinavexists/claude-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.546score
cc-history
solatis
Reference documentation for analyzing Claude Code conversation history files
SkillDFreshness: D★ 913Claude Code +9 - 0.276score
cc-history
Kai-ste
Reference documentation for analyzing Claude Code conversation history files
SkillCFreshness: CClaude Code +9 - 0.237score
cc-history
marqus0004
Reference documentation for analyzing Claude Code conversation history files
SkillDFreshness: DClaude Code +9
More from Abhinavexists
- 0.497score
agent-base
Abhinavexists
Internal scaffolding preloaded by custom subagents via the skills frontmatter field.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
handoff
Abhinavexists
Write a session-resume note before /clear or before quitting, so the next session picks up where you left off.
SkillCFreshness: C★ 1Claude Code +9 - 0.472score
pdf
Abhinavexists
Use this skill whenever the user wants to do anything with PDF files.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
cc-history skill. Agent Mart. https://agentmart.dev/skills/abhinavexists-cc-history (last updated 2026-10-24)