config
git clone https://git.pyrossh.dev/config
Common configuration
opencode/AGENTS.md
| 6097c7d | 1 | <!-- CODEGRAPH_START --> |
| 6097c7d | 2 | ## CodeGraph |
| 6097c7d | 3 | |
| 6097c7d | 4 | In repositories indexed by CodeGraph (a `.codegraph/` directory exists at the repo root), reach for it BEFORE grep/find or reading files when you need to understand or locate code: |
| 6097c7d | 5 | |
| 6097c7d | 6 | - **MCP tool** (when available): `codegraph_explore` answers most code questions in one call — the relevant symbols' verbatim source plus the call paths between them, including dynamic-dispatch hops grep can't follow. Name a file or symbol in the query to read its current line-numbered source. If it's listed but deferred, load it by name via tool search. |
| 6097c7d | 7 | - **Shell** (always works): `codegraph explore "<symbol names or question>"` prints the same output. |
| 6097c7d | 8 | |
| 6097c7d | 9 | If there is no `.codegraph/` directory, skip CodeGraph entirely — indexing is the user's decision. |
| 6097c7d | 10 | <!-- CODEGRAPH_END --> |