Skip to content

Glossary

The docs and the tools use one name for each term. An entry is short and links to the page that explains the term in full.

The code the server can search: the repos you indexed, each at one commit. Your index is what corpus index builds from them in your data folder, and the server reads it. The command line is corpus, and the tools are named corpus_search, corpus_read and so on. Index your stars shows how to build your own.

The name the engine gives a repo: github.com/<owner>/<name>, all in lowercase, such as github.com/pallets/itsdangerous. An owner has at most 39 characters and a name at most 100. Every tool that takes a repo wants this form. Any other form is refused with invalid repo id and, when the engine can read what you meant, a guess at the right id. The tools reference lists the rules, and troubleshooting shows the error.

To fix something to one commit. The commit key of a slice config pins a repo: the engine indexes that 40-character commit SHA instead of the tip of the branch. A repo without the key is indexed at the tip of its default_branch. Either way, every hit carries the commit that was indexed, and its permalink is pinned to it, so the link shows the lines the engine read. Configuration lists the keys, and Getting started shows a pinned permalink in a real result.

One entry in the result of a search: the best chunk of one file, with its repo, path, line range, permalink and license class. The result explains each class among its hits in one sentence, in licence_verdicts. A chunk is the piece of a file that the engine cuts out and embeds. A search lists its hits best first, one per file. The tools reference has the fields.

The lines of a hit, in its snippet field. A file of class P, B, W or C gives its lines, and a file of class R or U gives null. In a corpus_search result the snippet is a window of the matching chunk, at most 40 lines for the first ten hits and 15 for the others, and start_line, end_line and the permalink are the lines shown. snippet_truncated is true when the snippet shows fewer lines than the chunk: a window of it, or a cut at 4,000 characters. corpus_read opens the lines around it. The tools reference lists the field. The agent pack uses the word for something else too: code you paste into a prompt, which its provenance-guard agent traces to a source. The agent pack and hooks covers that.

A value of status. The search found hits, yet the best similarity among its candidates is below the line the engine sets for your index, so none of them is close to your query. Treat the hits as weak leads. The score of a hit says little here, because the status rests on the similarity.

The line follows your index. It starts from 0.8298, the value measured on the benchmark’s 12-repo index. On the first search after the engine starts, and on the first search after corpus add or corpus remove changes the index, the engine embeds ten fixed questions that no code corpus answers and takes the median (the middle value) of their best similarities on your index. The line is 0.8298 plus the distance of that median from 0.79595, its value on the benchmark index, and it stays between 0.7798 and 0.9098. It is 0.8298 for an empty index, and when the engine cannot measure it. The measurement costs about a second. On the project’s 14-repo index, a different set of repos, the line came to 0.8528 when measured on 12 November 2026. corpus_status does not show it.

corpus_compare and corpus_explore use the line for the whole answer: when even the best repo is below it, they return this status with no approaches or options. A repo joins the comparison when its best chunk reaches 0.8298, a value that does not follow the index, or the line itself when the line is lower. Rewrite the query with the names or behavior you expect in the code, in English. Troubleshooting shows a real answer.

The last block of every agent report. It has one line for each source the report cites, and No sources cited. when there is none. A line gives the repo and the commit, the cited lines, the license class with its SPDX name, and one of two uses: pattern only, which means your code takes the idea and writes its own text, or copied with notice, which means lines of the source are or will be in your code and the line adds the notice to keep. A source of class R or U is always pattern only. The agent pack shows the form.

Verdicts are automated. They are not legal advice.

The letter the engine gives every file, from six:

Class Means You get
P Permissive the lines
B Permissive with branding terms the lines
W Weak copyleft the lines
C Copyleft the lines
R Restricted: source-available or non-commercial terms the location
U Unknown or missing the location

A class names a family of licenses. It does not read your project or your use, and it is not legal advice. The license policy lists the licenses behind each class.

The engine’s automated license decision for one file. It travels with every hit, and with every file corpus_read returns, as the licence object: its class, the spdx expression the engine read and the source of that reading. A result of hits adds one sentence for each class among them, in licence_verdicts, and corpus_read puts that sentence in the object as verdict. The field is spelled licence, as the engine spells it. A verdict is not legal advice: when a decision matters, read the license file yourself at the permalink. What a verdict holds shows three real ones.

What a file of class R or U returns: the repo, path, line range, license and permalink, and no code text, so snippet and text are null. Public on GitHub does not mean free to redistribute, and a repo with no license grants no permission, so your agent can find such a file and send you to read it there. A class added later is location only until someone reviews it. Why some hits give no code explains the rule.

The folder where the engine keeps its clones, index, registry and embedding model. It picks the folder in this order: --data-dir, the ENGINEERING_CORPUS_DATA variable, $XDG_DATA_HOME/engineering-corpus when XDG_DATA_HOME is an absolute path, and ~/.local/share/engineering-corpus. Configuration lists what sits inside.

A TOML file that lists the repos to index, one [[repos]] table each, with a url, a default_branch and optionally a licence and a commit. corpus stars writes one, named stars.toml unless you pass --out, and corpus index reads it, ./slice.toml by default. The key is spelled licence, as the file reads it. Configuration lists every key.

The version of what an index holds on disk: its tables, columns, full-text terms and the way a chunk’s text is made. The data folder records it in format.json, next to the embedding that made the vectors. This engine writes format 1. When the two differ, the engine stops, leaves your folder as it is and prints what to do: update the package, or run corpus index CONFIG --rebuild. What happens to your index walks through each case.

Everything the corpus returns: code, comments, READMEs, names. Strangers wrote it, and some of it is hostile on purpose. The engine treats it as evidence and never as instructions to your agent. Each result that holds corpus text carries a notice that says so, invisible characters appear as markers such as <U+200B>, secrets are masked, and the server only reads. A notice is advice a model can ignore, and the masking cannot catch every secret, so the protection has limits. The security model says where they are.