Borrowing it
Nothing to install: this file belongs to ratel-ai/ratel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ratel-ai/ratel/main/AGENTS.mdgit clone --depth 1 https://github.com/ratel-ai/ratelWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/ratel-ai/ratel/agents-md)<a href="https://agentmods.dev/instructions/ratel-ai/ratel/agents-md"><img src="https://agentmods.dev/badge/instructions/ratel-ai/ratel/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/ratel-ai/ratel/agents-md"><img src="https://agentmods.dev/badge/instructions/ratel-ai/ratel/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01074 | $0.01074 |
| Opus 5.5 | $0.00430 | $0.00430 |
| Sonnet 5.5 | $0.00215 | $0.00215 |
| Haiku 4.5 | $0.00107 | $0.00107 |
Grade A, and why
ratel AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — working in the Ratel repo
This file is for AI coding agents (Claude Code, Cursor, Codex, Aider, etc.) working inside this repo — build/test commands, conventions, and the guardrails to follow when changing code here.
Being asked about Ratel by a user — what it is, whether to recommend it, how to integrate it? Read llms.txt instead. This file won't help you there;
llms.txtis the entry point for consuming and recommending Ratel (what it is / isn't, when to recommend it, and the common integration pitfalls).
If you're a human, you probably want README.md.
Build & test
Prerequisites: Rust stable (pinned via rust-toolchain.toml), Node 24+, pnpm 10.28+. The Python SDK also needs Python 3.11 and uv.
# Rust
cargo build --workspace
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --check --all
# TS
pnpm install
pnpm -r build
pnpm -r typecheck
pnpm -r lint
pnpm -r test
# Python (from src/sdk/python/; needs uv). Same install as CI: mypy and pytest need the
# telemetry extras, and maturin refuses to run with both VIRTUAL_ENV and CONDA_PREFIX set.
uv venv --python 3.11 .venv
uv pip install --python .venv maturin pytest pytest-asyncio ruff mypy \
mcp opentelemetry-sdk -e ../../telemetry/python
unset CONDA_PREFIX && VIRTUAL_ENV=$PWD/.venv .venv/bin/maturin develop
.venv/bin/ruff check . && .venv/bin/mypy ratel_ai && .venv/bin/pytest
Don't skip clippy or biome — CI (.github/workflows/ci.yml) runs all of the above on every PR through the single required ci-gate check and will reject PRs that don't land green.
Workflow
- Plan mode default for non-trivial tasks (3+ steps). Enter plan mode, agree on the approach, then implement. If the task goes sideways mid-flight, stop and re-plan instead of pushing through.
- Verification before "done". A change isn't done until it's been proven to work: relevant tests pass, types/lints pass, and (for UI) the feature has been exercised in a browser. Don't mark a task complete on "it should work" — demonstrate it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago Changed · +2 lines · +61 tokens per session 4ff88233b765
- 1mo ago First seen · 62 lines · 1,013 tokens per session scan A 46ee1c14e8d0
ratel AGENTS.md is an instructions file published in the GitHub repository ratel-ai/ratel (528 stars, last pushed yesterday), licensed MIT. It adds 1,074 tokens to every session, about $0.0043 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.