Skip to main content
Glama
README.md
# Verinoda Symbiosis

> **Verinoda + Claude Code, together.** This repository is [Verinoda](https://github.com/ozcinax-star/verinoda) with **verinoda-live**, a Claude Code mod that keeps the index fresh while Claude edits, can nudge the agent to use it (measured: the same facts; fewer tokens on small corpora, 14 % more input tokens on real repositories), reviews commits, and shows it all in a pane with an animated mascot. Start with [SYMBIOSIS.md](SYMBIOSIS.md); the mod is [claude-mods/verinoda-live](claude-mods/verinoda-live). Everything below is Verinoda's own README.

## Verinoda

[![PyPI](https://img.shields.io/pypi/v/verinoda)](https://pypi.org/project/verinoda/)
[![npm](https://img.shields.io/npm/v/verinoda)](https://www.npmjs.com/package/verinoda)
[![Python](https://img.shields.io/pypi/pyversions/verinoda)](https://pypi.org/project/verinoda/)
[![CI](https://github.com/ozcinax-star/verinoda/actions/workflows/ci.yml/badge.svg)](https://github.com/ozcinax-star/verinoda/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)

> **Durum / Status: BETA.**
> Verinoda beta aşamasındadır: çekirdek komutlar (`scan`, `update`, `query`, `analyze`, `trace`, `check`,
> `review`) ve MCP çekirdek araçları kullanıma hazırdır; `docs/DESIGN.md`'de "partial" olarak işaretli
> özellikler deneyseldir ve değişebilir. Cevaplar kanıt satırlarıyla verilir, ama yanlış olabilir: kritik
> kararlarda kanıtı kendiniz okuyun. Hiçbir doğruluk, güvenlik ya da uygunluk garantisi verilmez.
> Verinoda is in beta: the core commands (`scan`, `update`, `query`, `analyze`, `trace`, `check`, `review`)
> and the core MCP tools are ready for use; features marked "partial" in `docs/DESIGN.md` are experimental and
> may change. Answers come with their evidence lines but can be wrong: read the evidence yourself before a
> critical decision. No warranty or guarantee of correctness, security or fitness for any purpose is given
> (Apache-2.0 "AS IS" terms in `LICENSE`). Performance claims are published only with their measurement
> (model, version, date, raw logs).
> Published: 0.4.0 (beta) on [PyPI](https://pypi.org/project/verinoda/) and
> [npm](https://www.npmjs.com/package/verinoda) (2026-10-01; 0.3.0 and 0.3.2 on 2026-09-27, 0.1.0 and 0.2.0 on
> 2026-09-26). Formerly developed under the working name "RepoAtlas".

### What is in this snapshot (2026-10-01)

| Part | State |
|---|---|
| Release | 0.4.0 (beta), 2026-10-01: `pip` / `pipx` / `uv tool install verinoda`, `npx verinoda`; 0.4.0 brings D60-D136: a smaller MCP menu with a gateway and the Grep hook (D60-D62), running a project's own tests safely (D63), faster scans and fewer false calls (D65, D66), and the competitor backlog's first 65 items - code health, dead code, cycles, clones, hotspots, temporal coupling and ownership; breaking API changes, differential findings, risk scores, suggested reviewers and SARIF in and out; architecture rules as code, a violation baseline, decision lifecycles and what a merge made stale; the test-to-code map, affected tests and projects, flaky history, coverage import, property test templates and bisect over debug attempts; tours, named maps, Mermaid and graph exports, a project brief and a ranked repo map; structural search, typed notes, memory history, bi-temporal claims and background consolidation; Sentry and OpenTelemetry trace import, IaC nodes and spec checks; and Minecraft mod checks (lang keys, access wideners, undeclared symbols, client/server separation, pack collisions, shaderpacks). The atlas.db schema goes from v6 to v9 on the first command (docs/UPGRADING.md). 0.3.2 (the tag v0.3.1 published nothing: its workflow file did not parse): a release build names its commit in `verinoda --version`, less noise in an answer and a 100x faster history view (D58), settings read by a string key for config questions (D59). 0.3.0 added Minecraft mod and JVM analysis (`when`, Mixin edges, GameTests, backlog links, Java access checks, datapacks, `trace-log`, shaders: D47-D54), English questions over Turkish-named code (D55), shorter analyses and Java overloads (D56, D57); run `verinoda scan .` once after upgrading (docs/UPGRADING.md). 0.2.0 added documents and images (D41), a faster update and `update --fast` (D42, D44), and the name check for Java, Kotlin and TypeScript/JavaScript imports (D43, D45, D46); built and published by `.github/workflows/release.yml` (PyPI Trusted Publishing, npm with provenance), [GitHub release v0.3.2](https://github.com/ozcinax-star/verinoda/releases/tag/v0.3.2) |
| Documents and images (`docs/DESIGN.md` D41, 2026-09-26) | PDF, Word, Excel and PowerPoint files in the repository are read as text (a heading per page, sheet, slide or Word heading), become graph nodes and search passages, and are quoted as evidence that can be checked again; on Windows the text in screenshots and diagrams is read with the OCR engine built into Windows (no model, nothing downloaded; textures, icons and small images skipped; `VERINODA_OCR=0` turns it off). `analyze` answers from a PDF page with a verified claim, and the claim goes stale when the PDF changes. Not read: scanned PDFs without a text layer, audio, video |
| Java name check (`verinoda check`, D43, 2026-09-26) | Java files are checked against the project's sources, its classpath and the JDK: imports, types, methods with their number of arguments, fields, constructors and Fabric Mixin targets (`@Inject(method = ...)`, `@Shadow`, `@Accessor`, `@Invoker`). The classpath is read from a Fabric Loom build or set in `code_check.classpath`; the JDK's API from its `ct.sym`. On a real Minecraft 26.2 mod: 126,848 sites, 0 false absents, 2.3% unknown, 4.7 s; 8 of 8 planted invented names caught with the real one as the nearest (`PlayerEntity` -> `Player`). Not checked: Kotlin, argument types |
| Kotlin name check (`verinoda check`, D45, 2026-09-26) | Kotlin files are checked in the same world as Java (the project's Java and Kotlin sources, the classpath, the JDK; Java code now sees the project's Kotlin classes, objects and companions): imports, types, and members and properties on receivers of known type (a Java getter counts for a property). Kotlin keeps more names open, and they stay `unknown`: extensions (the project's, and the libraries' read from their file facades and `@kotlin.Metadata`), smart casts after `is`/`as`/`when` in the same function, Kotlin's built-in types, calls without a receiver, the number of arguments, and anything in a file tree-sitter-kotlin does not parse completely. On kotlinpoet (86 files, 15,090 sites, kotlin-stdlib as the only jar given): the 10 absents are kotlin-reflect's extensions that classpath lacked; 6 of 6 planted names caught |
| TypeScript/JavaScript imports (`verinoda check`, D46, 2026-09-26) | The invented name an agent writes most often on the web is an import. Checked: a relative path that names no file, a package not in `node_modules` (`not_installed`), and a name a module does not export - resolved as TypeScript does (extensions and index files, `tsconfig` `baseUrl`/`paths`, a package's `types`, `exports` map and `@types`, `declare module`, `export *` chains, `export =` of a namespace, CommonJS `module.exports`). Where the exports are not all known, `unknown`; a default import is judged only against the project's own files. Calls, members and types are not checked, so such a file stays listed under `not_checked` (exit 4 unless something is absent) - unless `check --checker tsc` (or `auto`) runs the project's own TypeScript compiler, whose errors on the lines in scope become sites (a member `absent`, a call or a type `mismatch`, each citing tsc's version, the tsconfig and the TS code). A sample with 6 planted names (`useEfect`, react-router v6's missing `useHistory`, ...): all caught with the real name nearest; ky (67 files, 594 sites): 0 false absents |
| Minecraft mods and the JVM (D47-D54, 2026-09-26) | `verinoda when Class.method`: the events that lead to a method (tick, server thread, handlers registered by reference or lambda, Mixin injections, `#minecraft:tick`) and the conditions around each call on the way; Mixin handlers are `injects` edges; the registered GameTests that reach a change are listed by impact and review; `verinoda backlog` links backlog items and the comments that cite them; the Java check flags members out of reach and constructors no argument list fits, `verinoda api` reads Java classes; `.mcfunction` files are in the graph (`verinoda datapack`: tags checked but never added, objectives never read, calls to missing functions); `verinoda trace-log` maps a log's stack traces and GameTest results onto the code; `verinoda shader` links GLSL uniform blocks and the Java that fills them |
| English questions over Turkish-named code (D55, 2026-09-26) | a symbol's doc comment is its own search text; the Turkish-English seed dictionary is read backwards for code tokens (on a 30-question mixed set of a Turkish-named mod: top-3 8/30 -> 18/30) |
| Answers read as a person would (D56-D59, 2026-09-26/27) | an analysis says the changed files once, without repeated uncertainties (-1.6 % characters, same facts); Java overloads are separate symbols and a call binds to the overload its argument count fits; "how does X work" with one subject is answered by what X calls (an inference), not by unrelated entry-to-storage paths; a storage question gets the paths through its own code; "what breaks if I change X" names X's callers at their call sites; the JSON answer keeps room for the next candidates (JSON facts 253 -> 262 over the nine benchmark sets); context the critique refuted is counted, not printed; a why-answer quotes the section that gives the reason; a config question also finds settings read by a string key and the file line that sets them |
| Faster update (D42, 2026-09-26) | Same graph, faster: Leiden communities in native code by default, graph.json written through json's C encoder, memoised path work; about 12% on Verinoda's own repository with Leiden on both sides (31-38 s -> 27-33 s), more without the old Leiden extra. An update proportional to the change is not done yet |
| `update --fast` (D44, 2026-09-26) | The changed files are taken in at once (search index, lexicon, syntax facts, stale claims) and the graph is rebuilt by a background `verinoda update`: on Verinoda's own repository 3.4 s instead of 27-33 s, and the new function is searchable at once. Until the background build ends no snapshot is recorded, so `query`, `trace`, `map` and the MCP tools keep naming the files the graph is behind on; the graph it then makes is the one a full scan makes (compared node for node and edge for edge: 29,039 nodes, 68,611 edges). The MCP `index_update` takes this path by itself when the last graph build took over 15 s. The graph build itself still reads the whole corpus |
| Graphify port (`verinoda/project_index`, `tests_upstream/`) | done. Upstream suite at port time: 5436 passed / 50 failed, and every failure also fails on unmodified upstream on the same Windows machine; not re-run since (`docs/UPSTREAM.md`) |
| Core: claims, evidence, critique, experiments, research/compare, feedback, memory, installers, MCP server (44 tools; several projects from one process, stdio or HTTP) | implemented |
| Repository groups (`verinoda group`, backlog 1.6, 2026-10-02) | Calls from one repository into another as links with both locators, computed from the members' own indexes. On `fastapi/full-stack-fastapi-template` calling `fastapi/sqlmodel` (175 and 339 indexed files): 58 links, all `statically_verified` on re-read lines, 7 calls left unlinked (names sqlmodel re-exports from SQLAlchemy, which no member defines), 0 ambiguous; `group link` in 1.1-1.9 s (docs/drafts/1.6.md) |
| Language servers (`verinoda lsp`, `resolve-call --lsp`, backlog 2.1, 2026-10-02) | Opt-in, CLI only, trusted projects only (a server runs third-party code over the project). A small stdio LSP client asks the installed server of the file's language (`lsp.servers` in the config, else `typescript-language-server`, `jdtls`, `gopls`, `pyright-langserver`, `rust-analyzer` or `clangd` on PATH) for definitions, references, hover, call and type hierarchy and implementations; `lsp verify` checks the graph's call edges against it and records each as a relation claim: the definition the server gives is the edge's target -> `statically_verified`, with the server's name and version in the `static_resolution` evidence; another definition -> `contradicted`, both locations named. Tested only against a fake server written for the tests (no real language server was installed on the test machine); with it, a question costs about 0.4 ms in the client and a start 0.25 s (docs/drafts/2.1.md) |
| Pinned regression tests (`verinoda pin`, backlog 19.4, 2026-10-02) | Python, opt-in, trusted projects only. Runs the tests that reach one function in a throw-away copy, records each call's inputs and its result or exception when every value rebuilds from Python source, writes `tests/pinned/test_pin_<module>__<name>.py` and keeps only the tests that pass again on a replay of that file (an input that does not replay the same is dropped and reported). On a copy of the example app 3 of 4 functions pinned (4, 2 and 2 inputs; `place_order` takes a repository object and is skipped with that reason) in about 4 s each; on a copy of Verinoda, 6 of 6 `textnorm` functions pinned (1 to 50 inputs) with the recording run within 4% of a plain run of the same tests. A pin is current behaviour, not a specification (docs/drafts/19.4.md) |
| Round 3: search engine, question plans with Turkish support, reference resolver, trust engine (anchors, entailment, facet-level staleness), runtime observation, precise call resolution | implemented and wired into the CLI, MCP and `analyze`; gaps per decision in `docs/DESIGN.md` ("Implementation status") |
| Product test suite | 3,881 passed, 27 failed, 6 skipped, 2 deselected at 8868179 (before D134-D136), Windows 11 / Python 3.13, 2026-10-01: 26 failures are installer and setup tests that depend on this machine's environment (they fail the same way on every recent run), one was a test of the MCP review's key order, fixed since; D134-D136 ran their own tests |
| Agent integration | Claude Code (`/verinoda`) and Codex (`$verinoda`) verified in real headless sessions with the earlier skill text (`docs/AGENT-VERIFICATION.md`); the round-3 skill text (understand-first and references protocols) has no such record yet |
| Benchmarks (measured, `docs/BENCHMARKS.md`, chars/4 token estimates, gold facts found in the delivered context; no model in the loop) | Graphify's own code (226 files, 37 facts, in-sample): Verinoda text retrieval 36/37 at 1,424 tokens/question, ~0.14 s; Graphify 7/37. Set on Verinoda's own earlier code (33 facts): 25/33 vs Graphify 8/33 and raw reading 9/33; it was held out until the 2026-09-23 ranking change, which was chosen with it in view (22/33 before). Turkish paraphrases of the example app: 32/32. Regressions: `analyze` on the example app 32 -> 31/32, the one-off scan of the large corpus got slower (6.7 s -> 14.7 s cold), and the 2026-09-23 change adds about 0.03 s per retrieval on the large sets |
| Game mods and data files (2026-09-24) | data packs, JSON/yml configs and other data files indexed; resource-id links between code and data; reference trees; Java calls the extractor drops; translation pairs from locale files. New example set `glow_mod` (a small fictional Fabric mod, 50 facts): Verinoda text retrieval 48/50, JSON 44, analyze 43, against raw reading 33 and Graphify 13; at `32a5bd4` it was 34 / 25 / 18. Held out only for its first measurement (46 / 32 / 25). A second set written afterwards and measured once, `forge_mod` (NeoForge, Java and Kotlin, 68 facts): text 63, JSON 45, analyze 38 (at `32a5bd4`: 43 / 28 / 26), raw reading 36, Graphify 12; after two more review rounds that looked at four of its questions (so in-sample), final official run: 66 / 50 / 42. The five earlier sets against the pre-mod baseline `dogfood-2026-09-23`: `graphify_core` analyze 30 -> 29, `graphify_core_tr` JSON 16 -> 15 and text 25 -> 26, `heldout_repoatlas` JSON 20 -> 21, the rest unchanged (`docs/BENCHMARKS.md`, `benchmarks/results/mods-2026-09-24/final/`) |
| Notes and graph view (`verinoda ui`, 2026-09-24) | a note per symbol, file, section and data file with its code and links, the line each link is written on and editor links; a 3D graph with a panel that says what is in view, follow, a walk through a file's links, regions, a tour and a watch list; a command bar (`Ctrl+K`, English or Turkish); a preview on hover; notes of your own anchored to the code (up to date / code changed / code gone, `verinoda notes`); impact and path; what changed since the index; the answer to a question; local graph per note, global graph at file level, search, file tree; the open page follows the index (`--watch` also runs `update`); a one-file export; a local server that writes only your notes, no external assets. Checked in Chrome on the forge_mod example and on Verinoda's own repository (1,115 files in the global graph); fourteen browser tests drive it in headless Chrome or Edge (skipped without one); measured on Python's standard library as a project (2,305 files, 79,526 notes: *Notes and graph view*) |
| Answer quality (2026-09-25) | `analyze` carries the passages `query` gives (on the seven public sets 204 -> 267 gold facts, query 265); "met" only on claims about the question (met with none of the gold facts in the claims 2 -> 0); an analysis lists the claims that answer first (the handler's findings, the product's code before tests) and the rest as context; 82 more Turkish stems and multi-part questions; `query`/`queries` and `cluster`/`clustered` one token; `update` of Verinoda's own repository 34 -> 27 s, 21 s when the edit leaves the graph as it was (the command, wall clock, quiet machine; an earlier "35 -> 28 s" came from a timing script that left part of the work out); the first question in a git project indexes it; benchmarks can score a final answer written by any command (`--answer-cmd`; no model run yet). A new in-sample set of Turkish user questions about Verinoda scores 11/30: see *Known limitations* (`docs/BENCHMARKS.md`, Update 2026-09-25) |
| Truth rules (`docs/DESIGN.md` D31, 2026-09-25) | Four ways a false sentence reached a verified or "likely" status are closed. Word overlap with the cited lines never verifies (only a verbatim `contains:` quote, which verifies just the quoted text, or a kind's typed check does); a written claim that says more than its check binds (another callee, a condition, a negation, another file) stays unverified. Written claims bind every role (caller and callee in the text's direction, a config text's subject to the name the read is bound to). `claim add` runs the definitive checks at once and prints their scope (no call in the caller's whole body, a setting bound to another name, a reversed order with `--kind order`, a definition the file does not have). A name written as code that the repository does not have is `not_found` with `did_you_mean` in `analyze`, `plan check` and `trace`, never replaced by a similar name. On a copy of the example app the design pass's 9 false sentences went from 2 verified + 2 "likely" after critique to none (3 contradicted when created); three rounds of adversarial review (about 150 probe sentences) found and closed further ways around the rules. The benchmark sets lose no gold fact. In-sample fixtures; no held-out set of false sentences yet. Since 2026-09-26, outside Python a config or relation claim, and a call hop of a flow, is `strong_inference` at most: a pattern finds the environment read and the syntax tree the call, but nothing binds the claim's subject or caller (a TypeScript "jwtSecret is read from DISCOUNT_THRESHOLD" was `statically_verified`). A static resolver's definitive answer (SCIP) still verifies |
| Name check (`verinoda check`, `verinoda api`, D32, 2026-09-25) | Python here; Java since 2026-09-26 (see *Java name check*). Since 2026-09-26 a file in another language (named, under a named directory, changed in the diff, or a snippet's `--as`; a notebook and Cython count too) and a Python file that does not parse are listed under `not_checked` with the reason, never parsed as Python and never counted as checked. Exit 3 stays "something absent or a version differs from the lock"; exit 4 means "nothing absent, but something asked for was not checked", so a CI gate or a hook can tell the two apart. A broad `except Exception` no longer counts as a guard for an attribute, keyword argument or dict key inside it (the site stays `absent`; `swallowed_by` names the handler); it still guards an import. Do the modules, imported names, attributes, keyword arguments and constant dict keys code uses exist in the project's own environment (`.venv`/`venv`/`env` or `--env`)? `absent` only when the container's names are all known (closed world), otherwise `unknown` with the reason; nearest real names and where else the name is defined. Nothing from the checked project is imported or run. Measured after three review rounds: in-sample fixture of 144 generated sites (79 invented, 65 real, runtime oracle) 74 of 74 absent verdicts right and 74 of 79 invented names caught; 0 false absents on Verinoda's own package, Graphify's code, standard-library packages and the reviewers' probe sets (about 20,800 sites) and on click/pluggy/h11/starlette (8,525 sites); `check --diff` of 30 changed lines about 1.2 s in a fresh process. 26-44% of sites stay `unknown` by design. Not done: mod config keys and resource ids, JS/TS |
| Decisions stay human (`verinoda decide`, D33, 2026-09-25) | A "should we / which one / how will this scale" question is `human_decision_required`, never `met`: `decide brief` gathers the code's side (forces with evidence, what is absent with what was searched, decisions on record, options) and at most 5 questions only the user can answer, with no recommendation. The user's explicit choice becomes a Markdown decision record (`decided-by: human`) with guards (`only_in`, `no_edge`, `dependency`, `governs`, `revisit_when`, and since D95 the architecture rules `layers`, `allow_edges` and `public`, whose globs may name `tag:NAME` sets from `[architecture.tags]` in `verinoda.toml`); `decide check` finds code that breaks a recorded decision (exit 1 on VIOLATED, exit 3 when something was not checked, usable in CI; `--changed`/`--base` for new ones only). Since 2026-09-26 a guard that checked no file, edge or manifest is `unknown`, never ok, and every ok says what it counted. The records' folder can be committed: `[decisions] dir = "docs/decisions"` in `verinoda.toml`, `[tool.verinoda.decisions] dir` in `pyproject.toml`, or `--decisions-dir`; a folder named there that does not exist, or a fresh clone with no record but ADR-like files, fails with exit 3 instead of passing. Dependency guards read the workspace packages the root declares (globs matched as npm, yarn and pnpm match them) and Gradle version catalogs. Measured on 54 guard mutations over the example projects: 25/25 VIOLATED right, no VIOLATED on benign code (the old regex exclusivity check: 7 right, 8 false alarms, 6 missed on the same orders_app cases). Honest limit: on questions the rules were not tuned on, a choice question is recognised about half the time (the skills tell the agent to run the brief itself for any choice question); a missed one is judged by the intent it got - at most `met_with_inference` when its words may ask for a choice ("best", "smarter"), and it can still end `met` without such words |
| Debug ledger (`verinoda debug`, D34, 2026-09-25) | Every attempt at fixing one symptom is recorded against one repro command: the tree it ran on, the patch against the base, the failure as exception at `file::symbol`, progress. Definitive loop rules stop the agent (tree or file reverted, the same failure back, no progress, a test edited instead of code, edits the failing test never reaches); heuristic ones warn (error moved, masking, a repeated hypothesis). Strategies run in throw-away copies: the repro at the base with the diff's hunks ranked, a bisect that runs both ends first, reruns for flakiness, a traced run. Verinoda never says "fixed": a session closes only on a pass of the repro command on the current tree. In-sample benchmark of 12 scripted sessions: 11/11 definitive findings right, 8/8 loops caught, 0/4 controls stopped; a review found 25 distinct problems (false "passed", false stops, unverified bisect ends), all fixed with tests. Not measured: a real agent with and without the protocol. Found while debugging a flaky test in a real mod (2026-09-26): a Minecraft GameTest run's failures are now read from its summary ("N required tests failed" and the "- ns:test_id: message" lines under it), not from an exception the server logs while it starts, and a test id is mapped to its test method when exactly one test class and method spell it; `debug close --resolved-by` refuses when the baseline passed and every failing run came after an edit (those failures are the edits' own; show the symptom first, for example with `debug rerun` on the base tree, or close with `--abandoned`) |
| Change review (`verinoda review`, D35, 2026-09-25) | For a diff, a staged change or a planned one (`--target FILE::NAME --change body\|signature\|remove`): the changed definitions (comments and whitespace are not changes), who depends on them with the via-chain, and findings by concern: persistence (a write reached, Python value flow), security (risky operations, removed or weakened guards), performance (IO or queries in loops, hot paths), public API (call sites that no longer fit), config and entry points; which tests reach the change (static, observed, `--run-tests`) and which code no test reaches; a `read_first` list packed to a character budget. Risk findings (security operations, IO in loops) are split against the base: by default only the ones the change introduced are listed, the preexisting and fixed ones under `differential` (`--findings all` lists the preexisting ones too). Measured on labelled fixtures over the example projects: precision 0.92 and recall 62/62 in-sample, precision 0.81 on the held-out set (0.79 on its only clean run, below the 0.8 bar; most false positives are entry points); 67-100% fewer items than the impact view. Unknown stays unknown: "no finding" never means safe |
| Behaviour probe (`verinoda probe`, D36, 2026-09-25) | Python only. For a changed function: inputs from its signature, annotations, call sites and boundary constants, run on the old and the new version in throw-away copies, compared; differences are reported as behaviour changes (not bugs), with the example and an optional pinning test. A side-effect gate refuses functions that write files, open sockets, start processes or keep global state it cannot isolate, and says why. Measured on hand-written fixtures and mutants (in-sample): 22/22 planted regressions and 25/25 mutants found; 5 of 60 behaviour-preserving edits reported, all float rounding marked as such; the gate refused 9 of 9 unsafe functions and none of the safe ones. It says "no difference found in N inputs", never "verified". Since 2026-09-26 an environment variable set while a library module loads (numpy sets `OPENBLAS_MAIN_FREE` when it is imported) is not a side effect, so the functions of a project that uses numpy are no longer all refused; project code that sets one (at import, in a call, or through a library function such as `load_dotenv`) still is |
| Exact names and a fresh index (`docs/DESIGN.md` D37, 2026-09-26) | `trace`, `map --view impact` and MCP `node_inspect` resolve a name the same exact way: a copy of the project that scan detected (or a reference tree) gives way to the original, then definitions in tests, examples, fixtures and vendored folders give way to the product's own, and a helper nested in a function to a module- or class-level one; what is still tied is listed as `ambiguous` (what gave way under `set_aside`) and none is picked, and impact is never computed for a similar name (`...::NoSuchThing` gave 80 affected on the standard library; now it is unresolved, exit 2). `plan check` no longer asks you to choose between a copy and its original, and the receiver-call pass no longer links a copy's calls into the project. One index build runs at a time per project: a second `update` waits and says who is building (no `[WinError 2]`, no `scan --force` hint). `query`, `trace`, `map` and the MCP read tools say "N file(s) changed since the index" with the list; a name only a changed file spells is "not in the index yet", never a similar name. `analyze` does not charge the refresh to its budget and, on a big project where the refresh would be slow, answers from the previous index and names the stale files (the MCP server then updates in the background). The eight benchmark sets find the same facts per question as before |
| Token cost (`docs/BENCHMARKS.md`, "token wins", 2026-09-26) | What a model reads got shorter with no gold fact lost, found or shown, on the eight public sets (86 questions, 319 facts) or on 10 out-of-sample questions (chars/4 tokens). Per question: `analyze` as the skill reads it 3,901 -> 1,873 tokens (-52%: its `--json` before, its text now; 287 facts found, 219 shown), MCP `analyze` 2,832 -> 2,037 with 15 more facts found (287), `query` text 1,313 -> 1,310 with 2 more (285 found, 213 shown); Graphify's two renderers deliver 68-69 found and 8 shown at 1,391-1,480. Per session, before the first question: about 7,330 tokens (the skill ~4,240, the core MCP menu ~2,490 plus ~500 of instructions, `doctor --brief` ~100) against about 20,500 before (the MCP menu of every tool alone ~12,500) and about 11,600-12,000 for Graphify (skill plus MCP menu). Measured on the token-wins branch, when the core profile had eleven tools; `change_review` joined it at the merge and the merged skills are longer, neither measured again. No model in the loop |
| Honest verdicts (D39, 2026-09-26) | `analyze` says `met` only for answers about what was asked. A definition answers only "where is it defined"; "which code uses X" needs code that uses X; "where is X ticked" needs a tick of X itself; claims only from a reference tree, a detected copy or a vendored folder never make it `met`; a callers answer names the call sites the graph did not resolve ("3 call sites unresolved: loop/transport.py:9, ...") and stays `met_with_inference`; a commit line is not a reason; "which X are not listed in Y" is `not_supported`. A verdict only goes down, no claim is dropped. On a public regression set of 17 traps and 22 controls (`verinoda benchmark verdict-audit`, written by the rule author): wrong `met` 9/23 -> 0/23 on dev and 8/16 -> 1/16 on held-out; controls kept 13 -> 12 and 7 -> 7; no benchmark fact lost |
| Cross-platform | tested on Windows 11; CI (Linux, Windows, macOS x Python 3.10/3.12/3.13) runs on every push since 2026-09-25 - its first run found and fixed macOS isolation, macOS path forms in the export and the Python 3.10 call tracer |

**Known limitations** (see also `docs/DESIGN.md` for per-decision gaps):

- A Turkish question about a repository whose code is English but whose UI strings and docs are Turkish (Verinoda itself) finds the Turkish text first: the `verinoda_user_tr` set scores 13/30 (query text and analyze; 11/30 before an English code word in a Turkish question stopped taking the names it merely appears next to, 2026-09-25), against 36/37 on the English `graphify_core`. Each dictionary gloss of a Turkish word still counts as its own search term, which is why adding correct dictionary entries has not helped yet. Two fixes were measured and not kept (`docs/BENCHMARKS.md`, Update 2026-09-25): weighing such words below their translation cost a mod set, where those words are how the data files are found.

- On Windows with Python 3.10 or 3.11, a source file nested thousands of levels deep can crash the extractor: the upstream pipeline raises Python's recursion limit to 10,000, and before Python 3.12 that can exhaust the C stack before a `RecursionError` (found by CI, 2026-09-25; Python 3.12+ and other systems are not affected).

Open findings of the second acceptance audit (2026-09-23 05:00), not yet fixed:

- A project's tests are its own code: they run under process isolation only in a project the user trusts (`verinoda trust`); an untrusted project's tests run in a container (docker/podman) or are refused. Pytest `@file` arguments, `-p` plugins, `-o addopts=`, paths outside the copy or naming an environment variable, and the same in the project's pytest config files are refused. OS confinement without a container is not done yet.
- Running `scan`/`init`/`observe` with the home directory itself as the project is not refused.
- Questions that are only partly about the code can come back `met` with verified but irrelevant claims.
- The reference resolver can still merge or drop references in some multi-reference sentences. Fixed on 2026-09-24: "PR #123 and issue #456 in psf/requests" bound both numbers to the local project's origin remote (an `owner/repo` after a preposition, or before "reposundaki"/"'teki", is now a repository reference when its sentence is about git objects; fractions, protocols, word pairs and folders such as `1/3`, `HTTP/2`, `read/write`, `services/billing` are not); a bare number keeps the origin remote over a repository named in another sentence, and with two repositories in a sentence each number goes to the one written after it. A name right before a version ("fancylib 2.31") is looked up in the project's ecosystems, then PyPI, npm and crates.io, only with `--network on`; by default it stays unbound, common words and units ("took 2.5 seconds", "macOS 14.2") are never package names, and only a clearly written name ("the X package", a name before `v0.3`) makes the result `partial` with a question.
- Fixed after that audit: user `claim add --kind` with unrelated text no longer verifies; `.verinoda/` and `.git/` files are no longer accepted as evidence; `packaging` is now a declared dependency.

Found by running Verinoda on its own repository (2026-09-23), not yet fixed:

- `update` rebuilds the code graph over the whole corpus when a file of the graph or a new code file changed (unchanged files come from the AST cache): about 33 s on a repository of about 2,100 files, about 27 s on Verinoda's own repository (about 1,200 files), 21 s when the edit leaves the graph as it was (34 s before the per-file caches and the kept graph of 2026-09-25, on the same quiet machine; 44 s before each path was resolved once per build, measured under load) and 94 s on Python's standard library copied as a project (2,305 files, 79,526 nodes; measured before that change), so `verinoda ui --watch` trails an edit by that much; edits to other files (data files, documents outside the graph) only refresh the search index. The upstream incremental pass was faster (about 20 s) but lost the cross-file edges of every file it re-extracted, so after an edit a function's imports and calls into other files were missing until the next full scan (fixed 2026-09-24). `analyze` refreshes first without charging it to its 60 s budget; on a project of 300 or more files where the last graph build took over 15 s (or over 200 files changed, or another build is running) it answers from the previous index and names the changed files instead, and the MCP server starts `verinoda update` in the background. Run `verinoda update .` when you want the answer on the new code. Two builds of one project never run at once: the second waits (the CLI up to 10 minutes) or, where it may not wait, does nothing and says who is building.
- A frozen copy of the code inside the repository (here `benchmarks/corpora/heldout_repoatlas_7371990/`) answered self-queries unless it was marked by hand (`verinoda setup . --reference benchmarks/corpora=heldout,snapshot`). Since 2026-09-24 scan and update find such copies themselves and rank them the same way (see *Reference trees*); a copy they cannot tell apart from the original still needs `--reference`. (Fixed on 2026-09-24: command names now map to their handlers, `scan` komutu -> `cmd_scan`.)

Game mods and data files (2026-09-24):

- The kind of resource an id names is taken from a fixed table of command words and JSON keys; an id in plain Java is "kind not stated" (an inference) unless one file carries it. Bare names count only as an argument of an id constructor or of a helper whose name says what it loads.
- The extra call pass covers Java and Kotlin only. Turkish stems that folding merges (`öl` die / `ol` be) are matched as written only in retrieval; the question plan still reads folded words.

- Windows only so far. The POSIX resource limits and the container isolation
  path (docker/podman) are coded but have never been run.
- `experiment`, `observe` and `analyze --run-tests/--observe` run the
  project's own tests. Under process isolation (the default) the command's
  path arguments are confined to a throw-away copy, but the tests themselves
  can read and write outside it and use the network. Only run them on code
  you trust (`experiment run --isolation container` needs docker/podman and
  has not been tried against a real one).
- Test runs and observation are Python/pytest only. They use the project's
  own `.venv`/`venv` when it has one, otherwise Verinoda's interpreter;
  pytest must be installed there, or the run is `inconclusive`. The fast
  tracer needs Python 3.12+ (`sys.monitoring`). The fallback is much slower,
  and child processes are not traced.
- Precise call resolution is optional (`verinoda[precise]`, jedi) and covers
  Python only. Without it, method calls on typed parameters stay
  `strong_inference`. Other languages need a SCIP index that you produce
  yourself (`scan --scip FILE`).
- Turkish questions work but trail English. The Turkish question sets and
  the intent gold table were written by the rule author, so those scores are
  in-sample.
- Staleness of relation claims is tracked at the level of the whole calling
  function, so edits elsewhere in that function can mark a still-true claim
  stale.
- Some reference mismatch codes fire only in narrow cases, PEP 740
  provenance is not used for pinning, and there is no authenticated GitHub
  access.
- No model-in-the-loop measurement exists. Token counts are chars/4
  estimates, and the harness scores whether gold facts are *present* in the
  delivered context, not answer accuracy.

The sections below describe the product; where they are ahead of the code, the
lists above say so.

Evidence-first codebase analysis for people and coding agents.

Verinoda looks at a repository as a running system: code, call and data
flow, tests, configuration, git history, decision records and, when you let
it, targeted test runs. It answers questions as **claims with evidence**.
Every claim carries a status (`statically_verified`, `experiment_verified`,
`strong_inference`, `unknown`, `stale`, …), the exact `file:line` or commit it
rests on, and what is still uncertain. When a claim can't be supported, it says
`unknown` and names the next check to run. Questions may be in English or
Turkish. References in them (repositories, versions, packages, PRs, papers)
are pinned to the exact version the user meant before anything is compared.

> Verinoda is derived from [Graphify](https://github.com/Graphify-Labs/graphify)
> (commit `20a20d30`, Apache-2.0). It is an independent project, **not** an
> official Graphify release. See [docs/UPSTREAM.md](docs/UPSTREAM.md).
> The name "Verinoda" was checked as free on PyPI, npm and GitHub on 2026-09-23 (see
> [docs/NAMING.md](docs/NAMING.md)); 0.1.0 and 0.2.0 were published there on 2026-09-26 from the tags `v0.1.0` and `v0.2.0`, 0.3.0 and 0.3.2 on 2026-09-27 from `v0.3.0` and `v0.3.2`, 0.4.0 on 2026-10-01 from `v0.4.0`
> ([docs/RELEASING.md](docs/RELEASING.md)).

## Install

Verinoda is a Python package (`verinoda` on PyPI, with a small `verinoda` wrapper on npm). Pick one:

```bash
uv tool install --link-mode copy "verinoda[precise]"   # recommended: isolated, uv fetches a Python if needed
pipx install "verinoda[precise]"                       # the same with pipx
pip install "verinoda[precise]"                        # into the current environment (Python 3.10+)
npx -y verinoda --version                              # Node users: runs the PyPI release through uvx / pipx / a private venv
uvx --from "verinoda[precise]" verinoda --version      # run once without installing
```

On Windows, get uv first with `winget install --id astral-sh.uv -e` (then open a new terminal) and run
`uv tool update-shell` once so `verinoda` is on PATH. `[precise]` adds the optional precise call-site resolver
(jedi); leave it out for a smaller install. Upgrade with `uv tool upgrade verinoda`, `pipx upgrade verinoda` or
`pip install -U verinoda`. Releases are published from tags by `.github/workflows/release.yml`
([docs/RELEASING.md](docs/RELEASING.md)). MCP clients that start servers with npx can use
`npx -y verinoda mcp serve`; `verinoda setup` registers the installed command instead.

**The development version (main)**, straight from GitHub:

```powershell
# Windows (PowerShell or cmd)
uv tool install --force --reinstall-package verinoda --link-mode copy "verinoda[precise] @ https://github.com/ozcinax-star/verinoda/archive/main.zip"
```

```bash
# macOS / Linux (or Git Bash on Windows)
curl -LsSf https://raw.githubusercontent.com/ozcinax-star/verinoda/main/install.sh | sh
```

Both development-version commands install from the GitHub archive with the optional precise resolver and copy files
instead of hardlinking them (so sandboxed agents such as Codex can import the package).
Run the same `uv tool install ...` line, or the script, again to upgrade. The script
([install.sh](install.sh), read it first) installs uv if it is missing, runs that
command and `uv tool update-shell`; options are environment variables: `VERINODA_REF`
(branch, tag or commit; default `main`), `VERINODA_EXTRAS` (`none` to skip the precise
extra), `VERINODA_NO_MODIFY_PATH=1`.

Why there is no `irm ... | iex` one-liner for Windows: Microsoft Defender blocked
`powershell -ExecutionPolicy ByPass -c "irm <script url> | iex"` for this project's
script as `Trojan:Win32/Commando.A!ml`, a machine-learning verdict on that
download-and-run command line (the script file itself was not flagged). The plain `uv`
commands above avoid the pattern.

Then, once per project:

```bash
cd my-project
verinoda setup        # index the code + connect Claude Code / Codex if they are installed
```

`verinoda setup` is safe to re-run (it updates the index and leaves unchanged skills
alone). `--agents claude,codex|all|none`, `--scope user` for all projects, `--no-mcp`.
It ends with a first question about the project, built from its most connected
function or class, and how to open the graph.

Or skip it and just ask: in a git work tree without an index, the first
`verinoda query`, `analyze`, `trace`, `map` or `ui` indexes the project once and
says so on stderr (never outside a git work tree or in the home folder;
`VERINODA_NO_AUTO_INDEX=1` turns it off):

```bash
cd my-project
verinoda query "where is the discount threshold configured?"   # indexes first, then answers
```

### Other ways to install

Python 3.10+ (3.12+ recommended: the runtime tracer uses `sys.monitoring`).
Graphify (`graphifyy`) is **not** required; the extractor is part of this
package.

```bash
# from a checkout or a wheel you built (uv build)
uv tool install --link-mode copy .                                   # or a wheel path
pipx install ./dist/verinoda-*-py3-none-any.whl
pip install ./dist/verinoda-*-py3-none-any.whl                      # into an existing venv

# optional: precise call-site resolution (jedi)
uv tool install --link-mode copy --with "jedi>=0.19.2,<0.21" .
pip install ".[precise]"

verinoda --version
verinoda doctor
```

Build the wheel with `uv build --wheel` (or `python -m build --wheel`).

### Languages

The index (the graph behind `query`, `trace`, `map`, `tq` and the rest) reads these with what a plain install
brings: Python, JavaScript and TypeScript (also in Vue, Svelte and Astro files), Go, Rust, Java, Kotlin, Scala,
Groovy and Gradle, C, C++, CUDA and Metal, C#, Razor, XAML and .NET project and solution files, Ruby, PHP and
Blade, Swift, Objective-C, Lua and Luau, Zig, PowerShell, Elixir, Julia, Verilog and SystemVerilog, Fortran,
Bash, Dart, Pascal and Delphi forms, Apex, COBOL (programs, paragraphs, copybooks, `PERFORM` and `CALL`), JSON,
Markdown, PDF and Office documents, and Minecraft datapack functions.

These need an optional grammar, one extra each:

| Language | Extra |
|---|---|
| VB.NET | `vbnet` |
| R | `r` |
| Erlang | `erlang` |
| Solidity | `solidity` |
| SQL | `sql` |
| Terraform / HCL | `terraform` |
| OCaml | `ocaml` |
| Common Lisp | `commonlisp` |
| DreamMaker | `dm` (builds from source outside Windows) |
| Robot Framework | `robot` |

`pip install "verinoda[languages]"` installs every optional grammar that ships prebuilt wheels (all of the
above but `dm` and `robot`, plus `tree-sitter-pascal`, which reads Pascal more closely than the built-in
fallback); R and Erlang come from `tree-sitter-language-pack`, a prebuilt wheel used offline.
Without its grammar a file is not extracted: `scan` and `update` name such files with the reason and the
install line (`not_extracted`), and the next `update` after installing the grammar reads them.

**Codex on Windows: use `--link-mode copy`.** With uv's default link mode
the installed package files are hardlinks into uv's cache. Codex's
`workspace-write` sandbox on Windows could not read them (`PermissionError`),
so the `verinoda` CLI failed inside Codex while the MCP tools still worked
(`docs/AGENT-VERIFICATION.md`). `uv tool install --link-mode copy …` (or
`UV_LINK_MODE=copy`) avoids this. `verinoda doctor` warns when the install
is hardlinked or editable (`sandbox_readable`). On such an install the Codex
MCP entry is registered with `--profile full`: the Codex sandbox may not
import the package, MCP is then the way in, and it must serve every tool the
skill uses. Reinstall in copy mode and run install again to get the default
(core) entry.

## Quick start

```bash
cd my-project
verinoda setup                           # once: index + agent skills (or `verinoda scan .` for the index only)
verinoda map . --view dataflow           # entry points -> persistence, with limits stated
verinoda map . --view dead               # code nothing the project starts from reaches, as claims
verinoda map . --view hotspots           # files and functions that change often and are complex
verinoda map . --view sides              # Minecraft: client-only code reachable from server code, with the path
verinoda map . --view dsm                # dependency structure matrix between folders (--depth N, --group-by tag)
verinoda map . --view model --model docs/workspace.dsl   # a C4 model against the code's dependencies
verinoda map . --view repo --max-tokens 2000   # the files to read first and their signatures
verinoda ui                              # notes + graph in the browser (local)
verinoda ui --graph                      # ... opened straight on the graph view
verinoda ui --watch                      # ... and kept up to date while you edit
verinoda ui --export --open              # the graph + file notes as one HTML file, no server
verinoda notes --changed                 # your own notes whose code changed since you wrote them
verinoda query "where is the discount threshold configured?"     # plain-text context
verinoda query "retry path:src/** lang:kt NOT is:vendored"      # filters narrow the ranked results
verinoda trace create_order_handler OrderRepository.save
verinoda when RepairScheduler.tick      # when it runs: the event or caller, the conditions on the way
verinoda plan draft "Sipariş API'den veritabanına nasıl ulaşıyor?"   # -> .verinoda/plans/plan-001.json
verinoda plan check plan-001.json        # grounds every mention; 0 ready, 2 invalid, 3 needs clarification
verinoda analyze --plan plan-001.json    # or: verinoda analyze "How does an order reach the database?"
verinoda resolve "compare with requests 2.31 sessions.py"        # pin the references first
verinoda observe --for apply_discount    # which tests reach it at runtime (isolated copy)
verinoda resolve-call orders/service.py:22 save                  # precise extra: which definition?
verinoda claim show clm_…                # evidence (with grades), uncertainties, full history
verinoda challenge clm_…                 # adversarial re-check; can only lower confidence
verinoda update .                        # after edits: re-index changed files, mark affected claims stale
verinoda verify clm_…                    # re-check evidence (moved lines are relocated)
```

Try it on the bundled example: copy `examples/orders_app` somewhere, `git init`
and commit it, then run the commands above inside the copy. For `observe`,
give the copy a `.venv` with pytest installed.

## Commands

| Command | What it does |
|---|---|
| `doctor [--brief]` | Python, package layout, upstream base, graph/snapshot freshness, schema, claim counts, search index, lexicon, precise/SCIP availability, `sys.monitoring`, reference network mode, agent skills, MCP config, optional deps; secrets shown only as set/unset; `--brief` prints only the graph and snapshot lines and every failed or warning check |
| `setup [path] [--agents auto\|all\|none\|claude,codex] [--scope project\|user] [--no-mcp] [--hooks] [--reference PATH[=ALIAS,...]]` | One step per project, safe to re-run: `init`, `scan` on the first run and `update` afterwards, then skills + MCP for the agents found on PATH (default `auto`: Claude Code and Codex); `--agents all` registers every supported agent found (Claude Code and Codex on PATH; Cursor, Gemini CLI, GitHub Copilot, Kiro, Continue and Aider when their folder is in the project or the home folder or their program is on PATH; the report's `agents_found` says why); prints what is left to do by hand. `--reference` marks a folder of reference code (an original being ported, a vendored or frozen copy) that ranks below the project's own code unless a question names it or an alias (repeatable). Setup also points out folders that look like such a copy (most of their code files sit at the same relative path under a larger folder and hold mostly the same lines) and prints the `--reference` command; it never applies it. Refuses the home directory unless `--allow-home` |
| `init [path]` | Create `.verinoda/` (database, config) |
| `trust [path] [--subfolders] [--remove] [--list] [--yes]` | Trust a project (recorded outside it): only then do its tests run with process isolation, and only then does its own `.verinoda/config.json` set `experiments.*`, `mcp.profile` and `research.network`. Your decision: it asks to confirm, and without a terminal needs `--yes`; an agent never runs it for you |
| `scan <repo> [--force] [--precise] [--scip FILE]` / `update <repo> [--fast] [--consolidate]` | Full / incremental index + snapshot, then the derived search index, lexicon and symbol facts; `update` marks claims whose dependencies changed `stale`; `--fast` takes the changed files in at once and rebuilds the graph in the background (D44). `--precise` resolves the call sites of changed `.py` files; `--scip` adopts a SCIP index you produced. `--repo R` works for both as for `query`; `update` without a path takes the nearest project. `update --consolidate` (or `claims.consolidate_on_update: true` in `.verinoda/config.json`, which the git hooks' updates honour too) then re-verifies up to 20 stale claims within 20 s and counts duplicates, never merging; skipped while `--fast` rebuilds the graph in the background. With `VERINODA_INCREMENTAL=1` (or `index.incremental: true` in `.verinoda/config.json`; off by default) an update where only existing files changed re-extracts the files the edit can affect and patches the graph instead of rebuilding it (`incremental` in the result says whether it did, or why not) |
| `consolidate [--limit N] [--budget S] [--merge] [--dry-run]` | Between sessions: re-verifies stale claims with `verify` on the current tree (static: no test is run), so one whose code came back is restored and rebound; claims never tried come first, then the one tried longest ago, so every stale claim is reached over a few runs; the budget includes an index refresh and no verify waits for another build. Lists the claims that state the same thing (the same claim key: kind, spec, subjects or normalised text, in the same project and `valid_env`) among claims neither stale nor contradicted, and reports as a conflict a statement that is contradicted in one claim and not in another (never merged); `--merge` keeps the one with the best status (then the latest verification) and folds each other one into it in one transaction: its supporting and qualifying evidence linked to the kept claim (not its refuting evidence; the kept claim's status unchanged until its next `verify`), the duplicate marked `duplicate_of` in its spec and its history. `--merge` is not bounded by `--limit` or `--budget`. Nothing is deleted. Exit 1 when a claim could not be processed |
| `notes [<repo>] [--changed] [--keep SUBJECT] [--delete SUBJECT] [--facts [--category C] [--tag T]] [--links]` | Your own notes on the code (written in `verinoda ui`) with their status: `fresh`, `changed` (the code was edited since) or `gone`; `--changed` lists only those and exits 1 when there are any (for CI); `--keep` anchors a note you read again to the code as it is now; `--delete` removes one; `--facts` lists the `- [category] fact #tag` lines of your notes (Basic Memory's form: what you wrote, not claims, so no evidence status) with their note and line, `--category` / `--tag` filter them; `--links` resolves every `[[Name]]` (a note of yours, a `file::Name` subject, a name or a file in the index) and exits 1 when one leads nowhere, 3 when one could not be checked (no index, or the file it found changed since). The note files are read on every call: an edit in your editor is what the next command sees |
| `ui [<repo>] [--repo DIR] [--port N] [--no-browser] [--graph] [--read-only] [--watch] [--export [FILE] [--open]]` | notes and graph of the project in the browser: a note per symbol, file and data file, local and global graphs, search (see *Notes and graph view*); `--graph` opens on the graph view; `--watch` runs `verinoda update` when files change (woken by the operating system's file events, else polling); `--export` writes the graph and the file notes as one HTML file that opens without a server (`--open` opens it) |
| `export [--format graphml\|cypher\|obsidian\|svg] [--out PATH]` | The graph for other tools: GraphML (Gephi, yEd, Cytoscape), Neo4j Cypher (`cypher-shell <`; re-importing adds nothing), an Obsidian vault (a note per source file with wikilinks; a non-empty folder it did not write is refused) or an SVG of the 300 most linked files. Every edge carries its relation, confidence, `file:line` and the status it can carry unchecked (`strong_inference` EXTRACTED, `weak_inference` inferred, `unknown` without a line); what changed since the index, and every edge into it, is marked `stale`; no code, no machine paths; an existing `--out` file it did not write is refused. Default `.verinoda/index/export/`; exit 2 when it cannot be written |
| `map [<repo>] [--repo DIR] [--view …] [--max-lines N] [--max-tokens N] [--group-by folder\|tag] [--depth N] [--model PATH]` | hierarchy, dependencies, dataflow, config, tests, history, impact (`--target`, default: git changes; also the files that changed together with the change in the last 1,000 commits and that no graph edge links to it, each a `strong_inference` claim with its commit count and the shared commits as evidence), cycles (dependency cycles between files, each with the fewest file dependencies to cut and the cycle each cut closes, at `file:line`), dead (code files, classes, functions and methods no entry point, test or entry module reaches; each a `strong_inference` claim at most, `weak_inference` when a dynamic use could keep it alive, naming the entry points searched), hotspots (code files ranked by changes x complexity: the non-merge commits of the last 1,000 that touched the file times the sum of its functions' cyclomatic complexity; then the functions of the top 20 files by their own changes, each commit's changed lines carried through later diffs to the current text, times their cyclomatic complexity; counts and complexity at `file:line`, the ranking `strong_inference`), sides (Minecraft: client-only code - the `src/client` source set, `@Environment(EnvType.CLIENT)` / `@OnlyIn(Dist.CLIENT)` classes and methods, `net.minecraft.client` classes - reachable from the server-side entry points; each path a `strong_inference` claim at most, `weak_inference` through an inferred edge, with every hop at `file:line` and the line that makes the target client-only), repo (a repo map: files ranked by PageRank over the dependencies view's file edges, the random jump weighted toward the files in play - `--target`, default the git changes, themselves left out - and the first line of each class, function and method at `file:line`, the best ranked first, until `--max-tokens` (default 1024, four characters a token); the ranking `strong_inference`), dsm (a dependency structure matrix: the cycles view's file dependencies summed between folders at `--depth` - default the deepest with at most 30 groups - or between the `[architecture.tags]` with `--group-by tag`; row uses column, the groups ordered so that a group comes before what it uses, so a mark below the diagonal points back inside a cycle of groups; each cell with its reference count and lines; also a page of `verinoda ui`), model (a C4 model - a Structurizr DSL file with `--model`, whose elements map to code by the property `"verinoda.code" "glob,glob"` or a tag of the same name, or `[architecture.model] relations = ["ui -> core"]` between tags in `verinoda.toml` - against the same dependencies: each model relation `matched`, `model_only` (no code edge), `not_checked` (an end without code, such as a person) or `unknown` (globs that match no file), and every dependency between two elements no relation covers listed as `undeclared` with its lines; `strong_inference` at most). dead, hotspots, sides, repo, dsm and model are asked for by name. Text output is a summary per view (counts, the largest folders and packages, the heaviest dependencies, what was left out) instead of a JSON dump; `--json` has everything. The config view also lists `.yml`/`.toml` config files that are not graph nodes. An impact `--target` that does not name one symbol exactly is listed with its candidates (`resolution`) and the command exits 2; so does a repo `--target` that is no file of the graph |
| `map save NAME [--trace <a> <b> [--mode flow\|any] \| --view …]` / `map show NAME` / `map list` | A trace (as `trace`) or map views (as `map --json`) kept under a name in `.verinoda/maps/NAME.json` with the index snapshot and commit they came from and the hash the snapshot recorded for each file they cite; saving again replaces it. `show` hashes those files again: `current` (exit 0) when each is as it was, `stale` (exit 1) when one changed or is gone - named, the saved result shown as it was then, with the command that makes it again; `unknown` (exit 1) when it cites no file; a file the map does not cite is not checked. An unresolved trace or target is not saved (exit 2). `.verinoda` is git-ignored: share a map with `git add -f .verinoda/maps/NAME.json`. MCP: `map_view` with `view: saved`, `targets: [NAME]` (none: the list) |
| `query "<q>" [--max-items N] [--max-chars N]` | Bounded retrieval from the passage index; plain text for a model by default (skeleton first, each item with why it was chosen; nothing printed twice: no question echo, a signature once, windows dedented), `--json` for programs. Says "N file(s) changed since the index" with the list, and "not in the index yet" for a code name only a changed file spells. Filters in the question narrow the ranked results: `path:GLOB`, `lang:NAME`, `symbol:NAME`, `is:vendored\|generated\|minified\|test`, `/regex/` (the matching line is the evidence), joined by `AND`, `OR`, `NOT` (or `-`) and parentheses; a question of filters only lists every matching unit; `project_query` reads the same syntax |
| `trace <a> <b> [--mode flow\|any]` | Directed paths, each hop with relation, confidence and call-site location; hints when an endpoint does not resolve; an endpoint that names several symbols is listed (`ambiguous`), none picked; a `resolved:` line names the node each endpoint resolved to; when there is no call path, the cross-service edges are followed (a frontend `fetch` to its backend handler: the hop says `cross-service http: GET /api/users/{id}; handler declared at server/app.py:6`, INFERRED, `derived_by=verinoda.cross_service`), and a call on the way that fits several handlers is listed with every candidate; exit 2 when an endpoint does not resolve or is ambiguous, or there is no path |
| `schema [--table NAME] [--db FILE]` | Database tables read from the code: ORM models (SQLAlchemy `__tablename__` and `Table()`, Flask-SQLAlchemy's snake_case default, SQLModel, Django `<app>_<model>` or `Meta.db_table` - a model extending a project's abstract model included, with its inherited fields, the implicit `id` and many-to-many join tables -, JPA `@Entity` with `@Table(name)` or Spring Boot's snake_case of the entity name), migrations (Alembic `op.create_table` / `op.add_column`, Django `CreateModel` of the migration's own app, `CREATE TABLE` / `ALTER TABLE` in SQL files, comments left out, a statement over several lines read whole) and SQL strings (Java text blocks and SQL constants included; JPQL in `@Query` names entities, mapped to their tables), with their columns and the functions that read and write each table (SQL `INSERT` / `UPDATE` / `DELETE` / `SELECT`, ORM calls on a model or an instance of one, a model handed to a session, Spring Data repositories), and dependency injection (FastAPI `Depends` in parameters, route decorators and `Annotated` aliases; Spring constructor, `@Autowired` and Lombok `final` fields). The tables are graph nodes (`table:<name>`, cited at the line naming the table) with `maps_to`, `writes_table`, `reads_table`, `migrates` and `injects` edges, so `map --view dataflow` ends a path one hop past its sink, at the table the sink writes or reads, and `q`, `ui` impact and paths follow them; any symbol of the same name (a test helper or a nested function included) wins over a table in `trace`, `butterfly` and `node_inspect`. `--db FILE` compares a local SQLite file without writing anything beside it (opened immutable, or a temporary copy with its write-ahead log; tables and columns only on one side, a framework's bookkeeping tables such as `django_migrations` or `alembic_version` listed apart; exit 3 when they differ) |
| `routes [--no-table] [--all]` | The cross-service links: the route table (Flask, Quart, Sanic, FastAPI with router and mount prefixes, a prefix given as a constant or a pydantic settings default resolved and cited, one nothing spells kept as `mount: "prefix not resolved: <expr>"`, trailing `/` kept as written, Starlette, aiohttp, Django URLconfs with `include`, Express / Koa-router / Fastify / Hono-style `app.get('/x', h)` with `app.use('/prefix', router)`, NestJS controllers, Next.js API files, Spring `@*Mapping`, JAX-RS `@Path`) and every client call whose URL the text spells (`fetch`, `axios` and its `baseURL` instances, Angular `http`, supertest, `requests`, `httpx`, test clients), each linked to the one handler its path and method fit, `ambiguous` (several fit, no edge; grouped by method, URL and candidates, at most 50 groups of 5 candidates, every cut counted; `--all` lists every call and candidate), `unmatched` (at most 50 unless `--all`), a method mismatch, or not spelled in the text; a URL on a public host is another service's and is not linked. Routes and calls in test and example code carry `code: "test"` / `"example"`; a call there is matched against the routes of its own file and the files it imports when one of them fits (a supertest `request(app)` only against those). tRPC procedures, Python gRPC methods, GraphQL root fields and named events (`emit` / `on`) are linked the same way. Every edge is INFERRED (`derived_by=verinoda.cross_service`): read from two texts, never verified. Exit 0 |
| `when <symbol> [--depth N]` | When a method runs: paths back through its callers to the event or scheduler that starts it (JVM registrations and lambdas: "at the end of every server tick", "80 ticks later"), each call with the conditions around it as written and its file:line; exit 2 when the name does not resolve (candidates listed) |
| `butterfly <symbol> [--mode calls\|inherits] [--depth N] [--no-tests]` | One symbol with its callers and callees as two trees, or, for a type (the default for a class), what it extends and implements and what extends or implements it; each link with the `file:line` it is written on, its confidence and a claim whose status is `strong_inference` (EXTRACTED) or `weak_inference` (INFERRED), never verified; a method is named `Class.method`; a node already on a side is not repeated (a direct recursive call is listed once, marked); a side says what it left out (test code, code outside the project); the name is resolved as `trace` resolves it (candidates listed, none picked; exit 2). The `ui` *Butterfly* panel shows the same |
| `extract <path:LINE\|path#Symbol ...> [--from FILE\|-]` | The whole function or class around a location, with its lines (a top-level statement or a Markdown section when there is no definition): `path:LINE`, `path:LINE-LINE`, `path#Symbol`, or the locations in a compiler's, linter's or test run's output (Python tracebacks, `path:LINE:COL`, `path(LINE,COL)`, Maven's `path:[LINE,COL]`, JVM frames by package path); the file is parsed as it is now, no index needed; each definition is a claim with its lines as evidence (`strong_inference` when the parser had to recover from syntax errors); exit 2 when a location is not found |
| `history text "<text>" [--regex] [--path P]` / `history symbol NAME\|path:A-B [--limit N]` / `history commits [--message RE] [--author RE] [--path P] [--since DATE] [--until DATE] [--diff RE] [--limit N]` / `history compare BASE [HEAD] [--path P]` | Git history, read only. `symbol`: the commits whose diffs changed a symbol's lines (`git log -L` from HEAD; working-tree lines that differ from HEAD are mapped to HEAD's first), newest first, each a `history` claim quoting the commit message, subject and body without the trailer block; a name that does not resolve to one symbol gets its candidates, never a similar name. `text`: the commit that first added a text (`git log -S`; with `--regex`, `-G` over the added and removed lines) and, when HEAD has none, the commit that last removed it, each a `history` claim whose evidence is the commit with the diff line and its file:line (`strong_inference` for the first appearance in a shallow clone or a history cut at 200 commits), then every commit that added or removed it and where it is at HEAD. `commits`: commits by message, author, path, date and diff content (regular expressions, case ignored), newest first, with the files each changed. `compare`: what HEAD (or another revision) has that BASE has not: the commits, the merge base, the files changed with line counts; exit 2 when nothing is found |
| `docs check [PATHS] [--fix] [--exclude GLOB]` | Code references in the repository's own Markdown, reStructuredText and AsciiDoc files checked against the working tree: Markdown link targets and inline code spans that read as paths, with `path:12-30` or `path#L12-L30` lines. A missing path is broken; a path git recorded as renamed is `renamed`; cited lines that only moved since the document's last commit are `moved`, lines that changed are `changed`. `--fix` rewrites renamed paths and moved line numbers in place (the reference's own characters only). Paths whose first folder is not in the repository (another project's example) and ignored paths are counted as not checked. Exit 1 while anything is broken, renamed, moved or changed (a CI check) |
| `spec check [--specs-dir DIR] [--json]` | Requirement criteria traced to their evidence. A spec is a Markdown file in the specs folder (`.verinoda/specs/`; commit one for CI with `[specs] dir = "docs/specs"` in `verinoda.toml` or `[tool.verinoda.specs] dir` in `pyproject.toml`; `specs.dir` in `.verinoda/config.json` and `--specs-dir` take precedence; a setting file that cannot be read is an error, never the default). Dot folders, vendored folders and links or junctions under it are not read. A criterion is a line starting with an id in brackets, best in the EARS style (`- [CART-1] WHEN the cart is empty THE SYSTEM SHALL refuse checkout`); fenced and indented code, HTML comments and link reference definitions are skipped. The `evidence:` lines under it name what backs it: claim ids, test ids (`tests/test_cart.py::test_empty`; a Python `test*` function or method, not a fixture or helper; a JS/TS `it`/`test` title), `path::Name`, `path:12-30`. Nothing is matched by text: each criterion is `verified` (a verified claim whose cited file lines still hold the recorded content), `tested` (the test is defined), `tested_inferred` (a JS/TS test found by its title, a text pattern), `broken` (a reference that no longer resolves, a stale or contradicted claim, or one whose cited lines changed), `unchecked` (no Verinoda state, or one this version cannot read: the store is opened read-only, only when a claim is cited) or `unevidenced` (no reference, only code pointers or inference claims). Lists every criterion with its spec `file:line`, each reference's line and a claim's evidence, the limits and the index age; a SHALL line with no id, an evidence line with no criterion, an empty evidence line and two criteria with one id are problems. Exit 0 (`ok`, `no_criteria`, or `no_specs` when the default folder does not exist), 1 while a criterion is broken or unevidenced or a spec line has a problem (`failed`, or `unevidenced` when that is the only cause), 3 when something was not checked (a claim not read, a spec file not read, a configured folder that does not exist), 2 on an error (a folder outside the repository, a setting that cannot be read) |
| `hooks install [--dry-run] [--print]` / `hooks uninstall [--gone] [--dry-run]` / `hooks status` | Git hooks that keep the index current: post-commit (not during a rebase), post-checkout (a branch switch only), post-merge and post-rewrite (the end of a rebase or an amend) start `<python> -P -m verinoda update <project>` in the background, detached, so git is never held up; only for a git command in the project's own work tree (worktrees share hooks) and while the project has its `.verinoda/` folder (`VERINODA_NO_HOOK=1` skips it once). `-P` keeps the work tree off `sys.path`: a project's own `verinoda/` folder never runs. A marked block per project goes right after the hook's `#!` line; an existing hook is kept and restored byte for byte, one that is not a shell script, a symbolic link or a block edited by hand is left alone, and when `core.hooksPath` points to another tool's folder nothing is written or removed (exit 2; `--print` shows the lines). `status` also lists other projects' blocks and those whose folder is gone; `uninstall --gone` removes those. `setup --hooks` installs them too. No merge driver: the graph is in `.verinoda/`, which git ignores |
| `agent-hooks install [--agent claude,codex,cursor or all] [--scope project or user] [--dry-run]` / `agent-hooks uninstall` / `agent-hooks status` / `tool-hook [--agent NAME]` | Hooks in the agents' own hook files that put what the graph knows next to the agent's searches and reads, with no Verinoda call: after a Grep, or `grep` / `rg` / `git grep` / `ag` / `ack` / `findstr` / `Select-String` in a shell command, the definition, callers and callees of the symbols the pattern names (at most 450 characters, nothing for a name the graph does not know exactly); after a Read or an edit, what the project says about the file (decision records, notes, rules). Claude Code (`.claude/settings.json`): `mcp_tool` hooks on Grep, Bash and Read/Edit/MultiEdit/Write calling the project's running server (`run_tool` `grep_context` / `read_context`); user scope and Codex (`.codex/hooks.json`, Bash) and Cursor (`.cursor/hooks.json`, `postToolUse` on Grep, Shell, Read, Write) run `verinoda tool-hook --agent NAME`, one process per call, which reads the tool call on stdin and keeps each word's line in `.verinoda/index/hook_memo.sqlite` until the index changes. Only Verinoda's own entries are written or removed; a hook file that is not a JSON object is left alone (exit 2). `tool-hook` always exits 0 and prints `{}` when it has nothing to add |
| `infra [--file FILE]` | Infrastructure as code linked to the code it runs: every Dockerfile (its last stage's `ENTRYPOINT` + `CMD`), compose service (`command`/`entrypoint` over the Dockerfile it builds), Kubernetes container (`command`/`args`, over the project Dockerfile whose image name it uses) and Terraform `resource`/`data` block, read as text (docker, kubectl and terraform are never run). Each command is `statically_verified` at its manifest line; the project file it runs (`python -m pkg.mod`, `uvicorn pkg.mod:app`, `node file.js`, `java -jar`, `sh -c` chains, scripts; a Terraform path or Lambda `handler`) is linked with the manifest line and the `COPY` lines that put it in the image as evidence: `strong_inference` through `COPY` or a code attribute (`source_dir`, `filename`) of a Terraform function, archive or container, `weak_inference` when found by its path's ending, through an image matched by name, a path another Terraform attribute only names, or a jar linked to the build file that makes it. Installed programs (`nginx`) are listed without a link. `--file` keeps the nodes that run (or name) one file (exit 2 when it is not a project file). `--json` for programs. Exit 1 when nothing is found |
| `context FILE` | What the project says about one file: the enforced decision records whose accepted guards name it in a glob (only_in, no_edge, layers, allow_edges, public; `tag:NAME` read as its globs) or that govern a symbol in it, your own notes on it, notes scoped to a glob (`scope: GLOB` in a note's header), and the Cursor (`.cursor/rules/*.mdc` `globs:`) and Kiro (`.kiro/steering/*.md` `fileMatchPattern:`) rules for it, each quoted with where it is written. The Read/Edit hook template (MCP `read_context`, behind `run_tool`) shows the same to an agent that opens the file |
| `tour SOURCE TARGET [--mode flow\|any] [--title T] [--out FILE] [--force]` / `tour --check FILE [--fix]` | A CodeTour file (`.tours/<title>.tour`, opened by the VS Code CodeTour extension) from the first `trace` path: a step at the source's definition, at each hop's site and at the target's definition, each quoting its line and saying the graph edge and its confidence (a lead to read, not a verified fact), pinned to the commit (`ref`). `--check` finds each step's line again by its text and says which moved and which are gone (exit 1); `--fix` writes the moved lines back. A tour Verinoda did not write is never overwritten |
| `rules [--base REV \| --staged]` | Path-scoped review rules. AGENTS.md, CLAUDE.md, BUGBOT.md and REVIEW.md in any folder (and `.cursor/BUGBOT.md`, `.github/copilot-instructions.md`) cover their folder and everything under it. Lines `MODE ID: regex\|ast PATTERN [-- MESSAGE]` in a fenced `verinoda-rules` block (MODE `error`, `warning` or `off`; a nearer file's rule with the same id replaces a farther one) are checked on the lines the change added (`git grep -E`, or a `grep-ast` pattern), each match `statically_verified` at its `file:line` with the rule's own line; the prose rule files covering each changed file are listed to read, not judged. Exit 1 on an `error` rule's match, 3 when a search did not finish or the change weakens a rule in force at the base (removed, turned down, rewritten; rule files themselves are not checked). `review` carries the counts, the first matches, the weakened rules and the rule files to read |
| `monitor [check \| add ID --regex RE\|--ast PATTERN [--lang L] [--path P] [--message M] \| accept ID \| remove ID \| trend ID [--points N]]` | Saved searches that must not gain matches, kept in the committed `verinoda-monitors.json` with the matches they had when added (the baseline). `check` (the default) exits 1 on a match the baseline does not have (each at its `file:line`), lists the ones gone (a migration's progress) and exits 3 when a search did not finish (a cut list, a timeout, a skipped file, a path gone, a git error); matches are keyed by file and line text, so moved lines are not new. `--regex` is git's extended regex run by `git grep -E`; `--ast` is a `grep-ast` pattern; `--path` (relative to the current folder, read literally) limits both; the monitors file itself is never searched. `accept` takes the current matches as the baseline; `trend` counts a regex monitor's matches at commits spread over the history |
| `owners [TARGET] [--days N] [--max-files N]` | Who knows this code, read only. TARGET is a file, a folder, `path:A-B` or `path#Symbol` (default: the whole project). CODEOWNERS (the first of `.github/CODEOWNERS`, `CODEOWNERS`, `docs/CODEOWNERS`, `.gitlab/CODEOWNERS`, resolved as GitHub does: the last matching rule wins): one claim per rule that owns files of the target, citing the rule's line (`statically_verified`; `strong_inference` with GitLab sections). `git blame -w` over the file as it is on disk: the authors with their share of the lines, the main author, the bus factor (the fewest authors holding more than half of the lines) and the knowledge loss (lines of authors with no commit in the `--days` before HEAD's date, default 365), each a `strong_inference` claim whose evidence is the blame at HEAD; lines not committed yet are credited to nobody; a folder is blamed file by file (text files git tracks, at most `--max-files`, default 200). Exit 2 when nothing is found |
| `diagram architecture\|flow\|sequence [<a>] [<b>] [--mode flow\|any]` | A Mermaid diagram with its evidence as `%%` comments: the parts of the project and the edges between them, the call paths of `trace` from `a` to `b` (or what `a` calls, two calls deep), or the first of them as a sequence of messages between the classes or files that own each method. Every arrow is a claim with `file:line`; an arrow drawn only from inferred edges is dashed and `weak_inference`; exit 2 when an endpoint does not resolve |
| `wiki [--markdown] [--page ID]` | The wiki outline: an overview page with the architecture diagram and a page per folder, or the pages a committed `.verinoda-wiki.json` names (title, purpose, parent, `paths`, `flows`); `--markdown` prints every page with its Mermaid diagrams and evidence; what the file names that the index does not have is listed as a problem. The MCP reaches it as `map_view` view `outline`; `ui --export` carries it |
| `search PATTERN [PATH ...] [-i] [-F] [--max-results N] [--timeout S] [--rebuild] [--json]` | Exact or regular-expression search (Python syntax, multiline: `^`/`$` per line) over the project's text files (git's tracked and untracked-not-ignored files; binary files and files over 2 MB left out), narrowed by a local trigram index in `.verinoda/index/trigram.db`: the literal runs every match must hold pick the files to read, and the expression decides each match, so the index never changes the answer. Each search first re-indexes the files whose size or modification time changed (the first one builds the index: about 11 s and 56 MB for 2,700 files, 45 MB of text; a fifth of the files changed rebuilds it). PATHs are files or folders, relative to the current directory or absolute, inside the repository. Matches are `path:line` with the line's text (`status: observed`), with how many files were read and the time spent; on 2,700 files a selective case-sensitive literal answers in about 0.4-0.7 s (0.35 s of it keeping the index fresh), a pattern with no literal of three characters (`\w+`) reads every file and is slower than a walk. `--timeout` (default 60 s) is checked between files; files left unread make the search `incomplete`. Exit 0 with matches, 1 with none, 3 with none but files left unread, 2 on a bad pattern, path or index |
| `taint [PATH ...] [--local] [--depth N] [--no-builtin] [--tests] [--json] [--sarif]` | Paths from untrusted sources to dangerous calls in the project's Python code (taint analysis), each with every hop at `file:line`: the definitions a sink's argument comes from (reaching definitions, as `slice`), the argument each caller passes for a parameter (the index's calls edges, `--depth` calls up, default 2) what a project function returns (two levels down), a closure's free names and module-level code. Sources, sinks (with the argument that matters) and sanitizers are data: the library's (`verinoda/data/taint_python.json`: Flask, Django, FastAPI request data; SQL `execute`, shell `subprocess` with `shell=True`, `os.system`, `eval`, `pickle.loads`, `open`, templates, redirects, outgoing requests, by position or keyword; sanitizers for every sink or for their kinds: `int()`, `shlex.quote()` for a shell, `html.escape()` for a template, `secure_filename()` for a path ...) and the project's in `[taint]` of `verinoda.toml` (`sources`, `sinks = [{match, arg, keyword, kind}]`, `sanitizers`, `builtin = false`; unknown keys are errors). Route handler parameters taken from the request (`<name>`, `{name}`, FastAPI query parameters) are sources. Remote sources only by default; `--local` adds `sys.argv`, the environment and `input()`. Each path is `strong_inference` (data dependence only; the heap approximated). `--sarif`: one result per path with its steps as a code flow. Exit 3 when a path is found |
| `slice PATH:LINE [--var NAME] [--arg N or NAME] [--forward] [--depth N]` | Where a Python line's values come from: a backward slice inside its function - every statement whose definitions reach the line (reaching definitions over the function's control-flow graph, loops and `try` handlers included) and every branch that decides whether it runs (control dependence from post-dominators: an `if` that returns early counts) - then, when the slice reaches a parameter, the argument each caller passes for it (the index's `calls` edges; keyword, position, method `self` and defaults handled), sliced in that caller, up to `--depth` calls up (default 2, at most 3). `--var` slices one name, `--arg` one argument of the call on the line, `--forward` follows a definition to what it can reach and control instead. Each line with its role (criterion, def, control, use), the names it defines and reads, and the data and control edges; names with no definition in the function are listed. `strong_inference`: the heap is approximated (`x.a = v`, `x[i] = v` and `items.append(v)` update `x`), aliasing, globals changed elsewhere and `exec` are not seen. Exit 2 for a line outside a function, a file that does not parse, or a name or argument not on the line |
| `inventory [PATTERN] [-s NAME PATTERN ...] [--where EXPR] [--unit file, line or symbol] [--group-by file, folder, folder:N, ext, symbol or none] [-F] [-i] [--paths P ...]` | An inventory computed, not estimated: each named search (the trigram `search`) puts its hits in a unit - the file, the line, or the innermost symbol of the index - the units a condition keeps are counted by group, each group with its lines. The condition is evaluated per unit on its hit counts: search names, whole numbers, `and` / `or` / `not`, comparisons and parentheses (`conn and not close`, `calls >= 3`); it is read as a syntax tree and nothing else is allowed, so it never runs code. Counts are exact only when every search read every file and kept every hit (20,000 per search); otherwise the status is `incomplete` and the counts are lower bounds when the condition is monotone (no `not`, only "at least" comparisons), else marked as not bounded. Units with no hit of any search are not counted (said when the condition would hold for them). Exit 0, 1 when nothing is counted, 2 on a bad argument, 3 when the counts are lower bounds |
| `q "QUERY" [--max-rows N] [--max-expansions N] [--timeout S] [--verify] [--json]` | A declarative query over the graph, answered with evidence: `match (h:handler)-[calls*1..4]->(f:function) where f.text ~ "INSERT\|\.commit\(" return f, h` lists the functions that write storage and are reachable from an HTTP handler, each row citing the route declaration, every call of the path (`file:line`, relation, confidence) and the lines the condition matched. Node patterns take kinds (`file`, `symbol`, `function`, `method`, `class`, `handler` from the route table, `test`, `section`); edges a relation and a direction (`-[calls]->`, `<-[calls]-`, `-[calls]-`) and a bounded length (`*1..4`, at most 10); patterns separated by commas join on shared variables; `WHERE` compares `name`, `label`, `file`, `line`, `id` (`=`, `!=`, `~` regular expression, `glob`, `<`...) and `text` (`~`, the definition's lines), with `and`, `or`, `not` and `exists (pattern)`; `RETURN` variables, fields and `count(var)` / `count(*)` (grouped by the other items); `LIMIT n`. Parsed by hand (no `eval`); an error names its line and column. A row is `strong_inference` at most (`weak_inference` with an `INFERRED` edge, `unknown` when it cites a file changed since the index); `--verify` re-reads the call sites and definitions and makes a row `statically_verified` only when every part is confirmed in Python code and none is an absence (`not exists`). Budgets: 200 rows, 1,000,000 expansions, 30 s; a cut answer says which budget cut it and its counts are lower bounds. No MCP tool of its own: MCP `tq` asks a query as a `q` question. Exit 0, 1 when no row, 2 on a bad query, 3 when a budget cut the answer |
| `tq "QUESTION" ... [-f FILE] [--no-verify] [--need inference or verified] [--timeout S] [--max-expansions N] [--json]` | Typed questions, batched: up to 20 closed questions in one call, each answered with one value - `yes`, `no`, `?`, `>=N` or the files that hold - its status, the `file:line` it rests on and, when it is not settled, `why` and `next`. Types: `exists NAME [scope=lib]`, `which NAME in A.py\|B.py`, `calls A B [depth=1]`, `reaches A B [depth=6]`, `route "POST /orders" F [depth=6]`, `writes H TABLE` / `reads H TABLE [depth=4]`, `callers F`, `taint SOURCE SINK [in=PATH,...]`, `tested TEST_ID F`, `q "QUERY" [as=bool\|count\|rows]`; `need=` per question. `-f` reads one question per line or one JSON object per line (`{"type": "calls", "a": ..., "b": ...}`; `-` for standard input). Nothing new is analysed: each type has one engine (exact name resolution and the definition line re-read, the graph query and its `--verify`, the route table, the data-schema edges, `taint`, the test-to-code map), and an answer's status is the weaker of that engine's and the type's ceiling: a call path is `statically_verified` only when every hop's Python call site is confirmed, a table write `strong_inference` at most, a count always a lower bound at `strong_inference` at most, a test-map yes `observed` and run-scoped (`stale` when a file the test ran changed). A `no` is an absence in the static graph: `strong_inference` only for a depth-1 call the function's AST does not make and does not spell, or a name the index does not define; `weak_inference` otherwise, always with what was not seen and the experiment that could show the opposite. A name resolves exactly or the answer is `?` with its candidates; a file changed since the index makes an answer that cites it `?` (next: `verinoda update`). The batch shares one freshness check, one route table and one lines cache; answers are byte-identical across runs (`seconds` aside). `--need verified` marks every answer below `statically_verified`/`observed` `enough: no`. An answer whose cell (type, answer, status) has at least 30 held-out answers in the committed calibration table, with a dev precision inside its interval, asked with options a held-out question of that cell used (none, or e.g. `depth=3`; never `scope=lib`, which no held-out question used) and the table's engine hash equal to the installed code's (`tq.py`, `index.py`, every package module they import and `project_index/`), carries `measured: k/n held-out @<gold sha8>` (a frequency on that set, never a probability; `benchmark tq-audit` writes the table). MCP: `tq`, through `run_tool` in the core profile. Exit 0 when every answer is decided, 1 when one is `?` or a question is invalid, 2 when the batch cannot be read (no question, more than 20, a line of `-f` that is not JSON), 3 when a budget cut the batch |
| `grep-ast [PATTERN] [PATH ...] [--lang L] [--rule FILE] [--max-results N]` | Structural search: a code-shaped pattern such as `foo($A, $$$REST)` parsed with each language's tree-sitter grammar (Python, Java, TypeScript/JavaScript and the other languages the index reads) and matched on the trees of the project's files: `$A` is one node (the same name twice must match the same text, `$_` captures nothing), `$$$REST` zero or more; commas (except one marking a hole, as in `[1, , 2]`), semicolons and comments are not compared. `$NAME` is a metavariable everywhere, inside string literals too, with no escape (a literal `$_GET` cannot be searched); `--lang typescript` includes `.tsx` files. Each match is `statically_verified` (the matched text is in the file, read from disk) with its file:line, the text and the captures; shape only, names are not resolved. A language whose grammar cannot parse the pattern is named, not searched; each file has a time bound (files past it are named). `--rule` reads YAML rule files (`id`, `language`, `pattern` or `rule: {pattern: ...}`, `message`; one rule per document; other keys that would change the matches, such as `not`, `inside` or `constraints`, are refused). `--json` for programs. Exit 1 when nothing matches, 2 on a bad pattern or rule file |
| `rename-preview <symbol> <new_name> [--max-sites N]` | Every line a rename of one symbol would touch, without editing: the definition, the calls, imports and references the index ties to it (a call graded as `analyze` grades it: `statically_verified` only for an EXTRACTED edge whose Python line calls it), lines bound by place (another call in a caller the index ties to it, a file that imports it by this name, its own module or class) and the overrides and overloads renamed with a method, each with its status, why and the line; then the mentions (`weak_inference`: a comment, a string, a document, reflection, or a line only a guessed INFERRED edge ties to it), other symbols of the same name (left alone), edge lines that do not spell the name (a call through an import alias), and conflicts with the new name (already defined in the same scope, or already spelled in a file the rename edits). Writes nothing, records no claim. `--json` for programs. Exit 2 when the symbol does not resolve or the new name is not an identifier, 3 on a conflict |
| `what-if --move OLD=NEW [--move ...] [--decisions-dir DIR]` | Simulate moving or renaming files and folders without editing: the graph's file paths are relabelled in memory, then the edge guards of the decision records (`no_edge`, `layers`, `allow_edges`, `public`) and the dependency cycles are computed on the new paths and compared with the current ones. Lists the findings the move would add or remove (each as `decide check` reports it, with the line where the code is now; an added one is strong_inference at most, since it holds only if the move updates the imports), the checks it would leave unable to run (a glob that would match no file; their guard's findings are counted as not re-checked, not removed), and the cycles it would create, break or change (grow, join, shrink; only a merge, `--move a.py=b.py` onto an existing file, changes them). `NEW/`, `.` or an existing folder moves a file or folder into it, as `git mv` does. Assumes the code naming a moved file is updated with it; other guard kinds are not re-checked. `--json` for programs. Exit 3 when the move adds a finding, a cycle or an unchecked guard, 2 on a bad move |
| `backlog <item\|file:LINE\|symbol>` | A numbered backlog item (`docs/BACKLOG.md` rows and headings) with every code comment that cites it, or the items that explain a line or a symbol: the comments on and above it and the declaration comments of the fields it uses, with the part of the item about that code; exit 2 when nothing matches |
| `rationale [symbol\|path] [--limit N]` | The comments that say why: `WHY:`, `NOTE:`, `NB:`, `HACK:`, `IMPORTANT:`, `RATIONALE:` (any case, with the comment lines that follow) and comments citing a decision record (`ADR-12`, `docs/adr/...`, `DESIGN.md D50`, "decision record"), quoted with their `file:line` and attached to the definition they sit directly above (decorators and annotations may come between) or in, else to the module; for a symbol, a file, a folder or the project. Each is `statically_verified` that the comment is there; what it says is its author's statement, not checked; the definition it explains is `strong_inference` (`attach_status`). Read from the files as they are (nothing is added to the index); MCP `node_inspect` quotes the ones of the node (`rationale`, at most 5). Exit 2 when there is none, the name does not resolve or its file changed since the index (`stale`) |
| `agent-lint [--file PATH] [--no-memory] [--all]` | AGENTS.md, CLAUDE.md, GEMINI.md, Copilot, Cursor, Windsurf and Cline rules and Claude Code's memory for the project, checked against the tree line by line: paths exist (with the case as written; a `file:LINE` within the file), npm/pnpm/yarn scripts, make and just targets, `python -m` modules, installed packages, extras and tools run by name are declared, and two files agree on the test/lint/format/typecheck/build commands and the package manager (against the lock file). Each check has a verdict (ok, wrong, unknown), a status and `file:line` evidence, with the nearest names for a wrong path; a missing git-ignored path is unknown. Exit 3 when something is wrong, 2 when there is no instruction file. |
| `brief [--max-chars N]` | The project brief, not the decision brief (`decide brief`): a short summary built again from the files on every call, each line with the `file:line` it was read from (a folder's file count cites the folder): name, version and runtime (`pyproject.toml`, `package.json`), console scripts and `bin`, the build backend, the package.json scripts, Makefile targets and justfile recipes named build/test/lint/format/typecheck, pytest settings, the commands CI runs (`.github/workflows` `run:`, `.gitlab-ci.yml` `script:`; test commands first), the top-level folders (what a manifest says each is, then file counts and main extensions) and conventions (`.editorconfig`, `.gitattributes`, line-length, strict modes, pre-commit hooks, agent instruction files). Cut to `--max-chars` (default 2,000; 200-20,000): the first two lines of each section, then the rest, CI last; the lines left out, and the CI commands past the first 10, are counted. Exit 2 when nothing was found. |
| `datapack [tag\|score\|team\|bossbar\|function NAME \| packs] [--with PATH]` | Minecraft datapacks: entity tags checked but never added, tags added but never checked, objectives written but never read, objectives, teams and boss bars used but never declared (`scoreboard objectives add`, `team add`, `bossbar add`, Java `addObjective` / `addPlayerTeam`; each with its sites, `strong_inference`; a name Java declares by a built string marks it "maybe declared by" that line), names that break the rules set in `datapack.naming` of `.verinoda/config.json` (a regex per kind: objective, team, bossbar, tag, function; none by default), calls to missing functions (mcfunction and Java together), resource files two packs or mods ship with different bytes (both files listed; merged files such as tags without `replace` and lang files left out) and mod dependencies not met (a required mod missing, a version outside the declared range, a mod another declares it breaks; `--with` adds a mod jar, a datapack or a mods folder to the set, without it a dependency the repository lacks is listed as not checked); `packs` lists the packs and mods found with the same checks; or every site of one tag, objective, team, boss bar or function (an objective, team or boss bar says whether anything declares it; a function's callers include Java: command strings, `getFunctions().get(...)` of an identifier, and the project's helpers around it, recognised by their body; names Java builds at run time are listed as dynamic; a Java tag constant is the one Java binds, `c ? A : B` adds both, `entityTags().add(...)` is an add, and a tag name built at run time (`a.tag + "_at"`) marks a checked tag "maybe added by" that line); exit 2 when nothing matches. The functions are in the graph too, so `when`, `trace` and impact follow `function` and `schedule` calls, and the Java calls into them (D71); a function id with a folder (`ns:dir/name`) names the function |
| `trace-log FILE [--no-store]` | The stack traces and GameTest results of a log: the project's frames mapped to methods with their callers, the game's folded, a trace through a test's `succeed`/`fail` tied to that test; a known crash pattern (out of memory, the watchdog, a missing dependency or class, a Mixin that failed to apply, the wrong Java) named with its log line, and the mods its frames point at scored by their frames' positions (`strong_inference`, the inputs shown); stored as claims whose evidence is the log (it observes, never verifies). A Sentry event export (`exception.values[].stacktrace.frames`) or an OpenTelemetry trace in OTLP JSON (`code.*` span attributes, `exception.stacktrace`), read from the local file only: each frame mapped onto the repository by path suffix (several matching files named, none picked), its line checked against the current file and the definition the index puts there; a mapped frame is `observed` for that event only (`not_checked` names a source line or function name it was not compared on), a stale one says why (file missing, line beyond the end, another function at that line), frames the export marks as a library's (or a `site-packages`-style path it does not mark its own) folded, others of unknown origin reported as not in the repository. A file is read as an export when it parses as JSON (or JSON lines, where most lines parse or only a cut last line fails) and holds an event or span; a `.json` / `.jsonl` / `.ndjson` file that does not parse, is over 32 MB or holds neither is refused (exit 1), any other file is read as a log. At most 200 events, the innermost 200 frames of each and 50 stored claims a run (an export imported again adds none); `--json` has `mode` (`export` or `log`) and a `claims_note` (a stored claim never verifies: in practice `weak_inference`). Exit 0 when something was read, 2 when a log had nothing to map |
| `secret-scan [FILE ...] [--fix]` | Secrets (token formats, key blocks, `password=` values, this environment's secret variables) and e-mail addresses left in files; by default the run logs and copied logs under `.verinoda/` and the `ui --export` file, which Verinoda already writes redacted. Each finding is `file:line` with its rule (`strong_inference`: a pattern), never the value; `--fix` redacts in place keeping line numbers; exit 1 on a finding |
| `shader [FIELD] [--check [--glslang]] [--includes]` | Where a GLSL uniform block field (`Weather.y`) is filled in Java, from the block's field order and the writer's `put...` calls; `--check`: blocks and writers or mirrored constant tables that disagree, and shader lint with lines: `#include` / `#moj_import` missing or in a cycle, brackets or `#if`/`#endif` that do not balance, `#version` out of place, a standard Iris/OptiFine uniform used undeclared or a macro tested but never defined (exit 3); `--glslang`: also compile each pack stage with `glslangValidator` when installed (off by default); `--includes`: the include edges with their lines |
| `lang [--default LOCALE] [--no-unused]` | Minecraft translation keys: keys missing from a locale or only in it, written twice, placeholders that differ from the default locale (`en_us`), keys the code asks for that no lang file defines, keys nothing names; each finding cites both files (exit 3) |
| `access-check [FILE ...]` | Access wideners and access transformers against the class files of the build's classpath (`code_check.classpath` or the one a Loom build resolved): every entry with its `path:line`, `exists` (with `jar!class` as evidence), `absent` (a member missing from a class file read, with the nearest real names or its real descriptors; a class on no jar of a complete classpath), `malformed` (an unknown access, a wrong word count, a dotted class in a widener, a bad descriptor, no header) or `unknown` (an incomplete classpath, a JDK or project class, a widener in another namespace than `named`, an SRG name). Exit 3: absent or malformed; 4: something unknown; 2: no file |
| `mixin-check [FILE ...]` | Mixins against the bytecode of their `@Mixin` target on the build's classpath (the same jars as `access-check`): every injector's method selector (a name, a name with its descriptor, `name*`), every `@At(INVOKE / INVOKE_ASSIGN / INVOKE_STRING / FIELD / NEW, target = ...)` against the calls, field accesses and `new` the selected methods' bytecode actually holds, and every `@Shadow` field and method by name and type (`shadow$` or the written `prefix` stripped). Each row has its `path:line`, `exists` (`statically_verified`, with `jar!class` as evidence), `absent` (`strong_inference`, as in `access-check`: the classpath may be older than the build file; the nearest real names by edit distance as a suggestion) or `unknown` (the target class on no jar read, a JDK or project class, with the next step; a member inherited, or maybe inherited from a super class not read; an intermediary or SRG name; a regular-expression selector, or one that is not a constant string; an `@At` whose selector matched nothing; a method with no bytecode; a `NEW` target that is no constructor descriptor). Exit 3: absent; 4: something unknown; 2: no `@Mixin`. With `--conflicts [--with PATH ...] [--log PATH]`, instead: Mixins of several mods on the same target method, the project's and those of the mod jars found locally (the build's classpath, Loom's remapped mods, `run/mods`, `runs/*/mods`, `mods`, the jars or folders given with `--with`, nested jars; nothing downloaded). Each pair of different mods names both Mixins (mod, class, member, priority, `path:line` or `jar!entry`) and the target, and is `conflict` (two `@Overwrite`, `@Overwrite` and any injector, two `@Redirect` of one call), `order_dependent` (a `@Redirect` and another injector on its call, one constant, local or argument changed twice, a cancellable `@Inject` beside another at `HEAD` / `RETURN`) or a shared target with compatible kinds, all `strong_inference`. `--log` names each Mixin failure of a `latest.log` or crash report (`InvalidInjectionException`, `@Redirect conflict`, `Method overwrite conflict`, `Mixin [...] FAILED`; a `.gz` log unpacked) with its mod through the config that lists it, the log line as evidence. Exit 3: a clash or a failure named with its mod; 4: no other mod's Mixins read, a failure's mod not found, or a log that is not text (3 wins over 4); 2: no Mixin. Where Mixin's debug export is found (`.mixin.out`, `run/.mixin.out`, `runs/*/.mixin.out`, or `--export PATH`; written by a game started with `-Dmixin.debug.export=true`), `mixin-check` also says what each Mixin really changed: every injector `applied` (its renamed handler, `handler$...` / `redirect$...` / `localvar$...`, is in the exported class with `@MixinMerged` naming the Mixin, and the methods that call it are named; an `@Overwrite` carries the annotation) or `merged` (no caller found), both `observed` with the exported class file as evidence, `not_applied` (`strong_inference`; `unknown` when the Mixin's source is newer than the export) or `unknown` (the class was not exported in that run, with the next step; or two injectors share a handler name and their parameter types do not tell which merged method is whose); per target class the methods, fields and interfaces the export has beyond the original on the classpath and the calls each original method gained or lost; the rows of `audit/mixin_implementation_report.csv`. No export: one `unknown` with how to turn it on, and the exit code stays the name check's. `verinoda analyze` cites the exported class in a Mixin claim |
| `plan draft\|check\|schema\|audit` | Question plans: draft from the message (TR/EN rules), check and ground a plan file, print the schema, re-judge an analysis' sub-questions later |
| `analyze ["<q>"] [--plan FILE] [--intent INTENT] [--run-tests] [--observe] [--refresh auto\|inline\|skip]` | Budgeted loop per sub-question → claims + evidence + critique + unknowns, each sub-question judged against its `done_when`. `--intent` (MCP: `intent`, full profile only; not with a plan) is what the caller reads the question as, one of the plan intents (`locate`, `define`, `flow`, `callers`, `dataflow`, `config`, `tests`, `why`, `history`, `impact`, `behaviour`, `compare_reference`, `performance`, `architecture`, `usage`, `decide`): used only when the rule reading of the question agrees (it then picks the sub-question's handler and `done_when`), otherwise reported as `intent_check` with both readings and the rules' plan answers; it never changes a claim's status. The default output is the text a model reads: the snapshot, how the question was understood, where its words resolved in the code (`plan links:`), one block per sub-question with its verdict, answer claims and unknowns, the other claims, then the passages `verinoda query` gives; `--json` prints the full record (steps, usage, every field). The index refresh that runs first is not charged to the budget: `auto` skips a slow one on a big project and names the changed files, `inline` always refreshes (waiting for a build already running), `skip` never does |
| `claim show\|list\|add` | Inspect claims, or record one with source evidence (`--kind location\|relation\|config\|order --symbol X` for a mechanical grade; definitive misses are contradicted when the claim is created) |
| `claim asof --time WHEN \| --commit REV [--status S]` | Claims in time. `--time` (an ISO date or time): each claim's status as Verinoda had recorded it then, read back from the append-only history (observed). `--commit`: which claims held at that commit, from a transition recorded at the revision (observed), else at the nearest commits with a record in its history (carried over: strong_inference), else no record. Every transition now records the snapshot whose tree it read (none for the working tree; a dirty snapshot is at no commit) |
| `fact add NAME --from-claim ID [--from-fact NAME] \| --search PATTERN [-F] [-i] [--path P]` / `fact list\|show\|refresh\|retire` | Derived facts: a result kept under a name with what it rests on. `--from-claim` (repeatable, with earlier facts by `--from-fact`): the claims taken together, its status the weakest of theirs (contradicted, then stale, then the lowest rank), never stronger; a superseded claim or a retired input fact counts as stale. `--search`: a stored `verinoda search`, its sites and the content hashes of the files in its scope; `observed` only when every file in its scope was read, else `weak_inference` (cut short, or files the search skips: over 2 MB, binary, named). `scan` and `update` lower a fact whose input went stale or weaker and mark a search fact stale when a file in its scope changed, then recompute the stale ones within 20 facts and 10 s (searches re-run, input statuses re-read; no `verify`; not after `--fast`; a fact resting on a superseded claim or a retired fact cannot recover and is listed instead; `facts.refresh_on_update: false` turns that off). A read re-checks a fact without writing (its inputs, the files a search matched). A search cut short never replaces a complete result. `fact refresh [NAME ...] [--limit N] [--budget S] [--no-verify]` also re-verifies a stale input claim (`verify`, static) and shows a changed result old against new (sites added and removed; a line that only moved is not a change). `query`, MCP `project_query` and `analyze` list the facts a question names as leads with their re-checked status, not as evidence. Retired, never deleted; exit 2 on a bad name or input, `refresh` 1 on an error |
| `verify <id> [--run]` | Re-check evidence against the current tree (anchored relocation; optionally re-run its test) |
| `challenge <id>` | Critique and counter-hypothesis probes; lowers status/confidence when support is weak |
| `resolve "<text>" [--reference URL[@ref]] [--network off\|cache\|on] [--local-intent]` | Pin every reference in a message to the exact version meant; reports mismatches and questions for the user |
| `research <url-or-repo> [--ref] [--topic] [--resolution ID --reference-id rN]` | Reference repo pinned to an exact commit (or the pin from `resolve`), or a document; mechanism trace |
| `compare <local> <reference> --topic …` | Assumption diff: data structures, errors, concurrency, environment, dependencies |
| `feedback add\|process\|resolve\|show\|list` | User critique handled as a hypothesis → confirmed / qualified / corrected / unresolved (references resolved first) |
| `experiment run --hypothesis … [--ref REF [--overlay PATH]] -- <cmd>` | Isolated targeted experiment on a copy of the working tree, or with `--ref` of one commit (the working tree and `.git` untouched; `--overlay` lays working-tree files over it); logs on disk, summary + evidence + the tree hash of what ran recorded; refused when policy does not allow it |
| `decide brief\|answer\|record\|import\|guard\|accept\|waive\|supersede\|link\|toc\|list\|check\|baseline\|ask\|undocumented\|dismiss` | Decisions stay human (D33). `brief "<question>"`: the code's side of a should/which/scale question and at most 5 questions only the user can answer, never a recommendation (`--argument "NAME: text"` shows the agent's own argument under an option, as weak_inference). `answer <brief-id> --q qN`: the user's answer. `record`: the user's explicit choice as a Markdown decision record with guards, governed symbols and revisit conditions (the decisions folder: `--decisions-dir`, `decisions.dir` in `.verinoda/config.json`, `[decisions] dir` in `verinoda.toml` or `[tool.verinoda.decisions] dir` in `pyproject.toml`, default `.verinoda/decisions/`); `import` a hand-written ADR (guards only proposed); `guard` / `accept` / `waive` / `list`. `supersede OLD --by NEW`: the old record becomes `superseded` and both records name each other; `link ADR-N KIND ADR-M` (amends, clarifies, depends-on, relates-to) also writes the reverse link on the other record; `toc [--write FILE.md]`: the records by date with their relations, as a Markdown table and a Mermaid graph (`--json`: the timeline; `verinoda ui` shows it at `#/d`); a relation only one record states is a warning, not a problem. `check [--changed \| --base REF] [--decisions-dir DIR]`: VIOLATED / POSSIBLE / REVIEW / TRIGGER, ok with scope and limits; exit 1 on VIOLATED, 3 when something could not be checked (status `unknown`), 2 on an error or when a running index build or a failed refresh left edge guards unchecked (it waits up to 120 s for a build already running). Architecture rules (D95) are guards over graph edges, each violation at the edge's cited line: `layers order=src/ui/**,src/core/**,src/db/**` (top first: no edge from a lower layer up), `allow_edges from=GLOB allowed=GLOB,...` (those files use only each other and the allowed ones), `public module=GLOB api=GLOB,...` (outside code reaches the module only through its api files); a glob may be `tag:NAME` from `[architecture.tags]` in `verinoda.toml` (or `[tool.verinoda.architecture.tags]` in `pyproject.toml`). `script path=FILE.py [timeout=SECONDS]`: a rule written as a Python program in the repository that defines `check(guard)` and reports `guard.violation(path, line, why)` / `guard.possible(...)`, reading the graph (`guard.files()`, `nodes(file)`, `node(id)`, `edges(relations, from_file, to_file)`: `graph.json` as the index wrote it, without the receiver-call edges; file filters are exact strings, case-sensitive on Windows too), the stored claims (`guard.claims(status, limit)`: the newest 20,000, read by Verinoda and handed over as data) and files (`guard.read(path)`). A script guard runs the project's own code with the user's privileges, like the project's tests under `experiment run`: `decide check` and `decide baseline` run it only in a project the user trusts (`verinoda trust`; trust is the boundary), in a child process of Verinoda's own interpreter (not the project's environment: its dependencies, and modules next to the script, are not importable) with a scrubbed environment, a timeout (default 60 s, at most 600) and an audit hook. The hook is a tripwire against accidental network, processes and writes, not a sandbox: it refuses sockets, process creation, ctypes, sqlite3 connections, file writes and a writable file mmap, and on Windows the `_winapi` file, pipe and process calls, registry writes and UNC paths in `open` / `listdir` / `scandir` / `chdir`; calls with no audit event (`os.stat` and `exists()`, which reach UNC paths and mapped network drives too), native code and handles opened before the hook get past it, and reads are not limited. The result comes back on a private pipe with a per-run nonce (a script that prints a fake result line is `unknown`; one that digs through the interpreter can still forge it). MCP, `update` (which counts script guards on their own) and `what-if` report it `unknown`, and MCP never records or accepts one. A finding must cite a line of a repository file (a VIOLATED is `strong_inference`: the script's logic is not verified; the first 500 findings are listed, the rest counted as `unknown`); a script that raises, exits or times out is `unknown`, never ok. `.pre-commit-hooks.yaml` offers `verinoda-decide-check` (`decide check --changed`) for the pre-commit framework (3.2.0 or later); a collaborator who has not run `verinoda trust` on their checkout gets exit 3 (script guards unknown) on every commit. `baseline [--record --said "..." [--replace] \| --shrink]`: known violations `check` does not fail on, in `baseline.json` next to the records (committed); each site keyed by its decision, guard, file and code line text, so a moved line keeps its entry and a changed one is new; `check` lists them as `baselined` (still violations) and the entries it no longer finds as fixed; `--record` needs the user's words and grows an existing baseline only with `--replace`; `--shrink` removes fixed entries and never adds. `undocumented`: structural choices no decision record covers - one file holding every storage sink line of a kind, a declared Python dependency imported by one product file, one file reading the whole environment - each a `weak_inference` candidate over a `statically_verified` fact with `path:line` evidence, with the guard spec that would keep it and the `record` command; a live record or ADR that names the file or library covers it. `dismiss CANDIDATE --reason "..."` (the user's call; `--undo` lists it again): kept in `.verinoda/dismissed_decisions.json`, not committed. `ask SOURCE TARGET`: before a dependency is written, whether SOURCE (a project file, new or not) may depend on TARGET (a project file, a Python module that names one, or a package) under the accepted guards: `forbidden` (an edge rule or `dependency absent=` forbids it), `restricted` (an `only_in` rule keeps calls through it to other files), `allowed` (no accepted rule forbids it) or `unknown` (an undefined tag, an unreadable record, no accepted guard), each rule that applies cited at its record line; it reads the records, never the code or the graph; exit 1 forbidden, 3 unknown; MCP `dependency_ask`. `ask ... --registry [--network off\|cache\|on]` (CLI, opt-in): for a package target, also the registry check of `check --deps --registry` (the registry from the source file's language); the verdict on the guards is unchanged |
| `debug start "<symptom>" [--base REF] [--trace] -- <repro>` / `debug try --hypothesis … [--observed-output FILE --exit-code N -- <the command you ran>] [-- <cmd>]` | Debug ledger (D34): every attempt at fixing one symptom with the tree it ran on, the patch vs the base, the failure at `file::symbol` and progress; definitive loop rules say stop (exit 3), heuristic ones warn. Failures are read from pytest output, Python tracebacks, Minecraft GameTest summaries, JVM, Go, Rust and Node output. A run you made yourself is agent-reported: it never verifies anything and never outweighs Verinoda's own runs of the same tree. A narrowed command's pass is never a pass of the repro; skipping or deselecting the failing tests is caught |
| `debug status\|diff\|close [--resolved-by N [--accept-test-edit]\|--abandoned]` | The ledger; the working tree against the base or an attempt; close (resolved needs a pass of the repro command on the current tree, no Verinoda run of that tree failing, and the user's decision on any test changed since the first attempt; when the baseline passed, a failure seen only after an edit is the edit's own and does not count as the symptom; Verinoda never says "fixed") |
| `debug differential [--trace] [--prepare] [--overlay PATH]\|bisect [--good REF] [--attempts]\|rerun [--times N]\|observe` | Strategies in throw-away copies, each recorded: the repro at the base with the symptom's test held fixed and the diff's hunks ranked; a bisect that runs both ends first (over commits, or with `--attempts` over the session's own attempts and agent steps, each recorded tree rebuilt from the base and the blob store: the first attempt whose tree fails, with the run ids on both sides); the pass rate; a traced run (are the edits reached, the call chain to the crash) |
| `debug flaky [--runs N] [--test ID]` / `debug quarantine TEST_ID [--remove] [--reason TEXT]` | Each test's pass rate over the runs the debug ledger made (every run Verinoda makes of a repro, `debug rerun` included, keeps each test's outcome; a runner without per-test results counts as its command): flaky tests (both outcomes on one tree), failing tests whose change held for N passes in a row on a changed tree (default `debug.rerun_times`, 5) and your quarantine list with each test's state; heuristics (`strong_inference`) with the runs' evidence ids, never "fixed". Verinoda never skips a quarantined test; `--json` |
| `review [--base REF \| --staged \| --target FILE::NAME --change body\|signature\|remove] [--since-last] [--run-tests] [--observe] [--max-chars N] [--coverage REPORT]` | Change review (D35): the changed definitions, their dependents with via-chains, findings by concern (persistence, security, performance, public API, config, entry points), a verdict per public definition added, removed or re-signed (`api_changes`: breaking with the call sites it breaks, compatible, or unknown), which tests reach the change and which code none reaches, the affected tests (the test-to-code map every traced run updates first, static reach as the fallback, each labelled) with one pytest command that runs them, the changed lines a coverage report shows no test ran (any language: lcov, Cobertura XML, JaCoCo XML, coverage.py JSON, found at the usual paths or given with `--coverage`) with the patch coverage, what to read first (changed code, call sites, then finding lines, each hottest function first by its changes in the last 500 commits touching the file x cyclomatic complexity), who should review it (the authors of the base lines it modifies, by `git blame -w`, the change's own author left out, as `strong_inference`; the CODEOWNERS rule of each changed file) and the earlier commits that changed the same definitions (`git log -L` from the base, each message quoted), a risk score (`risk`: the findings the change introduced, breaking and unjudged public API changes, dependents, changed code no test reaches, changed lines a coverage report shows no test ran and the unknowns, each `count x weight` up to a cap, every part listed with its points and anything not measured said; `strong_inference`, a heuristic whose low values never mean safe), and the decision records the change reaches (a governed symbol changed, a file or line a guard names, a manifest line or new file a revisit condition names) with the line of each, and what the change makes stale (`made_stale`: the stored claims whose recorded symbol, section or file fingerprints differ between base and head, the notes fresh on the base and changed or gone on the head, the decision records whose governed symbol or own file changed; nothing is written, `update` marks the claims), and in a monorepo the workspace packages the change affects (`affected`: the packages holding changed files and those declaring a dependency on them, each with its manifest line, as `verinoda affected` lists them); exit 3 when there are findings, unknowns or changed lines a fresh report shows no test ran; `--since-last` leaves out the findings the last recorded review of the same base and mode already listed (matched by concern, rule, file and text with numbers masked, so lines that moved do not count as new), says how many, lists the ones gone and names the changed definitions new since then |
| `sarif FILE ... [--path P] [--limit N]` | SARIF 2.1 in and out. In: a linter's or CodeQL's SARIF files read as evidence, each result a claim at its `file:line` (the file tied to the repository as a relative path, under a `uriBaseId`, or by the longest existing suffix of an absolute CI path), with its tool, rule, level and the innermost definition around it; the named tool's statement, not checked here: `strong_inference` while the SARIF file is newer than the file, else `weak_inference`; suppressed, `pass` and fixed (`baselineState: absent`) results are counted, not listed; errors first; exit 4 = no file read. Out: `review --sarif`, `check --sarif`, `decide check --sarif` and `taint --sarif` print their findings as a SARIF 2.1.0 log for GitHub code scanning (`github/codeql-action/upload-sarif`): one rule per finding kind, each result at the cited `file:line` with its status and evidence in `properties`, the level from the status (verified `error`, `strong_inference` `warning`, weaker `note`; a review finding is a `warning` at most), baselined and waived guard violations suppressed; the exit code is unchanged |
| `import-findings FILE ... [--tool auto\|errorprone\|nullaway\|jdeps] [--path P] [--limit N]` | JVM checkers' findings read as evidence; nothing is run, the files are logs and reports the build already wrote. Error Prone and NullAway diagnostics as javac prints them (`Foo.java:12: warning: [NullAway] ...` with the quoted line, the caret and Error Prone's "Did you mean" fix), alone or in a Gradle, Maven (`Foo.java:[12,9] [Check] ...`) or Ant log, CI timestamps and colours stripped, UTF-16 logs from PowerShell read; `jdeps -jdkinternals` output (JDK 8 and 9+) with its suggested replacements; a SARIF file is read as `sarif` reads it. Each finding is a claim at its `file:line` with the tool named (its version when the log names the artifact), the check, the level and the log line it came from: a path tied to the repository (absolute, relative, or the longest existing suffix of a CI runner's path), a jdeps class to its source file by package path and to the first line naming the internal API. The tool's statement, not checked here: `strong_inference` while the log is newer than the file or javac's quoted line is still at that line, else `weak_inference` (moved to the line that now has the quoted text). javac's own `-Xlint` warnings, classes with no source file here and repeats are counted, not listed; errors first; exit 4 = no file read |
| `affected [--base REF \| --staged \| --file PATH ...]` | The workspace packages of a monorepo a change affects (the same block as `review`'s `affected` key): packages from the manifests (npm, yarn and pnpm workspaces, Cargo `members`, Gradle `include`, Maven `<modules>`, Python `pyproject.toml` and Go `go.mod` in subfolders), the packages holding changed files, then every package that declares a dependency on one of them, each with the manifest line and the chain; `statically_verified` when the manifest says the dependency is the local package (`workspace:`, a Cargo `path`, `project(...)`, a Go `replace` or `go.work`, a uv or Poetry local source, a Maven module of the same group), else `strong_inference`; npm `scripts` as build targets; changed files outside every package listed, not followed. `--file` names the changed files instead of the git diff |
| `coverage [PATH ...] [--report FILE] [--base-report FILE [--base REF]] [--limit N]` | Coverage reports read into lines and symbols, in any language: lcov (istanbul, c8, Jest, Vitest, cargo-llvm-cov, ...), Cobertura XML (coverage.py, gcovr, ...), JaCoCo XML (Gradle, Maven) and coverage.py JSON, found at the usual paths (also in sub-project folders) or given with `--report`; the report's files tied to the repository's by path (`com/ex/Foo.java` to `src/main/java/com/ex/Foo.java`). Per definition: the measured lines that ran, the ones that did not, and the tests that ran them where the report names them (lcov `TN:`, coverage.py contexts); least covered first, each a claim with `file:line` and the report as evidence, `strong_inference` while the report is newer than the file, else `weak_inference`. `--base-report`: the lines whose coverage changed, the indirect ones (files the working tree did not change) listed apart. Nothing is run; exit 4 = no report read |
| `health [PATH ...] [--limit N] [--min-similarity R] [--min-tokens N] [--no-clones]` | Code health per function (default: every code file that is not a test): cyclomatic and cognitive complexity, deepest nesting with its line, length and parameters, counted on the syntax tree (Python `ast`, the tree-sitter grammars) and so `statically_verified`; a health score from 10 down to 1, one point per smell threshold reached, and near-duplicate function pairs with a similarity ratio of their normalised tokens (names and literals replaced), both heuristics and so `strong_inference`. Lowest health first. `review` has the same measure as its `health` concern: a changed function whose health fell (base and head metrics), an added one below 10, and a near-duplicate the change made in the same file |
| `mutate [--base REF] [--tests TEST_ID ...] [--file PATH] [--max-mutants N] [--timeout S]` | Mutation testing scoped to the diff, Python: on the lines changed against the base (default HEAD) in files that are not tests, one mutant per operator site (a comparison, `+`/`-`, `*`/`/`, `and`/`or`, `True`/`False`, an integer `n` -> `n+1`, `not x` -> `x`, an `if`/`while` condition negated, `return x` -> `return None`), spliced into the text, compiled, duplicates dropped; at most `--max-mutants` (default 25) in source order. The tests the change review selects (or `--tests`) run first on the unmutated change (when they do not pass, no mutant is judged), then once per mutant, each run an experiment in a copy of HEAD with the changed files on top (the same policy and isolation as `experiment run`). Each mutant is `killed`, `survived`, `timeout` or `not_run`, with its experiment; a survivor is a `strong_inference` that the tests do not check that line (it may be equivalent). Exit 0 when every mutant was killed or none could be made, 2 on an error, else 3 (survivors, a timeout, a run not made, mutants over the limit, no test, a failing baseline) |
| `probe [--changed \| --target FILE::NAME] [--base REF] [--property EXPR] [--emit-test [--template roundtrip\|idempotent\|equivalence] [--inverse FILE::NAME] [--test-file PATH]] [--allow-side-effects]` | Behaviour probe (D36, Python): generated inputs on the old and the new version of a changed function in throw-away copies; behaviour differences, new exceptions and non-determinism with examples; refuses functions with side effects it cannot isolate. With `--template`, `--emit-test` checks a roundtrip, idempotence or equivalence-with-the-base property on those inputs and writes it as a pytest file (never over an existing one), saying on how many inputs it was observed to hold |
| `pin FUNCTION [--tests SELECT …] [--max-cases N] [--out PATH] [--force] [--timeout S] [--no-record]` | Pinned regression tests (Python, opt-in; runs the project's tests, so trusted projects only, like `observe`): the tests that reach FUNCTION (the test map and the index, or `--tests`) run once in a throw-away copy with a recorder; each call whose arguments and result (or exception type and message) rebuild from Python source - literals, Decimal, Fraction, dates, enum members, project dataclasses - becomes one test in `tests/pinned/test_pin_<module>__<name>.py` (a plain path inside the repository; `--force` replaces only a file it generated for the same function). The file runs once more in a fresh copy and only the tests that pass are kept; dropped and skipped inputs are counted by reason. Functions, static and class methods, and methods of dataclasses. The claim "FUNCTION's behaviour on these N inputs is pinned at commit X" is `experiment_verified` by the passing run. Exit 3 unless something was pinned. Not in MCP: it writes a file into the working tree |
| `observe [TEST_ID …] [--for SYMBOL …] [--terms W …] [--mode …] [--no-flaws] [--n-plus-one N] [--repeated N] [--slow-ms MS] [--slow-share F] [--compare REF]` | `--compare REF` also runs the same tests on the files of commit REF (an isolated copy) and lists what changed at run time between the two runs (`runtime_diff`): calls and library calls added or removed, SQL statements added, removed or run a different number of times, N+1 groups that appeared or went, HTTP routes reached, exception types raised in project code where they start (Python 3.12+) and test outcomes, each `observed` for the two runs (`unknown` when the run it is missing from is incomplete). Run tests under the call tracer in an isolated copy; reach per test, boundary calls, limits. Also the run's runtime flaws (`runtime_flaws` in `--json`): an N+1 (one read run N+ times, default 5, with different parameters, from a loop in a project frame, in one test phase) with its call path from the test to the statement and the loop, repeated SQL (the same statement and parameters 3+ times in a test phase) and slow paths (project functions taking 100+ ms and a fifth of a test phase, sampled). SQL is recorded on sqlite3 connections, and on other drivers through SQLAlchemy engine events; statement text with literals as `?`, parameters only hashed. Each finding is `observed` for that run (run id, `file:line`); "this is an N+1" is `strong_inference` at most, `weak_inference` when the loop is in the test. `--no-flaws` leaves the SQL recording and the sampler out |
| `resolve-call PATH:LINE TARGET [--target PATH:LINE] [--lsp [--timeout S]]` | Precise resolution of one call site (needs the `precise` extra; exit 3 = no precise answer). `--lsp` asks the installed language server of the file's language instead (trusted projects only) |
| `lsp definition\|references\|hover\|calls\|implementations\|types FILE:LINE[:COL] [NAME] [--timeout S]` / `lsp verify [PATH ...] [--max-edges N] [--timeout S]` | The installed language server (opt-in, CLI only; never started in a project you have not trusted: tsserver plugins, Gradle and Maven imports, build scripts and macros run in it). Server: `lsp.servers` in the config (`{"typescript": ["typescript-language-server", "--stdio"]}`; a protected setting), else `typescript-language-server --stdio`, `jdtls`, `gopls`, `pyright-langserver --stdio`, `rust-analyzer` or `clangd` on PATH; Verinoda never installs one. One question at the site (COL 1-based; default NAME's column, else the first name on the line), with the diagnostics the server published for the file. `verify` checks the graph's call edges whose call site is under PATH and records each answered one as a relation claim: the server's definition is the edge's target node (its line, or the annotations and modifiers above the name) -> `statically_verified`; a definition elsewhere that the target is no implementation of -> `contradicted`, naming both (an edge to a same-named overload of the confirmed target shares its claim and is listed refuted, not contradicting it). A server that is not found, not trusted, exits, hangs past `--timeout` (30 s per question) or writes something that is not LSP is `unknown` with the reason and the next step; its process tree is stopped. Exit 0, 3 when nothing was answered, `verify` 1 when an edge is contradicted |
| `check [PATH ...] [--diff [REV]] [--stdin --as PATH] [--env auto\|PATH\|none] [--all]` | Python, Java, Kotlin, and TypeScript/JavaScript imports. Do the names code uses exist? Python: imports, from-imports, attributes, keyword arguments and constant dict keys, checked in the project's own environment; Java: imports, types, methods with their number of arguments, fields, constructors and Mixin targets; Kotlin: imports, types, members and properties (D45); TypeScript/JavaScript: imports (D46); against the project, its classpath (Loom or `code_check.classpath`) and the JDK; `--diff` only the changed lines (the default without PATHs; any git diff prefix setting, also from a subdirectory), `--stdin --as` code not written yet. Each site: `exists` / `absent` (with nearest names and where else it is defined) / `unknown` (why) / `not_installed` / `guarded`. Needs the `precise` extra; exit 3 = something absent or a version differs from the lock; exit 4 = nothing absent, but a file asked for was not checked (a file in another language, a notebook, a Python file that does not parse: listed under `not_checked`, never passed) |
| `check --deps --registry [new\|all] [--network off\|cache\|on] [--diff REV]` | Opt-in package existence and squatting check over `check --deps`: the dependencies the change adds (`new`, the default: names a manifest declares now and did not declare at REV, default HEAD - a bad revision is exit 2; `all`: every declared one) and the packages code imports but no manifest declares, asked of their public registry - PyPI (JSON and Simple API), npm, crates.io, Maven Central, the Go proxy. Only public package names are sent, and only with `--network on` or `cache` (default off: registry facts `unknown`, next step `--network on`): local, workspace, VCS and URL sources are skipped (an npm alias or a Cargo rename is read as the real package), names behind a private registry the project configures (`.npmrc` scopes, an extra Python index, uv/Poetry/PDM sources, a replaced crates.io, `GOPRIVATE`) are `unknown` and never sent, and the standard libraries and Rust built-ins are skipped; npm and Maven names are asked in their declared case. Registry facts are `observed` with the URL and time: a 404 (`not_in_registry`, the name an assistant may have made up), PyPI quarantined/archived/deprecated, an npm security holding package, a yanked or deprecated latest version, first release under 90 days ago, few downloads (npm last week, crates.io last 90 days), known vulnerabilities PyPI lists. Name signals from a small bundled list of popular names (one or two edits away, other separators - an npm scope counts - , a popular name plus a generic word) are `strong_inference` at most, weak when the registry shows the near name widely used. Answers cached in `.verinoda/research/package-check.json` (`cache` reuses one younger than 24 hours; `on` always asks and falls back to it); a timeout, 5xx or unreadable answer is `unknown` and not cached; a damaged entry is a miss and saves merge with other runs atomically. Findings, each with its own status: `not_in_registry` and `registry_signal` (observed) and `lookalike_name` (strong_inference): exit 3 |
| `check --deps [--env auto\|PATH\|none]` | Declared against used dependencies: pyproject/requirements (with PEP 735 and Poetry groups), package.json (with workspaces) and Gradle/Maven builds against the imports of the project's own files. Four findings, each a claim with `file:line` evidence (the declaration, the import sites, the lock-file line) and a status: `missing` (imported, declared nowhere), `transitive_only` (imported, installed only because a declared package requires it: the project environment's metadata, the npm lock file or `node_modules`), `unused` (a runtime dependency nothing imports) and `wrong_group` (a dev dependency runtime code imports, or a runtime one only tests and tools import). `statically_verified` only where the environment or the lock file shows it; by name, `unused` and `wrong_group` are `strong_inference`; JVM imports are never `missing`. Nothing is run or installed; MCP `code_check(deps=true)`; exit 3 = something found, 4 = no manifest read |
| `api NAME [--env ...] [--private] [--docs]` | The real members of a Python module, class or function in the project's environment, or of a Java class as the build sees it (project, classpath with the Minecraft jars, JDK: signatures, access, where inherited members come from), with signatures, file:line and the installed version; `--docs` also quotes the definition's docstring and the section of the installed distribution's README that names it, each with its lines and the version (read from the installed files, offline); exit 3 = not found (missing from a module or class whose names are all known, or no such module); a name it cannot decide is `found: null` with exit 0; a name of the project's Java/Kotlin/TS/... code is `found: null` with `decided: unsupported_language`, exit 4 |
| `memory list [KEY]\|learn KEY VALUE [--claim ID] [--ttl 30d]\|forget KEY [--reason R]\|history KEY` | Versioned learnings, invalidated (never deleted) with their source claim, when their time-to-live (`--ttl`: m, h, d or w) runs out, or by `forget`. `history` lists a key's events (ADD, UPDATE, DELETE, EXPIRE, INVALIDATE, each dated with its reason) and its versions |
| `install/uninstall --agent claude\|codex\|cursor\|gemini\|copilot\|kiro\|continue\|aider --scope project\|user` | Skill (+ MCP) for Claude Code (`/verinoda`) and Codex (`$verinoda`); for the others an instructions file (or a marked block in GEMINI.md / `.github/copilot-instructions.md`) and the MCP entry where the agent has one (Aider: none). Uninstall removes only what install recorded |
| `mcp serve [--profile core\|full] [--watch] [--projects A,B \| --all-projects] [--max-loaded N] [--transport stdio\|http] [--host H] [--port N]` | MCP server (stdio) over the same core, 44 tools; `--watch` runs a fast `update` when the project's files change (file events), so the next tool call answers from the edited code without `index_update`; by default the core profile lists project_query, analyze, code_check, index_update and `run_tool`, which reaches the other core tools by name (node_inspect, relation_trace, map_view, claim_inspect, claim_list, evidence_inspect, change_review, history_search, tq, and decision_check and dependency_ask in a project with decision records); `index_update` on a folder never scanned runs the first scan (never in a home folder, a drive root or a workspace of several projects); `--profile full`, or `"mcp": {"profile": "full"}` in `.verinoda/config.json` of a trusted project (`verinoda trust`) or in the user-level config, serves all. A config whose `mcp` setting cannot be read (not JSON, `mcp` not an object, `profile` not a string or unknown) stops the server with the fix; only a missing setting serves the core profile. `--projects A,B` (registered names, `NAME=PATH` or folders) or `--all-projects` serves several projects from one process: every tool takes an optional `project` (a name; it may be left out when one project is served or when an absolute file path in the call lies inside one), a call that does not say which project is refused (`project_required`, `unknown_project`), each project keeps the profile, trust and config a server over it alone would apply (a tool its own profile does not serve is `not_served`), `list_projects` and `index_status` describe them (through `run_tool` in the core profile), and only the `--max-loaded` (default 3) most recently used projects keep their graph in memory. `--transport http` serves streamable HTTP on 127.0.0.1:8765 (`--host` / `--port`; another host is reachable from other machines and the server says so) and answers 401 to any request without `Authorization: Bearer <token>` (`verinoda mcp token`). `group_view` (full profile) shows a repository group's links, traces across its members or asks each member, only in a server that serves every member (`verinoda group`) |
| `mcp daemon start\|status\|stop [serve options]` | The HTTP server in the background: `start` (with `--projects`, `--all-projects` or `--repo`, and the serve options) waits until it listens and prints its URL; `status` asks it (behind the token); `stop` asks it to shut down through its token-protected route, never by process id. Its state file and log live in the user config folder |
| `mcp token [--rotate]` | The HTTP transport's bearer token (generated on first use, kept in the user config folder readable by you alone) and the file it is in; `--rotate` replaces it (refused while the background server runs; a foreground HTTP server keeps the old one until restarted) |
| `projects add [PATH] [--name N]\|list\|remove NAME` | Names for project folders one MCP server serves together (`mcp serve --projects orders,web`); kept in `projects.json` in the user config folder, never in a project; removing a name leaves the folder and its index alone |
| `group create NAME A B ... [--links-dir DIR]\|list\|show NAME\|remove NAME\|link NAME\|trace NAME SOURCE TARGET\|query NAME QUESTION` | Several repositories, each indexed on its own (registered names, `NAME=PATH` or folders; kept in `groups.json` in the user config folder, nothing written into a member). `link` reads the members' indexes (never rebuilds them) and links each call from one member into a function or class another member defines, through an import of that member's Python package, `package.json` name, Go module or Java class: caller, call site `file:line` and definition `file:line`, `statically_verified` when both lines re-read name the callee, else `strong_inference`. A module two members define is listed as ambiguous, not linked. The links are keyed by each member's graph: a member re-indexed since is shown stale until the next `link`. `trace` follows calls and links across members (`MEMBER:SYMBOL` when a name is in several); `query` asks every member and labels each hit; exit 2 when `trace` finds no path |
| `mcp prompts [NAME] [--arg NAME=VALUE] [--profile core\|full]` | The ready workflows the MCP server also offers as prompts (`prompts/list`, `prompts/get`): `review` [base], `onboarding` [topic], `debug` symptom [repro], `pre_merge` [base, default main]. Each is the Verinoda tool calls for that task in order, worded for the profile's menu (a tool behind `run_tool` as a `run_tool` call, a tool the profile does not serve as its CLI command), plus the reporting rules; it states nothing about the code itself. Without NAME: the list; `--json` |
| `index -- <args>` | The Graphify-derived CLI (advanced, unsupported); installer, hook and `~/.graphify` commands are blocked |
| `benchmark run\|sanitize` | Raw search vs Graphify baseline vs Verinoda on question sets with gold facts; `python -m verinoda.benchmark compare A B` prints the totals and, per approach, the facts lost and gained by id (equal totals can hide a swap) |
| `benchmark staleness replay\|mutations`, `benchmark critique-eval`, `benchmark verdict-audit [--split dev\|held_out\|all]`, `benchmark tq-audit [--work DIR] [--table PATH] [--report-dir DIR] [--no-write] [--json]` | Staleness harness (history replay, mutation suite), critique precision/recall, the wrong-`met` verdict audit (`benchmarks/verdict_audit/`), and the typed-question audit: `tq` with verify over the frozen held-out gold sets (`benchmarks/tq_gold/`, `benchmarks/tq_gold2/`) and the first set's dev split, writing the calibration table `verinoda/data/tq_calibration.json` (cells of type, answer and status keyed by the gold-set and engine hashes) and `benchmarks/results/tq-audit-DATE/report.{json,md}` with the observed precision per status next to `CONFIDENCE_CAP` (no cap is changed). Exit 1 when an answer at a verified status is wrong (the committed run exits 1: two import-alias answers `v-alias-11`, `v-alias-12` are wrong at `statically_verified`), 2 when a gold file, or the fixtures or examples it is about, changed after it was frozen |

Exit codes: 0 done, 1 error, 2 usage error / invalid plan / blocked command /
a `trace` with no path or an endpoint that does not name one symbol / an impact
`--target` that does not name one symbol / a `health` path that matches no code file,
3 "needs more" (clarification, partial resolution, refused experiment,
incomplete observation, no precise answer, an absent name or a lock mismatch in `check`, a name
`api` did not find, a debug attempt that says stop, a debug strategy that did not settle it;
`decide check` exits 1 on VIOLATED, 3 when something could not be checked and 2 on an error);
4 (`check`, `api`): nothing absent, but something asked for was not checked (another language,
a file that does not parse). Every command except `memory`, `mcp serve` and `index` accepts
`--json` (`plan schema` always prints JSON); JSON is compact when stdout is not a terminal.

In CI: commit the decisions folder and name it in `verinoda.toml` (`[decisions]` /
`dir = "docs/decisions"`); run `verinoda decide check --base origin/main` (exit 1 violated,
3 not checked) and `verinoda check --diff origin/main` (exit 3 an absent name, 4 a changed file
it does not read; a clean checkout has nothing changed against HEAD, so `check` then says
`nothing_to_check`).

## Notes and graph view

`verinoda ui` opens the project as linked notes in the browser, in the manner of
Obsidian, built from Verinoda's own index rather than from hand-written notes:

- **A note per symbol, source file, document section and data file**: qualified
  name (`Wisp.spawn()`, `search_index.rank()`), signature, doc text, the code
  (highlighted, with line numbers), and its links in sections: defined in,
  members, calls, called by, extends / implemented by, imports, imported by,
  references, the data files it names by resource id and the lines that name it,
  and the claims recorded about it with their status. A link the tool inferred
  rather than read in the code is marked `?`.
- **Local graph** beside every note (depth 1 to 3; tests, data files and
  external types can be hidden) and a **graph view** of the whole project at
  file level, coloured by folder (or by community), with a filter that
  highlights matching notes; files with no links ring the linked ones, and a
  note's links list the project's own code before tests. Both are force-directed: drag, zoom, hover to see a note's
  neighbours, click to open it.
- **The graph in 3D** (*3D* in the graph view, or `V`): the same files and links
  laid out in three dimensions and drawn with perspective, no WebGL or library;
  the flat graph inflates into depth when you switch. Click a file and the camera
  flies to it; a panel says what it is in words ("extract.py is used by 136 files
  and uses 42"; a document *mentions* files, a data file is *named by* code) and
  numbers its linked files: `1`-`9` fly to one, `N` walks round all of them,
  `Backspace` goes back along your trail, `F` follows the file (the camera circles
  it), `I` lights up what a change to it may affect, `Enter` opens its note. A
  *region* (a folder, or a community when coloured by community) is framed with
  its busiest files and the regions it works with most; `[` and `]` step through
  them, and *Tour* (`T`) visits the product's own regions first, then tests,
  examples and docs, one sentence each. `P` puts the selected file or region on a
  watch list: a chip at the bottom brings you back to it, a small diamond marks a
  watched file, and with the local server the page says when a watched file has
  changed since the index (it looks every 15 seconds; the list stays in your
  browser). Measured on Python's standard library as
  a project: about 60 frames a second in Chrome with 1,745 files and 8,259 links.
- **Command bar** (`Ctrl+K`), in English or Turkish: `focus rank` / `odak rank`
  flies to a note in 3D, `region ui` / `bölge ui` frames a region, `impact store` /
  `etki store` and `path parse to rank` / `yol parse ile rank` light up the files
  concerned, `tour`, `changed`, `open …`, or a question, which is answered as
  below; with an empty bar it lists what it can do. `?` shows every shortcut;
  `Esc` undoes one step at a time (the tour, what is lit, the view).
- **Search** by name (exact, prefix, part of the name, path) or with a question,
  which runs the same ranking as `verinoda query`; a file tree; back and forward;
  Turkish and English; light and dark. A question (three words or more, a
  question word, or a `?`) also offers **Answer the question**: the passages
  `verinoda query` answers with, each with its lines (highlighted, opening the
  editor), why it was chosen and its note, then the other places found. The
  search index is never written for it (not in an exported file: it has no code).
- **The line a link is written on** under each call, import, reference and
  resource-id link (not for a file edited since the last index: its line numbers
  would point elsewhere), and **open in your editor**: every `file:line` and a
  button on each note open VS Code, Cursor or VSCodium at that line (chosen at the
  top of the page).
- **Preview on hover**: resting the mouse on a link to a note shows its kind,
  file and line, signature, first doc lines, your note on it, its link counts and
  the first lines of its code, without leaving the page.
- **What changed**: *Changed* in the graph view rings the files edited, added
  or deleted since the index (what `verinoda update` would take in) and, in
  another colour, the files that use them; a note whose file changed since the
  index says so, since its links and lines may be off.
- **Impact and path**: *Impact* on a note lists what may be affected when it
  changes: what calls, imports, extends or names it, then what uses those, up to
  three links back (the project's own code first, tests on or off), and turns the
  local graph into that set; *Path…* finds the shortest chain of calls, imports
  and references from the note to another one, or the other way round. In an
  exported file both work at file level.
- **Butterfly**: *Butterfly* on a function, method or class puts the note in
  the middle, what calls it on the left and what it calls on the right, each a
  tree one to four links out; for a class it opens on the inheritance tree (what
  it extends or implements, and what extends or implements it, library types as
  leaves). Every link shows the line it is written on and the ceiling of an
  unchecked graph edge (`strong_inference` or `weak_inference`), and the local
  graph turns into the same set. `verinoda butterfly NAME` prints it (not in an
  exported file: it has no symbol graph).
- **Notes of your own** on any symbol, file, section or data unit: plain Markdown
  (`**bold**`, `` `code` ``, lists, `[[Name]]` links another note), kept as `.md`
  files in `.verinoda/notes/` (`notes.dir` in `.verinoda/config.json` puts them
  in a folder you commit). Each note is anchored to the code it was written about
  (a symbol or section by its fingerprint, found again wherever it moved; a whole
  file or a data unit by a hash of its lines) and shows its status: *up to date*,
  *code changed* (read it again, then *Read it: still right*, which anchors it to
  the code as it is now) or *code gone* (the symbol was renamed or deleted: edit
  it onto something else or delete it). The start page lists your notes, the
  changed ones first; `verinoda notes --changed` does the same on the command line
  and exits 1 when any note needs reading again, for CI.

It is local: a standard-library server on `127.0.0.1` (a free port unless
`--port` is given) that answers only requests addressed to that host and port;
the page loads nothing from outside (no CDN, fonts or telemetry;
`Content-Security-Policy: default-src 'none'`, scripts and styles only from the
server). The one thing it writes is your notes: `POST /api/usernote` needs the
random token of that server run, which only the page it serves carries, JSON, and
this origin, so another site cannot write through it; `--read-only` turns writing
off. It follows the index: a few seconds after `verinoda update` (or any
rebuild) the open page redraws the note or graph it shows, keeping its scroll
position, and says so (an unseen tab looks when it is shown again).
`verinoda ui --watch` also runs `verinoda update` itself when the project's files
change (once the edits stop; one update at a time; while another process
builds the index, the watcher skips that round, the page says why, and it
tries again soon). The operating system's file events wake it
(`ReadDirectoryChangesW` on Windows, `inotify` on Linux, `watchdog` elsewhere when
installed); an event only wakes it, the files' sizes and times still decide
whether anything changed, and without events it polls as before.
`verinoda mcp serve --watch` does the same for the MCP server, with the fast
update `index_update` runs. `verinoda ui --graph` opens
straight on the graph view.

**One file, no server.** `verinoda ui --export [FILE]` writes the graph view and
a note per source file, document and data file into one HTML file (default
`.verinoda/index/verinoda-graph.html`; about 4.4 MB for Verinoda's own 1,150
files) that opens with a double click, or with `--open` right away; the command
also prints its `file:///` address. Checked in Chrome and Edge from `file://`.
It is the same page with its data inside:
the graph with its filters and colours, the file tree, each file's links, outline
and claims, a file-level local graph and a name search (a symbol opens the note
of its file). It holds no code (`verinoda ui` shows it) and no path of the
machine it was made on (the project root and the home folder are taken out of
every name); its Content-Security-Policy allows only its own script and style
(by hash) and no connections, so it fetches nothing. It is a snapshot: export
again after `verinoda update`. (The index step no longer writes the upstream
Graphify `graph.html`, which loaded vis-network from a CDN when opened, and
removes an old one; `GRAPHIFY_VIZ_NODE_LIMIT` set to a positive number keeps it.)

Limits: the global graph shows at most 2,500 files (the best connected ones,
and it says how many it left out); code is read, not edited; the exported file
has file notes only (no symbol notes, no code, no question search) and shows
your notes read-only.

Measured on Python's standard library copied as a project (2,305 files, 79,526
notes, 140,342 links; Windows 11, headless Chrome): the server starts in 1.6 s,
the start page shows in 1.5 s, a search in 0.8 s, a note in 0.5 s; the graph
view (1,745 files, 8,249 links) draws in 0.4 s and runs at about 60 frames a
second while it settles; impact and path on the most connected notes take
under 20 ms. `--export` writes 9.3 MB in about 6 s. With `--watch` each look at
the tree takes 0.2 s, and an update takes as long as `verinoda update` (above,
*Known issues*). On Verinoda's own checkout (2,735 files listed, one look 0.92 s)
an edit wakes the update 1.2 s after the save with file events, against 12-22 s
when polling (a slow listing spaces the looks out), and an idle watcher uses no
CPU (polling: 1.5 s of CPU every 20 s).

## Game mods, data packs and other data files

Code often names its data only through strings: a Minecraft mod runs the
data-pack function `mymod:wisp_death`, loads `config/mymod.yml`, registers
the item whose model is `assets/mymod/models/item/x.json`. Verinoda indexes
those files too and follows the strings between them.

- **Data files are searchable.** Text files the code graph has no node for
  (`.mcfunction`, JSON, YAML/TOML/INI/properties configs, SQL, shaders, CSV,
  Gradle scripts, skipped sources) become `data` units; configs are split by
  top-level section. Files it leaves out are listed with the reason
  (`binary`, `may hold secrets` - the graph's own secret rule -,
  `.graphifyignore`, dependency or build-output folder, generated output such
  as `results/` or `logs/`, large generated JSON, minified); `doctor` counts
  them and a query names a left-out file whose name matches the question.
- **Resource ids link code and data** in repositories that are packs or mods
  (a `pack.mcmeta` or a Fabric/Quilt/Forge/NeoForge manifest): `ns:path`
  ids, `#ns:tags`, worldgen ids, `function ns:x`, translation keys
  `"item.ns.x"`, `Identifier.of("ns", "x")`, full asset paths, and bare names
  passed to an id constructor or a helper whose name says what it loads
  (`runFunction(server, "wisp_death")`). The context picks the registry
  (`advancement revoke ... only ns:x` names an advancement, `"parent"` a
  model). Query output shows `names:` / `named by:` lines; a link whose
  namespace is assumed or whose kind the line does not state is marked
  inferred, and an `analyze` claim built from it is `strong_inference`.
- **Identical copies** of a data file (a data pack shipped twice) rank once,
  as the copy in the source set; the others are listed as `same content:`.
- **Java and Kotlin calls** the extractor drops (a class name that exists twice
  in the repository, calls through typed variables, Kotlin calling Java) are
  added when the file's imports or package bind the class, and graded like any
  call site.
- **Callbacks** (`docs/DESIGN.md` D38): a method reference passed
  on (`END_SERVER_TICK.register(RepairScheduler::tick)`,
  `createTickerHelper(..., Block::serverTick)`) is a `registers` edge, never a
  call and never weighed by the ranking. `trace` follows it when no call path
  exists and labels the hop `callback`; impact, the UI and `review` list the
  method that registers a changed one; a claim "A calls B" that only a method
  reference supports stays `weak_inference`. `map --view dataflow` starts at
  the mod's entry points (fabric.mod.json, Fabric initializers, `@Mod`,
  `@SubscribeEvent`, mixin handlers, registered callbacks) and knows JVM
  file writes, `NbtIo` and dirty flags; all of these are text heuristics,
  each with its reason.
- **Reference trees**: `verinoda setup --reference original-plugin/=original,plugin`
  keeps an original implementation searchable but ranks it at 0.6x unless
  the question says "original", "plugin" or the folder name. A folder that holds
  a copy of the project's own code (a benchmark corpus with an older version, a
  vendored snapshot) is found at every scan and update and ranked the same way:
  most of its files have a twin elsewhere defining the same names, nothing outside
  it uses it, and the twins are in code the project does use (`copies.json`;
  `index.not_copies` or `index.detect_copies: false` in `.verinoda/config.json`
  undo it). A port next to its original with nothing else using either is left
  to `--reference`.
- **Turkish names from the repository**: parallel locale files
  (`lang/en_us.json` + `lang/tr_tr.json`, `locales/en.json` + `locales/tr.json`)
  teach the lexicon that "Fener Asası" is `lantern_staff`.

`examples/glow_mod/` is a small fictional Fabric mod with a data pack, a
config file, a reference tree and a copied data pack; its question set
(`glow_mod`, 14 questions, 7 Turkish) was written without running Verinoda
on it. Results: `docs/BENCHMARKS.md`.

## Coding agents

```bash
verinoda install --agent claude --scope project   # .claude/skills/verinoda/SKILL.md + .mcp.json entry
verinoda install --agent codex  --scope project   # .agents/skills/verinoda/SKILL.md (+ MCP config)
verinoda install --agent cursor --scope project   # .cursor/rules/verinoda.mdc + .cursor/mcp.json entry
verinoda uninstall --agent claude --scope project # removes only what install recorded
verinoda setup . --agents all                     # every supported agent found here
```

| Agent | MCP server entry | Instructions |
| --- | --- | --- |
| Cursor | `.cursor/mcp.json` / `~/.cursor/mcp.json` (`mcpServers`) | `.cursor/rules/verinoda.mdc` (project; user rules live in Cursor's settings) |
| Gemini CLI | `.gemini/settings.json` / `~/.gemini/settings.json` (`mcpServers`) | a marked block in `GEMINI.md` / `~/.gemini/GEMINI.md` |
| GitHub Copilot (VS Code) | `.vscode/mcp.json` (`servers`, project only) | a marked block in `.github/copilot-instructions.md` |
| Kiro | `.kiro/settings/mcp.json` / `~/.kiro/settings/mcp.json` (`mcpServers`) | `.kiro/steering/verinoda.md` |
| Continue | `.continue/mcpServers/verinoda.yaml` (project only) | `.continue/rules/verinoda.md` |
| Aider | none (Aider has no MCP client) | `.aider.verinoda.md`, named by `read:` in a marked block of a new `.aider.conf.yml` (your own keys may go around it; an existing config without the block is not edited: the step to add is printed) |

- **Claude Code**: `/verinoda how does checkout reach the database?`
- **Codex**: mention `$verinoda` in the prompt. (Codex has no `/verinoda` command.)

The skills describe the working method; all logic lives in the CLI/MCP core.
They read the CLI's plain text and add `--json` only for a field the text
leaves out (JSON cost 2-5x the tokens for the same content).
Two protocols come first:

1. **References the user gives.** When the message has links, repository or
   package names, versions, commits, PR/issue numbers, papers or docs, the
   agent runs `verinoda resolve "<message>"` (MCP `reference_resolve`)
   before researching or answering. It reports each reference as
   `<name> @ <pin> (basis: …)` with each mismatch on its own line. It never
   substitutes the default branch for a version the user named, asks only
   the returned `questions_for_user`, and states every unresolved part with
   its next step.
2. **Understand the question first.** `verinoda plan draft "<message>"`
   (MCP `question_plan_draft`). Then the agent edits the plan: it splits
   compound questions, glosses domain words, copies versions exactly as
   written, and never invents candidates. Then `verinoda plan check`: exit
   0 ready, 2 invalid, 3 needs clarification. The agent asks only the
   returned clarifications (`AskUserQuestion` in Claude Code;
   `request_user_input` or plain text in Codex) and records the answers.
   Then `verinoda analyze --plan <file>`. The answer starts with
   "Understood as / Anladığım: …", followed by one block per sub-question
   with its verdict, claims and unknowns.

3. **Check the names code uses (Python, Java).** After every edit, and before
   proposing code, the agent runs `verinoda check --diff` (MCP
   `code_check`; code not written yet: `--stdin --as <path>`). It never keeps
   an `absent` site: it fixes it from `nearest` / `elsewhere` or from
   `verinoda api <module.or.Class>` (MCP `api_members`). `unknown` is
   unverified, not fine. The report names the environment it checked.
   It reads Python and Java: a Kotlin or TypeScript file, or one that does not
   parse, comes back under `not_checked` (exit 4), and the agent says so
   instead of reporting a pass.
4. **Confirm your own sentences.** A sentence the agent writes about the code
   is recorded with a typed kind (`claim add --kind relation|config|order|location
   --symbol X`) or a verbatim quote; plain prose is at most `weak_inference`,
   and a `not_found` name is reported, not replaced.

5. **Decisions are the user's.** For a should-we / which-one question the
   agent runs `verinoda decide brief`, asks the `questions_for_human`, records
   the user's explicit choice (`decide record`) and never picks for them;
   before finishing a code change it runs `verinoda decide check --changed`.
6. **Keep a debug ledger.** `debug start` before the first edit of a bug fix,
   `debug try --hypothesis` after every edit; on `stop` it stops editing and
   follows the first strategy, and it asks before changing a test's expectation.

Then the evidence discipline: report claims with their status, never upgrade
a status by wording, `challenge` what you rely on, report `unknown` with its
next step, and treat user critique as a hypothesis (`feedback add --process`).

## How claims stay honest

- **Relevant evidence, checked in one place.** A `*_verified` status needs one
  evidence group that is verifying, fresh and *mechanically entails* the claim
  (for example: an AST call to the target at the cited line inside the claimed
  caller; a definition spanning exactly the cited lines). Every stored status
  change passes through this check, so unrelated evidence cannot verify a
  claim on any path (API, verify, feedback, experiments, runtime runs, MCP).
- **Word overlap never verifies.** Every word of "apply_discount returns the
  subtotal above the threshold" is in the lines that return `subtotal * 0.9`
  there. Term coverage makes evidence relevant (`partial`), never a
  verification; only a verbatim quote (`path:12 contains: <text>`, which
  verifies the quoted text and nothing around it) or a kind's typed check
  (call site, definition span, environment read, call order) verifies. A
  written claim that states more than its check binds (another callee, a
  condition or bound, a negation, the arguments of a call, another file than
  the cited one) stays unverified.
- **Every role is bound.** A written relation must name the caller and the
  callee in the right direction ("OrderRepository.save calls place_order" is
  checked against `save`'s body); a written config claim ("the discount
  threshold is read from ORDERS_MAX_ITEMS") must be about the name the read is
  bound to. `claim add` answers a definitive miss at once, with its scope:
  "no direct call to save in create_order_handler (orders/api.py:16-21); calls
  through other names are not followed".
- **A name written as code is never replaced by a similar one.** `analyze`,
  `plan check` and `trace` report `not_found` with `did_you_mean` ("no symbol
  named `place_orders` in this repository; nearest: place_order
  (orders/service.py:19)"); the sub-question is `unmet`. A name spelled only
  in a file changed since the index is "not in the index yet"; one the index
  spells but has no symbol for (a constant, an attribute) is `not_a_symbol`,
  with where it occurs. `trace`, `map --view impact` and `node_inspect` share
  one resolver: a detected copy of the project gives way to the original,
  test, example, fixture and vendored code to the product's own, and a name
  that several symbols still carry is listed, not picked (pass
  `path/file.py::Name`).
- **A stale index is never silent.** Reading commands list the files changed
  since the index; `analyze` says when it answered from the previous index,
  and a changed file that spells the question's subject caps that
  sub-question at `met_with_inference`.
- A graph edge (`EXTRACTED`/`INFERRED`) is never enough on its own. Search
  results, model summaries and user feedback are not even support for an
  inference. A claim with no evidence is `unknown`.
- **Definitive vs heuristic refutation.** Only an exhaustive check within a
  stated scope (no call to the target on the cited line, a precise resolver's
  definitive different target, …) makes a claim `contradicted`. A heuristic
  doubt lowers it one step and adds an uncertainty.
- **Facet-level staleness.** Claims depend on symbol facets (signature, body,
  name bindings, doc sections, the test set). An edit makes a claim `stale` on
  the next `update`/`analyze` only if something it depends on changed. Code
  that only moved is relocated through anchors, and a duplicated line is
  reported `ambiguous` rather than guessed.
- Critique and re-verification never raise a claim above its assessed ceiling.
  Critique is idempotent and never restores a stale or contradicted claim.
- Runtime observations are run-scoped ("observed in run R at commit C"). They
  never support an "always" claim, and calls seen through test doubles never
  support production edges.
- Nothing is deleted: user corrections supersede (the old claim is kept as
  `contradicted` with `superseded_by`), claim text is immutable, and history,
  plans, reference resolutions and runtime runs are append-only.
- Heuristics state their method and limits (`coverage.limits`,
  `uncertainties`, `derived_by`). Budget exhaustion or irrelevant retrieval
  yields `unknown` with the next verification step.

## Name check (Python)

`verinoda check` answers one question for code an agent (or you) just wrote: do
the modules, functions, methods, keyword arguments and dict keys it uses exist,
in this project's environment?

    $ verinoda check orders/ai/export.py
    orders/ai/export.py:7:28  ABSENT  import orders.service.place_orders
        not found in module orders.service in this project (orders/service.py)
        nearest: place_order (orders/service.py:19)
    orders/ai/export.py:15:43  ABSENT  kwarg compute_total(currency=)
        keyword currency= not found in the signature compute_total(items: list[dict]) (orders/pricing.py:6)
    orders/ai/export.py:19:10  unknown  attribute repo.save_order
        `repo` is a parameter: its runtime type is not known

- **Which environment:** `--env PATH`, else the project's `.venv`, `venv` or
  `env` when its base interpreter is a known Python installation outside the
  project (otherwise the note names the program `--env .venv` would start),
  else Verinoda's own interpreter for the standard library only: third-party
  names are then `not_installed`, never `absent`. The MCP tools never start a
  program from the project.
- **When it says absent:** only when the container's names are all known (a
  module without `__getattr__` or dynamic writes, a class without descriptors
  or code that sets attributes from outside, an instance made right there, one
  known signature without `**kwargs`, the dict literals a function returns),
  and jedi also found nothing. The wording is "not found in <container> as
  installed in <env> (<file>)", never "does not exist".
- **Unknown is not fine:** parameters, annotations, inferred return values,
  `**kwargs`, module `__getattr__`, names assigned elsewhere, `sys.path`
  changes in `conftest.py`, and standard-library names of another platform or
  Python version (`collections.Mapping`) stay `unknown` with the reason.
- **What it does not read is never a pass:** a file in another language, a
  notebook, a Cython file or a Python file that does not parse is listed under
  `not_checked` with the reason; with nothing absent the exit is 4 (3 means an
  absent name or a version that differs from the lock).
- **The project's own type checker (opt-in):** `--checker tsc|pyright|mypy|auto`
  runs the checker the project already has (`node_modules/.bin/tsc`, the
  virtual environment's pyright or mypy, else PATH) with the project's
  configuration, and lists its errors on the files and lines being checked as
  sites: a name, member or import it did not find is `absent`, a call or type
  that does not fit is `mismatch` (exit 3), each `observed` with the tool, its
  version, the configuration and the diagnostic code. TypeScript files the
  compiler read are then type-checked, not imports only. Nothing is installed
  or downloaded (no `npx`, no `pip`; pyright's PyPI wrapper is not started); a
  checker that is not found, runs past `--checker-timeout` (300 s) or prints
  output that cannot be read is exit 4 with the next step. Trust is the
  boundary: in a project you have not trusted (`verinoda trust`), no program
  inside the repository is started, pyright is not run, and mypy is not run
  when the repository's configuration names `plugins` or a
  `python_executable`. CLI only: the MCP server never starts a program of the
  project.
- `verinoda api packaging.specifiers.SpecifierSet` lists the real members
  before a call is written. Existence and signature shape only: a real name
  used wrongly is not detected.

## Documentation

- [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) — modules, state on disk, invariants
- [docs/DESIGN.md](docs/DESIGN.md) — design decisions D1-D40 and their implementation status
- [docs/BENCHMARKS.md](docs/BENCHMARKS.md) — measured comparison (no unmeasured savings claims)
- [docs/UPSTREAM.md](docs/UPSTREAM.md) — Graphify base commit, feature inventory, port method, runtime patch
- [docs/UPGRADING.md](docs/UPGRADING.md) — versioning, schema migrations, calibration changes, derived files
- [docs/AGENT-VERIFICATION.md](docs/AGENT-VERIFICATION.md) — what was verified with the real agents
- [docs/GENEL-BAKIS.md](docs/GENEL-BAKIS.md) — Türkçe genel bakış (ürün sahibi için)
- [docs/NAMING.md](docs/NAMING.md) — name availability
- [docs/RELEASING.md](docs/RELEASING.md) — how a release reaches PyPI, npm and GitHub

## License

Apache-2.0 (see `LICENSE`); portions originally under MIT (`LICENSE-MIT`).
`NOTICE` records the Graphify origin and the modifications.

TDQS

A3.5/5.0

Scored across 5 tools

Disambiguation3/5

project_query, analyze, and code_check all answer questions about code and overlap meaningfully (analyze subsumes existence-checking that code_check specializes). run_tool further muddies boundaries by bundling node_inspect, relation_trace, and change_review, which duplicate project_query and index_update concerns. Descriptions help, but an agent must reason carefully to pick the right entry point.

Naming Consistency3/5

Names are all snake_case and readable, but the convention is mixed: project_query, index_update, and code_check use noun_verb, analyze is a bare verb, and run_tool uses verb_noun. There is no single predictable pattern, though it is far from chaotic.

Tool Count4/5

Five top-level tools is a reasonable, well-scoped surface for a code-intelligence server. However, run_tool smuggles roughly twenty distinct operations (node_inspect, map_view, history_search, etc.) into a single tool, artificially compressing what is effectively a much larger toolset.

Completeness4/5

The surface covers querying, indexing, evidence-backed analysis, structure/impact/history inspection, and test tracing — solid lifecycle coverage for a read/analysis server. Gaps are minor, e.g. no direct workaround for edit application or non-listed language import checking beyond the not_checked fallback.

Maintenance

ActivityMaintained
ResponsivenessNo issues