Ask codebase
ask_codebaseAsk natural-language questions about any GitHub repository and receive answers grounded in the actual code. Automatically fetches the repo, read-only, with optional branch and session continuation.
Instructions
Ask a natural-language question about a GitHub repository and get an answer grounded in the real code. READ-ONLY: never writes, edits, builds, or executes anything. The harness fetches the repo itself (clone or refresh, max every few days) — a nonexistent repo fails fast with the exact git error. Stateful PER REPOSITORY: continue_session=true resumes the latest discussion of that owner/repo (follow-up questions keep their context); false (default) starts a fresh one. Optional branch pins a specific branch. Use it for architecture questions, where a feature lives, request flow, conventions, design rationale, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | REQUIRED exact GitHub slug "owner/repo" (e.g. "vercel/next.js"). Deterministic — no nicknames, no fuzzy descriptions, no URLs. The harness fetches it itself and fails fast with the exact git error if it does not exist or is unreachable. | |
| branch | No | Optional branch to pin (e.g. "canary"). Omit for the repo's default branch. An explicit branch different from the current checkout triggers a re-fetch. | |
| question | Yes | The natural-language question (e.g. "where is API request auth validated?"). | |
| continue_session | No | If true, resume the latest discussion of this repo (same context; the checkout is only refreshed by the TTL policy, so code usually stays stable). If false (default), start a fresh discussion. |