FAQ
These are the questions that come up once the engine runs on your machine. Each answer is short and links to the page that explains it in full.
Why not just grep, or clone the repos?
Section titled “Why not just grep, or clone the repos?”If you know the repo and the string, grep or a clone is the right tool. corpus_grep covers the same ground for a regular expression, inside one repo at the commit you indexed.
The engine is for a question that has no string to search for, asked over many repos at once. “How do projects retry a failed LLM call?” is one. Each hit comes with its license class, an automated verdict and a permalink pinned to a commit.
The engine keeps one shallow clone of each repo you list, on your machine (git clone --bare --depth 1).
Plain grep is not one of the tools the benchmark scores. No run has compared an agent that uses the corpus with an agent that has only grep.
Can I search in my own language?
Section titled “Can I search in my own language?”Write your queries in English. The engine, its tools and its models are English only, and the instructions the server hands to your agent tell it to translate a query into English before it searches.
Translating is safer: the corpus and the embedding model are English, so a query in another language can match worse.
A query in another language still runs. On a test index of four small repos, the Turkish query bir imzayı HMAC ile doğrula
and its English translation verify an HMAC signature both came back as ok, with the same file first. A small index sets a lower line for no_strong_match, so a weak query
can come back ok there. Troubleshooting has their scores.
What happens when the corpus has no answer?
Section titled “What happens when the corpus has no answer?”corpus_search says so. Its result has status: "no_strong_match", and the hits still come back as weak leads. corpus_compare and corpus_explore return that status with no approaches or options.
All seven agents are told to say when the corpus holds no evidence, instead of filling the gap from memory. Four of them, corpus-miner, design-explorer, precedent-reviewer and prior-art-researcher, also know the no_strong_match status: they report it as an answer, and any hits behind it as weak leads.
The line is calibrated on your index. The engine runs ten fixed questions that no code corpus answers and moves the line by how high their best matches score on your repos. With fewer than five usable probes it keeps the default, 0.8298.
The status can be wrong in both directions. A small index sets a lower line, so a weak query can come back ok (Limits). A question that the index does answer can also come back as no_strong_match. Read the hits as leads and check them.
What leaves my machine?
Section titled “What leaves my machine?”A search or a read sends your query to nobody: both run on your machine. The engine contacts the network in four situations only:
| When | It contacts | It sends |
|---|---|---|
corpus stars and corpus index |
api.github.com |
The login whose stars you list, the repo names it labels, and your token when you set one. The token goes to api.github.com only: a redirect to another host is refused. |
corpus index and corpus demo |
github.com |
git clone, git fetch and git ls-remote --tags for the repos in your file, with the credentials your own git supplies, if any. The engine does not check whether a repo is public. |
| The first time a model is needed | huggingface.co, which redirects the file to a CDN host |
A request for the embedding model, and later for the reranker. On our test network the file came from us.aws.cdn.hf.co. A firewall allow-list needs the host your own download comes from, so try one download to check. |
corpus bench --tool sourcegraph, searchcode or github |
sourcegraph.com, api.searchcode.com or api.githubcopilot.com |
The benchmark queries. With --tool github it also sends your GH_TOKEN or GITHUB_TOKEN as a bearer header. Only the benchmark command does this. |
Starting the engine through uvx, as the plugins do, makes uv ask pypi.org when uv’s own cache is stale. That request comes from uv.
A search of the engine’s python/, crates/ and src/ folders for telemetry, analytics and crash-reporting libraries finds
none. There is no account to create and nothing that reports your queries.
Does it work offline?
Section titled “Does it work offline?”Once the embedding model is on your disk, corpus search and corpus serve need no network. The reranker is a second download of about 150 MB that only the deep search uses. With it on disk, deep search needs no network either. This holds for the installed command: after uv tool install engineering-corpus, run corpus. A start through uvx is different. The plugins start the server and run their prompt hook that way, and uv asks pypi.org when its own cache is stale, so that start fails offline. It works offline right after an online run. The engine checks for no updates on its own.
corpus stars and corpus index need the network: they call GitHub’s API and clone and fetch your repos. Running corpus index again is also how an index is brought up to date (How do I update the index?).
Your coding agent is separate. Its model runs wherever it runs, and your agent hands it the tool results (Do tool results reach my agent’s model provider?).
Do tool results reach my agent’s model provider?
Section titled “Do tool results reach my agent’s model provider?”Yes. The engine answers your agent on your machine, and your agent puts the answer into the text it sends to its model. If that model is hosted, its provider receives every tool result your agent reads, and the queries the model writes.
A result holds repo names, file paths, line numbers, permalinks and license verdicts. For a file under class P, B, W or C it also holds code: a snippet, or the text of corpus_read. For classes R and U those fields are null, so no code from such a file is in a result. corpus_repos lists the repos you indexed, so the provider can read that list too. The text a plugin hook prints reaches the model the same way (agent pack).
Which provider that is depends on your agent and its settings. The engine does not choose it and cannot see it. With a local model, the text stays on your machine. If your queries would give away something confidential, read your provider’s data terms before you use the tools, or use a local model.
Does it index private repos?
Section titled “Does it index private repos?”Only if you list one yourself. The engine does not check whether a repo is private on GitHub. It skips a repo only when your slice file says private = true, and corpus stars leaves your private stars out of the file it writes. A private repo that you add by hand is cloned with your own git credentials, if they can read it, and indexed like any other. List public repos only.
The engine accepts only https://github.com/<owner>/<repo> addresses. It never calls an organization API, so it cannot tell where you work. You name the organizations to leave out with --exclude-owner.
Index your stars shows how.
Can I index repos I did not star?
Section titled “Can I index repos I did not star?”Yes. Add a [[repos]] entry to your slice config with the repo’s github.com URL as url and its branch as
default_branch, then run corpus index. The configuration reference lists the keys. Other hosts
such as GitLab are not accepted.
How do I update the index?
Section titled “How do I update the index?”Run corpus index again with the same file. The engine fetches the newest commit of each repo’s branch, and it embeds again
only the chunks whose text changed. A chunk keeps its vector while its text and the embedding model stay the same. A repo
with a commit key in the file stays at that commit. The engine also reads each repo’s files again on every run, even when the commit has not changed, so a change in which files it keeps or what it calls them applies on the next corpus index, without --rebuild.
How do I remove a repo, or everything?
Section titled “How do I remove a repo, or everything?”Run corpus remove github.com/owner/name for one repo. Run corpus index --prune to remove every registered repo that your
file no longer lists. To remove everything, delete the data folder. The configuration reference says
where it is, and where corpus demo keeps its own index.
How long does the first index take?
Section titled “How long does the first index take?”The time grows with the number of chunks, and a chunk is a window of up to 60 lines of one file. On the 16 GB Apple M2 Mac, which indexes on the CPU, 85 chunks took 51 seconds and 5,448 chunks took 69 minutes.
For a repo of more than 500 chunks, plan on about 1.27 chunks a second: 1,000 chunks take about 13 minutes, and 10,000 chunks take about 2.2 hours. The 10,000 figure is calculated from that rate; no repo of that size was timed on this engine. About 90% of the time goes to the embedding model, which is an estimate.
These repos were indexed one at a time, each into a clean data folder:
| Repo | Chunks | Time | Chunks a second |
|---|---|---|---|
pallets/itsdangerous |
85 | 51 s | 1.67 |
microsoft/markitdown |
583 | 6 min 50 s | 1.42 |
fmtlib/fmt |
1,122 | 15 min 15 s | 1.23 |
harry0703/MoneyPrinterTurbo |
2,298 | 33 min 10 s | 1.15 |
rtk-ai/rtk |
5,448 | 69 min 7 s | 1.31 |
Together the five repos took 2 hours 5 minutes. Chunks a second ranged from 1.15 to 1.67. Counted in tokens, every run processed 760 to 856 a second, so a repo with longer chunks gives fewer chunks a second.
The times start once the repo is cloned, the model is on disk and the disk cache is warm, and they include the fetch, the secret scan, the chunking, the embedding and the store write. A first run also downloads the embedding model, about 600 MB, and clones each repo, and neither time is counted, so read the times as a lower bound. The Mac was busy: its load average was 7 to 8, mostly the run itself. Memory peaked between 1,157 and 1,588 MB across the runs. Your machine will differ: time the first repo you index and compare it with the rows of a similar size.
The command prints one line when a repo starts and one when it ends, and nothing in between, so the repo of 5,448 chunks printed nothing for 69 minutes. If you stop the command, the repos that finished stay indexed, and the repo that was running starts again from its first chunk, because its vectors are stored when it finishes. A laptop that goes to sleep pauses the run. On macOS, caffeinate -i -s in front of the command keeps the Mac awake while it is plugged in.
Start with the five repos you would consult for today’s task. Every repo in the file is cloned and embedded, so each one you add lengthens the first run. Index again later shows that a second run embeds only what changed.
How much disk and memory does it use?
Section titled “How much disk and memory does it use?”- The embedding model is about 600 MB to download and takes 572 MB in the data folder’s
models/. - The reranker is about 150 MB and uses about 1.4 GB of memory. It downloads on the first deep search.
- An index of four small repos (the demo’s two and two more) takes 3.9 MB, and their clones take 584 KB.
The index grows with the repos you add. Index your stars shows the folder and its sizes. Each re-index
leaves the rows it replaced in an old version of the table, so at the end of every corpus index run the engine removes the
versions older than seven days. The newest version always stays. When it removes any, it prints
removed N old index versions, freed M MB, with version when N is 1. The week is there for a server that is still reading
the folder, because a reader loses an old version when it is removed.
Which platforms does it run on?
Section titled “Which platforms does it run on?”The release builds wheels for Linux on x86_64 and aarch64 (glibc 2.28 or newer), macOS on Apple silicon, and Windows on
x64. It needs Python 3.11 or newer; if yours is older, add --python 3.12 after uvx and uv fetches one. The other platforms have no wheel.
Why this embedding model, and was it measured?
Section titled “Why this embedding model, and was it measured?”The engine embeds with granite-embedding-english-r2 through a pinned ONNX export, on the CPU. We picked it on 2026-11-01 in our own bake-off against other small models, among them CodeRankEmbed and Qwen3-Embedding-0.6B, with jina-embeddings-v2-base-code as the baseline.
Granite ranked first on the labels that language models graded, with the keyword list fused in.
We designed that bake-off and chose its queries, and its results table is not published. The scripts are in bakeoff/ in the repo. How the benchmark works describes the same kind of judging. Two newer models, EmbeddingGemma 2 and NightJar-CodeSearch, were not part of it.
Does anything move to a paid tier when a hosted version ships?
Section titled “Does anything move to a paid tier when a hosted version ships?”No. Everything of ours that runs on your machine stays MIT and free: the engine, the agents and every tool. No feature moves to a paid tier. A hosted version is planned and not built (roadmap). It would charge only for the hosting, so you run nothing yourself, and for a large index that is already built.
Why does a hit show a location and no code?
Section titled “Why does a hit show a location and no code?”The file’s license class decides. A file under a permissive license, a permissive one with branding terms, a weak copyleft license or a copyleft license (classes P, B, W and C) returns a snippet with its license notice. A file under a restricted or unknown license (R and U) returns only where it lives, with a permalink. Every verdict is a reading of the license text and is not legal advice. The license policy explains the classes and the opt-out route.
Is it plagiarism to learn from other people’s code?
Section titled “Is it plagiarism to learn from other people’s code?”Whether you may copy code depends on the license of the file it comes from. The engine shows that license class on every hit, with an automated verdict. The verdicts are not legal advice.
Every agent report ends with a receipt for each source: the repo, the 40 character commit, the lines, the license class, and either pattern only or copied with notice. The seven agents default to pattern only, which means you take the idea and write your own text. An agent writes copied with notice only when it tells you to paste lines, or when you already did. Files under restricted or unknown licenses (classes R and U) come back as a location only.
Anyone can ask for a repo to be left out, with no proof of ownership. Each request is handled within 72 hours (license policy).
Can I search for the files that steer coding agents?
Section titled “Can I search for the files that steer coding agents?”Yes. Ask corpus_search for kind agent-instructions and it returns only those files: skills (SKILL.md), AGENTS.md, CLAUDE.md, GEMINI.md, prompt and instruction files such as review.prompt.md and ts.instructions.md, everything inside the folders of Claude Code, Codex, Cursor and similar tools (.claude/, .codex/, .cursor/, .windsurf/, .roo/, .kiro/, .gemini/), and the Markdown and text files in folders named agents, subagents, commands or prompts. Each hit comes with a permalink at the pinned commit and the license of the file, like any other hit. Use it to see how a project tells an agent to review a pull request, or how it writes a skill.
The engine decides from the path alone. The folders named agents, commands and prompts count only outside test, docs and eval folders, so a page about agents under docs/ is not an agent file, even when a folder on its path is named agents. A file with an agent name or inside a tool folder counts wherever it sits: docs/CLAUDE.md is one. A prompt kept under another name is not found by this kind; an ordinary search finds it. A repo you indexed before this version holds no such tags: run corpus index once, without --rebuild, and it writes them in seconds for each repo.
If you serve with --agent-files exclude, these files are hidden, also when a search asks for them by kind. That search answers no_hits at once, without searching, and notice says why: the server hides these files, and starting it with --agent-files warn or include makes them searchable. With warn, every hit carries the warning that the file is written to steer agents. Text in these files is untrusted like any other corpus text (security model).
Can text in the corpus give my agent instructions?
Section titled “Can text in the corpus give my agent instructions?”No. Corpus text is evidence, and your agent treats it as untrusted. The engine shows invisible Unicode as markers, masks secrets, and runs a read-only server. The security model shows each protection with a real run.