docs: add agentchecker CLI for rule alignment#316
Conversation
📝 WalkthroughWalkthroughA new Cursor rules prompt file ChangesAgent Instruction Alignment Cursor Rule
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@rules/agent-instruction-alignment-cursorrules-prompt-file.mdc`:
- Around line 33-34: The `npx agentchecker --check-only` command in line 34
references a flag that does not exist in the agentchecker tool. Verify the
actual available CLI options for the agentchecker version being used, then
either remove the `--check-only` flag entirely or replace it with the correct
flag that provides the intended behavior (such as `--no-ai` for static-only
analysis if that matches your requirements). Update the instruction to reflect
the accurate command syntax.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 5230b9e5-d193-44f2-8cae-21de1f980296
📒 Files selected for processing (1)
rules/agent-instruction-alignment-cursorrules-prompt-file.mdc
| 4. Run `npx agentchecker` before opening a PR to detect drift. | ||
| 5. Use `npx agentchecker --check-only` in CI to block contradictory merges. |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
agentchecker CLI --check-only flag support
💡 Result:
There are multiple distinct command-line interface (CLI) tools named agentchecker or agentcheck, and none of the widely documented versions explicitly support a --check-only flag [1][2][3][4][5]. Because agentchecker/agentcheck refers to different projects, you should verify which tool you are using: 1. AgentCheck (by hvardhan878 / PyPI agentcheck): This tool focuses on tracing, replaying, and asserting agent executions [4][5]. Its CLI supports commands like trace, replay, diff, assert, and show, but it does not list --check-only [4][5]. 2. AgentCheck (by Pringled): This tool scans for agent access to resources (e.g., IAM, API keys) [2]. Its CLI uses flags such as --ci and --fail-on to control behavior, but does not include --check-only [2]. 3. AgentCheck (by Eshaank08): This tool performs audits of agent instruction files [3][6]. It supports flags like --path, --interactive, --no-ai, and --json, but does not list --check-only [3][6]. 4. agentchecker (associated with cursorrules/AGENTS.md): This is a utility for scanning instruction files for contradictions [1]. Documentation for this tool is minimal and does not specify a --check-only flag [1]. If you are looking to perform a "check-only" operation, you may need to use an alternative approach specific to the tool you have installed, such as using --no-ai for static analysis only [3][6] or using assertions for CI-friendly validation [4][5].
Citations:
- 1: docs: add agentchecker CLI for rule alignment #316
- 2: https://github.com/Pringled/agentcheck
- 3: https://github.com/Eshaank08/agent-check
- 4: https://github.com/hvardhan878/agentcheck
- 5: https://pypi.org/project/agentcheck/
- 6: https://github.com/Eshaank08/agent-check/blob/main/README.md
Remove or correct the --check-only flag reference in line 34.
The agentchecker tool does not support a --check-only flag. Verify the actual CLI options available for the agentchecker version you're using and either remove this flag or replace it with the correct flag (e.g., --no-ai for static-only analysis, depending on your specific tool).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@rules/agent-instruction-alignment-cursorrules-prompt-file.mdc` around lines
33 - 34, The `npx agentchecker --check-only` command in line 34 references a
flag that does not exist in the agentchecker tool. Verify the actual available
CLI options for the agentchecker version being used, then either remove the
`--check-only` flag entirely or replace it with the correct flag that provides
the intended behavior (such as `--no-ai` for static-only analysis if that
matches your requirements). Update the instruction to reflect the accurate
command syntax.
Adds agentchecker — zero-install CLI that scans AGENTS.md, CLAUDE.md, Cursor rules, and Copilot instructions for contradictions and fixes them.
Summary by CodeRabbit