Skip to content

Add AGENTS.md with agent guidelines#403

Merged
CasperWA merged 11 commits into
mainfrom
cwa/add-AGENTS-md
Apr 22, 2026
Merged

Add AGENTS.md with agent guidelines#403
CasperWA merged 11 commits into
mainfrom
cwa/add-AGENTS-md

Conversation

@CasperWA-ai-bot
Copy link
Copy Markdown
Collaborator

@CasperWA-ai-bot CasperWA-ai-bot commented Apr 22, 2026

Summary

  • Adds AGENTS.md with guidelines for AI agents (and Claude Code) working in this repository: development setup, pre-commit binary discovery, branching, commit style, testing, pull request workflow (Copilot review, squash-merge conventions, PR iteration including CI checks), release process, and codebase references.
  • Adds .claude/ to .gitignore to keep local Claude Code settings out of version control.

Test plan

  • Verify AGENTS.md renders correctly on GitHub
  • Confirm .claude/ is excluded from git status after the merge

Squash commit message

Click to view squash commit message

Add AGENTS.md with agent guidelines

Adds agent guidelines covering development setup, pre-commit binary
discovery (explicit initialisation, executability check, unset guard,
quoted invocation), branching (naming conventions clarified: both
components use lowercase and hyphens, / is the separator), commit
style, testing, pull request workflow (Copilot review with @copilot
reviewer, squash-merge conventions, PR iteration including CI checks),
release process (including major version bump guidance), and codebase
references. Also ignores .claude/ in .gitignore.

Adds agent guidelines covering development setup, pre-commit, branching,
commits, testing, pull request workflow (including Copilot review and
squash-merge conventions), release process, and codebase references.

Also ignores `.claude/` in .gitignore to keep local Claude Code settings
out of version control.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CasperWA CasperWA requested a review from Copilot April 22, 2026 07:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds repository-level guidance for AI agents to follow consistent local workflows and PR/release practices, and prevents local Claude Code config from being committed.

Changes:

  • Added AGENTS.md with development, pre-commit, branching/commit, testing, PR, and release process guidance.
  • Updated .gitignore to exclude .claude/ from version control.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
AGENTS.md Introduces standardized instructions for agents (setup, tooling invocation, PR/release workflow).
.gitignore Ignores local Claude Code settings directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.30%. Comparing base (35be6f5) to head (a89fd83).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #403   +/-   ##
=======================================
  Coverage   85.30%   85.30%           
=======================================
  Files          12       12           
  Lines         939      939           
=======================================
  Hits          801      801           
  Misses        138      138           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Pre-commit: check executability (-x) and show invocation via $PRE_COMMIT
- Bot account: recommend fine-grained PAT with explicit permissions instead
  of broad repo scope
- gh pr create: use heredoc for body to avoid shell quoting issues
- Squash message: standardise canonical format (heading outside <details>,
  content inside), update gh pr edit snippet to match and use heredoc

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-specific guidance for AI agents working in this repo, and ensures local Claude Code configuration isn’t committed.

Changes:

  • Add AGENTS.md documenting development setup, pre-commit usage, branching/commits, testing, PR workflow, release process, and codebase references.
  • Ignore .claude/ in .gitignore to keep local Claude Code settings out of version control.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
AGENTS.md New agent workflow guidelines and repository references, including CLI snippets for pre-commit and GitHub PR workflow.
.gitignore Adds .claude/ ignore entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
- Pre-commit: add explicit guard when PRE_COMMIT is unset after discovery
- gh pr edit: use unquoted heredoc delimiter so ${TRIMMED} expands correctly
- Trimming: replace echo with printf for portability
- Auto-generated docs: fix hook id (docs-api-reference) and CLI command
  (create-api-reference-docs)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-local guidance for AI agents to work consistently with the repo’s development workflow, and prevents local Claude Code settings from being committed.

Changes:

  • Introduces AGENTS.md with development, pre-commit, branching/commits, testing, PR workflow, and release-process guidance.
  • Updates .gitignore to exclude .claude/.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
AGENTS.md Adds detailed agent workflow guidance (setup, pre-commit invocation, PR workflow, release steps, codebase pointers).
.gitignore Ignores .claude/ to keep local Claude Code config out of version control.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md
- Quote $PRE_COMMIT invocation to handle paths with spaces
- Fix --reviewer flag value: use copilot (login), not @copilot (mention)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-specific operating guidelines for AI agents (and Claude Code), and ensures local Claude Code settings aren’t committed.

