Capability index
How to find a kit owner by keyword with the recohut-kit command and the capability_index Python API, and what each index field means.
The kit has more than two hundred top-level owners, and reading a package list does not tell you which one does a job. The capability index is a generated file that ships inside the package. It answers lookups such as "which owner handles approvals" and "which extra does this owner need". It uses only the standard library, so you can query it without installing any optional SDK.
Use the index to find an owner. Use the golden path to decide whether that owner is the recommended start.
Search from the command line
If you know you need approvals but do not know a package name, start with the job, not the import. The capability index is a lookup from a problem to the owner that implements it.
The recohut-kit console script has a capabilities command.
recohut-kit capabilities approval
recohut-kit capabilities approval --limit 5
recohut-kit capabilities --owner harness
recohut-kit capabilities --owner harness --json| Argument | Effect |
|---|---|
query (positional, optional) | Case-insensitive keywords. An empty query lists owners alphabetically |
--owner NAME | Show exactly one owner. An unknown owner is an error (Unknown owner: NAME) |
--limit N | Maximum rows, default 20 |
--json | Print full entries as JSON with sorted keys, instead of the compact table |
The compact table has six columns. This is the real output shape for recohut-kit capabilities approval --limit 5, abbreviated to three rows:
owner import extras tests example sets docs
bounded_agents recohut_kit.bounded_agents codex,curation,fastapi,ollama 15 agent-evaluation-framework,agent-targets-parity,bounded-agents+ 12
harness recohut_kit.harness agentcore,bedrock,codex,fastapi 240 acting-identity,agent-workspace,agentcore+ 11
content recohut_kit.content - 3 coaching-marketing-content 1A trailing + on the example sets column means more sets exist than the three shown. A - means none.
Search from Python
The same index is available as a module with three functions.
from recohut_kit import capability_index
hits = capability_index.search("approval", limit=5)
for entry in hits:
print(entry["owner"], entry["import_path"], entry["extras"])
harness = capability_index.get("harness") # one entry, or None when not public
print(harness["import_path"], harness["test_count"])
everything = capability_index.load() # owner name -> entry
print(len(everything))| Function | Returns |
|---|---|
search(query, *, limit=20) | A ranked list of entries |
get(owner) | One entry, or None when the owner is not public |
load() | A dictionary of owner name to entry for every public top-level owner |
How search ranks results
search splits the query into lowercase tokens and scores each owner. An exact owner match adds 10. A token inside the owner name adds 5. A token inside the import path or an extra name adds 3. A token inside a public name adds 2. A token inside a "need" description adds 1. Results sort by score, then by owner name, so the same query returns the same order every time.
What an entry contains
Prop
Type
How the index is generated
A script, scripts/build_capability_index.py, builds the index. It reads source files, tests, module docs, the catalog's capability tables and notebook sets as text, and parses Python with ast. It never imports an owner and never executes a notebook.
The output is the same on every run: no timestamps, no absolute paths, no host data. Two modes exist:
python scripts/build_capability_index.py # rewrite the packaged JSON
python scripts/build_capability_index.py --check # exit 1 when the file is staleWhat the fields do and do not mean
Every field is a fact about files in the repository. None of it is a stability, maturity or evidence rating.
| Field | It tells you | It does not tell you |
|---|---|---|
test_count | How many test files import the owner | That the owner is well tested or that the tests pass |
fan_in | How many other owners import it | That it is the right choice for your case |
example_sets | Which notebook sets use it | That any set was run, or what it proved |
ledgers | Which verification documents exist | What the documents conclude. Read them |
extras | Extras named by catalog rows | A complete dependency list. Check the owner's docs |
public_names | What the owner exports | Which names are stable |
Search is keyword matching
An empty result means no owner's name, path, extras, public names or needs contain your tokens. It does not mean the kit lacks the capability. Try a synonym, or look at the layer pages.
Pick the next step
- You know the job and want an owner: search by keyword, then read the owner's entry with
--owner NAME --json. - You want the recommended start for a layer: read the golden path.
- You found an owner that needs an extra: check Extension packages for how optional SDKs load.
How is this page?
Last updated on