/horos:horosfrom Horos
Emits and verifies evidence-backed reading boundaries for repositories. Classifies token sinks (generated files, lockfiles, minified bundles) and prints skeleton maps of Python, TypeScript, Go, C++, Solidity, and Markdown to reduce agent reading costs.
Ships in Horos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
From horos, the boundary stone. Horos decides what an agent does not read, and proves the decision instead of asserting it.
Horos owns the reading boundary: which files in a repository an agent leaves unread by default, each exclusion carrying the evidence that earned it. Later siblings may use that boundary for oriented reading, but it is disabled during security review and does not narrow Warden, the Pashov suite, Phylax, or Elenchus while they investigate risk or a failure. Its version, held frontier, next job, and maturity state live in EVOLUTION.md.
A Synkrisis finding may suggest a Horos review when validated observations repeat. The finding does not write or widen a reading boundary; Horos still checks the repository evidence before changing one.
Current frontier. The v9.2.3 reopening's third and last job is done: map reads Markdown through a per-language extractor, held against markdown-it-py over all 900 tracked Markdown files of this repository with 9,527 of 9,527 headings and 1,130 of 1,130 fenced code blocks matched, zero misses, zero extras and zero crashes. Every filetype above 1% of this tree's readable bytes is now mapped or is a data format with no declarations to outline, so the frontier closes mature.
All three live in one standard-library script, scripts/horos.py:
python3 scripts/horos.py scan <root> --write
walks the tree and commits .horos/boundary.json: every file it can
evidence as a token sink, with its category, size and the exact evidence
line that earned the entry. The write is atomic; a killed run leaves the old
boundary or the new one, never half. --json prints the same canonical
bytes instead of writing them.
python3 scripts/horos.py check <path>
re-derives the classification and compares it with the committed boundary. Exit 0 means the boundary matches the tree. Drift names every path, in both directions: a new sink the boundary lacks, and a committed entry the tree no longer evidences.
<path> may be the repository root or any directory inside it. For a
descendant, Horos walks upward to the nearest .horos/boundary.json, stops at
the worktree root git reports, classifies only that subtree, and compares it
with the matching slice of the committed boundary:
boundary root: /path/to/repo
scope: plugins/alexandria
hard boundary: matches
candidates: 12 findings, advisory
outside-scope drift: not evaluated
counters: classified 210, listed outside scope 3, attribute files above scope 0
Exit 1 means hard drift inside the scope, and every drifted path is named.
Exit 2 means no usable ancestor boundary, or a path that resolves out of the
worktree. Candidate drift never changes a scoped check's exit code. At the
root, candidate classification or content drift at the same file count remains
advisory, but every raw canonical boundary count binds; adding or removing a
tracked candidate therefore drifts files_walked. A scoped pass is not a
whole-repository pass, which is why the output says so in those words: the
release-time answer is still check at the root. The walk begins at the
boundary root even for a scope, because a .gitattributes above the scope
decides how the files inside it classify; those reads are counted rather than
hidden, and nothing outside the scope is stat'd, read or classified.
python3 scripts/horos.py scan <root> --census [--write]
prints one row per filetype: files, bytes, share of the tree, and the bytes
already inside the boundary, from exactly the walk the boundary uses. With
--write it commits .horos/census.json beside the boundary. The census
is how walk-worthiness and the next extractor get decided from a record
rather than a guess: a tree whose readable weight sits in mapped languages
needs nothing new, and one whose weight sits in an unmapped filetype names
the candidate.
python3 scripts/horos.py map <file>
prints the file's skeleton so it can be oriented in without being read
whole. Extractors live one folder per language under
scripts/languages/ and a suffix registry dispatches
between them; an unregistered suffix is refused naming the supported list.
Python (.py) parses through the standard library's own ast. TypeScript
(.ts, .tsx), Go (.go), C++ (.cpp, .h, .hpp, .cc, .cxx),
Solidity (.sol) and Markdown (.md) are lexed, never parsed:
declarations are quoted as verbatim source slices (grouped Go declarations
one line per member, C++ template prefixes and Solidity inheritance lists
and attribute chains riding along; a Markdown declaration is a heading or a
fenced code block, read by CommonMark's block rules and never its inline
ones), and every region the recognisers do not understand is confessed by
count and line range instead of guessed at. No path imports or executes
what it reads.
The TypeScript extractor exists by revision of a recorded refusal. Parsing
TypeScript or taking a parser dependency was refused on 2026-08-18 and
stays refused; the maintainer directed the design that needs neither, and
it was held against the real compiler before shipping: across all 866
hand-written TypeScript files of a live repository, 2,237 of 2,239
compiler-visible declarations matched, with zero misses outside the
outliner's own confessions, zero extras and zero crashes. The recorded run
lives at
../../docs/evidence/wildcat-app-v2-outline.md.
The Go extractor was held against tree-sitter's Go grammar over all 1,421
files of go-ethereum: 21,648 of 21,648 declarations matched, zero misses,
zero extras, zero crashes, recorded at
../../docs/evidence/go-ethereum-outline.md.
The C++ extractor was held against tree-sitter's C++ grammar over all 842
files of the Solidity compiler: 7,013 of 7,013 declarations matched at
declared altitudes with zero crashes anywhere, recorded at
../../docs/evidence/solidity-outline.md.
The Solidity extractor was held against tree-sitter's Solidity grammar over
all 151 files of v2-protocol: 2,329 of 2,329 declarations matched with zero
confessions and every file oracle-parsed, recorded at
../../docs/evidence/v2-protocol-outline.md.
The Markdown extractor was held against markdown-it-py in its CommonMark
preset over all 900 tracked .md files of this repository: 9,527 of 9,527
headings and 1,130 of 1,130 fenced code blocks matched at declared
altitudes, zero misses, zero extras and zero crashes, recorded at
../../docs/evidence/skills-markdown-outline.md.
Front matter is named by line range and outlined inside on neither side, and
a fence that never closes is confessed rather than invented.
.horos/boundary.json. If it exists, run
check before trusting it; a stale or forged boundary fails by name. If
it does not exist and the repository is large, offer a scan. Entering one
directory of a large repository to work in it, run check on that
directory instead: the answer covers the files about to be read, costs a
fraction of the whole tree, and says plainly that it evaluated nothing
outside the scope. Before a release, check the root.map and read the skeleton first. Open the file
whole only when the skeleton was not enough, and mind the confession
line: a large unparsed region means the skeleton understates the file.boundary.json and binds; candidates (a name, a convention or geometry
alone) live in
.horos/candidates.json as an advisory report a maintainer can promote
to a repository-specific rule. Scans of git repositories cover tracked
files by default, so local build products never contaminate a committed
boundary; --include-untracked widens the universe deliberately. A
directory entry, binding or advisory, has to cover at least one file in
that universe: one holding nothing tracked excludes no bytes a reader would
have reached, and emitting it would make the same check answer differently
on two machines. A checked-out worktree stays outside either report on the
same rule, even where nothing ignores the directory holding it: its files
belong to another checkout's index, never to this one's.
Where git cannot answer at all, the fail-open position stands and the entry
is kept.
The content-addressed rule is the one rule whose evidence a repository
cannot write: it reads a whole file, chunked, and only for a path already
shaped as blobs/<algorithm>/<digest> or
objects/<algorithm>/<shard>/<digest> under sha1, sha256, sha384 or
sha512. It runs before the other rules because a matching digest is
evidence no other reading can overturn, and it refuses git's own object
store, uppercase or wrong-width names and deeper shards; the comments
above CONTENT_ADDRESSED_ALGORITHMS in
scripts/horos.py carry the reasons.scan --write prints to that repository's
AGENTS.md or CLAUDE.md. Agent harnesses load those files at session
start, so the discipline travels with the repository; without the
stanza, the boundary binds only agents carrying this skill.No reading boundary applies during security review. A committed boundary in a
hostile repository could list source files as sinks precisely so a reviewing
agent never opens them. During any audit, review or incident work, read as if
no boundary exists. check re-derives everything it asserts for the same
reason.
../../examples/fixture/ holds one file per rule
class and its committed boundary; ../../examples/README.md
shows the demo commands and the mutation that makes check fail.
scan --write records every tracked path that the current hard rules classify as a token sink, with category, byte count and the evidence that earned the entry..horos/boundary.json bytes and atomic write result.check establishes that the committed hard boundary equals the current re-derived classification for the stated root or subtree.scan --write for an authorised update and check the intended root again.scan --census counts the files and bytes by suffix from the same walk as the boundary and records how many bytes already sit inside it..horos/census.json bytes.map emits the supported source file's recognised declaration skeleton and explicitly counts every region the extractor did not understand.DEMONSTRATION.md (opens in a new tab)EVOLUTION.md (opens in a new tab)scripts/horos.py (opens in a new tab)scripts/languages/__init__.py (opens in a new tab)scripts/languages/cpp/__init__.py (opens in a new tab)scripts/languages/cpp/cpp.py (opens in a new tab)scripts/languages/go/__init__.py (opens in a new tab)scripts/languages/go/go.py (opens in a new tab)scripts/languages/markdown/__init__.py (opens in a new tab)scripts/languages/markdown/markdown.py (opens in a new tab)scripts/languages/python/__init__.py (opens in a new tab)scripts/languages/python/python.py (opens in a new tab)scripts/languages/solidity/__init__.py (opens in a new tab)scripts/languages/solidity/solidity.py (opens in a new tab)scripts/languages/typescript/__init__.py (opens in a new tab)scripts/languages/typescript/typescript.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wildcat-finance/skills --plugin horosOther plugins' skills for the same job