Most coding agents read a project or user instructions file on startup. Add the block below to it and the agent will check every website for AIP first, and only fall back to browser automation when a site doesn’t support it.
The instructions block
Where to put it
Pick your agent. Project files apply to one repository; global files apply everywhere you use that agent.
Claude Code
Codex
Cursor
GitHub Copilot
Gemini CLI
Windsurf
Cline
Claude Code loads both on startup. Run /memory inside a session to check which files are active.If you use Claude in Chrome for browser automation, you can name it in the block: replace “browser automation” with “claude-in-chrome”. Codex CLI merges the global file with the project file, and with AGENTS.md files in subdirectories. Start the .mdc file with frontmatter so the rule is always on:Cursor also reads a root AGENTS.md. Used by Copilot Chat in VS Code and by the Copilot coding agent. The coding agent also reads AGENTS.md. Run /memory show to check what’s loaded. Set the project rule’s activation mode to Always On.
Using several agents in one repo? Put the block in AGENTS.md. Codex, Cursor, GitHub Copilot’s coding agent and a growing list of other tools read it. Then point the others at it, for example add @AGENTS.md to CLAUDE.md.
What the agent needs
The instructions only help if the agent can act on them:
- HTTP tools: authenticated
GET and JSON POST (for example curl in a shell, or a fetch tool). A read-only web browsing tool can discover manifests but can’t invoke actions.
- A browser, for session-scoped pages: the human (or the agent’s browser tool) must open the page so its bridge connects, then hand over the displayed token.
See Build an agent client for the full protocol loop.