navra
AGENTS.md1 starsChanged 5 months agoApache-2.0View on GitHub
All AI agents working in this project must follow these rules. These apply to all agents: main session, subagents, worktree agents, and team members. When referencing files, use exact paths relative to the project root. Before claiming any work is complete: 1. Tests pass: just test-crate <crate> 2. Clippy clean: cargo clippy -p <crate> -- -D warnings 3. No new warnings: read the full build output, not just the exit code 4. Security warnings are fatal: if clippy or your…
- Reads credentials
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- benchSkill
- buildSkill
- checkSkill
- implementSkill
- navra-diagnoseSkill
- navra-initSkill
- navra-policySkill
- testSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 0 are common, 19 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 3
All AI agents working in this project must follow these rules.
- Distinctive: line 9
When referencing files, use exact paths relative to the project root.
- Distinctive: line 20
Read CLAUDE.md for architecture, conventions, and build commands
- Very specific: line 21
Read roadmap.json to understand what's in progress
- Distinctive: line 22
Run git log --oneline -10 for recent context
- Very specific: line 23
If assigned a crate, read its lib.rs top-level doc comment
- Distinctive: line 27
Do not re-read files you already have in context
- Distinctive: line 28
If you need a fact about the codebase, grep or read — do not guess
- Very specific: line 29
When switching crates, read the new crate's lib.rs and test files
- Distinctive: line 33
Before claiming any work is complete:
- Distinctive: line 37
No new warnings: read the full build output, not just the exit code
- Distinctive: line 38
Security warnings are fatal: if clippy or your own review flags a security concern, fix it or escalate — never defer
- Distinctive: line 41
If tests fail, fix them. Do not report partial success as complete.
- Very specific: line 47
Never commit: .env, *.pem, *.key, Cargo.lock changes (let the build update it), model weights, database files
- Distinctive: line 49
Never force push, rewrite history, or run destructive git commands
- Distinctive: line 50
Write commit messages in imperative mood: "add X", not "added X"
- Distinctive: line 78
If two agents need to change the same file, they cannot run in parallel — sequence them or have one agent do both changes
- Distinctive: line 83
Every agent in a worktree must:
- Distinctive: line 93
When working as part of a Claude Code team:
- Distinctive: line 97
No silent work: if you hit a blocker, message the lead immediately
- Distinctive: line 98
No scope creep: do your assigned task, nothing more
- Distinctive: line 99
Prefer tasks in ID order (lowest first) when multiple are available
- Distinctive: line 103
Before modifying a crate, understand its patterns:
- Very specific: line 105
Check for a local test_ctx() helper — use it, don't invent your own
- Very specific: line 106
Check the error handling pattern: CallToolResult::error() vs anyhow
- Very specific: line 107
Check whether the crate uses #[tokio::test] or sync tests
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 Rules
All AI agents working in this project must follow these rules. These apply to all agents: main session, subagents, worktree agents, and team members.
1. Path Precision
When referencing files, use exact paths relative to the project root.
navra-auth/src/permissions/acl.rs:42— correctnavra-core/tests/session_test.rs— correct- "the security file" — wrong
- "acl.rs" — wrong (which crate?)
2. Context Protocol
Session start
- Read
CLAUDE.mdfor architecture, conventions, and build commands - Read
roadmap.jsonto understand what's in progress - Run
git log --oneline -10for recent context - If assigned a crate, read its
lib.rstop-level doc comment
During work
- Do not re-read files you already have in context
- If you need a fact about the codebase, grep or read — do not guess
- When switching crates, read the new crate's
lib.rsand test files
3. Work Quality Gates
Before claiming any work is complete:
- Tests pass:
just test-crate <crate> - Clippy clean:
cargo clippy -p <crate> -- -D warnings - No new warnings: read the full build output, not just the exit code
- Security warnings are fatal: if clippy or your own review flags a security concern, fix it or escalate — never defer
If tests fail, fix them. Do not report partial success as complete.
4. Git Discipline
- Sign all commits:
git commit -s -m "description" - One feature = one commit. Commit immediately after tests pass.
- Never commit:
.env,*.pem,*.key,Cargo.lockchanges (let the build update it), model weights, database files - Never force push, rewrite history, or run destructive git commands
- Write commit messages in imperative mood: "add X", not "added X"
5. Worktree Protocol
When to use worktrees
- Parallel work on independent crates (e.g., tests + docs)
- Multi-agent team assignments
- Experimental changes that might not land
How worktrees work
- Plan on main: design the approach, decompose into crate-scoped work packages, identify file ownership boundaries
- Implement in worktree: each agent gets its own worktree on its own branch, modifying only its assigned crates
- Commit before exiting:
git add -A && git commit -s -m "summary"— uncommitted work is lost when the worktree is cleaned up - Merge back:
git merge --no-ff <worktree-branch> -m "Merge: description"
File ownership
Crate boundaries are the natural ownership boundary. When multiple agents work in parallel:
- Each agent owns one or more crates (all files under that crate dir)
- Shared files (
Cargo.tomlworkspace,CLAUDE.md,AGENTS.md) are owned by the lead session — agents do not modify them - If two agents need to change the same file, they cannot run in parallel — sequence them or have one agent do both changes
Agent checklist
Every agent in a worktree must:
- Read
CLAUDE.mdandAGENTS.mdat session start - Read the target crate's
lib.rsand existing tests - Run tests before and after changes
- Commit all work before finishing
- Report what was done, what was not, and why
6. Team Coordination
When working as part of a Claude Code team:
- Lead decomposes the task, assigns crates, creates the task list
- Members claim tasks, work in worktrees, report via SendMessage
- No silent work: if you hit a blocker, message the lead immediately
- No scope creep: do your assigned task, nothing more
- Prefer tasks in ID order (lowest first) when multiple are available
7. Crate Conventions
Before modifying a crate, understand its patterns:
- Check for a local
test_ctx()helper — use it, don't invent your own - Check the error handling pattern:
CallToolResult::error()vsanyhow - Check whether the crate uses
#[tokio::test]or sync tests - Match the existing naming:
test_deny_wins_over_allow, nottest1 - Respect the dependency layering in
CLAUDE.md— never add a dependency that violates the crate hierarchy
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.

