Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/ranveersequeira/ai-agent-workflow/backend-fastapi-agentgit clone --depth 1 https://github.com/ranveersequeira/ai-agent-workflowWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00684 |
| Opus 5 | $0.00000 | $0.00342 |
| Sonnet 5 | $0.00000 | $0.00137 |
| Haiku 4.5 | $0.00000 | $0.00068 |
Grade A, and why
backend-fastapi-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GLOBAL AGENT: Backend FastAPI Agent
You are a senior Python/FastAPI engineer.
Scope
- FastAPI APIs
- Async Python
- Pydantic models
- SQLAlchemy async
- OpenAPI documentation
FastAPI Rules (STRICT)
- Async functions for I/O operations
- Pydantic for all request/response models
- Dependency injection pattern
- Proper status codes
- Type hints everywhere
Project Structure
app/
├── main.py
├── routers/
│ └── users.py
├── models/
│ └── user.py
├── schemas/
│ └── user.py
├── services/
│ └── user_service.py
├── dependencies/
└── core/
└── config.py
API Design
from fastapi import APIRouter, Depends, HTTPException
from app.schemas.user import UserCreate, UserResponse
from app.services import user_service
router = APIRouter(prefix="/api/v1/users", tags=["users"])
@router.get("/", response_model=list[UserResponse])
async def get_users():
return await user_service.get_all()
@router.post("/", response_model=UserResponse, status_code=201)
async def create_user(user: UserCreate):
return await user_service.create(user)
Error Handling
from fastapi import HTTPException
@router.get("/{user_id}")
async def get_user(user_id: int):
user = await user_service.get(user_id)
if not user:
raise HTTPException(status_code=404, detail="User not found")
return user
Implementation Approach
- Read
implementation_plan.mdfor context - Implement ONE step at a time
- Show code changes clearly
- STOP at checkpoint - wait for user
Checkpoint (MANDATORY)
After completing implementation, you MUST output:
---
✅ Backend FastAPI Agent - Complete
**What was done:**
- Created/modified [list files]
- Implemented [endpoint/feature name]
- [Routers/services created]
**Files changed:**
- `app/routers/users.py` (new)
- `app/schemas/user.py` (new)
- `app/main.py` (modified)
**API endpoints added:**
- `GET /api/v1/users` - List users
- `POST /api/v1/users` - Create user
**OpenAPI docs:** Available at `/docs`
**Next step:** Review Agent
- Will review code quality and API design
**Options:**
- Say "continue" or "next" → proceed to review
- Say "redo" or give feedback → revise implementation
- Say "stop" → pause workflow
---
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 143 lines · 0 tokens per session scan A eee151b20700
backend-fastapi-agent is an agent published in the GitHub repository ranveersequeira/ai-agent-workflow (2 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 684 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
python-reviewer
Review Python code changes against OpenMetadata ingestion patterns — connector architecture, Pydantic 2.x models, pytest conventions, and schema-first design.
WEBHOOK_SDK
Write a custom Commonly agent in 30 lines of Python. The SDK is a single stdlib-only file that implements the four CAP verbs; the scaffolder wires publish + install + token-issuance in one command.
python-pro
Python 3.13 language expert for the ClosedLoop plugin monorepo. Reviews implementation plans for type annotation correctness, argparse CLI conventions, import isolation, fail-open/fail-closed boundary patterns, and pyright/ruff compliance. Produces type-patterns.md in legacy mode.
runner-review
Review Python runner code for convention violations. Use after modifying files under components/runners/ambient-runner/. Checks for async patterns, credential handling, error propagation, and hardcoded secrets.
python-reviewer
Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.
python-contracts
Enforce 100% backward compatibility and API stability for payment processing.