argot.explain_hunk
Get structured evidence for a flagged code hunk, including surprising identifiers and attestation counts, to understand why it was flagged.
Instructions
Explain one hunk-level voice result with untruncated structured evidence, including surprising identifiers and attestation counts. Use as a follow-up when check_hunk flags or nearly flags a snippet; do not use it as a second independent check. It covers the fitted voice model only. Read-only; requires a fitted repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Repo-relative path of the file the hunk belongs to. Its extension selects the language and that language's model (e.g. `.py`→Python, `.ts`→TypeScript, `.rs`→Rust); an unsupported extension yields no score. | |
| file_source | No | Optional: the full current text of the file. Provide it so argot can resolve callees against the surrounding code (more accurate when the hunk references names defined elsewhere in the file); omit it and the hunk is scored in isolation. | |
| hunk_content | Yes | The changed code to score — the added/edited lines, not the whole file. A few lines is enough; argot scores the hunk, not the file. |