ras-commander: Agent for Claude Code

.claude/agents/conversation-index-scanner.md

conversation-index-scanner is an agent for Claude Code from gpt-cmdr/ras-commander. It costs 50 tokens per session (699 once invoked), scanned B, original, MIT.

A fast scanner for Claude Code’s conversation-history index, stored as a JSONL file with one record per line. It extracts prompts, projects, and activity over time.

In plain words
What is it for?
Use it to count prompts, filter activity by date, group conversations by project, build timelines, and extract prompt text for pattern analysis.
Why use it?
It avoids manually reading a large history file to understand how the tool has been used. It can reveal recurring prompts, active projects, and changes in activity.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

This is gpt-cmdr/ras-commander's own configuration. It tells Claude Code how to work on ras-commander itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ras-commander configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gpt-cmdr/ras-commander. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gpt-cmdr/ras-commander/main/.claude/agents/conversation-index-scanner.md
Clone the repo
git clone --depth 1 https://github.com/gpt-cmdr/ras-commander

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 conversation-index-scanner

README.md
[![agentmods](https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/conversation-index-scanner/github.svg)](https://agentmods.dev/agents/gpt-cmdr/ras-commander/conversation-index-scanner)
Your own site
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/conversation-index-scanner"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/conversation-index-scanner/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 conversation-index-scanner

Your own site · 80×15
<a href="https://agentmods.dev/agents/gpt-cmdr/ras-commander/conversation-index-scanner"><img src="https://agentmods.dev/badge/agents/gpt-cmdr/ras-commander/conversation-index-scanner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 699 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.00050 $0.00699
Opus 5 $0.00025 $0.00349
Sonnet 5 $0.00010 $0.00140
Haiku 4.5 $0.00005 $0.00070

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

Security

Grade B, and why

conversation-index-scanner 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.

head -3 ~/.claude/history.jsonl
.claude/agents/conversation-index-scanner.md · 108 lines

How it starts

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

Conversation Index Scanner

Scan conversation history index quickly and efficiently.

Purpose

Scan ~/.claude/history.jsonl to:

  • Count prompts by time period
  • Identify active projects
  • Extract prompt text for pattern matching
  • Build activity timeline

Data Source

File: ~/.claude/history.jsonl

Format: JSONL (one JSON object per line)

{"display": "user prompt text", "timestamp": 1733847562000, "project": "C:\\path\\to\\project", "pastedContents": {}}

Scanning Tasks

1. Basic Statistics

# Count total prompts
prompt_count = sum(1 for line in open(history_file))

# Filter by date
cutoff_ms = (datetime.now() - timedelta(days=7)).timestamp() * 1000
recent = [p for p in prompts if p['timestamp'] >= cutoff_ms]

2. Project Distribution

from collections import Counter
projects = Counter(Path(p['project']).name for p in prompts)

3. Time Distribution

from datetime import datetime
dates = Counter(
    datetime.fromtimestamp(p['timestamp']/1000).strftime('%Y-%m-%d')
    for p in prompts
)

4. Prompt Text Extraction

# Extract all prompt text for pattern analysis
prompt_texts = [p['display'] for p in prompts]

Output Format

{
  "total_prompts": 2240,
  "time_range": {"start": "2025-09-27", "end": "2025-12-13"},
  "projects": [
    {"name": "ras-commander", "count": 450},
    {"name": "hms-commander", "count": 120}
  ],
  "daily_activity": [
    {"date": "2025-12-13", "count": 45},
    {"date": "2025-12-12", "count": 38}
  ],
  "prompts": ["prompt text 1", "prompt text 2", ...]
}

Performance Notes

  • File is ~1-2 MB for active users
  • Stream-parse the file (do not load entirely into memory)
  • Complete index operations in <5 seconds
  • Cache results for subsequent analysis

Cross-References

Agents (collaborate with):

  • conversation-insights-orchestrator -- Coordinates analysis workflows
  • conversation-deep-researcher -- Deep analysis after initial scan

Read the full file on GitHub · 108 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. 9d ago First seen · 108 lines · 50 tokens per session scan B 1fbd890e072d

Subscribe to this mod's changes

conversation-index-scanner is an agent published in the GitHub repository gpt-cmdr/ras-commander (79 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 699 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

context-finder

Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the knowledge graph, code index, and prior session memory…

futuregerald/futuregerald-claude-plugin · 111 tokens

wiki-ingest

Use this agent when ingesting URLs, files, or pasted text into the vault during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY ingestion, batch source processing, or converting raw captures to typed-knowledge pages. See "When to invoke" in the agent body for worked scenarios.

karlorz/llm-wiki · 64 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens