reef / tests
AGENTS.md7.7k starsChanged 52 days agoApache-2.0View on GitHub
Choose the suite that owns the behavior under test. Extend an existing relevant module before adding another. Keep new test modules out of the tests/ root. Keep component tests with their owner even when they use a dispatcher or a service fixture. A test belongs in reef_service/ when it checks the service contract or the service's coordination of several components. Use markers for unit, integration, acceptance, and sandbox; do not add a second directory hierarchy for those categories. A mock-based…
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Keep component tests with their owner even when they use a dispatcher or a service fixture.
- Very specific: line 30
Use markers for unit, integration, acceptance, and sandbox.
- Very specific: line 36
Keep fixtures in the nearest applicable conftest.py.
- Distinctive: line 38
Do not introduce imports from collected test modules.
- Very specific: line 40
Import test helpers through tests.<owner>.
- Distinctive: line 42
Keep test data beside its consuming suite.
- Distinctive: line 47
Update imports, resource paths, fixture scope, CI selection, and documented commands together.
- Very specific: line 53
Update it when moving a listed module or adding a wheel-compatible contract.
- Very specific: line 57
Run python .github/scripts/check_test_layout.py from the repository root.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Test organization
Choose the suite that owns the behavior under test. Extend an existing relevant
module before adding another. Keep new test modules out of the tests/ root.
Directory map
| Directory | Responsibility |
artifact/, storage/, surface/ | Artifact repositories, record persistence, and artifact delivery |
core/, scenario/ | Shared value contracts, scenario lifecycle, dispatcher coordination, and commit recovery |
runtime/, inference/, train/ | Runtime coordination, inference integrations, and the training pipeline |
sandbox/ | Shared execution, environment contracts, isolation, file transfer, and cleanup |
slime_backend/, tinker_backend/ | Contracts specific to a training backend |
record2record/, record2task/, task2batch/ | The corresponding stages of the training pipeline |
evaluation/, harness/, observability/ | Candidate evaluation, harness execution, and tracking |
reef_recipe/ | Shared recipe contracts and built-in recipes from reef/recipe/ |
recipes/<recipe>/ | Cookbook methods and their examples; use the method name for beta recipes too |
reef_service/ | HTTP contracts, deployment, and service workflows across components |
cli/, reef_client/ | CLI behavior and the separate reef_client package |
contributing/ | Repository policy, documentation, and checks across shipped examples |
plugin_contracts/, packaging/ | Plugin boundaries and installed-package verification |
smoke/ | Opt-in runs against real harnesses and external services |
support/ | Shared fixtures and helpers; no collected test modules |
Keep component tests with their owner even when they use a dispatcher or a
service fixture. A test belongs in reef_service/ when it checks the service
contract or the service's coordination of several components.
Use markers for unit, integration, acceptance, and sandbox; do not add a
second directory hierarchy for those categories. A mock-based test stays with
its component, even when the real component needs a GPU.
Fixtures and imports
- Keep fixtures in the nearest applicable
conftest.py. Reuse scoped support modules for helpers shared across suites. - Do not introduce imports from collected test modules. Extract the shared helper when adding a new consumer; avoid unrelated helper rewrites.
- Import test helpers through
tests.<owner>. Pytest uses importlib mode, so test directories do not shadow production or third-party packages. - Keep test data beside its consuming suite. Harness golden trees are exact fixtures; their instruction files are data, not repository instructions.
Moving and verifying tests
Update imports, resource paths, fixture scope, CI selection, and documented commands together. Compare collected test IDs through an old-to-new path map, including parameters and markers. Keep assertions and fixture contents intact during a directory-only migration.
packaging/wheel-tests.txt lists the modules run against installed wheels.
Update it when moving a listed module or adding a wheel-compatible contract.
These tests run outside the checkout and must not import Reef from source.
The source and sandbox jobs still collect all of tests/.
Run python .github/scripts/check_test_layout.py from the repository root.
The check rejects misplaced test modules and invalid wheel-suite entries; it
also runs through pre-commit in CI. Update this map and the check together when
adding an owner directory.
Apply placement rules to new tests. Keep moves of existing tests in focused cleanup changes rather than unrelated feature PRs.
Trending
More talk lately.about the whole repository
Who's talking about Human-Agent-Society/reef
- thenightlybuild“Your agent's rules file now gets a win rate”YouTube · Sep 20, 2026 · 896 views
- ForkCast“Human-Agent-Society/reef — Your agent should not wake up as dumb as yesterday. 🟡 Watchlist #Shorts”YouTube · Sep 19, 2026 · 343 views
- Kod Radarı“Kendi Kendini Eğiten Yapay Zeka Altyapısı: Reef”YouTube · Sep 27, 2026 · 221 views
- GitGemVault“🔥🧠Your AI Agent Freezes After Deploy. Reef Fixes That. 🤖⚡”YouTube · Oct 3, 2026 · 85 views
- RepoDrop“reef - free open source tool”YouTube · Sep 11, 2026 · 79 views
The biggest 5 of 38 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 38
Talked about on GitHub, YouTube, the web and Bluesky (38 times).
On GitHub · 22
- Oct 24, 2026fix(docs): README reference links return 404 — Human-Agent-Society/reef-client0 reactions
- Oct 12, 2026Add harness: Reef — auron-labs/harness-detect0 reactions
- Oct 11, 2026[New Service] Reef — haoruilee/awesome-agent-native-services0 reactions · 2 comments
- Oct 9, 2026Add Reef under agent / harness / optimizer source code — jordanking211/awesome-rsi-classified0 reactions
- Oct 8, 2026Add Reef to Foundational Agent Orchestration — XMUDeepLIT/Awesome-Self-Evolving-Agents0 reactions
17 more on GitHub
- Oct 6, 2026Add Reef to Training systems and infrastructure — natnew/awesome-rl-for-agents0 reactions · 1 comment
- Oct 5, 2026Add Reef to Deployment, Serving & MLOps — tayyabimam1/awesome-ai-agent-stack0 reactions · 2 comments
- Oct 4, 2026Add Reef to Deployment and Runtime Infrastructure — natnew/awesome-agentops0 reactions · 1 comment
- Oct 3, 2026[Add] Reef (Human-Agent-Society/reef) — PyTorchKR/landscape0 reactions
- Oct 3, 2026Add Reef to Frameworks and Implementations — natnew/awesome-recursive-self-improvement0 reactions
- Oct 2, 2026Add Reef to Runtime Foundations & Control Layers — walkinglabs/awesome-harness-engineering0 reactions
- Oct 1, 2026Add Reef to Agent Infrastructure — kaushikb11/awesome-llm-agents0 reactions
- Sep 29, 2026Add Reef to Observability and eval-ops — RyanAlberts/best-of-Agent-Harnesses0 reactions · 1 comment
- Sep 28, 2026Add Reef to Industry updates — yangchou19/Awesome-LLM-Continual-Learning0 reactions
- Sep 27, 2026Add Reef to Skills and instruction management — jimy-r/awesome-agent-workspaces0 reactions · 1 comment
- Sep 26, 2026Add Reef to Open-Source Frameworks & Tools — ballooooooon/awesome-rsi0 reactions
- Sep 25, 2026Reef — エージェントを継続学習させる基盤のビジュアル解説 — 53able/docs-site0 reactions
- Sep 24, 2026docs(non-cc): screenshot-lead research batch 07 (plan 0008 row 20) — qte77/ai-agents-research0 reactions
- Sep 23, 2026feat(client): import records with resumable batch uploads — Human-Agent-Society/reef-client0 reactions
- Sep 9, 2026Add Reef to Projects → useful supporting infrastructure — Valen-Team/Awesome-RSI0 reactions
- Sep 7, 2026Curate CoSkill, MCE, Reef, and Meta-Harness — YuxingLu613/awesome-agentic-evolution0 reactions
- Sep 4, 2026[Feature Request] Evaluate REEF Multi-Agent Simulation & Consensus Framework (Human-Agent-Society/reef) — KoshiirRa/midgley0 reactions · 3 comments
On YouTube · 11
- Sep 20, 2026Your agent's rules file now gets a win rate — thenightlybuild896 views
- Sep 19, 2026Human-Agent-Society/reef — Your agent should not wake up as dumb as yesterday. 🟡 Watchlist #Shorts — ForkCast343 views
- Sep 27, 2026Kendi Kendini Eğiten Yapay Zeka Altyapısı: Reef — Kod Radarı221 views
- Oct 3, 2026🔥🧠Your AI Agent Freezes After Deploy. Reef Fixes That. 🤖⚡ — GitGemVault85 views
- Sep 11, 2026reef - free open source tool — RepoDrop79 views · 2 comments
6 more on YouTube
- Sep 12, 2026Reef に失敗を報告したらローカルLLMのハーネスは育つのか|qwen2.5:7b で5回中5回 publish・合格 2/30→19/30|ただし直ったのは答えの形式 — さつきのOSS研究室48 views · 1 comment
- Sep 16, 2026Guide Designs, Improve Agents, Route Work Across Desktops — ZHOU WENJING46 views
- Sep 3, 2026Continual learning infra for self-improving agents — reef — Amplify Imagination41 views
- Sep 3, 2026AI That Learns From Every Mistake in Real Time 🤖 — LookOnThisGit35 views
- Sep 20, 2026Self-Improve Agents, Browse Faster, Write Human — ZHOU WENJING32 views
- Sep 11, 2026Como o Reef Treina Agentes de IA Autônomos em Tempo Real! — Mauricio Yokoyama Issei21 views
On the web · 4
- Sep 24, 2026Reef Review: Open-Source Continual Learning for AI Agents — andrew.ooo — andrew.ooo
- Sep 21, 2026Reef enables self-improving AI agent loops | ivo's home — setyadi.com
- Sep 15, 2026Your Inference Server is Secretly a Learner: Reef Infrastructure for Continual Self-Improving Agents — huggingface.co
- Sep 10, 2026OSINTech's Timeline (179) - 10.09.2026 — osintech.substack.com
On Bluesky · 1
- Sep 27, 2026Human-Agent-Society/reef [Apache License 2.0] 継続学習で自己改善するエージェント基盤です 運用後の伸びが面白いです 言語:Python, TypeScript 種類:AI/Other ⭐ Star: +1151 🔀 Fork:… — @reponews.bsky.social1 likes and repost
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 28,693 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 repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- recipes/AGENTS.mdAGENTS.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.

