Vercel Agent reviews PRs against AGENTS.md
Vercel Agent’s Code Review reads AGENTS.md first among the guideline files it supports, so Ultracite’s rules become context for every pull request it reviews. It doesn’t edit as you work: it proposes fixes, runs each one in a Vercel Sandbox against your builds, tests and linters, and posts only the ones that pass.
Vercel Agent by VercelChecked against October 2026
# Ultracite Code Standards
This project uses **Ultracite**, a zero-config preset that enforces strict code quality standards through automated formatting and linting.
## Quick Reference
- **Format code**: `npx ultracite fix`
- **Check for issues**: `npx ultracite check`
- **Diagnose setup**: `npx ultracite doctor`
Oxlint + Oxfmt (the underlying engine) provides robust linting and formatting. Most issues are automatically fixable.
…- 1
AGENTS.mdUltraciteHighest priority. In a directory that has one, Code Review uses it and skips the other files. - 2
CLAUDE.mdUsed in a directory with noAGENTS.md. - 3
.github/copilot-instructions.mdThen Cursor (.cursor/rules/*.mdc,.cursorrules), Windsurf, Cline and other tools’ files, in that order. - 4
src/**/AGENTS.mdAdds to the parent directory’s guidelines for files in its subtree, and doesn’t affect anything outside it. - 5
@import "file.md"Guidelines can pull in other files with@importor relative Markdown links.
How Vercel Agent reads the rules
Code Review looks for guideline files in each directory and uses the highest-priority one there, with AGENTS.md at the top. Guidelines are inherited from parent directories and scoped to their own subtree.
- Size limit
- 50 KB for all guidelines combined. Ultracite’s rules are about 5 KB.
- Context, not orders
- Guidelines are treated as context. Finding bugs, security issues and performance problems wins over any guideline that conflicts.
- What to write
- Vercel suggests guidelines cover what a linter can’t enforce. Ultracite’s rules end with a section on exactly that.
- One per directory
- With
AGENTS.mdandCLAUDE.mdside by side, onlyAGENTS.mdcounts. ACLAUDE.mdthat just imports it loses nothing. - Triggers
- New pull requests and new pushes to open ones, plus drafts if you turn that on.
@vercel run a reviewstarts one by hand. - Repositories
- Reviews cover repositories connected to your Vercel projects: all of them by default, or only public or only private ones.
Fixes tested in a sandbox before you see them
Code Review writes a patch for each fix it proposes, runs it in a Vercel Sandbox with your real builds, tests and linters, and only posts suggestions that pass. Vercel’s docs don’t say how it picks those commands, so ultracite check in CI stays the gate for every commit.
- **Format code**: `npx ultracite fix`
- **Check for issues**: `npx ultracite check`
- **Diagnose setup**: `npx ultracite doctor`- 01A pull request is opened or gets new commits, or someone comments
@vercel run a review. - 02Code Review reads the change against the whole codebase, with
AGENTS.mdas guidelines. - 03Each proposed fix runs in a Vercel Sandbox against your builds, tests and linters; only passing ones are posted.
- 04You apply a suggestion with one click, and your CI runs
ultracite checkon the new commit.
Worth knowing about Vercel Agent
@vercel in pull request comments
Mention
@vercelin any pull request comment:@vercel run a reviewruns a full review,@vercel fix the type errorsimplements and commits a fix, and@vercel why is this failing?investigates. Replies land in the same thread.It reads your CI results
For a linked repository, Vercel Agent can read CI check results and save a check-job log to inspect. When it opens a pull request of its own, it works on a
vercel-agent/branch and only after you approve the plan.Private packages in the sandbox
If your tooling comes from a private registry, add
NPM_TOKENorNPM_RCas a Shared Environment Variable in Development or Preview so the sandbox can install dependencies. The credentials stay outside the sandbox.The Ultracite skill
Vercel Agent’s docs don’t describe loading
SKILL.mdskills, so the Ultracite skill in.agents/skills/doesn’t come into it. Code Review gets the rules fromAGENTS.mdinstead.
Vercel Agent questions, answered
- Does Vercel Agent read AGENTS.md?
- Code Review does.
AGENTS.mdis first in its list of guideline files, ahead ofCLAUDE.md,.github/copilot-instructions.mdand Cursor rules, and it applies by directory: inherited from parents, scoped to its own subtree. - Does Vercel Agent run my linter?
- When it proposes a fix, yes: it runs the patch in a Vercel Sandbox against your real builds, tests and linters, and only shows suggestions that pass. That checks its own suggestions, not every commit, so keep
ultracite checkas a required CI check. - Why does Code Review ignore my CLAUDE.md?
- When several guideline files share a directory, Code Review uses only the highest-priority one, and
AGENTS.mdoutranksCLAUDE.md. Move what reviews need intoAGENTS.md, or pull it in from there with@import "CLAUDE.md". - Can Vercel Agent fix lint errors on a pull request?
- Mention
@vercelwith the request in a pull request comment. Vercel’s docs give@vercel fix the type errorsas an example that implements and commits a fix, and@vercel why is this failing?to investigate. - Which Vercel plans include Vercel Agent?
- Pro and Enterprise, in public beta. Code Review bills by tokens: the AI provider’s rate with no markup, plus $0.25 per million tokens.
Keep going
- AgentGitHub CopilotGitHub’s coding assistant: agent mode in editors, a CLI, and a cloud agent that opens pull requests.
- AgentDevinCognition’s autonomous coding agent, in cloud sessions, a CLI and a desktop app.
- AgentJulesGoogle’s asynchronous agent that works on your repo in a cloud VM and opens pull requests.
- DocsAgent rulesWhat
initwrites for every agent, and how to keep it current.
Ship less slop
One command sets up your linter, formatter, editor and agents. Works with Oxlint, Biome and ESLint.