query_repo
Answer repo-wide questions by ingesting all repository files into the model's context and returning a single answer with a summary of files and tokens used.
Instructions
Answer question using the whole repo's files in-context.
Ingests the repo's ingestible files into the selected model's context
window (cache-aware ShardPlan ordering; GLM-5.2 1M by default, DeepSeek
V4 128k via model="deepseek") and asks the question in a single model
round-trip. Returns the answer prefixed with a one-line context summary
(files + tokens). Transient API errors (429/5xx) are retried with backoff;
a terminal failure returns a structured error (v0.2).
Args:
question: the repo-wide question (e.g. "where is the auth
middleware handled?").
repo: optional repo root override (defaults to the --repo
arg or CTXFEED_REPO_ROOT env var).
model: optional model override ("glm" | "deepseek";
defaults to the server's --model / CTXFEED_MODEL).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| model | No | ||
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |