Documentation Index
Fetch the complete documentation index at: https://kode-f177b001.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
kode verify runs a set of proposed code changes through Kode’s full verification pipeline without applying anything to disk. Give it a JSON file of hunks or file contents, and it will check each change for syntax correctness, valid imports, call graph consistency, blast radius limits, architectural rule compliance, and security vulnerabilities. Use it to validate patches generated outside of Kode, to build CI gates, or to inspect what kode generate produced before committing.
Synopsis
Input modes
kode verify accepts two JSON structures:
Hunk mode
Use hunk mode when you have structured hunks scoped to specific files — the format produced bykode generate. Kode applies the hunks in-memory, then runs the full verification pipeline on the resulting file contents.
original_files map provides the pre-patch file contents so Kode can apply hunks accurately. Keys must match the file_path field in each hunk.
File mode
Use file mode when you have complete proposed file contents rather than diffs. Kode verifies the files directly without applying any patches.block_architecture and architecture_rules in the JSON itself:
Flags
Path to the JSON file containing hunks or proposed file contents. This flag is required.
Project root directory. Kode resolves import paths and architecture rules relative to this directory.
Treat architecture rule violations as hard failures. By default, architecture violations are reported but do not cause the pipeline to exit
1. Pass this flag to enforce them strictly.Directory where Kode appends the JSONL audit log entry for this run. The file is named
kode.log. Kode creates the directory if it does not exist.Model identifier written to the audit log entry for telemetry purposes. Does not affect verification behaviour.
Exit codes
| Code | Meaning |
|---|---|
0 | All hunks or files passed every gate (PASS) |
1 | One or more hunks failed at least one gate (FAIL), or the input file could not be read or parsed |
Output
kode verify writes a verdict JSON object to stdout:
<log-dir>/kode.log after every run regardless of verdict. Use kode stats to aggregate and trend these entries.
Alias
kode verify-hunks is a full alias for kode verify. It accepts the same flags and behaves identically. It exists for compatibility with scripts that used the earlier command name.