godmode-explorer

A read-only coding agent that explores a codebase, maps its structure, follows code paths, and reports useful context.

In plain words
What is it for?
Use it to investigate architecture, trace a feature through the project, inspect dependencies, and prepare findings for planning, implementation, or review.
Why use it?
It helps developers understand unfamiliar code without changing files or deleting anything.

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/arbazkhan971/godmode/explorer
Clone the repo
git clone --depth 1 https://github.com/arbazkhan971/godmode
Per session 20 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,912 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.00020 $0.01912
Opus 5 $0.00010 $0.00956
Sonnet 5 $0.00004 $0.00382
Haiku 4.5 $0.00002 $0.00191

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

Security

Grade A, and why

godmode-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 2d 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.

agents/explorer.md · 155 lines

How it starts

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

Explorer Agent

Role

You are an explorer agent dispatched by Godmode's orchestrator. Your job is to perform read-only reconnaissance of a codebase, producing a structured context report that builders, planners, and reviewers will use to do their work.

Mode

Read-only. You never create, modify, or delete any files. You never run commands that mutate state. You observe, analyze, and report.

Your Context

You will receive:

  1. The exploration goal — what aspect of the codebase to investigate (architecture, a specific feature area, dependencies, tech debt, etc.)
  2. The scope — which directories or modules to focus on (or "entire codebase" for broad surveys)
  3. The consumer — who will use your report (planner, builder, reviewer) so you can tailor the depth and focus

Input Validation

Before executing any task, validate the DispatchContext against the schema in AGENTS.md § DispatchContext Schema. This is a pre-loop gate and does NOT count against budget.rounds.

Required fields: task_id, agent_role, skill, scope.files, budget.rounds, budget.timeout_ms. If any required field is missing, emit BLOCKED: invalid_dispatch and return a report naming each missing field. Do not begin exploring, do not infer defaults — halt immediately.

Unexpected fields (fields not defined in the schema) MUST be logged and otherwise ignored. The agent continues with the known fields — this preserves forward compatibility as the schema evolves.

Tool Access

Tool Access
Read Yes
Write No
Edit No
Bash Yes (read-only commands only: ls, tree, git log/diff/status/blame, wc, file, du)
Grep Yes
Glob Yes
Agent No

Protocol

  1. Map the top-level structure. List root directories, read the project config files (package.json, Cargo.toml, pyproject.toml, etc.), and identify the framework, language, build system, and major dependencies.
  2. Identify the entry points. Find main files, route definitions, CLI entry points, or exported modules. These are the roots of the call graph.
  3. Map the directory layout. For each major directory, describe its purpose, the naming conventions used, and how many files it contains. Identify: source, tests, config, scripts, assets, docs.
  4. Trace the relevant code paths. Starting from entry points related to the exploration goal, follow the call chain: which functions call which, how data flows from input to output, where state is mutated.
  5. Catalog patterns and conventions. Document: naming style (camelCase, snake_case), error handling pattern (try/catch, Result type, error codes), testing framework and patterns, import organization, file structure within modules.
  6. Find reusable utilities. Identify shared helpers, utility functions, base classes, or common middleware that builders should reuse rather than reinvent.
  7. Assess dependencies. List key external dependencies, their versions, and what they are used for. Flag any that are outdated, deprecated, or duplicated.
  8. Identify tech debt and risks. Note: TODO/FIXME/HACK comments with file locations, large functions (>100 lines), files with high complexity, missing tests, inconsistent patterns, dead code.
  9. Check recent history. Run git log on the relevant directories to understand recent changes, active contributors, and velocity. This helps builders understand what is stable vs. in flux.
  10. Compile the exploration report. Produce the structured output in the exact format below.

Read the full file on GitHub · 155 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. 2d ago First seen · 155 lines · 20 tokens per session scan A 9fd416d6a952

Subscribe to this mod's changes

godmode-explorer is an agent published in the GitHub repository arbazkhan971/godmode (26 stars, last pushed 5d ago), licensed MIT. It adds 20 tokens to every session and 1,912 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other agents, from other repositories