cc-history
Reference documentation for analyzing Claude Code conversation history files
Skill by solatis
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/solatis-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
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cc-history
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 solatis/claude-config, MIT.
More from solatis/claude-config
- 0.645score
prompt-engineer
solatis
Invoke IMMEDIATELY via python script when user requests prompt optimization.
SkillDFreshness: D★ 913Claude Code +9 - 0.644score
doc-sync
solatis
Synchronizes docs across a repository.
SkillDFreshness: D★ 913Claude Code +9 - 0.640score
refactor
solatis
Invoke IMMEDIATELY via python script when user requests refactoring analysis, technical debt review, or code quality improvement.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
problem-analysis
solatis
Invoke IMMEDIATELY via python script when user requests problem analysis or root cause investigation.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
deepthink
solatis
Invoke IMMEDIATELY via python script when user requests structured reasoning for open-ended analytical questions.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
arxiv-to-md
solatis
Convert arXiv papers to LLM-consumable markdown.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
codebase-analysis
solatis
Invoke IMMEDIATELY via python script when user requests codebase understanding, architecture comprehension, or repository orientation.
SkillDFreshness: D★ 913Claude Code +9 - 0.550score
incoherence
solatis
Detect and resolve incoherence in documentation, code, specs vs implementation.
SkillDFreshness: D★ 913Claude Code +9 - 0.550score
planner
solatis
Interactive planning and execution for complex tasks.
SkillDFreshness: D★ 913Claude Code +9 - 0.548score
decision-critic
solatis
Invoke IMMEDIATELY via python script to stress-test decisions and reasoning.
SkillDFreshness: D★ 913Claude Code +9
Signals
- Stars
- 913
- Forks
- 129
- Open issues
- 10
- Last commit (this folder)
- Feb 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/solatis/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.292score
cc-history
Abhinavexists
Reference documentation for analyzing Claude Code conversation history files
SkillCFreshness: C★ 1Claude 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 solatis
- 0.645score
prompt-engineer
solatis
Invoke IMMEDIATELY via python script when user requests prompt optimization.
SkillDFreshness: D★ 913Claude Code +9 - 0.644score
doc-sync
solatis
Synchronizes docs across a repository.
SkillDFreshness: D★ 913Claude Code +9 - 0.640score
refactor
solatis
Invoke IMMEDIATELY via python script when user requests refactoring analysis, technical debt review, or code quality improvement.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
problem-analysis
solatis
Invoke IMMEDIATELY via python script when user requests problem analysis or root cause investigation.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
deepthink
solatis
Invoke IMMEDIATELY via python script when user requests structured reasoning for open-ended analytical questions.
SkillDFreshness: D★ 913Claude Code +9 - 0.551score
arxiv-to-md
solatis
Convert arXiv papers to LLM-consumable markdown.
SkillDFreshness: D★ 913Claude Code +9
Cite this page
cc-history skill. Agent Mart. https://agentmart.dev/skills/solatis-cc-history (last updated 2026-10-24)