Changes:

  • Add AGENTS.md documenting development setup, pre-commit usage, branching/commits, testing, PR workflow, release process, and codebase references.
  • Update .gitignore to exclude .claude/.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
AGENTS.md New agent guidelines document covering local dev workflow, PR/release procedures, and key codebase references.
.gitignore Ignores local .claude/ configuration directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md
- Initialize PRE_COMMIT= before the discovery loop so the guard cannot
  pass on a stale environment variable
- Revert --reviewer "copilot" back to --reviewer "@copilot": the
  official GitHub Copilot docs explicitly use the @-prefixed form

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-specific guidance for AI agents/contributors, covering local dev workflow, pre-commit/test invocation, PR creation/iteration, and the release process; also keeps local Claude Code settings out of version control.

Changes:

  • Add AGENTS.md with detailed agent/developer workflow guidelines (pre-commit, branching, commits, testing, PR/review iteration, release process, codebase references).
  • Update .gitignore to ignore .claude/.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
AGENTS.md New contributor/agent guidelines document, including shell snippets for pre-commit and GitHub CLI PR workflows.
.gitignore Ignores .claude/ to prevent committing local Claude Code configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
Use printf '%s\n' to safely expand $TRIMMED, then append the static
squash-message template via a quoted <<'EOF' heredoc. This avoids
shell expansion of $ or backticks in the commit message content while
still correctly substituting the trimmed PR body.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repository-specific operating guidelines for AI agents and ensures local Claude Code settings aren’t committed, aligning contributor workflows around consistent setup, checks, PR hygiene, and release steps.

Changes:

  • Add AGENTS.md documenting development, pre-commit, branching/commits, testing, PR workflow, and release process guidelines.
  • Update .gitignore to exclude .claude/ from version control.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
AGENTS.md New contributor/agent workflow guidelines (setup, pre-commit usage, PR/review conventions, release steps, codebase references).
.gitignore Ignore local Claude Code configuration directory .claude/.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

CasperWA-ai-bot and others added 4 commits April 22, 2026 10:58
The guard exits with an error when no binary is found; the prose now
reflects this rather than suggesting to ask the user before the guard
even runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
A PR should not be declared ready until all CI checks pass, not just
until Copilot accepts it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace the ad-hoc CI step (checking only after Copilot accepts) with
the pattern from SemanticMatter/ds-language: wait for CI after each
push, use the wait time to address review comments, and only request
a re-review once checks are green.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
'Stop the iteration' should come after the PR description review, not
before it. Match the exact phrasing from SemanticMatter/ds-language.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CasperWA CasperWA requested a review from Copilot April 22, 2026 09:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-level AGENTS.md to standardize how AI agents (and tools like Claude Code) should work in this repo, and prevents local Claude configuration from being committed.

Changes:

  • Introduces AGENTS.md with end-to-end agent workflow guidance (setup, pre-commit, branching/commits, testing, PR workflow, release process, codebase pointers).
  • Updates .gitignore to exclude .claude/ from version control.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
AGENTS.md Adds comprehensive agent guidelines, including pre-commit invocation, PR/squash conventions, and release workflow steps.
.gitignore Ignores .claude/ to keep local Claude Code settings out of the repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md Outdated
'Use lowercase and hyphens only' was ambiguous about whether / was
allowed. Reworded to make clear both components use lowercase + hyphens
and / is the separator between them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds contributor-facing agent documentation and ignores local Claude Code config, improving consistency for AI-assisted workflows in this repository.

Changes:

  • Introduces AGENTS.md with end-to-end guidelines (setup, pre-commit invocation, branching/commits, testing, PR workflow, and release process).
  • Updates .gitignore to exclude .claude/ from version control.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
AGENTS.md New guide covering development workflow, PR conventions, and release steps for AI agents/tools.
.gitignore Adds .claude/ ignore entry to keep local Claude settings untracked.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CasperWA CasperWA merged commit 7912c4d into main Apr 22, 2026
29 checks passed
@CasperWA CasperWA deleted the cwa/add-AGENTS-md branch April 22, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants