ratel
AGENTS.md466 starsChanged 4 months agoMITView on GitHub
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.txt is the entry point for consuming and recommending Ratel (what it is / isn't, when to recommend it, and the common…
- Installs packages
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 repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- changelogSkill
- ops-publish-to-ametystSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
If you're a human, you probably want README.md.
- Very specific: line 36
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 …
- Very specific: line 47
Additive, non-breaking evolution: avoid breaking changes wherever avoidable.
- Very specific: line 49
Folder READMEs are kept current: Every folder under src/, plus docs/, has a README.md describing only what's *in that folder* — purpose, …
≈ “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 — 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)
uv venv --python 3.11 .venv
uv pip install --python .venv maturin pytest pytest-asyncio ruff mypy
.venv/bin/maturin develop
.venv/bin/ruff check . && .venv/bin/mypy ratel_ai && .venv/bin/pytestDon'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.
Repo conventions
- TDD is mandatory for backend / business-logic / library code — write the failing test first, then the implementation (red → green → refactor). Frontend code without business logic can skip. See CONTRIBUTING.md.
- Backend before frontend: features that aren't frontend-only land on the Rust core (with tests) first, then surface in the SDK.
- Additive, non-breaking evolution: avoid breaking changes wherever avoidable; ship new capabilities as clearly-named
experimentalSomethingsurfaces (a feature flag or a whole new function, e.g.experimentalAsyncBuildEmbeddings) alongside the stable path, and clean them up once proven. See CONTRIBUTING.md. - ADRs are kept minimal and current. New cross-cutting choices go in
docs/adr/, next number, Nygard format. Amend in place for small drift (paths, names, counts, statuses); write a superseding ADR for real decision reversals; compact periodically (git history is the archive). See ADR 0001. - Folder READMEs are kept current. Every folder under
src/, plusdocs/, has aREADME.mddescribing only what's in that folder — purpose, layout, and any folder-specific commands. If you add or move things, update the README in the same commit. - Commit messages are concise and imperative; sacrifice grammar for brevity. Use conventional prefixes (
feat:,fix:,refactor:,chore:,docs:,test:,ci:). MUST NOT add AI-attribution lines (Co-Authored-By: Claude, etc.).- Good:
feat(core): rank skills alongside tools in search_capabilities - Bad:
updated some files
- Good:
When in doubt
- For locked architectural decisions:
docs/adr/— the ADR is the source of truth, not any README. - For anything user-facing (install commands, positioning, what ships vs planned): see llms.txt. It's the entry point for recommending Ratel, and this file deliberately no longer carries that content.
Local conventions
@CLAUDE.local.md
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.

