chat / apps
AGENTS.md2.4k starsChanged 59 days agoMITView on GitHub
This app (chat-sdk.dev) uses the packaged Geistdocs architecture. The @vercel/geistdocs package owns shared runtime behavior; this app owns local content, configuration, adapters, and site-specific routes. Use these instructions when an AI coding agent edits this app.
- Reads credentials
Trending
Quiet since March.thin dataabout the whole repository
Who's talking about vercel/chat
- @camilleroux.com“Un SDK TypeScript unifié pour créer des chatbots qui fonctionnent sur Slack, Teams, Google Chat, Discord, …”Bluesky · Mar 3, 2026 · 3 likes
- @technews4869.bsky.social“github.com/vercel/chat GitHub - vercel/chat: A unified TypeScript SDK for building chat bots across Slack, …”Bluesky · Mar 7, 2026 · 1 likes
- @yug1224.com“チャットアプリ開発に使える統一SDKを提供するツールらしい 様々なプラットフォーム対応で便利そうだな yug1224 starred vercel/chat https://github.com/vercel/chat”Bluesky · Mar 7, 2026 · 1 likes
- @news.humancoders.com“Vercel lance Chat SDK : un SDK TypeScript unifié pour créer des bots multi-plateformes”Bluesky · Mar 5, 2026 · 1 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel / chat ⭐ 871 (+121) 🗒 TypeScript A unified TypeScript SDK for …”Bluesky · Feb 27, 2026 · 1 likes
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
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 repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- chat-sdkAGENTS.md
- packages/adapter-discord/AGENTS.mdAGENTS.md
- packages/adapter-gchat/AGENTS.mdAGENTS.md
- packages/adapter-github/AGENTS.mdAGENTS.md
- packages/adapter-instagram/AGENTS.mdAGENTS.md
- packages/adapter-linear/AGENTS.mdAGENTS.md
- packages/adapter-messenger/AGENTS.mdAGENTS.md
- packages/adapter-notion/AGENTS.mdAGENTS.md
- packages/adapter-slack/AGENTS.mdAGENTS.md
- packages/adapter-teams/AGENTS.mdAGENTS.md
- packages/adapter-telegram/AGENTS.mdAGENTS.md
- packages/adapter-web/AGENTS.mdAGENTS.md
- packages/adapter-whatsapp/AGENTS.mdAGENTS.md
- packages/chat/src/adapters/AGENTS.mdAGENTS.md
- packages/create-chat-sdk/AGENTS.mdAGENTS.md
- packages/create-chat-sdk/_template/AGENTS.mdAGENTS.md
- packages/state-ioredis/AGENTS.mdAGENTS.md
- packages/state-memory/AGENTS.mdAGENTS.md
- packages/state-pg/AGENTS.mdAGENTS.md
- packages/state-redis/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- packages/adapter-discord/CLAUDE.mdCLAUDE.md
- packages/adapter-gchat/CLAUDE.mdCLAUDE.md
- packages/adapter-github/CLAUDE.mdCLAUDE.md
- packages/adapter-linear/CLAUDE.mdCLAUDE.md
- packages/adapter-messenger/CLAUDE.mdCLAUDE.md
- packages/adapter-slack/CLAUDE.mdCLAUDE.md
- packages/adapter-teams/CLAUDE.mdCLAUDE.md
- packages/adapter-telegram/CLAUDE.mdCLAUDE.md
- packages/adapter-web/CLAUDE.mdCLAUDE.md
- packages/adapter-whatsapp/CLAUDE.mdCLAUDE.md
- packages/create-chat-sdk/CLAUDE.mdCLAUDE.md
- packages/create-chat-sdk/_template/CLAUDE.mdCLAUDE.md
- packages/state-ioredis/CLAUDE.mdCLAUDE.md
- packages/state-memory/CLAUDE.mdCLAUDE.md
- packages/state-pg/CLAUDE.mdCLAUDE.md
- packages/state-redis/CLAUDE.mdCLAUDE.md
- add-adapterSkill
- technical-writerSkill
- chat-sdkSkill
- chat-sdkSkill
- chat-sdkSkill
- chat-sdkSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
28 rules. About 0 are common, 3 are distinctive, and 25 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
25
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 5
Use these instructions when an AI coding agent edits this app.
- Very specific: line 12
Do not copy package internals into the app to make a customization.
- Very specific: line 13
Do not deep import from @vercel/geistdocs/dist or edit files in node_modules/@vercel/geistdocs.
- Very specific: line 14
Do not edit generated directories such as .source/, .next/, node_modules/, or build output.
- Very specific: line 18
When package API behavior is unclear, read the installed package docs in node_modules/@vercel/geistdocs/docs before guessing.
- Very specific: line 19
Start with node_modules/@vercel/geistdocs/docs/agents.md and node_modules/@vercel/geistdocs/docs/sitemap.md to identify the relevant …
- Very specific: line 20
Use node_modules/@vercel/geistdocs/docs/pages/*.md for task-specific guidance and node_modules/@vercel/geistdocs/docs/llms.txt only when …
- Very specific: line 46
Put docs in content/docs and adapter pages in content/adapters.
- Very specific: line 47
Add each new page to the directory's meta.json so it appears in the sidebar.
- Very specific: line 48
Use MDX frontmatter with at least title and description for documentation pages.
- Distinctive: line 49
Keep slugs stable unless the task explicitly includes redirects or link updates.
- Very specific: line 50
Use CopyPrompt when a page should give readers a prompt they can copy into a coding agent.
- Very specific: line 54
Keep App Router route files as thin adapters around package helpers such as createDocsPage, createChatRoute, createProxy, and the route …
- Very specific: line 55
Keep cacheComponents: true and partialPrefetching: true in next.config.ts.
- Very specific: line 56
Read [lang] from next/root-params (via lib/geistdocs/root-params.ts) in Server Components.
- Very specific: line 57
Keep generateStaticParams for the root lang param in app/[lang]/layout.tsx.
- Very specific: line 58
Use prefetch={true} for app-owned links to fully static documentation pages so navigation does not stop at the generic route shell.
- Very specific: line 59
Keep export const config in proxy.ts as a static object.
- Very specific: line 60
Use proxy matcher exclusions that only match /api and /api/..., such as api(?:/|$).
- Very specific: line 62
When adding custom proxy behavior, prefer before, after, and markdownRoutes options on createProxy instead of replacing the proxy.
- Very specific: line 69
Leave GEISTDOCS_CHAT_PROXY_URL unset to use the default AI Gateway path.
- Very specific: line 71
Keep app/api/chat/route.ts as a thin adapter around createChatRoute.
- Very specific: line 75
Use pnpm exec geistdocs update to update the @vercel/geistdocs dependency.
- Distinctive: line 80
Run from the repository root:
- Very specific: line 84
Start the built app: pnpm --filter docs start
- Very specific: line 89
Run pnpm --filter docs build after changing routes, config, source setup, MDX components, or package versions, and confirm every known docs …
- Very specific: line 90
Run pnpm --filter docs start and open the changed pages when visual layout, navigation, or MDX rendering changes.
- Very specific: line 91
Check both /docs and AI-readable routes such as /agents.md, /llms.txt, /sitemap.md, or a page-level .md URL when changing content routing …
≈ “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
Geistdocs agent instructions
This app (chat-sdk.dev) uses the packaged Geistdocs architecture. The @vercel/geistdocs package owns shared runtime behavior; this app owns local content, configuration, adapters, and site-specific routes.
Use these instructions when an AI coding agent edits this app.
Architecture
- Runtime features come from
@vercel/geistdocs, including the docs page renderer, layout helpers, MDX components, search, Ask AI, markdown routes, proxy helpers, and source helpers. @vercel/geistdocsowns the Ask AI client, server route behavior, and AI SDK v6 runtime dependencies. Do not fork package internals to fit an older app-levelaiversion.- Local files are user-owned adapters. They should stay thin and call public package exports from
@vercel/geistdocs/*. - Do not copy package internals into the app to make a customization. Prefer configuring an adapter file or upgrading
@vercel/geistdocs. - Do not deep import from
@vercel/geistdocs/distor edit files innode_modules/@vercel/geistdocs. - Do not edit generated directories such as
.source/,.next/,node_modules/, or build output.
Package docs for agents
- When package API behavior is unclear, read the installed package docs in
node_modules/@vercel/geistdocs/docsbefore guessing. - Start with
node_modules/@vercel/geistdocs/docs/agents.mdandnode_modules/@vercel/geistdocs/docs/sitemap.mdto identify the relevant focused page. - Use
node_modules/@vercel/geistdocs/docs/pages/*.mdfor task-specific guidance andnode_modules/@vercel/geistdocs/docs/llms.txtonly when you need broad package context. - These package docs are read-only generated artifacts. Do not edit files under
node_modules/@vercel/geistdocs; change local adapter files or update the package instead.
Common edit targets
| Task | Edit |
Configure site title, logo, nav, GitHub links, AI prompt, suggestions, translations, basePath, siteId, or agent-readiness metadata | geistdocs.tsx |
| Add or update documentation pages | content/docs/**/*.mdx |
| Add or update adapter listing pages | content/adapters/**/*.mdx and adapters.json |
| Control sidebar order, groups, and folder labels | content/docs/meta.json, content/adapters/meta.json |
| Give a page a shorter navigation label | Set navTitle in the page's frontmatter |
| Override MDX components | components/geistdocs/mdx-components.tsx |
| Wrap the site provider, analytics, or global client behavior | components/geistdocs/provider.tsx |
| Customize the docs layout shells | components/geistdocs/docs-layout.tsx, components/geistdocs/adapters-docs-layout.tsx, components/geistdocs/home-layout.tsx |
| Configure the Fumadocs source adapters | lib/geistdocs/source.ts, lib/geistdocs/adapters-source.ts |
| Configure Fumadocs collections and source-safe MDX processing | source.config.ts |
| Configure the docs page renderer | app/[lang]/docs/[[...slug]]/page.tsx |
| Configure AI-readable markdown output | app/[lang]/agents.md/route.ts, app/[lang]/llms.txt/route.ts (curated index), app/[lang]/llms-full.txt/route.ts, app/[lang]/llms.mdx/[[...slug]]/route.ts, app/[lang]/adapters.mdx/[[...slug]]/route.ts, app/[lang]/sitemap.md/route.ts |
| Configure chat or search APIs | app/api/chat/route.ts, app/api/search/route.ts |
| Add request handling before or after Geistdocs routing | proxy.ts |
| Edit the marketing home page | app/[lang]/(home)/** |
| Edit shared styles | app/global.css, app/styles/geistdocs.css |
Content guidelines
- Put docs in
content/docsand adapter pages incontent/adapters. - Add each new page to the directory's
meta.jsonso it appears in the sidebar. - Use MDX frontmatter with at least
titleanddescriptionfor documentation pages. SetnavTitleonly when the navigation label should differ from the page heading. - Keep slugs stable unless the task explicitly includes redirects or link updates.
- Use
CopyPromptwhen a page should give readers a prompt they can copy into a coding agent.
Routing and proxy guidelines
- Keep App Router route files as thin adapters around package helpers such as
createDocsPage,createChatRoute,createProxy, and the route factories under@vercel/geistdocs/routes/*. - Keep
cacheComponents: trueandpartialPrefetching: trueinnext.config.ts. Do not exportdynamic,revalidate, orfetchCachefrom App Router pages or route handlers; package route factories may still return them, so destructure onlyGETandgenerateStaticParams. Cache custom data with"use cache"andcacheLifeinstead. - Read
[lang]fromnext/root-params(vialib/geistdocs/root-params.ts) in Server Components. Keep route contextparamsin Route Handlers and Server Actions. - Keep
generateStaticParamsfor the rootlangparam inapp/[lang]/layout.tsx; it must return every configured language. - Use
prefetch={true}for app-owned links to fully static documentation pages so navigation does not stop at the generic route shell. - Keep
export const configinproxy.tsas a static object. Next.js must parse proxy matchers at build time. - Use proxy matcher exclusions that only match
/apiand/api/..., such asapi(?:/|$). Do not exclude broad prefixes likeapi, because that also excludes routes such as/api-reference. - Preserve markdown negotiation unless the task explicitly changes AI-readable output. This site serves
/agents.md,/llms.txt,/llms-full.txt,/sitemap.md, and per-page Markdown for.md,.mdx,Accept: text/markdown, and AI-agent requests across both the/docsand/adaptersfamilies. - When adding custom proxy behavior, prefer
before,after, andmarkdownRoutesoptions oncreateProxyinstead of replacing the proxy. This site maps/docs/*and/adapters/*explicitly because the two families use different markdown route handlers. llms.txtis a curated index with section descriptions; do not replace it with the concatenatedcreateLlmsRouteoutput.llms-full.txtserves the concatenated corpus./.well-known/mcp.jsonintentionally returns 404; no MCP server is configured for this site./sitemap.xmlis served by an external rewrite innext.config.ts, not an app route.
Ask AI guidelines
- Leave
GEISTDOCS_CHAT_PROXY_URLunset to use the default AI Gateway path. The route adapter pins the model withcreateChatRoute({ model }). - Geistdocs Ask AI targets AI SDK v6:
aiv6 and@ai-sdk/reactv3. Keep those dependencies on the package-pinned versions unless a@vercel/geistdocsrelease changes them. - Keep
app/api/chat/route.tsas a thin adapter aroundcreateChatRoute.
Package updates
- Use
pnpm exec geistdocs updateto update the@vercel/geistdocsdependency. It does not overwrite local adapter files — diff them against the bundled template innode_modules/@vercel/geistdocs/templateafter every upgrade. - Review dependency changes and run the verification commands before committing an update.
Commands
Run from the repository root:
- Start development:
pnpm --filter docs dev - Build for production:
pnpm --filter docs build - Start the built app:
pnpm --filter docs start - Regenerate Fumadocs output after dependency installation:
pnpm --filter docs postinstall
Verification
- Run
pnpm --filter docs buildafter changing routes, config, source setup, MDX components, or package versions, and confirm every known docs and adapter URL still has a complete static prerender. - Run
pnpm --filter docs startand open the changed pages when visual layout, navigation, or MDX rendering changes. - Check both
/docsand AI-readable routes such as/agents.md,/llms.txt,/sitemap.md, or a page-level.mdURL when changing content routing or proxy behavior. - Confirm no secrets were added to source files. Use
.env.localfor local values and keep it out of Git.
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.

