Raven
AGENTS.md5.2k starsChanged 5 months agoApache-2.0View on GitHub
Raven AI-collaboration spec. Read this file before making any code change in this repo. Scope: Codex / Claude Code / Claude API / any AI-assisted work. When a rule here conflicts with an ad-hoc instruction in conversation, this file wins — unless the user explicitly says "ignore rule X in AGENTS.md". Hard constraints only (violations get reverted / rejected). Soft suggestions and style preferences belong in personal notes or conversation, not here. See the Maintenance note before adding sections —…
- Deletes or force-pushes
- Installs packages
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about EverMind-AI/Raven
- A Hacker News story“Show HN: Raven – The harness of harnesses, built for RSI”Hacker News · Sep 29, 2026 · 55 points
- @tommis.fi“github.com/EverMind-AI/...”Bluesky · Oct 1, 2026 · 5 likes
- @evermind-ai.bsky.social“Raven 🐦⬛ 0.1.13 is out. • Each conversation now keeps its own model, credentials, and context window • …”Bluesky · Aug 25, 2026 · 1 likes
- heylabs-co/dev-tools-portal“🔍 Weekly Discovery: 50 new tools found (2026-10-05)”GitHub · Oct 5, 2026
- FrontisAI/Awesome-Self-Improving-Agents“Add Raven to Harness and Runtime Architecture”GitHub · Oct 5, 2026
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 37
- Oct 5, 2026🔍 Weekly Discovery: 50 new tools found (2026-10-05) — heylabs-co/dev-tools-portal0 reactions
- Oct 5, 2026Add Raven to Harness and Runtime Architecture — FrontisAI/Awesome-Self-Improving-Agents0 reactions
- Oct 5, 2026Add Raven to Core Frameworks — NipunaRanasinghe/awesome-ai-agents0 reactions
- Oct 5, 2026Add Raven to Workflow — tensorchord/Awesome-LLMOps0 reactions
- Oct 5, 2026docs: add Raven to agents and to CLI and TUI clients — agentclientprotocol/agent-client-protocol0 reactions
32 more on GitHub
- Oct 5, 2026[suggest] Raven for Stage 7 — WenyuChiou/awesome-agentic-ai-zh0 reactions
- Oct 3, 2026agent-skills.github.evermind-ai.raven: 0.1.13 → 0.2.4 — sudosubin/agents.nix0 reactions
- Oct 3, 2026【开源自荐】Raven:让多个 AI Agent 按任务图协作的开源框架 — GitHubDaily/GitHubDaily0 reactions
- Oct 2, 2026Add Raven to Orchestrators & autonomous loops — bradAGI/awesome-cli-coding-agents0 reactions
- Oct 1, 2026Add Raven to Frameworks — pab1it0/awesome-a2a0 reactions
- Oct 1, 2026Add Raven to Context Engineering in 2026: Harnesses, Skills & Protocols — yzfly/awesome-context-engineering0 reactions
- Oct 1, 2026Add Raven to End-to-End Autonomous Research Systems — AI4Scientist/awesome-autoresearch0 reactions
- Oct 1, 2026Add Raven to System Intelligence (Graph Engineering) — DEEP-JLU/Awesome-Graph-Engineering0 reactions
- Sep 30, 2026feat: Raven 0.2.0を参考に外部Agent相互運用・Durable Handoff・Conformance検証を追加する — itoh-shun/rig0 reactions
- Sep 29, 2026AI Community Trends -- 2026-09-30 — rahmanramsi/daily-digest-ai0 reactions
- Sep 29, 2026Experiment Trial 001: Raven + Maestro S2 ownership lift — opensiro/vsm-harness-index0 reactions
- Sep 29, 2026Add Raven to Multi-Agent Orchestration — alvinreal/awesome-opensource-ai0 reactions
- Sep 29, 2026[suggest] Raven for Stage 7 — WenyuChiou/awesome-agentic-ai-zh0 reactions · 4 comments
- Sep 29, 2026[Submission]: Raven - host agent that runs Hermes Agent as an ACP subagent in task DAGs — 0xNyk/awesome-hermes-agent0 reactions
- Sep 28, 2026Add Raven to 4 Self-Evolving Coding Products — iSEngLab/Awesome-Self-Evolving-Coding-Agents0 reactions
- Sep 28, 2026Add Raven host agent for multi-agent orchestration — slavakurilyak/awesome-ai-agents0 reactions
- Sep 28, 2026Add Raven to Multi-Agent Systems — ARUNAGIRINATHAN-K/awesome-ai-agents-20260 reactions · 3 comments
- Sep 28, 2026Add Raven to Coding Agents — ai-for-developers/awesome-ai-coding-tools0 reactions
- Sep 28, 2026feat(catalog): add Raven to Harness Architecture & Orchestration — Picrew/awesome-agent-harness0 reactions
- Sep 28, 2026Add Raven to Generators & Meta-Harnesses — ai-boost/awesome-harness-engineering0 reactions
- Sep 28, 2026Add Raven to Multi-Agent Harnesses — Gloriaameng/Awesome-Agent-Harness0 reactions
- Sep 28, 2026Add Raven — RyanAlberts/best-of-Agent-Harnesses0 reactions
- Sep 28, 2026Add Raven to Frameworks & Tools → Harness / Memory / Skill Evolution — lobehub/awesome-rsi0 reactions
- Sep 28, 2026Add Raven to Multi-Agent Task Solver Projects — Jenqyang/Awesome-AI-Agents0 reactions
- Sep 28, 2026Add Raven to Foundational Agent Orchestration — XMUDeepLIT/Awesome-Self-Evolving-Agents0 reactions
- Sep 28, 2026Add Raven to Platforms & Integrated Solutions — ai-boost/awesome-a2a0 reactions
- Sep 28, 2026Add Raven to Multi-Agent Platforms And Builders — Agent-Analytics/awesome-multi-agent-orchestrators0 reactions · 2 comments
- Sep 27, 2026Refactor: freeze flow contracts and consolidate patch debt — 9Ashwin/let-it-go0 reactions · 2 comments
- Sep 27, 2026agent-skills.github.evermind-ai.raven: init at 0.1.13 — sudosubin/agents.nix0 reactions
- Sep 24, 2026docs(non-cc): screenshot-lead research batch 13 (plan 0008 row 20) — qte77/ai-agents-research0 reactions
- Jul 12, 2026RFC: compare Raven and Claude Code memory designs for Maka's durable memory architecture — apache/maka0 reactions · 6 comments
- Jul 1, 2026feat: Raven (EverMind-AI) agent-platform adapter + integration skill — XEasonChan/callingclaw0 reactions
On Bluesky · 2
- Oct 1, 2026github.com/EverMind-AI/... — @tommis.fi5 likes and reposts
- Aug 25, 2026Raven 🐦⬛ 0.1.13 is out. • Each conversation now keeps its own model, credentials, and context window • Raven trajectory turns agent… — @evermind-ai.bsky.social1 likes and repost
On Hacker News · 1
- Sep 29, 2026Show HN: Raven – The harness of harnesses, built for RSI55 points · 51 comments
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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- git-story-filmSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 0 are common, 15 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Every new code file must document its purpose in English with an appropriate module docstring or equivalent file-level documentation.
- Distinctive: line 33
Don't: add comments that:
- Very specific: line 147
Before cutting any branch (fix / feat / refactor / anything), ask the user which base to cut from — don't pick one silently.
- Distinctive: line 148
If unspecified, default to main (the integration branch).
- Distinctive: line 192
No other languages anywhere in the message — not just the subject.
- Distinctive: line 244
After finishing a phase, report and stop.
- Distinctive: line 246
If a pre-commit hook fails, create a new commit to fix it — don't amend.
- Distinctive: line 250
Rule: before pushing a feature branch, base it on the latest main.
- Distinctive: line 269
Always git fetch first to check ahead/behind.
- Distinctive: line 270
if the remote target has commits not on your branch, rebase before pushing (the §3.5 flow).
- Very specific: line 273
use --force-with-lease, never --force.
- Very specific: line 277
After pushing a new feature branch, proactively ask whether to open the PR with gh pr create — don't leave the user to do it in the web UI.
- Distinctive: line 291
check only the boxes you actually satisfied — leave the rest blank and explain in the description.
- Very specific: line 304
After drafting, scan for any non-ASCII char first (CI lints the whole message as ASCII-only -- scripts/check_pr_body.py is the canonical …
- Very specific: line 312
only after the user edits/confirms, run gh pr create --title "..." --body "$(cat /tmp/pr_description.md)".
- Distinctive: line 345
If the user *explicitly* says "let me try pip" / "manually add this line to pyproject", follow the user.
- Very specific: line 391
when changing/adding a CLI command, update the matching test_cli_<module>_commands.py — don't create a new file.
- Distinctive: line 392
when you spot a legacy file violating §5.1 / §5.2, report it to the user first — don't rename it unprompted (renames touch git history and …
- Very specific: line 393
always run tests via uv run pytest ..., never bare pytest (per §4).
- Distinctive: line 406
Do not commit report assets or standalone web artifacts, regardless of size.
- Distinctive: line 416
Do not add or modify files over 1 MiB unless the maintainer explicitly approves it before the commit.
- Very specific: line 417
Run make check-large-files when touching docs, demos, reports, assets, or generated outputs.
- Distinctive: line 425
Before adding a section, confirm with the user in conversation first — the shorter AGENTS.md stays, the more useful it is.
≈ “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
Raven AI-collaboration spec. Read this file before making any code change in this repo.
Scope: Codex / Claude Code / Claude API / any AI-assisted work. When a rule here conflicts with an ad-hoc instruction in conversation, this file wins — unless the user explicitly says "ignore rule X in AGENTS.md".
Hard constraints only (violations get reverted / rejected). Soft suggestions and style preferences belong in personal notes or conversation, not here. See the Maintenance note before adding sections — shorter is better.
| # | Section | Gist |
| 1 | Code comments | Don't comment unless necessary; source in English (named exemption zones) |
| 2 | Branch naming | <type>/<snake_desc>; confirm base before cutting |
| 3 | Commits | Conventional Commits, all-English, Co-authored-by trailer |
| 4 | Dependencies | uv only — never pip / hand-edit lockfile |
| 5 | Tests | uv run pytest; strict file-naming |
| 6 | Domain terms | Consult CONTEXT-MAP.md before naming; use canonical terms |
| 7 | Repository assets | No report assets, web artifacts, or large files in PRs |
1. Code comments
§1.1 Top rule: don't add comments unless necessary
- Every new code file must document its purpose in English with an appropriate module docstring or equivalent file-level documentation. Inline comments still follow the necessity rules below.
- Match the style of surrounding lines. If neighboring code has no comments, don't add one to your new line.
- Comment only when:
- the logic is non-obvious;
- there's a hidden constraint (e.g. call-order sensitivity, a caller must do X first);
- you need to explain why, not what (the name already says what).
- Don't add comments that:
- describe what the code does (
# Increment counternext tocounter += 1); - mark edits (
# ← new/# changed this line); - reference a PR / Issue / locally-visible-only doc path (
# Refs: ...— invisible to others); - describe transient task context (
# For the X bug— stale once the task is done).
- describe what the code does (
§1.2 When a comment is required, write it in English
- Repo source comments must not be in another language — keep comment language consistent across the repo.
§1.3 Source language: English, with named exemption zones
- The English rule covers all repo source, not just comments: string constants, prompts, log messages, test fixtures, docs. Non-English content anywhere else gets reverted.
- Exemption zones (owner-signed) -- CJK is admissible only here, and only as capability
data the feature itself needs. One zone per bullet; the leading backticked path is a
prefix unless marked as an exact file, and a contract test holds the lists equal:
plugins-dist/ppt-engine/-- the Chinese-deck engine: caption markers, font names, language words the model must see, the skill corpus;tests/test_ppt_engine_*-- the deck engine's fixtures;plugins-dist/design-engine/-- the visual-design engine (owner-signed 0904): the fifteen-domain zh skill corpus;tests/test_design_engine_*-- the design engine's fixtures;docs-site/-- the bilingual documentation site (owner-signed 0918): the language-switcher label and any other display string the site config must render in Chinese; the site's own pages are already exempt as*.md;raven/i18n/-- the zh catalog and lexicon;raven/templates/prompts/zh/-- the zh prompt pack;skills/git-story-film/examples/raven-story/zh/-- the Chinese film variant's captions and on-screen labels (owner-approved);skills/git-story-film/examples/raven-story/storyboard/storyboard.html-- exact file: bilingual reference captions (owner-approved);skills/git-story-film/scripts/storyboard.py-- exact file: localized UI labels and language-name keys required by the storyboard generator (owner-approved);tests/test_i18n_*-- zh-i18n test fixtures: a CJK fixture is admissible only when the test exercises zh functionality, and the machine-checkable proxy for that is this file-name prefix plus an import ofraven.i18nor a zh plugin module (raven_ppt/raven_design); a file with the prefix but no such import loses the exemption, and a fixture that would pass equally well in English is not exempt.
- Markdown files self-govern wherever they live (owner rule; covers
README.zh-CN.mdanddocs/prose): the gate exempts*.mdby suffix. That suffix is the only blanket rule -- a non-markdown file underdocs/has no fallback exemption. - Machine enforcement:
scripts/check_source_language.pygates every PR's added lines (make check-source-language), the waymake check-large-filesenforces section 7. A CJK-adding line passes only through one of: a zone prefix or exact file above, the*.mdsuffix, thetests/test_i18n_*prefix with its import proof, the relocation pass (the same CJK run was removed elsewhere in the same diff), or the carrier pass (the file already carried CJK at the base revision) -- so relocating existing CJK and editing a file that already carries CJK stay legal.
§1.4 Examples
❌ Non-English review comment copied straight into source:
self.logger = logger.bind(channel=self.name) # ← new❌ Neighbors have no comments, yet the new line adds a meaningless one:
def __init__(self, config: Any, bus: MessageBus):
self.config = config
self.bus = bus
self._running = False
self.logger = logger.bind(channel=self.name) # ← drop this comment✅ Clean, no comment, consistent:
def __init__(self, config: Any, bus: MessageBus):
self.config = config
self.bus = bus
self._running = False
self.logger = logger.bind(channel=self.name)✅ Rare case that genuinely needs a why, in English:
# Bind channel name into logger context so every log entry auto-tags channel.
self.logger = logger.bind(channel=self.name)2. Branch naming
§2.1 Format
<type>/<short-desc>
| type | Use |
feat | New feature |
fix | Bug fix |
refactor | Refactor (not a feature, not a bug fix) |
perf | Performance |
chore | Misc (deps bump, doc structure, etc.) |
docs | Docs only |
test | Tests only |
short-desc: snake_case, English, 3–5 words describing the change.
| ✅ Good | ❌ Bad |
feat/whatsapp_lid_mapping | feat/优化 |
fix/cron_dst_transition | bugfix |
refactor/cli_cron_sentinel | huangjie-test |
chore/upgrade_uv | tmp |
§2.2 Confirm the base before cutting
- Before cutting any branch (
fix/feat/refactor/ anything), ask the user which base to cut from — don't pick one silently. - If unspecified, default to
main(the integration branch). - Flow:
git fetch origin main, then cut from the latest tip. - Combined with the branch-first rule: confirm base + cut the branch, then start editing — never write on a working branch and carve the branch out afterwards.
3. Commits (Conventional Commits)
§3.1 Message format
<type>(<scope>): <subject>
<body — optional>
<footer — optional>type — same set as §2.1, plus 3 commit-only types:
| type | Meaning |
feat | New feature |
fix | Bug fix |
docs | Docs only |
refactor | Refactor |
perf | Performance |
test | Tests only |
build | Build system / external deps |
ci | CI config |
chore | Other misc |
revert | Revert a prior commit |
scope — a top-level subpackage of raven/. See the repo-layout page of the documentation site (docs-site/docs/repo-layout.md) for the canonical list. Spanning multiple scopes → omit the scope, or use (*).
subject — lowercase start; no trailing period; English. The whole header (<type>(<scope>): <subject>) must be ≤ 100 chars — the single length rule, enforced by commitlint header-max-length.
footer (optional):
BREAKING CHANGE: <desc>— triggers a MAJOR bump once public.
A closing keyword does not belong here: squash-merge drops individual commit bodies, so only the PR description can close an issue (§3.3, §3.7).
§3.1.1 Top rule: the whole message is English (subject + body + footer)
No other languages anywhere in the message — not just the subject; body and footer too.
| Part | Rule |
| subject | English, lowercase start, no period; whole header ≤ 100 chars |
| body | All English; when citing a non-English plan / discussion, translate it, don't paste |
| punctuation | ASCII-only — not just no full-width punctuation (:,,,。,「」,"" …) but also no em-dash —, curly quotes, or ellipsis … (all non-ASCII, all rejected by CI); no §-numbering, no non-English path names; the latin part of a §N.M anchor is fine |
| trailer | Co-authored-by: ... is ASCII by format |
Why: Conventional-Commits tooling (commitlint / semantic-release / changelog generators) parses ASCII grammar and mis-lints on non-English text; cross-language reviewers and a public commit history both need English.
Process:
- Before writing: translate the points in your head to English first — don't write a non-English body then translate (that leaves full-width residue).
- After writing: self-check with
git log -1; any non-English char → rewrite. - Already committed but violating: rewrite the message with
git rebase -ionly after explicit user authorization; don't rewrite history unprompted (see §3.4). - Syncing colleague fixes: each fix lands as one commit — no same-subject twin pairs — and its body passes the same all-English / ASCII rules; the sync pipeline is not exempt from this section.
§3.2 ✅ Good / ❌ Bad
✅ Good:
feat(cli): rename cron show/remove to get/delete
fix(channels): default allow_from to ['*'] instead of deny-all
refactor(cli): replace --cron-expr with --cron and --every-seconds with --every
feat(importer): add EverOS HTTP backend❌ Bad:
更新代码(non-English + no type/scope);update(no type/scope);feat: Cron 命令重命名为 get 和 delete.(uppercase + period + non-English + no scope).
§3.3 Trailer rules (commit message + PR description)
✅ Required:
Co-authored-by: Claude (<model-id>) <noreply@anthropic.com>— when Claude helped write the code, append it at the end of the commit body (blank line above), or at the end of the PR description.<model-id>= the actual current-session model ID (e.g.claude-fable-5/claude-sonnet-5/claude-haiku-4-5), not a placeholder. The model version keeps per-model contribution distinguishable.- Format follows the aider convention; GitHub renders
Co-authored-byas a co-author on the commit / PR.
- Multiple co-authors → one per line, standard git trailer format (
Name <email>). - The repo squash-merges PRs (rebase only freshens the branch before push; the merge collapses the branch to one commit on
main). The squash commit's subject is the PR title and its body is the PR description (squash_merge_commit_message=PR_BODY) — individual commit bodies are dropped. GitHub still auto-collects each commit'sCo-authored-byinto the squash commit, so keep the trailer in your commit and putCloses #NNN+ reviewer context in the PR description (that is what lands onmain).
❌ Don't add:
Refs: ...pointing at locally-visible-only / git-ignored paths (invisible to others);🤖 Generated with Claude Codeand similar emoji banners —Co-authored-byalready conveys co-authorship (and is the structured, machine-readable attribution); a marketing badge adds no attribution value;- internal commit-hash references / temporary branch names — docs/PRs describe the present state only.
§3.4 Hard rule: when to commit
- Don't commit unprompted — only when the user explicitly says "commit" / "提交" / "save".
- "Commit per phase" written in a plan is not pre-authorization — a plan is a reference; committing still needs the user's word.
- After finishing a phase, report and stop; wait for acceptance + an explicit commit instruction.
- Don't
git commit --amenda prior commit (unless the user explicitly asks to amend). - If a pre-commit hook fails, create a new commit to fix it — don't amend.
§3.5 Sync before push + force-push boundary
Rule: before pushing a feature branch, base it on the latest main.
| Step | Command | Note |
| 1. Sync remote | git fetch origin <target> | Doesn't touch the working tree |
| 2. Dry-run conflicts | git merge-tree --write-tree HEAD origin/<target> | exit 0 = clean; non-zero prints conflicts |
| 3. Rebase (if remote ahead) | git rebase origin/<target> | Re-applies your branch onto the target tip |
| 4. Re-run tests | uv run pytest <relevant tests> -x | Confirm the rebase didn't break anything |
| 5. Push | git push -u origin <branch> (first) or git push --force-with-lease (after rebase) | — |
Why: CI runs "your commits on top of the latest remote" (catches runtime conflicts before merge) and the PR diff stays clean. Rebase here only freshens the branch base before push; the merge itself is a squash, which collapses the branch to a single commit on main.
Force-push boundary:
- ✅
--force-with-lease(checks the remote wasn't changed by others) on your own feature branch after a rebase; - ❌
git push --force(blind, can clobber others' pushes); - ❌ never force-push to long-lived / protected branches (
main).
§3.6 Hard rule: Claude push
- Always
git fetchfirst to check ahead/behind; - if the remote target has commits not on your branch, rebase before pushing (the §3.5 flow);
- re-run tests after the rebase;
- don't push unprompted — like §3.4, only when the user says "push";
- use
--force-with-lease, never--force.
§3.7 After a successful push, offer to open the PR
After pushing a new feature branch, proactively ask whether to open the PR with gh pr create — don't leave the user to do it in the web UI.
Title: same Conventional-Commits grammar as commits (<type>(<scope>): <subject>), subject reflecting the PR's overall goal, not any single commit. Length: the title plus the (#NN) GitHub appends on squash must keep the header ≤ 100 chars — CI validates the title as that prospective squash header, so a title that passes will not fail commit-lint after merge. Shorter is better.
Description must be all English (same as §3.1.1): no other languages / full-width punctuation / § numbering anywhere (subject + body + tables + checklist).
Description structure: the sections come from .github/pull_request_template.md — read that file, do not work from a copy. gh pr create fills it in for you; writing --body by hand means reproducing its headings exactly.
Filling rules:
Summary— the PR's overall goal + key decisions (summarize the phase evolution for multi-commit PRs);Type— one box, mirroring the commit type (feat→Feature,fix→Fix,docs→Docs,refactor→Refactor,ci/build→CI / tooling, else Other). The checkbox is not a fresh judgement call;Verification— the exact commands you ran and their result, not a claim that you ran them;Risk— user-visible behaviour changes, and how to roll back;Related Issues—Fixes #NNNfor what this closes (repeat the keyword per issue:Fixes #NNN, fixes #MMM), a bare#NNNto reference without closing,N/Awhen there is none;- check only the boxes you actually satisfied — leave the rest blank and explain in the description; never blanket-check;
- anything the template has no section for but the reviewer needs (breaking change / cherry-pick option / mixed topics) → append to
Summary.
Trailer (with §3.3):
- squash-merge → GitHub auto-collects each commit's
Co-authored-byinto the squash commit, so keep the trailer in your commit and don't add it to the PR description (that duplicates it); Closes #NNNand reviewer context, by contrast, must live in the PR description — the squash commit body is taken from it (squash_merge_commit_message=PR_BODY), and individual commit bodies are dropped.
Description must NOT contain (same as §3.3):
🤖 Generated with [Claude Code](https://...)marketing banners;Refs: ...to ignored/local-only paths;- internal branch names / commit-hash references (no reviewer context).
Preview-verification (required):
- After drafting, scan for any non-ASCII char first (CI lints the whole message as ASCII-only --
scripts/check_pr_body.pyis the canonical checker, and the squash commit body is this PR description, so it must be ASCII too):uv run python -c "import sys,pathlib; bad=[(n,l) for n,l in enumerate(pathlib.Path('/tmp/pr_description.md').read_text(encoding='utf-8').splitlines(),1) if any(ord(c)>0x7F for c in l)]; [print(f'{n}: {l}') for n,l in bad]; sys.exit(1 if bad else 0)" # must exit 0 with no output. Same per-character test as scripts/check_pr_body.py. # Catches em-dash/curly-quotes/ellipsis, not just CJK -- and stock macOS grep # has no -P, so a grep -P check silently matches nothing there. - show the full text for preview;
- only after the user edits/confirms, run
gh pr create --title "..." --body "$(cat /tmp/pr_description.md)"; - report the PR URL.
Not allowed:
- pushing and walking away, leaving PR creation to the user;
- delivering a description without running the ASCII scan above.
4. Dependencies (uv only)
§4.1 uv is the only Python package manager
| Action | Command |
| Add runtime dep | uv add <package> |
| Add dev dep | uv add --dev <package> |
| Remove dep | uv remove <package> |
| Sync env from lockfile | uv sync |
| Upgrade one package | uv lock --upgrade-package <package> |
| Upgrade all | uv lock --upgrade |
| Run a command in the project env | uv run <command> |
§4.2 Forbidden
- ❌
pip install/pip uninstall; - ❌ hand-editing
[project.dependencies]/[project.optional-dependencies]/[dependency-groups]inpyproject.toml; - ❌ hand-editing
uv.lock; - ❌
pip freeze > requirements.txt; - ❌
python -m pip install ...to bypass uv.
§4.3 Exception
If the user explicitly says "let me try pip" / "manually add this line to pyproject", follow the user. This rule constrains Claude's default behavior, not the user's direct instructions.
5. Tests
§5.1 Unit tests
Under tests/test_*.py. CLI unit tests use one shape:
tests/test_cli_<module>_commands.py- one file per module (aligns with
raven/cli/<module>_commands.py); - don't split by phase / feature / ticket (no
phase4/eve151suffixes); - aspect suffixes are allowed:
- testing a CLI private helper:
test_cli_<helper>.py(e.g.test_cli_helpers.py/test_cli_stacks.py); - cross-module behavior:
test_cli_<aspect>.py(e.g.test_cli_config_precedence.py/test_cli_smoke.py).
- testing a CLI private helper:
§5.2 Integration tests
Under tests/integration/test_*.py. Run against real environments (real LLM / channel / fcntl / subprocess / VM, etc.).
Naming: test_<scope>_<kind>.py, where <kind> ∈:
| kind | Meaning |
e2e | End-to-end happy path, single/multi module |
smoke | Multi-module interplay, just "it runs" |
real_<resource> | Hits a real resource (real_vm / real_llm / real_channel, …) |
<scope>must not carry a version / ticket number (nov002/eve151) — use a feature/scenario description.
§5.3 Examples
| ❌ Wrong | ✅ Right | Reason |
test_cli_cron.py | test_cli_cron_commands.py | missing _commands suffix |
test_sentinel_cli.py | test_cli_sentinel_commands.py | order reversed |
test_cli_sentinel_phase4.py | merge into test_cli_sentinel_commands.py | no phase suffix |
tests/integration/test_v002_smoke.py | test_<feature>_smoke.py | no version number |
tests/integration/test_eve151_smoke.py | test_<feature>_smoke.py | no ticket number |
§5.4 Hard rules for Claude
- when changing/adding a CLI command, update the matching
test_cli_<module>_commands.py— don't create a new file; - when you spot a legacy file violating §5.1 / §5.2, report it to the user first — don't rename it unprompted (renames touch git history and may collide with follow-up PRs);
- always run tests via
uv run pytest ..., never barepytest(per §4).
6. Domain terms
- Naming a domain concept tracked in
CONTEXT-MAP.md(the entry point — it routes toCONTEXT.mdfor Runtime terms andui-tui/CONTEXT.mdfor TUI)? Use the canonical term, not a synonym. - Coining a new domain term: define it in the matching
CONTEXT.mdin the same change, with a definition verifiable against the code (not guessed) — add an_Avoid_list only if a confusable synonym exists.
7. Repository assets
- Do not commit report assets or standalone web artifacts, regardless of size. This includes images, GIFs, SVGs, videos, audio files, PDFs, HTML files, web manifests, and WASM bundles.
- The application source trees (
bridge/,ui-web/,ui-tui/) are exempt from that extension list: a product frontend carries its own entry HTML and icon SVGs as source, not as report assets. Everything else in this section, including the 1 MiB limit, still applies to them. - Packaged
.jpgbenchmark plates underplugins-dist/design-engine/raven_design/skills/<skill>/references/are functional Skill inputs, not report assets, and are allowed:.jpgonly, only under a skill'sreferences/, and the 1 MiB limit still applies. - Store public-report assets outside git and link to them when needed.
- The git-story-film skill's bundled HTML inputs are allowed at exactly
skills/git-story-film/examples/raven-story/raven.html,skills/git-story-film/examples/raven-story/cast-sheet.html, andskills/git-story-film/examples/raven-story/storyboard/storyboard.html(owner-approved). These are functional Skill inputs; pre-rendered images, generated exports, and other asset types remain prohibited. The 1 MiB limit still applies to every allowed HTML file. - Do not add or modify files over 1 MiB unless the maintainer explicitly approves it before the commit.
- Run
make check-large-fileswhen touching docs, demos, reports, assets, or generated outputs; CI enforces the same rule on added and modified PR files.
Maintenance
This file holds hard constraints only (rules whose violation gets reverted / rejected). Soft suggestions, design preferences, and style leanings go in personal notes or conversation — not here.
Before adding a section, confirm with the user in conversation first — the shorter AGENTS.md stays, the more useful it is.
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.

