introspect

introspect is a command for Claude Code from rosudrag/ai-praxis. It costs 0 tokens per session (885 once invoked), scanned A, original, MIT.

A command that reviews recent Claude Code conversation transcripts to find recurring problems and opportunities to improve the setup. It looks at user corrections, repeated requests, interruptions, frustration, and manual work.

In plain words
What is it for?
Selecting substantial recent transcripts, extracting user messages, and reporting missing documentation, skill gaps, repeated work, and behaviour that should change.
Why use it?
It helps identify where instructions, documentation, skills, or agent behaviour are causing unnecessary friction. The review is based on past conversations rather than guesses.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Selecting substantial recent transcripts, extracting user messages, and reporting missing documentation, skill gaps, repeated work, and behaviour that should change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rosudrag/ai-praxis/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.

Clone the repo
git clone --depth 1 https://github.com/rosudrag/ai-praxis

Made for: Claude Code.

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/commands/rosudrag/ai-praxis/introspect.svg)](https://agentmods.dev/commands/rosudrag/ai-praxis/introspect)
Your own site
<a href="https://agentmods.dev/commands/rosudrag/ai-praxis/introspect"><img src="https://agentmods.dev/badge/commands/rosudrag/ai-praxis/introspect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 885 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00885
Opus 5 $0.00000 $0.00443
Sonnet 5 $0.00000 $0.00177
Haiku 4.5 $0.00000 $0.00089

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

Security

Grade A, and why

introspect scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bootstrap/templates/commands/introspect.md · 100 lines

How it starts

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

/introspect - Audit Past Conversations for Improvements

Analyze recent Claude Code conversation transcripts to identify friction points, missing docs, skill gaps, and behavioral corrections.

Instructions

1. Gather Transcripts

List recent conversation transcripts sorted by size (larger = more work = more signal):

ls -lS "{{transcripts_path}}" --time=ctime | grep ".jsonl" | head -15

Pick the 5-8 largest/most recent transcripts for analysis.

2. Extract User Messages

For each transcript, extract user messages to understand what was asked, corrected, and repeated:

import json
with open('<transcript>.jsonl', 'r', encoding='utf-8', errors='ignore') as f:
    for line in f:
        d = json.loads(line)
        if d.get('type') == 'user':
            content = d.get('message', {}).get('content', '')
            # Extract text from string or list content

Look for patterns:

  • Corrections: "no", "wrong", "not that", "I said", "stop"
  • Repeated asks: Same question asked 2+ times
  • Interruptions: "[Request interrupted by user]"
  • Frustration signals: profanity, ALL CAPS, "!!!", short terse corrections
  • Manual workflows: Multi-step operations the user guided step-by-step

3. Spawn Analysis Agents

For large transcripts (>500KB), spawn background agents to analyze each one in parallel. Each agent should extract:

  1. Tasks/topics discussed
  2. Friction points — things the user had to repeat, correct, or re-explain
  3. Manual workflows that could be automated with a skill command
  4. Missing documentation that would have prevented confusion
  5. User corrections/feedback — exact quotes when possible

4. Cross-Reference Existing Setup

Check what already exists before recommending duplicates:

  • Existing skills: {{commands_path}}/*.md
  • Existing memories: {{memory_path}}/*.md
  • AGENTS.md / CLAUDE.md rules
  • Serena memories (if installed): .serena/memories/*.md

5. Categorize Findings

Read the full file on GitHub · 100 lines

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. 8d ago First seen · 100 lines · 0 tokens per session scan A fef9f3631bc6

Subscribe to this mod's changes

introspect is a command published in the GitHub repository rosudrag/ai-praxis (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 885 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.