git-agent-verdict 2.2.0 → 2.4.0

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.
Files changed (2) hide show
  1. package/README.md +7 -4
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -59,7 +59,7 @@ Bash(git agent-verdict commit)
59
59
 
60
60
  ```bash
61
61
  cargo install git-agent-verdict
62
- git config --global agent-verdict.runner claude
62
+ git config --global agent-verdict.runner claude # or codex
63
63
  ```
64
64
 
65
65
  Installs as `git agent-verdict`.
@@ -80,6 +80,9 @@ git agent-verdict "$1" standards --model opus \
80
80
  git agent-verdict "$1" docs --simple --doc docs/house-style.md --path "*.md"
81
81
  ```
82
82
 
83
+ `--model` names a model of the host's runner: `opus` is a Claude model and fails under codex. Leave it
84
+ out of a hook shared by hosts that run different agents.
85
+
83
86
  `.git/hooks/commit-msg` is the standard location and needs no configuration, but git does not track
84
87
  it, so each clone and each agent would install its own. To make the gates a property of the repo,
85
88
  commit the hook and point git at it:
@@ -95,6 +98,6 @@ repo. `--help` is the flag grammar.
95
98
 
96
99
  ## Contributing
97
100
 
98
- The reviewer runs on Claude Code today. **Please help us add support for other agents.** The seam is
99
- `src/runner.rs` and `src/agent.rs`: an agent is an argv, a session, and an answer this tool parses
100
- verdicts out of. Nothing above that layer knows which one answered.
101
+ The reviewer runs on Claude Code or OpenAI Codex CLI today. **Please help us add support for other
102
+ agents.** The seam is `src/runner.rs` and `src/agent.rs`: an agent is an argv, a session, and an
103
+ answer this tool parses verdicts out of. Nothing above that layer knows which one answered.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-agent-verdict",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "Blocks agents from committing code that does not comply with your organization's standards.",
5
5
  "keywords": ["cli", "git", "hook", "code-review", "agents"],
6
6
  "homepage": "https://github.com/fredrikolis/git-agent-verdict",
@@ -10,9 +10,9 @@
10
10
  "files": ["bin/git-agent-verdict.js"],
11
11
  "engines": { "node": ">=18" },
12
12
  "optionalDependencies": {
13
- "git-agent-verdict-linux-x64-musl": "2.2.0",
14
- "git-agent-verdict-linux-arm64-musl": "2.2.0",
15
- "git-agent-verdict-darwin-x64": "2.2.0",
16
- "git-agent-verdict-darwin-arm64": "2.2.0"
13
+ "git-agent-verdict-linux-x64-musl": "2.4.0",
14
+ "git-agent-verdict-linux-arm64-musl": "2.4.0",
15
+ "git-agent-verdict-darwin-x64": "2.4.0",
16
+ "git-agent-verdict-darwin-arm64": "2.4.0"
17
17
  }
18
18
  }