Agent Autonomy Rules: Stop Asking Permission for Reversible Work
A rules-file block telling Claude Code, Codex, or Cursor when to just act and when to ask, so it stops pausing for permission on safe, reversible steps.
Added · Updated
Paste this near the top of AGENTS.md, CLAUDE.md, or your agent's system prompt. Pick ONE level and delete the others. Edit the [BRACKETED] lists. ## Autonomy level: [1 / 2 / 3] Level 1 - Careful (new repo, production data, or a new model you don't trust yet) - Plan first and wait for "go" before editing files. - Ask before running any command that is not read-only. Level 2 - Default (most day-to-day coding) - Do not ask permission for reversible work. Just do it and report it. - Make reasonable, reversible assumptions to keep moving; list them in your final message. - Pause only when blocked or before an action on the STOP list. Level 3 - Long run (well-tested repo, sandbox or branch, you'll review the diff later) - Work through the whole task list without check-ins. Batch questions into the final report. - If an assumption turns out wrong, fix it and note it; don't stop the run for it. ## GO list: never ask first, just do and report - Read any file in this repo; search; list directories - Edit or create files under [src/, tests/, docs/] - Run tests, linters, type checks, builds, and [DEV SERVER COMMAND] - Create commits on a feature branch; revert your own changes - Install dev dependencies already listed in [package.json / pyproject.toml] ## STOP list: always ask first, at every level - Anything irreversible or outside this repo: deleting data, dropping tables, force-push, rewriting history - Pushing to [main], merging, deploying, publishing, or releasing - Spending money, calling paid APIs beyond [LIMIT], creating cloud resources - Sending messages, emails, posts, or comments to anyone - Adding a new dependency or service; touching auth, payments, secrets, or [OTHER SENSITIVE AREA] - Changing this file, CI config, or permission/settings files ## How to ask (when you must) One message: what you want to do, why, the exact command or change, and what happens if I say no. Keep working on other GO-list items while you wait, if there are any. ## Report at the end - Done: [what changed] - Assumptions I made: [list] - Skipped or waiting on you: [STOP-list items] Note to self (the human): this file shapes behavior but does not enforce it. Back the STOP list with tool permissions, protected branches, and approval settings.
How to use it
- Click Copy template.
- Paste into ChatGPT, Claude, Grok, Cursor, or your agent framework.
- Replace the [BRACKETED] parts with your details.
Pairs well with: AGENTS.md Starter Template for Claude Code, Codex & Cursor · This Codebase Is Yours: Ownership Rules for Coding Agents · Lean CLAUDE.md: Trim a Bloated Rules File to 40 Lines
FAQ
Why does my coding agent keep asking for permission?
Default system prompts and rules files often tell newer models to be cautious, and the model can't tell which steps you consider safe. Listing what it may always do (GO list) and what always needs approval (STOP list) removes the guesswork, so it acts on reversible work and only pauses at real risk.
Is it safe to tell an agent not to ask permission?
Only for reversible work inside a clear boundary such as a feature branch, the repo folder, and test commands. Keep irreversible, external, and costly actions on the STOP list, and enforce that list with tool permissions or protected branches rather than the prompt alone.
Which autonomy level should I use?
Use level 1 for a new repo, production data, or a model you haven't tested yet; level 2 for normal coding; and level 3 for long runs in a sandbox or branch where you'll review the whole diff afterwards. Move up a level only after the agent has handled the lower one well.
Does this work for GPT, Claude, and Gemini models?
Yes. The block is plain Markdown that works in AGENTS.md for Codex and Cursor, CLAUDE.md for Claude Code, GEMINI.md, or any system prompt. Some models are more hesitant than others by default, so you may need level 2 wording for one model and level 1 for another.
Can an agent approve and merge its own pull requests?
Keep merging on the STOP list in these rules. If you want a review agent to merge low-risk changes such as docs and added tests, write a separate auto-approve policy that sorts every PR into auto-merge, human review, or blocked, and enforce it with branch protection and CODEOWNERS.
Get 3 new templates every week
Free. Unsubscribe anytime.Related templates
AI Agent Guardrails Checklist: Prompt Rules vs. Tool Permissions
Headless Agent Run Prompt: Guardrails for CI, Cron & claude -p
Agent Auto-Approve Policy: What AI Agents May Merge Alone
Browse all AI Agents templates