AutoAgents
AGENTS.md784 starsChanged 15 months agoApache-2.0View on GitHub
- Reads credentials
- Installs packages
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 33,398 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 10
Should not implement half baked work or TODO.
- Distinctive: line 17
Use descriptive, domain-focused names.
- Distinctive: line 21
Add context to errors when it helps debugging.
- Distinctive: line 22
Avoid panics in library code.
- Distinctive: line 25
Use structured logging when a logging crate is introduced.
- Very specific: line 26
Do not print with println!
- Very specific: line 33
Test fast (CI-like): cargo test --workspace --features default --exclude autoagents-burn --exclude autoagents-mistral-rs --exclude …
- Very specific: line 35
Run examples: cargo run -p basic-example or cargo run -p coding_agent
- Very specific: line 39
Use Rust’s built-in test harness.
- Very specific: line 40
Place integration tests in crates/<name>/tests/ with descriptive snake_case filenames.
- Very specific: line 44
Commit style follows existing history: [FEATURE], [BUG], [MAINT], [TASK] + concise subject.
- Very specific: line 48
Never commit secrets. Configure providers via env vars (examples): OPENAI_API_KEY, ANTHROPIC_API_KEY, GROQ_API_KEY, AZURE_OPENAI_API_KEY.
- Distinctive: line 50
Use provider-specific feature flags only where required.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
AutoAgents Repository Guidelines
Project Structure & Module Organization
- Workspace layout:
crates/*(core libraries),examples/*(runnable crates),docs/(documentation),assets/(images),demo_models/(sample models). - Key crates:
autoagents(entry),autoagents-core,autoagents-llm,autoagents-derive,autoagents-toolkit. - Tests live alongside code (
mod tests) and as integration tests under each crate’stests/.
Code Quality
- Code should be production ready and modular
- Should not implement half baked work or TODO.
- The code whould be fully functional
Naming conventions
snake_casefor functions, variables, modules.CamelCasefor types, traits, enums.SCREAMING_SNAKE_CASEfor constants.- Use descriptive, domain-focused names; avoid abbreviations.
Error handling
- Propagate errors with
?and define meaningful error types. - Add context to errors when it helps debugging.
- Avoid panics in library code; in binaries, panic only for truly fatal states.
Logging and diagnostics
- Use structured logging when a logging crate is introduced.
- Do not print with
println!in library code; reserve for examples or CLI output.
Build, Test, and Development Commands
- Build workspace:
cargo build --workspace --features full - Lint:
cargo clippy --all-features --all-targets -- -D warnings - Format:
cargo fmt --all - Test fast (CI-like):
cargo test --workspace --features default --exclude autoagents-burn --exclude autoagents-mistral-rs --exclude wasm_agent - Docs:
cargo doc --all-features --no-deps - Run examples:
cargo run -p basic-exampleorcargo run -p coding_agent - Git hooks: install once with
lefthook install; run locally vialefthook run pre-commit
Testing Guidelines
- Use Rust’s built-in test harness; async tests with
#[tokio::test]where needed. - Place integration tests in
crates/<name>/tests/with descriptivesnake_casefilenames. - Coverage (optional):
cargo install cargo-tarpaulin && cargo tarpaulin --all-features --out html.
Commit & Pull Request Guidelines
- Commit style follows existing history:
[FEATURE],[BUG],[MAINT],[TASK]+ concise subject. Example:[FEATURE]: Add MCP Support (#79). - PRs must include: clear description, linked issues, tests for new behavior, updated docs/examples where relevant, and passing hooks (fmt, clippy, tests).
Security & Configuration Tips
- Never commit secrets. Configure providers via env vars (examples):
OPENAI_API_KEY,ANTHROPIC_API_KEY,GROQ_API_KEY,AZURE_OPENAI_API_KEY. - Example run with key:
OPENAI_API_KEY=... cargo run -p basic-example. - Use provider-specific feature flags only where required; keep defaults minimal.
Agent-Specific Notes
- Reusable tools belong in
autoagents-toolkit; project-specific tools can live within examples or crate-local modules. - Derive macros:
#[agent],#[tool],#[derive(AgentOutput, ToolInput)]are preferred for consistency and type safety.
Python Bindings
Python bindings are available as a thin wrapper around the rust crates to give ability for users to quickly prototype agents. The python bindings must be simple and clean. It must not complicate and add additional stuff which is not required.
uv venv --python=3.12
source .venv/bin/activate # Windows: .venv\Scripts\activate
uv pip install -U pip maturin==1.13.3 pytest pytest-asyncio pytest-cov
# Clean, build, and install all CPU bindings into the active venv
make python-bindings-build
# Clean, build, and install CPU + CUDA bindings
make python-bindings-build-cudaDoes 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.

