Skip to content

Adding to AGENTS.md - #116

Open
Airwhale wants to merge 3 commits into
mainfrom
shaun/agent-github-rules
Open

Adding to AGENTS.md#116
Airwhale wants to merge 3 commits into
mainfrom
shaun/agent-github-rules

Conversation

@Airwhale

@Airwhale Airwhale commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Two rules for agents working in this repo, added to AGENTS.md. Docs only — no code,
no tests, no behaviour change.

Updated my AGENTS.md to get my agent to be a bit less permissive with the github repo. and to reinforce not reading a .env file.

Draft PRs are the only remote state change an agent should make unprompted.
Close, merge, ready, edit, comment, force-push and branch deletion are the
maintainers' decisions -- that is what PRs are for.

Written down because it was violated: a draft PR was created, Shaun closed it,
and the agent then fired its own close at the already-closed PR and deleted the
remote branch, which nobody had asked for.

The ordering note matters more than the checklist. "Read remote state before
writing to it" is good practice but is not the rule -- had the PR still been
open, checking first would only have made the agent confident while doing the
unauthorized thing. Permission comes before the lookup, not after it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Airwhale
Airwhale marked this pull request as ready for review August 3, 2026 16:50
@Airwhale Airwhale changed the title Say which GitHub actions are the agent's to take, and never read a secrets file Adding to AGENTS.md Aug 21, 2026
@Airwhale
Airwhale requested review from Ely-S and polya-b August 21, 2026 19:17
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.

1 participant