agentleFS
agno-agiagno-agi/agno/CLAUDE.md

agno

CLAUDE.md43k starsChanged 18 months agoApache-2.0View on GitHub

Instructions for AI coding agents (Claude Code, Codex, Cursor, etc.) working on this codebase. When working in Conductor, you can use the .context/ directory for scratch notes or agent-to-agent handoff artifacts. This directory is gitignored. The specs/ and docs/ directories are symlinked from external locations. For a fresh clone or new workspace, create these symlinks: These contain private design documents and documentation that are not checked into the repository. This project uses two virtual environments: Use .venv for development tasks…

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about agno-agi/agno

The biggest 5 of 70 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 70

Talked about on GitHub, Bluesky and Hacker News (70 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 13

8 more on Bluesky
  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

19 rules. About 0 are common, 8 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When working in Conductor, you can use the .context/ directory for scratch notes or agent-to-agent handoff artifacts.

    line 23
  2. Very specific:

    Ensure the virtual environment exists (run ./scripts/demo_setup.sh if needed)

    line 90
  3. Very specific:

    Start any required services (e.g., ./cookbook/scripts/run_pgvector.sh)

    line 91
  4. Very specific:

    After each test, update the cookbook's TEST_LOG.md with:

    line 104
  5. Distinctive:

    Test name and path

    line 105
  6. Very specific:

    Always follow the PR template in .github/pull_request_template.md.

    line 210
  7. Distinctive:

    Don't implement features without checking for a design doc first

    line 236
  8. Very specific:

    Don't reference specs/ paths, spec section numbers, or ADR numbers in code comments, docstrings, or user-facing strings — specs are private.

    line 237
  9. Distinctive:

    Don't use f-strings for print lines where there are no variables

    line 238
  10. Distinctive:

    Don't use emojis in examples and print lines

    line 239
  11. Distinctive:

    Don't skip async variants of public methods

    line 240
  12. Very specific:

    Don't push code without running ./scripts/format.sh and ./scripts/validate.sh

    line 241
  13. Very specific:

    Don't submit a PR without a detailed PR description.

    line 242
  14. Very specific:

    Don't use OpenAIChat in cookbooks or examples — use OpenAIResponses instead

    line 243
  15. Very specific:

    Don't use gpt-4o or gpt-4o-mini in cookbooks or examples — use gpt-5.6-luna instead

    line 244
  16. Very specific:

    Every non-draft PR automatically receives a review from Opus using both code-review and pr-review-toolkit official plugins (10 specialized …

    line 250
  17. Distinctive:

    When running in GitHub Actions (CI), always end your response with a plain-text summary of findings.

    line 252
  18. Distinctive:

    No agent creation inside loops (agents should be reused)

    line 256
  19. Distinctive:

    No f-strings for print lines where there are no variables

    line 258

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

Agno - Agent Instructions

Instructions for AI coding agents (Claude Code, Codex, Cursor, etc.) working on this codebase.


Repository Structure

.
├── libs/agno/agno/          # Core framework code
├── cookbook/                # Examples, patterns and test cases (organized by topic)
├── scripts/                 # Development and build scripts
├── specs/                   # Design documents (symlinked, private)
├── docs/                    # Documentation (symlinked, private)
└── .cursorrules             # Coding patterns and conventions

Conductor Notes

When working in Conductor, you can use the .context/ directory for scratch notes or agent-to-agent handoff artifacts. This directory is gitignored.


Setting Up Symlinks

The specs/ and docs/ directories are symlinked from external locations. For a fresh clone or new workspace, create these symlinks:

ln -s ~/code/specs specs
ln -s ~/code/docs docs

These contain private design documents and documentation that are not checked into the repository.


Virtual Environments

This project uses two virtual environments:

EnvironmentPurposeSetup
.venv/Development: tests, formatting, validation./scripts/dev_setup.sh
.venvs/demo/Cookbooks: has all demo dependencies./scripts/demo_setup.sh

Use .venv for development tasks (pytest, ./scripts/format.sh, ./scripts/validate.sh).

Use .venvs/demo for running cookbook examples.


Testing Cookbooks

Apart from implementing features, your most important task will be to test and maintain the cookbooks in cookbook/ directory.

See cookbook/08_learning/ for the golden standard.

Quick Reference

Test Environment:

# Virtual environment with all dependencies
.venvs/demo/bin/python

# Setup (if needed)
./scripts/demo_setup.sh

# Database (if needed)
./cookbook/scripts/run_pgvector.sh

Run a cookbook:

.venvs/demo/bin/python cookbook/<folder>/<file>.py

Expected Cookbook Structure

Each cookbook folder should have the following files:

  • README.md — The README for the cookbook.
  • TEST_LOG.md — Test results log.

Testing Workflow

1. Before Testing

  • Ensure the virtual environment exists (run ./scripts/demo_setup.sh if needed)
  • Start any required services (e.g., ./cookbook/scripts/run_pgvector.sh)

2. Running Tests

# Run individual cookbook
.venvs/demo/bin/python cookbook/<folder>/<file>.py

# Tail output for long tests
.venvs/demo/bin/python cookbook/<folder>/<file>.py 2>&1 | tail -100

3. Updating TEST_LOG.md

After each test, update the cookbook's TEST_LOG.md with:

  • Test name and path
  • Status: PASS or FAIL
  • Brief description of what was tested
  • Any notable observations or issues

Format:

### filename.py

**Status:** PASS/FAIL

**Description:** What the test does and what was observed.

**Result:** Summary of success/failure.

---

Code Locations

WhatWhere
Core agent codelibs/agno/agno/agent/
Teamslibs/agno/agno/team/
Workflowslibs/agno/agno/workflow/
Toolslibs/agno/agno/tools/
Modelslibs/agno/agno/models/
Knowledge/RAGlibs/agno/agno/knowledge/
Memorylibs/agno/agno/memory/
Learninglibs/agno/agno/learn/
Database adapterslibs/agno/agno/db/
Vector databaseslibs/agno/agno/vectordb/
Testslibs/agno/tests/

Coding Patterns

See .cursorrules for detailed patterns. Key rules:

  • Never create agents in loops — reuse them for performance
  • Use output_schema for structured responses
  • PostgreSQL in production, SQLite for dev only
  • Start with single agent, scale up only when needed
  • Both sync and async — all public methods need both variants

Running Code

Running cookbooks:

.venvs/demo/bin/python cookbook/<folder>/<file>.py

Running tests:

source .venv/bin/activate
pytest libs/agno/tests/

# Run a specific test file
pytest libs/agno/tests/unit/test_agent.py

When Implementing Features

  1. Check for design doc in specs/ — if it exists, follow it
  2. Look at existing patterns — find similar code and follow conventions
  3. Create a cookbook — every pattern should have an example
  4. Update implementation.md — mark what's done

Before Submitting Code

Always run these scripts before pushing code or creating a PR:

# Activate the virtual environment first
source .venv/bin/activate

# Format all code (ruff format)
./scripts/format.sh

# Validate all code (ruff check, mypy)
./scripts/validate.sh

Both scripts must pass with no errors before code review.

PR Title Format:

PR titles must follow one of these formats:

  • type: description — e.g., feat: add workflow serialization
  • [type] description — e.g., [feat] add workflow serialization
  • type-kebab-case — e.g., feat-workflow-serialization

Valid types: feat, fix, cookbook, test, refactor, chore, style, revert, release

PR Description:

Always follow the PR template in .github/pull_request_template.md. Include:

  • Summary of changes
  • Type of change (bug fix, new feature, etc.)
  • Completed checklist items
  • Any additional context

GitHub Operations

Updating PR descriptions:

The gh pr edit command may fail with GraphQL errors related to classic projects. Use the API directly instead:

# Update PR body
gh api repos/agno-agi/agno/pulls/<PR_NUMBER> -X PATCH -f body="<PR_BODY>"

# Or with a file
gh api repos/agno-agi/agno/pulls/<PR_NUMBER> -X PATCH -f body="$(cat /path/to/body.md)"

Don't

  • Don't implement features without checking for a design doc first
  • Don't reference specs/ paths, spec section numbers, or ADR numbers in code comments, docstrings, or user-facing strings — specs are private; every comment must state its constraint standalone
  • Don't use f-strings for print lines where there are no variables
  • Don't use emojis in examples and print lines
  • Don't skip async variants of public methods
  • Don't push code without running ./scripts/format.sh and ./scripts/validate.sh
  • Don't submit a PR without a detailed PR description. Always follow the PR template provided in .github/pull_request_template.md.
  • Don't use OpenAIChat in cookbooks or examples — use OpenAIResponses instead
  • Don't use gpt-4o or gpt-4o-mini in cookbooks or examples — use gpt-5.6-luna instead

CI: Automated Code Review

Every non-draft PR automatically receives a review from Opus using both code-review and pr-review-toolkit official plugins (10 specialized agents total). No manual trigger needed — the review posts as a sticky comment on the PR.

When running in GitHub Actions (CI), always end your response with a plain-text summary of findings. Never let the final action be a tool call. If there are no issues, say "No high-confidence findings."

Agno-specific checks to always verify:

  • Both sync and async variants exist for all new public methods
  • No agent creation inside loops (agents should be reused)
  • Coding patterns in this file are followed
  • No f-strings for print lines where there are no variables

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.