AGENTS.md@packages/aiA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

AGENTS.md@packages/ai from vercel/ai is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add vercel/ai/packages/ai/AGENTS.md@git:20260114.b3b5624

Pins git:20260114.b3b5624 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 16 of 16 checks passed
Kind
AGENTS.md file
Repository
vercel/ai
Path
packages/ai/AGENTS.md
Versions recorded
1
Latest version
git:20260114.b3b5624, committed Jan 14, 2026
Size
1,083 bytes
Repository stars
28,116
License
a license file GitHub does not identify

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# AI SDK Usage

## Use Cases

### Generating Text

#### text prompt

```ts
import { generateText } from 'ai';

const result = await generateText({
  model: 'openai/gpt-5',
  prompt: 'Invent a new holiday.', // text prompt
});

const text = result.text; // access generated text
```

#### Specifying the maximum number of tokens to generate

```ts
import { generateText } from 'ai';

const result = await generateText({
  model: 'openai/gpt-5',
  prompt: 'Invent a new holiday.',
  maxOutputTokens: 100, // maximum number of tokens to generate
});
```

### Streaming Text

#### text prompt and text stream

```ts
import { streamText } from 'ai';

const result = streamText({
  model: 'openai/gpt-5',
  prompt: 'Invent a new holiday.', // text prompt
});

const textStream = result.textStream; // access text stream
```

#### Specifying the maximum number of tokens to generate

```ts
import { streamText } from 'ai';

const result = await streamText({
  model: 'openai/gpt-5',
  prompt: 'Invent a new holiday.',
  maxOutputTokens: 100, // maximum number of tokens to generate
});
```

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add vercel/ai/packages/ai/AGENTS.md@sha256:51150d357b4a12b9

The line at the top of this page pins the label git:20260114.b3b5624, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_fjkdlgkrn3mcyduz.svg)](https://markdownregistry.com/a/art_fjkdlgkrn3mcyduz)

2 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in vercel/ai/packages/ai/AGENTS.md since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of AGENTS.md from somewhere else? Ask it: where did my AGENTS.md come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 1 version of this file, committed on Jan 14, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
git:20260114.b3b5624 latest2026-01-14 b3b5624 1,083 BA view

Copies

Copies in other repositories

1 file in 1 other repository holds the exact bytes of one of this file's versions, each committed after this file had them: it holds the newest version.

A copy does not update when this file does. Whoever holds one can learn which version it is with the Check your copy box below, or by asking their agent. Matched on exact bytes and commit dates only.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  16 of 16 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (1083 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No encoded command decoded and run in a shell
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No decoded text run in a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

vercel/ai · 28,116 stars · license a license file GitHub does not identify · pushed 2026-11-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_fjkdlgkrn3mcyduz
GET https://markdownregistry.com/api/v1/resolve?ref=vercel/ai/packages/ai/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/51150d357b4a12b945b6b5340282c9f518db1cb8993d051b3aa9f157532f5403
GET https://markdownregistry.com/api/v1/list?kind=agents

Every file of this kind listed here, most starred first, in pages: send each page's next back as cursor. JSON, no key.

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from vercel/ai

AGENTS.md AGENTS.md file
vercel/ai · AGENTS.md
git:20261119.2613bb4 · audit A · 28,116 stars
AGENTS.md@apps/docs AGENTS.md file
vercel/ai · apps/docs/AGENTS.md
git:20261117.8e07631 · audit A · 28,116 stars
CLAUDE.md@apps/docs CLAUDE.md file
vercel/ai · apps/docs/CLAUDE.md
git:20260910.e2dab22 · audit B · 28,116 stars
island-rescue SKILL.md skill
vercel/ai · examples/ai-e2e-next/data/island-rescue/SKILL.md · How to be rescued from a lonely island
git:20260220.0c56995 · audit A · 28,116 stars
island-rescue SKILL.md skill
vercel/ai · examples/ai-functions/data/island-rescue/SKILL.md · How to be rescued from a lonely island
git:20260218.ff12133 · audit A · 28,116 stars
ai-sdk SKILL.md skill
vercel/ai · skills/ai-sdk/SKILL.md · Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK…
git:20261118.d256624 · audit A · 28,116 stars
migrate-ai-sdk-v6-to-v7 SKILL.md skill
vercel/ai · skills/migrate-ai-sdk-v6-to-v7/SKILL.md · Migrate applications from AI SDK 6.x to AI SDK 7.0. Use when upgrading Vercel AI SDK packages, fixing v7 migration…
git:20260621.2e69782 · audit A · 28,116 stars

Every file in vercel/ai

Other files named AGENTS.md@packages/ai

AGENTS.md@packages/ai AGENTS.md file
code-yeongyu/senpi · packages/ai/AGENTS.md
git:20260913.aac18c4 · audit A · 522 stars
AGENTS.md@packages/ai AGENTS.md file
maomaochong-ai/open-astravia · packages/ai/AGENTS.md
git:20260811.9384bf0 · audit A · 54 stars
AGENTS.md@packages/ai AGENTS.md file
nebutra/nebutra-sailor · packages/ai/AGENTS.md
git:20260827.ca77bd1 · audit A · 5 stars

Browse by kind, by grade A, or by owner.