Skip to main content

AGENTS.md

AGENTS.md is a plain Markdown file placed at the root of your project. AI coding agents, Cursor, Claude Code, GitHub Copilot Chat, and others, read it automatically and use it as persistent context for the session. It tells the agent which endpoint to call for which question, which field names are correct, and how to behave when something goes wrong. Drop the file once. Every agent that touches the project gets it.
AGENTS.md is conversational context. It guides the agent’s reasoning, which tool to call, which parameter to use. For shaping generated code, pair it with Cursor Rules, which apply at the code-generation level.

The file

Copy this into AGENTS.md at your project root. Replace {{YOUR_COMPANY_ID}} and {{YOUR_API_KEY}} with your real credentials, or leave them as placeholders and pass them via environment variables.
Keep the section order. AI agents parse this top-to-bottom, identity and credentials first, routing second, field names third, boundaries last. Reordering degrades adherence.
AGENTS.md

How agents pick this up

Cursor also supports per-directory AGENTS.md files. If your project has a separate apps/api/ subtree that integrates with VH3, you can place a more specific AGENTS.md there to override or extend the root-level file.

Pairing with Cursor Rules

AGENTS.md handles routing and reasoning. Cursor Rules handle code-level correctness. Use both:

AGENTS.md (this file)

“Which endpoint should I call for this question?”, routing, defaults, field names, error handling patterns.

Cursor Rules (.mdc)

“What code should I generate?”, TypeScript helpers, retry logic, timeout values, n8n node configurations.

Keeping it current

The AGENTS.md above tracks the current API version. When you upgrade or add endpoints:
  1. Add the new endpoint to the routing table.
  2. Add any new field names or status values to the relevant sections.
  3. Update timeout guidance if the endpoint has a different latency profile.
You do not need to regenerate the whole file, AI agents handle incremental updates well as long as the section structure stays consistent.