ask_codebase
Gathers the code, docs, and related commits most relevant to a plain-language question, returning numbered, cited sources for answering how something works or where it is handled.
Instructions
Gather the code and docs most relevant to a question, plus related commits, as numbered, cited sources. Use this to answer "how does X work?" or "where is Y handled?" questions. Answer from these sources only and cite each claim as path:start-end; open a source in full with read_lines. For filters, use search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | How many results to return, 1 to 25. | |
| repo | No | Name of an indexed repo, as list_repos shows it. Leave out when only one repo is indexed. | |
| question | Yes | A question in plain words, e.g. "How are sessions expired?" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| sources | Yes | ||
| question | Yes | ||
| instructions | Yes | ||
| related_commits | Yes | Commits whose messages match the question. |