-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
docs: add agentchecker CLI for rule alignment #316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
moisesvalero
wants to merge
2
commits into
PatrickJS:main
Choose a base branch
from
moisesvalero:add-agentchecker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
rules/agent-instruction-alignment-cursorrules-prompt-file.mdc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| --- | ||
| description: "Cursor rules for keeping AGENTS.md, CLAUDE.md, Cursor rules, and Copilot instructions aligned across AI coding tools." | ||
| globs: AGENTS.md,**/AGENTS.md,CLAUDE.md,**/.claude/CLAUDE.md,.github/copilot-instructions.md,.cursor/rules/**.mdc | ||
| alwaysApply: false | ||
| --- | ||
|
|
||
| # Agent instruction alignment | ||
|
|
||
| When editing any agent instruction file in this repository, keep stack and workflow decisions consistent across all surfaces. | ||
|
|
||
| ## Canonical sources | ||
|
|
||
| Treat `AGENTS.md` as the project-wide contract for humans and shared agents. Mirror its decisions in: | ||
|
|
||
| - `.cursor/rules/*.mdc` for Cursor | ||
| - `CLAUDE.md` or `.claude/CLAUDE.md` for Claude Code | ||
| - `.github/copilot-instructions.md` for GitHub Copilot | ||
|
|
||
| ## Keep these fields aligned | ||
|
|
||
| - Package manager (pnpm, npm, yarn, bun) | ||
| - Linter and formatter (oxlint vs eslint, prettier vs biome) | ||
| - Test runner and type checker | ||
| - Runtime version constraints | ||
| - Shell and environment expectations | ||
| - Commit and comment conventions | ||
|
|
||
| ## Editing workflow | ||
|
|
||
| 1. Pick one source of truth (usually `AGENTS.md`). | ||
| 2. When changing stack or tooling rules, update every agent file in the same PR. | ||
| 3. Use identical wording for critical constraints (for example "never use npm"). | ||
| 4. Run `npx agentchecker` before opening a PR to detect drift. | ||
| 5. Use `npx agentchecker --check-only` in CI to block contradictory merges. | ||
|
|
||
| ## Anti-patterns | ||
|
|
||
| - Adding tool-specific exceptions without documenting them in all files | ||
| - Duplicating long prose — link to `AGENTS.md` instead | ||
| - Leaving stale instructions after migrating tooling | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 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:
Remove or correct the
--check-onlyflag reference in line 34.The
agentcheckertool does not support a--check-onlyflag. 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-aifor static-only analysis, depending on your specific tool).🤖 Prompt for AI Agents