askill
get-history

get-historySafety 95Repository

Access raw conversation history from Claude Code session storage for analysis

70 stars
1.4k downloads
Updated 3/1/2026

Package Files

Loading files...
SKILL.md

Get History Skill

Purpose: Provide direct access to raw conversation history stored by Claude Code for debugging and conversation analysis.

When to Use:

  • When investigating tool call sequences
  • To verify what happened earlier in a session
  • When analyzing agent behavior patterns
  • To debug unexpected outcomes

Skill Capabilities

1. Access Current Session Conversation

Location: /home/node/.config/projects/-workspace/{session-id}.jsonl

Session ID: The session ID is automatically available as ${CLAUDE_SESSION_ID} in this skill.

cat /home/node/.config/projects/-workspace/${CLAUDE_SESSION_ID}.jsonl

2. Parse Conversation Structure

Entry Types:

  • type: "summary" - High-level conversation summary
  • type: "message" - User or assistant messages
  • type: "tool_use" - Tool invocations
  • type: "tool_result" - Tool outputs

Extract Messages:

# Get all user messages
jq 'select(.type == "message" and .role == "user") | .content' conversation.jsonl

# Get all tool uses with names
jq 'select(.type == "tool_use") | {name: .name, input: .input}' conversation.jsonl

3. Agent Sidechain Conversations

Path Pattern: /home/node/.config/projects/-workspace/agent-{agent-id}.jsonl

# Find all agent sidechain logs
ls -lht ~/.config/projects/-workspace/agent-*.jsonl | head -10

Error Handling

If session ID not in context, report error - do NOT guess.

Integration

Complements learn-from-mistakes:

  • get-history: Provides raw conversation data
  • learn-from-mistakes: Analyzes mistakes and recommends fixes

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

83/100Analyzed 3/2/2026

">Technical skill for accessing Claude Code conversation history. Provides concrete commands for reading session JSONL files, parsing entry types (summary, message, tool_use, tool_result), and accessing agent sidechain logs. Includes jq examples for filtering messages and tool uses. Well-structured with clear when-to-use section and error handling. Minor gaps: no prerequisites section, could include more output examples. Located in dedicated skills folder suggesting reusability."

95
85
80
70
85

Metadata

Licenseunknown
Version-
Updated3/1/2026
Publishercowwoc

Tags

llm