agentleFS
liquidos-ailiquidos-ai/AutoAgents/AGENTS.md

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.

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
  1. Distinctive:

    Should not implement half baked work or TODO.

    line 10
  2. Distinctive:

    Use descriptive, domain-focused names.

    line 17
  3. Distinctive:

    Add context to errors when it helps debugging.

    line 21
  4. Distinctive:

    Avoid panics in library code.

    line 22
  5. Distinctive:

    Use structured logging when a logging crate is introduced.

    line 25
  6. Very specific:

    Do not print with println!

    line 26
  7. Very specific:

    Test fast (CI-like): cargo test --workspace --features default --exclude autoagents-burn --exclude autoagents-mistral-rs --exclude …

    line 33
  8. Very specific:

    Run examples: cargo run -p basic-example or cargo run -p coding_agent

    line 35
  9. Very specific:

    Use Rust’s built-in test harness.

    line 39
  10. Very specific:

    Place integration tests in crates/<name>/tests/ with descriptive snake_case filenames.

    line 40
  11. Very specific:

    Commit style follows existing history: [FEATURE], [BUG], [MAINT], [TASK] + concise subject.

    line 44
  12. Very specific:

    Never commit secrets. Configure providers via env vars (examples): OPENAI_API_KEY, ANTHROPIC_API_KEY, GROQ_API_KEY, AZURE_OPENAI_API_KEY.

    line 48
  13. Distinctive:

    Use provider-specific feature flags only where required.

    line 50

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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’s tests/.

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_case for functions, variables, modules.
  • CamelCase for types, traits, enums.
  • SCREAMING_SNAKE_CASE for 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-example or cargo run -p coding_agent
  • Git hooks: install once with lefthook install; run locally via lefthook 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 descriptive snake_case filenames.
  • 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-cuda

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.