open-agents
AGENTS.md5.8k starsChanged 10 months agoMITView on GitHub
This file provides guidance for AI coding agents working in this repository. This is a living document. When you make a mistake or learn something new about this codebase, add it to Lessons Learned. Authentication uses Better Auth with Vercel OAuth (sign-in) and GitHub OAuth (repo access). Config lives in apps/web/lib/auth/config.ts. Sessions are managed by better-auth's built-in session system — there is no manual JWE/encryption layer. Key env vars: BETTER_AUTH_SECRET (session signing), NEXT_PUBLIC_VERCEL_APP_CLIENT_ID + VERCEL_APP_CLIENT_SECRET (Vercel OAuth), plus GitHub App…
- Reads credentials
Trending
Less talk lately.about the whole repository
Who's talking about vercel-labs/open-agents
- @dailygithubtrends.bsky.social“今日のGitHubトレンド vercel-labs/open-agents Vercel上でバックグラウンドで動作するコーディングエージェントを構築・実行するためのオープンソースのリファレンスアプリです。 Web…”Bluesky · May 7, 2026 · 2 likes
- A Hacker News story“Open Agents from Vercel is now open source”Hacker News · May 6, 2026 · 2 points
- @github-trending.bsky.social“💎 Hidden Gem! 💎 (1000+ new stars) 📦 vercel-labs / open-agents ⭐ 2,227 (+1,020) 🗒 TypeScript An open …”Bluesky · Apr 15, 2026 · 2 likes
- dennisonbertram/fork-open-agents“fix(github): typed 4xx instead of 500 when GitHub rejects stored credentials”GitHub · Aug 2, 2026 · 1 reactions
- @postgresql.activitypub.awakari.com.ap.brid.gy“vercel-labs/open-agents An open source template for building cloud agents. Open Agents Open Agents is an …”Bluesky · May 8, 2026 · 1 likes
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub, Bluesky and Hacker News (21 times).
On GitHub · 12
- Aug 2, 2026fix(github): typed 4xx instead of 500 when GitHub rejects stored credentials — dennisonbertram/fork-open-agents1 reaction · 2 comments
- Oct 3, 2026agent-skills.github.vercel-labs.open-agents: init at 0-unstable-2026-04-20 — sudosubin/agents.nix0 reactions
- Aug 2, 2026POST /api/sandbox returns an uncaught 500 (HttpError: Bad credentials) when the GitHub token is stale — dennisonbertram/fork-open-agents0 reactions · 1 comment
- Jun 17, 2026feat(codemods): add codemods for v6 to v7 migration — vercel/ai0 reactions
- May 23, 2026Epic: Trusted dev/staging/prod pipeline and sandbox secret broker — dennisonbertram/fork-open-agents0 reactions · 4 comments
7 more on GitHub
- Apr 16, 2026📱 SNS 콘텐츠 - 2026-04-16 22:47 KST — leaf468/autothreads0 reactions
- Apr 16, 2026🤖 AI 트렌드 리포트 - 2026-04-16 22:47 KST — leaf468/autothreads0 reactions
- Apr 16, 2026📱 SNS 콘텐츠 - 2026-04-16 14:32 KST — leaf468/autothreads0 reactions
- Apr 16, 2026🤖 AI 트렌드 리포트 - 2026-04-16 14:32 KST — leaf468/autothreads0 reactions
- Apr 15, 20263 more links to add — joanmarcriera/Home-office-automations0 reactions · 2 comments
- Apr 14, 2026Cloud execution roadmap: evaluate Vercel Open Agents as reference architecture — hurttlocker/o80 reactions · 2 comments
- Apr 14, 2026[Resource] Vercel Open Agents — Open-Source Cloud Agent Template — nexu-io/harness-engineering-guide0 reactions
On Bluesky · 7
- May 7, 2026今日のGitHubトレンド vercel-labs/open-agents Vercel上でバックグラウンドで動作するコーディングエージェントを構築・実行するためのオープンソースのリファレンスアプリです。 Web… — @dailygithubtrends.bsky.social2 likes and reposts
- Apr 15, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 vercel-labs / open-agents ⭐ 2,227 (+1,020) 🗒 TypeScript An open source template for building cloud… — @github-trending.bsky.social2 likes and reposts · 1 reply
- May 8, 2026vercel-labs/open-agents An open source template for building cloud agents. Open Agents Open Agents is an open-source reference app for… — @postgresql.activitypub.awakari.com.ap.brid.gy1 likes and repost
- May 7, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / open-agents ⭐ 4,889 (+406) 🗒 TypeScript An open source template for building cloud… — @github-trending.bsky.social1 likes and repost · 1 reply
- May 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / open-agents ⭐ 4,760 (+366) 🗒 TypeScript An open source template for building cloud… — @github-trending-js.bsky.social1 likes and repost · 1 reply
2 more on Bluesky
- Apr 17, 2026vercel-labs/open-agents An open source template for building cloud agents. Open Agents Open Agents is an open-source reference app for… — @postgresql.activitypub.awakari.com.ap.brid.gy1 likes and repost
- Apr 15, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 vercel-labs / open-agents ⭐ 2,227 (+1,020) 🗒 TypeScript An open source template for building cloud… — @github-trending-js.bsky.social1 likes and repost · 1 reply
On Hacker News · 2
- May 6, 2026Open Agents from Vercel is now open source2 points
- Apr 15, 2026An open source template for building cloud agents1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- ai-sdkSkill
- baseline-uiSkill
- chat-sdkSkill
- code-reviewSkill
- deploy-open-harnessSkill
- emil-design-engSkill
- frontend-designSkill
- plan-modeSkill
- remove-demo-limitsSkill
- vercel-react-best-practicesSkill
- web-animation-designSkill
- workflowSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
This is a living document: When you make a mistake or learn something new about this codebase, add it to Lessons Learned.
- Very specific: line 29
Commit the generated .sql file alongside the schema change.
- Very specific: line 64
Run project checks through package scripts (for example pnpm run ci, pnpm --dir apps/web db:check).
- Very specific: line 65
Prefer pnpm <script> over invoking tool binaries directly (pnpm exec, tsc, eslint, etc.) so local runs match CI behavior.
- Very specific: line 69
Branch sync preference: When bringing in origin/main, prefer a normal merge (git fetch origin main then git merge origin/main) instead of …
- Distinctive: line 92
Do not append new functionality to the bottom of an existing file by default.
- Distinctive: line 93
Before adding code, decide whether the behavior is a separate concern that should live in its own file.
- Distinctive: line 94
Prefer creating a new colocated file for distinct concerns (components, hooks, utilities, schemas, data-access helpers, etc.).
- Distinctive: line 95
If a file is already large or handling multiple responsibilities, extract the new logic (and related helpers/types) into focused modules …
- Distinctive: line 97
If a change introduces a distinct cluster of state, effects, handlers, API calls, or derived UI labels for one feature, treat that as a …
- Distinctive: line 98
Keep each file focused on one primary responsibility.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance for AI coding agents working in this repository.
This is a living document. When you make a mistake or learn something new about this codebase, add it to Lessons Learned.
Quick Links
- Architecture & Workspace Structure
- Code Style & Patterns
- Lessons Learned
Authentication
Authentication uses Better Auth with Vercel OAuth (sign-in) and GitHub OAuth (repo access). Config lives in apps/web/lib/auth/config.ts. Sessions are managed by better-auth's built-in session system — there is no manual JWE/encryption layer.
Key env vars: BETTER_AUTH_SECRET (session signing), NEXT_PUBLIC_VERCEL_APP_CLIENT_ID + VERCEL_APP_CLIENT_SECRET (Vercel OAuth), plus GitHub App credentials for repo access. See apps/web/.env.example for the full list.
Database & Migrations
Schema lives in apps/web/lib/db/schema.ts. Migrations are managed by Drizzle Kit.
After modifying schema.ts, always generate a migration:
pnpm --dir apps/web db:generate # Creates a new .sql migration fileCommit the generated .sql file alongside the schema change. Do not use db:push except for local throwaway databases.
Migrations run automatically during pnpm build (via lib/db/migrate.ts), so every Vercel deploy — both preview and production — applies pending migrations to its own database.
Environment isolation
Neon database branching is enabled in the Vercel project settings. Every preview deployment automatically gets its own isolated database branch forked from production. This means preview deployments never read or write production data. Production deployments use the main Neon database.
Commands
# Development
pnpm web # Run web app
# Quality checks (REQUIRED after making any changes)
pnpm run ci # Required: run format check, lint, typecheck, and tests
turbo typecheck # Type check all packages
# Linting and formatting (Ultracite - oxlint + oxfmt, run from root)
pnpm check # Lint and format check all files
pnpm fix # Lint fix and format all files
# Filter by package (use --filter)
turbo typecheck --filter=web # Type check web app only
# Testing
bun test # Run all tests
bun test path/to/file.test.ts # Run single test file
bun test --watch # Watch mode
pnpm test:verbose # Run tests with JUnit reporter streamed to stdout (useful in non-interactive shells)
pnpm test:verbose path/to/file.test.ts # Same verbose output for a single test fileCI/script execution rules:
- Run project checks through package scripts (for example
pnpm run ci,pnpm --dir apps/web db:check). - Prefer
pnpm <script>over invoking tool binaries directly (pnpm exec,tsc,eslint, etc.) so local runs match CI behavior.
Git Commands
- Branch sync preference: When bringing in
origin/main, prefer a normal merge (git fetch origin mainthengit merge origin/main) instead of rebasing, unless explicitly requested otherwise.
Quote paths with special characters: File paths containing brackets (like Next.js dynamic routes [id], [slug]) are interpreted as glob patterns by zsh. Always quote these paths in git commands:
# Wrong - zsh interprets [id] as a glob pattern
git add apps/web/app/tasks/[id]/page.tsx
# Error: no matches found: apps/web/app/tasks/[id]/page.tsx
# Correct - quote the path
git add "apps/web/app/tasks/[id]/page.tsx"Architecture (Summary)
Web -> Agent (packages/agent) -> Sandbox (packages/sandbox)See Architecture & Workspace Structure for details.
File Organization & Separation of Concerns
- Do not append new functionality to the bottom of an existing file by default.
- Before adding code, decide whether the behavior is a separate concern that should live in its own file.
- Prefer creating a new colocated file for distinct concerns (components, hooks, utilities, schemas, data-access helpers, etc.).
- If a file is already large or handling multiple responsibilities, extract the new logic (and related helpers/types) into focused modules and import them.
- For large page/view/client components, default to adding new feature behavior in colocated hooks and colocated child components instead of growing the main file.
- If a change introduces a distinct cluster of state, effects, handlers, API calls, or derived UI labels for one feature, treat that as a strong signal to extract it.
- Keep each file focused on one primary responsibility; avoid mixing unrelated UI, business logic, and data-access code in the same file.
Code Style (Summary)
- pnpm exclusively for dependency management; use Node 24 for utility scripts and Bun for tests
- Files: kebab-case, Types: PascalCase, Functions: camelCase
- Never use
any-- useunknownand narrow with type guards - No
.jsextensions in imports - Ultracite (oxlint + oxfmt) for linting and formatting (double quotes, 2-space indent)
- Zod schemas for validation, derive types with
z.infer
See Code Style & Patterns for full conventions, tool implementation patterns, and dependency patterns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

