AGENTS.md
autogpt_platform/AGENTS.mdAGENTS.md
Quality
77/100
Scores the file, not the repository.Length
725 words
13 headings · 1 code blocksRepository
186k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# AutoGPT Platform23This file provides guidance to coding agents when working with code in this repository.45## Repository Overview67AutoGPT Platform is a monorepo containing:89- **Backend** (`backend`): Python FastAPI server with async support10- **Frontend** (`frontend`): Next.js React application11- **Shared Libraries** (`autogpt_libs`): Common Python utilities1213## Component Documentation1415- **Backend**: See @backend/AGENTS.md for backend-specific commands, architecture, and development tasks16- **Frontend**: See @frontend/AGENTS.md for frontend-specific commands, architecture, and development patterns1718## Key Concepts19201. **Agent Graphs**: Workflow definitions stored as JSON, executed by the backend212. **Blocks**: Reusable components in `backend/backend/blocks/` that perform specific tasks223. **Integrations**: OAuth and API connections stored per user234. **Store**: Marketplace for sharing agent templates245. **Virus Scanning**: ClamAV integration for file upload security2526### Environment Configuration2728#### Configuration Files2930- **Backend**: `backend/.env.default` (defaults) → `backend/.env` (user overrides)31- **Frontend**: `frontend/.env.default` (defaults) → `frontend/.env` (user overrides)32- **Platform**: `.env.default` (Supabase/shared defaults) → `.env` (user overrides)3334#### Docker Environment Loading Order35361. `.env.default` files provide base configuration (tracked in git)372. `.env` files provide user-specific overrides (gitignored)383. Docker Compose `environment:` sections provide service-specific overrides394. Shell environment variables have highest precedence4041#### Key Points4243- All services use hardcoded defaults in docker-compose files (no `${VARIABLE}` substitutions)44- The `env_file` directive loads variables INTO containers at runtime45- Backend/Frontend services use YAML anchors for consistent configuration46- Supabase services (`db/docker/docker-compose.yml`) follow the same pattern4748### Branching Strategy4950- **`dev`** is the main development branch. All PRs should target `dev`.51- **`master`** is the production branch. Only used for production releases.5253### Creating Pull Requests5455- Create the PR against the `dev` branch of the repository.56- **Split PRs by concern** — each PR should have a single clear purpose. For example, "usage tracking" and "credit charging" should be separate PRs even if related. Combining multiple concerns makes it harder for reviewers to understand what belongs to what.57- Ensure the branch name is descriptive (e.g., `feature/add-new-block`)58- Use conventional commit messages (see below)59- **Structure the PR description with Why / What / How** — Why: the motivation (what problem it solves, what's broken/missing without it); What: high-level summary of changes; How: approach, key implementation details, or architecture decisions. Reviewers need all three to judge whether the approach fits the problem.60- Fill out the .github/PULL_REQUEST_TEMPLATE.md template as the PR description61- Always use `--body-file` to pass PR body — avoids shell interpretation of backticks and special characters:62```bash63 PR_BODY=$(mktemp)64 cat > "$PR_BODY" << 'PREOF'65 ## Summary66 - use `backticks` freely here67 PREOF68 gh pr create --title "..." --body-file "$PR_BODY" --base dev69 rm "$PR_BODY"70```71- Run the github pre-commit hooks to ensure code quality.7273### Test-Driven Development (TDD)7475When fixing a bug or adding a feature, follow a test-first approach:76771. **Write a failing test first** — create a test that reproduces the bug or validates the new behavior, marked with `@pytest.mark.xfail` (backend) or `.fixme` (Playwright). Run it to confirm it fails for the right reason.782. **Implement the fix/feature** — write the minimal code to make the test pass.793. **Remove the xfail marker** — once the test passes, remove the `xfail`/`.fixme` annotation and run the full test suite to confirm nothing else broke.8081This ensures every change is covered by a test and that the test actually validates the intended behavior.8283### Reviewing/Revising Pull Requests8485Use `/pr-review` to review a PR or `/pr-address` to address comments.8687When fetching comments manually:88- `gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/reviews --paginate` — top-level reviews89- `gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/comments --paginate` — inline review comments (always paginate to avoid missing comments beyond page 1)90- `gh api repos/Significant-Gravitas/AutoGPT/issues/{N}/comments` — PR conversation comments9192### Conventional Commits9394Use this format for commit messages and Pull Request titles:9596**Conventional Commit Types:**9798- `feat`: Introduces a new feature to the codebase99- `fix`: Patches a bug in the codebase100- `refactor`: Code change that neither fixes a bug nor adds a feature; also applies to removing features101- `ci`: Changes to CI configuration102- `docs`: Documentation-only changes103- `dx`: Improvements to the developer experience104105**Recommended Base Scopes:**106107- `platform`: Changes affecting both frontend and backend108- `frontend`109- `backend`110- `infra`111- `blocks`: Modifications/additions of individual blocks112113**Subscope Examples:**114115- `backend/executor`116- `backend/db`117- `frontend/builder` (includes changes to the block UI component)118- `infra/prod`119120Use these scopes and subscopes for clarity and consistency in commit messages.121
Also in Significant-Gravitas/AutoGPT
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Significant-Gravitas/AutoGPTautogpt_platform/frontend/src/tests/AGENTS.md · 186k | AGENTS.md | teststylearchtypes+2 | 81/100 | 3 days ago | |
| Significant-Gravitas/AutoGPT.github/copilot-instructions.md · 186k | Copilot instructions | setupbuildtestlint-format+10 | 88/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTAGENTS.md · 186k | AGENTS.md | teststylearchgit+1 | 87/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/backend/AGENTS.md · 186k | AGENTS.md | setuptestlint-formatstyle+9 | 81/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/backend/backend/copilot/graphiti/AGENTS.md · 186k | AGENTS.md | styleperformance | 66/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/frontend/AGENTS.md · 186k | AGENTS.md | setupbuildtestlint-format+7 | 96/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/CLAUDE.md · 186k | CLAUDE.md | setuptestlint-formatstyle+7 | 89/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/direct_benchmark/CLAUDE.md · 186k | CLAUDE.md | setuptestlint-formatarch+4 | 78/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/forge/CLAUDE.md · 186k | CLAUDE.md | teststylearchtypes+3 | 73/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/original_autogpt/CLAUDE.md · 186k | CLAUDE.md | testarchuiperformance+2 | 90/100 | 3 days ago | |
| Significant-Gravitas/AutoGPT.claude/skills/vercel-react-best-practices/AGENTS.md · 186k | AGENTS.md | buildlint-formatstyledependencies+4 | 61/100 | 3 days ago |
Diff against autogpt_platform/frontend/src/tests/AGENTS.md Diff against .github/copilot-instructions.md Diff against AGENTS.md Diff against autogpt_platform/backend/AGENTS.md Diff against autogpt_platform/backend/backend/copilot/graphiti/AGENTS.md Diff against autogpt_platform/frontend/AGENTS.md Diff against classic/CLAUDE.md Diff against classic/direct_benchmark/CLAUDE.md Diff against classic/forge/CLAUDE.md Diff against classic/original_autogpt/CLAUDE.md Diff against .claude/skills/vercel-react-best-practices/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| vllm-project/vllmAGENTS.md · 88k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
