ralph-loop-agent
AGENTS.md839 starsChanged 10 months agoApache-2.0View on GitHub
Always check the latest version before installing a package. Before adding or updating any dependency, verify the current latest version on npm: Or check multiple packages at once: This ensures we don't install outdated versions that may have incompatible types or missing features. Use AI Gateway string format for models, not provider packages. Do NOT install or import from provider-specific packages like @ai-sdk/openai, @ai-sdk/anthropic, etc. Instead, use the AI Gateway string format: {provider}/{model} Default model: When examples need a model,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 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.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Before adding or updating any dependency, verify the current latest version on npm:
- Very specific: line 27
Do NOT install or import from provider-specific packages like @ai-sdk/openai, @ai-sdk/anthropic, etc.
- Very specific: line 29
Instead, use the AI Gateway string format: {provider}/{model}
- Very specific: line 49
Default model: When examples need a model, default to anthropic/claude-opus-4.5.
- Distinctive: line 61
Use this source code when you need to understand how a package works internally, not just its types/interface.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Agent Instructions
Package Management
Always check the latest version before installing a package.
Before adding or updating any dependency, verify the current latest version on npm:
npm view <package-name> versionOr check multiple packages at once:
npm view ai version
npm view @ai-sdk/provider-utils version
npm view zod versionThis ensures we don't install outdated versions that may have incompatible types or missing features.
AI Gateway
Use AI Gateway string format for models, not provider packages.
Do NOT install or import from provider-specific packages like @ai-sdk/openai, @ai-sdk/anthropic, etc.
Instead, use the AI Gateway string format: {provider}/{model}
// CORRECT - Use AI Gateway strings
import { streamText } from 'ai';
const result = streamText({
model: 'anthropic/claude-opus-4.5',
prompt: 'Why is the sky blue?',
});
// INCORRECT - Don't use provider packages
import { anthropic } from '@ai-sdk/anthropic'; // DON'T DO THIS
const result = streamText({
model: anthropic('claude-opus-4.5'), // DON'T DO THIS
prompt: 'Why is the sky blue?',
});Default model: When examples need a model, default to anthropic/claude-opus-4.5.
Note: @ai-sdk/provider-utils is fine to use for types like ModelMessage, SystemModelMessage, etc.
<!-- opensrc:start -->Source Code Reference
Source code for dependencies is available in opensrc/ for deeper understanding of implementation details.
See opensrc/sources.json for the list of available packages and their versions.
Use this source code when you need to understand how a package works internally, not just its types/interface.
Fetching Additional Source Code
To fetch source code for a package or repository you need to understand, run:
npx opensrc <package> # npm package (e.g., npx opensrc zod)
npx opensrc pypi:<package> # Python package (e.g., npx opensrc pypi:requests)
npx opensrc crates:<package> # Rust crate (e.g., npx opensrc crates:serde)
npx opensrc <owner>/<repo> # GitHub repo (e.g., npx opensrc vercel/ai)<!-- opensrc:end -->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.

