kimi_verify
Verify code, diffs, or plans with an independent AI reviewer to catch bugs, edge cases, and security issues before committing.
Instructions
Get an INDEPENDENT second opinion from Kimi Code (default k3 / K3, 256K context) acting as an external third-party verifier. Calls the Kimi Code API directly — no CLI install required, just an API key (env KIMICODE_API_KEY or ~/.kimi/config.toml).
USE THIS to cross-check your own work: confirm a fix is correct, hunt for bugs / edge cases / security issues in a diff, sanity-check a claim or plan, or get a dissenting view before you commit. Different model, independent judgment.
CRITICAL — pass full context: Kimi sees ONLY the 'context' string. It has NO access to this session, the repository, prior messages, or any tools. Paste the ACTUAL code/diff/claim AND the surrounding context it needs (the goal, constraints, assumptions, relevant signatures). Vague or partial context produces vague, useless verification.
Detection: every response ends with a [kimi-model …] footer (requested/observed/k3=yes|no).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Override the reviewer persona (system instruction). Default: a meticulous, independent senior engineer with no stake in the code. | |
| model | No | Model id/alias. Default: k3 (K3). Examples: k3, kimi-code/k3, kimi-for-coding. Env override: KIMICODE_MODEL or KIMI_MODEL. | |
| context | Yes | Self-contained material for Kimi to examine: the actual code / diff / claim / plan PLUS the context needed to judge it (intent, constraints, assumptions, relevant signatures). Kimi sees nothing but this. | |
| question | No | What to verify or focus on, e.g. "is this SQL-injection safe?" or "does this handle empty input and concurrency?". Default: a general independent correctness review. | |
| include_thinking | No | Include Kimi internal reasoning in the output. Default: false. | |
| max_output_tokens | No | Max answer tokens (~4 chars/token). Default: 15000. |