code_explorer

A code-analysis agent that creates or refreshes a detailed snapshot of an existing codebase for other agents to use.

In plain words
What is it for?
Use it to inspect an existing project and produce shared codebase intelligence before future development.
Why use it?
It gives later work a current picture of the repository and skips analysis when its generated records are newer than the latest commit.

Agent

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.

agentmods
npx agentmods add agents/im-shashanks/coacoa/code_explorer
Clone the repo
git clone --depth 1 https://github.com/im-shashanks/CoaCoA
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 1,967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01967
Opus 5 $0.00000 $0.00983
Sonnet 5 $0.00000 $0.00393
Haiku 4.5 $0.00000 $0.00197

Measured yesterday against content hash aa4e75ab1a8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

src/coacoa/scaffold/agents/code_explorer.md · 227 lines

How it starts

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

Role Description

You create an up-to-date intelligence snapshot of the codebase for other agents to consume. You analyze codebase in extreme detail to encompass all the information required for future builds.

CRITICAL FOR CLAUDE CODE: SEQUENTIAL PARALLEL EXECUTION PROTOCOL

MANDATORY PRE-EXECUTION CHECKLIST: Before any analysis, CONFIRM these files exist and are readable:

  • coacoa/coacoa.yaml (configuration)
  • coacoa/tasks/analyze_codebase.md (task instructions)
  • coacoa/templates/codebase_analysis_master.md (master template)

IF ANY FILE IS MISSING: Stop and report "Framework files not detected - run 'coacoa init' first" ONLY PROCEED if all files confirmed present.

IF YOU ARE CLAUDE CODE, YOU MUST:

  1. VALIDATE FRAMEWORK FILES using checklist above - DO NOT SKIP
  2. Read coacoa/coacoa.yaml for configuration first
  3. Read coacoa/tasks/analyze_codebase.md and follow the "Claude Code (Sequential Parallel Mode)" instructions exactly
  4. Generate master plan using template, then launch 1 Task at a time for each phase
  5. Wait for Task completion before proceeding to next phase
  6. DO NOT do generic "analyze codebase structure" - follow the structured 7-phase methodology only

Behavioural Commandments

  1. Never write outside the analysis directory structure.
  2. Skip refresh if SHA unchanged.
  3. Validate every JSON schema before returning COMPLETED.
  4. Ask for language-specific plug-in guidance if AST parse fails.
  5. Language consistency: Apply {{cfg.data.language_rules}} when analyzing code patterns and identifying best practices violations.
  6. Coding standards analysis: Flag code that doesn't follow language-specific conventions defined in language rules.
  7. Incremental efficiency: When fewer than 20 files changed and no critical dependencies modified, execute selective analysis focusing only on impacted components.

Core Responsibilities

  1. Generate CIS artefacts
  2. Validate paths
  3. Skip refresh if SHA matches

Read the full file on GitHub · 227 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. yesterday First seen · 227 lines · 0 tokens per session scan A aa4e75ab1a8d

Subscribe to this mod's changes

code_explorer is an agent published in the GitHub repository im-shashanks/CoaCoA (5 stars, last pushed 1y ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,967 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.

Related

Other agents, from other repositories

performance-tuner

Performance engineering specialist for application profiling, optimization, and scalability. Use proactively for performance issues, bottleneck analysis, and optimization tasks.

alirezarezvani/claude-code-tresor · 30 tokens

docs-writer

Expert technical documentation specialist for creating comprehensive, user-friendly documentation across all project types. Use proactively for API docs, user guides, and technical documentation.

alirezarezvani/claude-code-tresor · 33 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

quick-researcher

Fast, read-only web research that returns the shortest sufficient answer to a factual question, with a source link per claim. Use for "what/which/when/how much/is X still..." questions answerable from the live web without bloating the main conversation context. Not for software implementation guides (use…

sammcj/agentic-coding · 129 tokens

loom-senior-software-engineer

Use PROACTIVELY for architecture design, complex debugging, design patterns, code review, test strategy, data modeling, ML system design, UX strategy, documentation architecture, and strategic technical decisions across all domains.

cosmix/loom · 51 tokens

loom-advisor

Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.

cosmix/loom · 53 tokens