OMX
Oh My CodeXv0.18.9

explore

Read-only codebase discovery agent that maps files, symbols, entry points, and dependency relationships.

The explore agent answers one question: where does X live? It runs first, before any other agent touches the code, fanning out broad-to-narrow parallel searches across the repo and handing back a structured report of file paths, symbol locations, and call-graph relationships. And because it only ever reads, it's safe to drop into any point of a workflow with zero side effects.

Role

  • Map files, directories, and module boundaries relevant to a query
  • Locate symbols (functions, classes, types) and trace their cross-file relationships
  • Identify entry points, dependency chains, and import graphs
  • Cross-validate findings across Glob, Grep, AST search, and LSP to eliminate false positives

When invoked

SituationHow it's triggered
At the start of $autopilot, $deep-interview, and $deepsearchAutomatic
"Find where X lives", "which files touch Y"Direct request
When planner or executor needs concrete file pathsParent agent request
During debugging when the source location of a symptom is unknownDelegated from debugger

Inputs

  • Repo root path
  • A search query or scope hint (symbol name, feature area, file pattern, or free-form description)
  • Optional: prior context such as error messages or partially known file paths

Outputs

  • An in-session report listing absolute file paths, matched symbols, and relationship summaries
  • For deep-search runs, findings may be persisted to .omx/research/<topic>.md for downstream agents to reference
  • A next_steps section indicating which agent should act on the findings

Limits

  • Does not create, modify, or delete any file under any circumstance
  • Does not run tests, execute build commands, or assess code quality
  • Does not make architectural recommendations — that is the architect agent's role
  • analyst — consumes exploration results to refine requirements
  • planner — uses file maps from explore to sequence tasks
  • debugger — uses explore to locate the source of a defect
  • executor — receives the file list produced by explore and planner before writing code

On this page