explore

A read-only procedure for exploring an unfamiliar codebase before planning changes.

In plain words
What is it for?
Use it when beginning work in a new area or planning changes across multiple files, then save the exploration report for later reference.
Why use it?
It builds a map of files, entry points, data flow, types, conventions, and important design decisions without editing code.

Cursor rule

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 rules/jkudjo/oh-my-cursor/explore
Clone the repo
git clone --depth 1 https://github.com/Jkudjo/oh-my-cursor
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 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.00014 $0.00441
Opus 5 $0.00007 $0.00220
Sonnet 5 $0.00003 $0.00088
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

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

rules/explore.mdc · 60 lines

What it actually says

@explore

Trigger: When starting work in an unfamiliar area, or before designing a plan that touches multiple files.

Protocol

  1. Read only — no file edits, no code generation.
  2. Map the subsystem:
    • Find entry points (main files, exported functions, routes, handlers)
    • Trace data flow end-to-end
    • Identify key types, interfaces, and models
    • Note conventions (naming, patterns, idioms)
    • Find non-obvious design decisions
  3. Produce an Exploration Report:
    ## Exploration: <topic>
    
    ### Files
    - `path/to/file.ts` — role
    
    ### Data flow
    ...
    
    ### Conventions
    ...
    
    ### Key decisions
    ...
    
    ### Where to make changes
    If you need to modify this subsystem, start at: ...
    
  4. Call set_memory with key=explore-<topic> and the report.
  5. Suggest next step: @deep-interview or @ralplan if a change is needed.

Source of truth hierarchy

When docs, comments, and code conflict — trust in this order:

  1. Live code — what the entry point actually imports and calls
  2. Running config — what env vars and config files are actually loaded at startup
  3. Tests — what behaviour is asserted and passing
  4. Comments — may be stale
  5. Docs/README — most likely to be outdated

Always flag conflicts between sources explicitly. Never silently blend stale docs with live code.

Rules

  • Zero code changes.
  • Prioritize depth over breadth — understand one thing well rather than many things superficially.
  • If something is unclear, read more files — don't guess.
  • If only some files are visible, state the partial view before drawing conclusions.
  • Dead code is not execution path — trace imports and call sites to confirm something is actually live.
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 · 60 lines · 14 tokens per session scan A e9e7512aa3ed

Subscribe to this mod's changes

explore is a cursor rule published in the GitHub repository Jkudjo/oh-my-cursor (1 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 441 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-31.

Related

Other cursor rules, from other repositories