introspect

introspect is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 80 tokens per session (2,616 once invoked), scanned B, original, MIT.

A tool for examining Claude Code session logs, which record conversations, tool calls, files, and errors during coding work.

In plain words
What is it for?
Use it to review session summaries, tool chains, reasoning blocks, edited files, conversation turns, timings, and error patterns.
Why use it?
It shows what happened in a session and highlights errors, repeated tool use, and possible ways to improve the workflow.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the claude-mods plugin — 103 skills, 3 commands, 3 agents, 4 hooks shipped together

Good fit Use it to review session summaries, tool chains, reasoning blocks, edited files, conversation turns, timings, and error patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/introspect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill introspect
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 103 skills, 3 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for introspect

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/introspect/github.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/introspect)
Your own site
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/introspect"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/introspect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for introspect

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/introspect"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/introspect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.02616
Opus 5 $0.00040 $0.01308
Sonnet 5 $0.00016 $0.00523
Haiku 4.5 $0.00008 $0.00262

Measured 9d ago against content hash 989f9c4aacfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

introspect scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

// ~/.claude/settings.json
skills/introspect/SKILL.md · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Introspect

Extract actionable intelligence from Claude Code session logs. For general JSONL analysis patterns (filtering, aggregation, cross-file joins), see the log-ops skill.

cc-session CLI

The scripts/cc-session script provides zero-dependency analysis (requires only jq + bash). Auto-resolves the current project and most recent session.

# Copy to PATH for global access
cp skills/introspect/scripts/cc-session ~/.local/bin/
# Or on Windows (Git Bash)
cp skills/introspect/scripts/cc-session ~/bin/

Commands

Command What It Does
cc-session overview Entry counts, timing, tool/thinking totals
cc-session tools Tool usage frequency (sorted)
cc-session tool-chain Sequential tool call trace with input summaries
cc-session thinking Full thinking/reasoning blocks
cc-session thinking-summary First 200 chars of each thinking block
cc-session errors Tool results containing error patterns
cc-session conversation Reconstructed user/assistant turns
cc-session files Files read, edited, written (with counts)
cc-session turns Per-turn breakdown (duration, tools used)
cc-session agents Subagent spawns with type and prompt preview
cc-session cost Rough token/cost estimation
cc-session timeline Event timeline with timestamps
cc-session summary Session summaries (compaction boundaries)
cc-session search <pattern> Search across sessions (text content)

Options

--project, -p <name>    Filter by project (partial match)
--dir, -d <pattern>     Filter by directory pattern in project path
--all                   Search all projects (with search command)
--recent <n>            Use nth most recent session (default: 1)
--json                  Output as JSON instead of text

Examples

cc-session overview                              # Current project, latest session
cc-session tools --recent 2                      # Tools from second-latest session
cc-session tool-chain                            # Full tool call sequence
cc-session errors -p claude-mods                 # Errors in claude-mods project
cc-session thinking | grep -i "decision"         # Search reasoning
cc-session search "auth" --all                   # Search all projects
cc-session turns --json | jq '.[] | select(.tools > 5)'  # Complex turns
cc-session files --json | jq '.edited[:5]'       # Top 5 edited files
cc-session overview --json                       # Pipe to other tools

Read the full file on GitHub · 268 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 268 lines · 80 tokens per session scan B 989f9c4aacfa

Subscribe to this mod's changes

introspect is a skill published in the GitHub repository 0xDarkMatter/claude-mods (34 stars, last pushed 16d ago), licensed MIT. It adds 80 tokens to every session and 2,616 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.