@mrkaran/hodor 0.6.2-rc.4 → 0.6.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/dist/{chunk-LQDQ7CHL.js → chunk-AIXGPWDG.js} +651 -636
- package/dist/chunk-AIXGPWDG.js.map +1 -0
- package/dist/{chunk-DVJVQTVW.js → chunk-LO2QJD45.js} +15 -93
- package/dist/chunk-LO2QJD45.js.map +1 -0
- package/dist/cli.js +104 -10
- package/dist/cli.js.map +1 -1
- package/dist/{gitlab-5TWHYHEP.js → gitlab-OMV6OJ5Q.js} +8 -8
- package/dist/index.d.ts +18 -9
- package/dist/index.js +2 -2
- package/package.json +3 -1
- package/dist/chunk-DVJVQTVW.js.map +0 -1
- package/dist/chunk-LQDQ7CHL.js.map +0 -1
- /package/dist/{gitlab-5TWHYHEP.js.map → gitlab-OMV6OJ5Q.js.map} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
<a href="https://zerodha.tech"><img src="https://zerodha.tech/static/images/github-badge.svg" align="right" /></a>
|
|
2
|
-
|
|
3
1
|
# Hodor
|
|
4
2
|
|
|
5
3
|
> Agentic code reviewer for GitHub PRs, GitLab MRs, Gitea/Forgejo PRs, and local diffs. Powered by the [pi-coding-agent](https://github.com/badlogic/pi-mono) SDK.
|
|
@@ -57,6 +55,9 @@ npx @mrkaran/hodor <PR_URL> --model bedrock/converse/anthropic.claude-sonnet-4-5
|
|
|
57
55
|
# Extended reasoning for complex PRs
|
|
58
56
|
npx @mrkaran/hodor <PR_URL> --reasoning-effort high
|
|
59
57
|
|
|
58
|
+
# Force a full review of the entire branch (ignore previous incremental reviews)
|
|
59
|
+
npx @mrkaran/hodor <PR_URL> --full
|
|
60
|
+
|
|
60
61
|
# Custom review instructions
|
|
61
62
|
npx @mrkaran/hodor <PR_URL> --prompt "Focus on SQL injection and auth bypasses"
|
|
62
63
|
|
|
@@ -102,12 +103,16 @@ Local mode:
|
|
|
102
103
|
| `--model` | `anthropic/claude-sonnet-4-5-20250929` | LLM model as `provider/model-id`. Recommended: Anthropic, OpenAI, Bedrock, OpenRouter. Other pi-ai providers (e.g., Mistral, Gemini, xAI, Groq) are best-effort. See [docs/MODELS.md](./docs/MODELS.md). |
|
|
103
104
|
| `--reasoning-effort` | – | Extended thinking: `low`, `medium`, `high` |
|
|
104
105
|
| `--ultrathink` | Off | Maximum reasoning effort |
|
|
106
|
+
| `--full` | Off | Review the entire source-vs-target diff from scratch, ignoring previous hodor reviews (disables incremental mode) |
|
|
107
|
+
| `--target-branch` | – | Override the target branch to diff against under `--full` (default: the PR/MR's target branch) |
|
|
105
108
|
| `--local` | Off | Review local git changes (no PR URL required) |
|
|
106
109
|
| `--diff-against` | `origin/main` | Git ref to diff against in `--local` mode |
|
|
107
110
|
| `--post` | Off | Post review as a comment on the PR/MR |
|
|
108
111
|
| `--review-style` | `hybrid` | GitLab posting style: `summary`, `inline`, or `hybrid` |
|
|
109
112
|
| `--code-quality` | – | Write a CodeClimate JSON artifact for GitLab code quality reports |
|
|
110
113
|
| `--commit-status` | Off | Post a pass/fail commit status to the GitLab MR head SHA |
|
|
114
|
+
| `--require-delivery` | Off | Exit non-zero if requested comments, statuses, or artifacts are not delivered |
|
|
115
|
+
| `--fail-on-priority` | – | Exit non-zero for findings at or above `P0`, `P1`, `P2`, or `P3` |
|
|
111
116
|
| `--prompt` | – | Append custom instructions to the review prompt |
|
|
112
117
|
| `--prompt-file` | – | Use a custom prompt file |
|
|
113
118
|
| `--workspace` | Temp dir | Workspace directory (reuse for faster multi-PR reviews) |
|
|
@@ -160,7 +165,7 @@ hodor "$MR_OR_PR_URL" --prometheus-push "$METRICS_PUSH_URL"
|
|
|
160
165
|
|
|
161
166
|
In CI, set `METRICS_PUSH_URL` as a secret/variable and add `--prometheus-push "$METRICS_PUSH_URL"` to the Hodor command. Metrics are best-effort: push failures are logged as warnings and do not fail the review job.
|
|
162
167
|
|
|
163
|
-
Each metric is labeled with `platform`, `model`, `verdict`, and for PR/MR URLs also `project` (`owner/repo`)
|
|
168
|
+
Each metric is labeled with `platform`, `model`, `verdict`, `outcome`, and for PR/MR URLs also `project` (`owner/repo`). MR/PR numbers are deliberately excluded to avoid unbounded time-series cardinality. Exported metrics include token usage, cache read/write tokens, cache hit ratio, cost, turns, tool calls, duration, and findings by priority (`P0`–`P3`). A generic Grafana dashboard is available in [`docs/grafana/`](./docs/grafana/).
|
|
164
169
|
|
|
165
170
|
### GitHub Actions
|
|
166
171
|
|
|
@@ -226,7 +231,7 @@ See [AUTOMATED_REVIEWS.md](./docs/AUTOMATED_REVIEWS.md) for advanced workflows.
|
|
|
226
231
|
Hodor automatically optimizes token usage:
|
|
227
232
|
|
|
228
233
|
- **Diff embedding**: For PRs under 200KB, the diff is embedded directly in the prompt, cutting agent turns from ~60 to ~5.
|
|
229
|
-
- **Incremental reviews**: On re-runs, only reviews changes since the last hodor comment (detected via SHA markers in posted comments).
|
|
234
|
+
- **Incremental reviews**: On re-runs, only reviews changes since the last hodor comment (detected via SHA markers in posted comments). Pass `--full` to override this and re-review the entire source-vs-target diff from scratch.
|
|
230
235
|
- **Compaction**: SDK auto-summarizes older conversation turns when context grows too large.
|
|
231
236
|
|
|
232
237
|
## Skills
|
|
@@ -257,6 +262,8 @@ Skills are loaded automatically during reviews. See [SKILLS.md](./docs/SKILLS.md
|
|
|
257
262
|
bun install # Install dependencies
|
|
258
263
|
bun run build # Build
|
|
259
264
|
bun run test # Run tests
|
|
265
|
+
bun run eval:list # Validate and list review-quality eval cases
|
|
266
|
+
bun run eval -- --model <provider/model> # Execute model evals (uses API credentials)
|
|
260
267
|
bun run dev -- <url> # Run from source
|
|
261
268
|
```
|
|
262
269
|
|