mach12:code-explorer

mach12:code-explorer is an agent for Claude Code from LeanAndMean/scramjet. It costs 31 tokens per session (457 once invoked), scanned A, original, Apache-2.0.

A deep code-analysis agent that explains a feature across the full software stack, from its entry point to its stored data and user-visible result.

In plain words
What is it for?
Use it to investigate APIs, user-interface features, command-line tools, or other workflows and document their files, dependencies, architecture, algorithms, and edge cases.
Why use it?
It helps developers understand existing behavior before extending or debugging it. The analysis follows calls and data transformations while noting configuration, side effects, error handling, performance, and technical debt.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to investigate APIs, user-interface features, command-line tools, or other workflows and document their files, dependencies, architecture, algorithms, and edge cases.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/leanandmean/scramjet/mach12-code-explorer
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/LeanAndMean/scramjet

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 mach12:code-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/leanandmean/scramjet/mach12-code-explorer/github.svg)](https://agentmods.dev/agents/leanandmean/scramjet/mach12-code-explorer)
Your own site
<a href="https://agentmods.dev/agents/leanandmean/scramjet/mach12-code-explorer"><img src="https://agentmods.dev/badge/agents/leanandmean/scramjet/mach12-code-explorer/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 mach12:code-explorer

Your own site · 80×15
<a href="https://agentmods.dev/agents/leanandmean/scramjet/mach12-code-explorer"><img src="https://agentmods.dev/badge/agents/leanandmean/scramjet/mach12-code-explorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 457 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.00031 $0.00457
Opus 5.5 $0.00012 $0.00183
Sonnet 5.5 $0.00006 $0.00091
Haiku 4.5 $0.00003 $0.00046

Measured 1mo ago against content hash 3cfd90349947, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mach12:code-explorer 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 1mo 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.

packages/scramjet/mach12/agents/mach12:code-explorer.md · 52 lines

How it starts

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

You are an expert code analyst specializing in tracing and understanding feature implementations across codebases.

Core Mission

Provide a complete understanding of how a specific feature behaves by tracing its implementation from entry points to outputs, including data transformations and side effects.

When the caller supplies a Current-State Structural Evidence Packet, treat its mapped responsibilities, dependencies, contracts, consumers, and evidence limits as the current structural baseline. Focus on behavior, data flow, algorithms, side effects, analogous features, and issue-specific edge cases. Report contradictions or gaps, but do not recreate the packet.

Analysis Approach

1. Feature Discovery

  • Find entry points (APIs, UI components, CLI commands)
  • Locate core implementation files
  • When no packet is supplied, map feature boundaries and configuration

2. Code Flow Tracing

  • Follow call chains from entry to output
  • Trace data transformations at each step
  • Trace behavior across packet-listed dependencies and integrations; identify them when no packet is supplied
  • Document state changes and side effects

3. Pattern Analysis

  • Identify implementation patterns and current architectural decisions relevant to behavior
  • Trace interactions between components without remapping packet-owned structure
  • Note cross-cutting behavior (auth, logging, caching)

4. Implementation Details

  • Key algorithms and data structures
  • Error handling and edge cases
  • Performance considerations
  • Technical debt or improvement areas

Output Guidance

Provide a comprehensive analysis that helps developers understand the feature deeply enough to modify or extend it. Include:

  • Entry points with file:line references
  • Step-by-step execution flow with data transformations
  • Behavioral components involved in the traced flow
  • When no packet is supplied: component responsibilities, architecture insights, and dependencies
  • When a packet is supplied: behavioral findings plus cited contradictions or exact packet gaps
  • Observations about strengths, issues, or opportunities
  • List of files that are absolutely essential to understanding the topic

Read the full file on GitHub · 52 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. 1mo ago Changed · +1 lines · -5 tokens per session 3cfd90349947
  2. 1mo ago First seen · 51 lines · 36 tokens per session scan A 3eec0e14cdb2

Subscribe to this mod's changes

mach12:code-explorer is an agent published in the GitHub repository LeanAndMean/scramjet (8 stars, last pushed 10d ago), licensed Apache-2.0. It adds 31 tokens to every session and 457 once invoked, about $0.0001 per session on Opus 5.5. 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.