agentleFS
vstorm-covstorm-co/full-stack-ai-agent-template/AGENTS.md

full-stack-ai-agent-template

AGENTS.md1.9k starsChanged 8 months agoMITView on GitHub

Guidance for AI coding agents (Codex, Copilot, Cursor, Zed, OpenCode) working with this repository. Full-Stack AI Agent Template — CLI tool that generates production-ready FastAPI + Next.js projects with AI agents (5 frameworks), RAG (4 vector stores), and 20+ enterprise integrations. Generated project CLI includes sync source commands: Jinja2 conditionals: {%- if cookiecutter.enable_rag %}...{%- endif %} Adding a new CLI option: 1. Add to config.py (enum/field on ProjectConfig or sub-model) 2. Add prompt to prompts.py 3. Add to cookiecutter.json 4.…

Trending

Quiet since May.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the vstorm-co/full-stack-ai-agent-template repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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

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

11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Add to config.py (enum/field on ProjectConfig or sub-model)

    line 70
  2. Very specific:

    Add prompt to prompts.py

    line 71
  3. Distinctive:

    Add conditionals to template files

    line 73
  4. Very specific:

    Update hooks/post_gen_project.py for cleanup

    line 74
  5. Very specific:

    Add to VectorStoreType enum in config.py

    line 78
  6. Very specific:

    Add use_<name> to to_cookiecutter_context()

    line 79
  7. Very specific:

    Add conditional in api/deps.py, commands/rag.py, agents/tools/rag_tool.py

    line 81
  8. Distinctive:

    Add Docker service (if needed) and dependencies

    line 82
  9. Very specific:

    Create connector class in rag/connectors/ following the BaseConnector pattern

    line 85
  10. Very specific:

    Add CLI command in commands/rag.py (e.g.

    line 87
  11. Very specific:

    Add sync source schema in schemas/sync_source.py

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

AGENTS.md

Guidance for AI coding agents (Codex, Copilot, Cursor, Zed, OpenCode) working with this repository.

Project Overview

Full-Stack AI Agent Template — CLI tool that generates production-ready FastAPI + Next.js projects with AI agents (5 frameworks), RAG (4 vector stores), and 20+ enterprise integrations.

Commands

uv sync                    # Install dependencies
uv run pytest              # Run tests
uv run ruff check . --fix  # Lint
uv run ruff format .       # Format
uv run ty check            # Type check

CLI

fastapi-fullstack                                  # Interactive wizard (default)
fastapi-fullstack create my_app --database postgresql
fastapi-fullstack create my_app --rag --task-queue celery
fastapi-fullstack templates                        # List all options

Generated project CLI includes sync source commands:

uv run <project_slug> cmd rag-sources              # List configured sources
uv run <project_slug> cmd rag-source-add           # Add a new source
uv run <project_slug> cmd rag-source-sync          # Trigger sync for a source

Architecture

ModulePurpose
fastapi_gen/cli.pyClick CLI: new, create, templates
fastapi_gen/config.pyPydantic models, enums, validation, cookiecutter context
fastapi_gen/prompts.pyInteractive prompts (Questionary)
fastapi_gen/generator.pyCookiecutter invocation

Template (template/)

template/
├── cookiecutter.json            # ~120 variables
├── hooks/post_gen_project.py    # Cleanup & formatting
└── {{cookiecutter.project_slug}}/
    ├── backend/app/             # FastAPI (agents, rag, services, repos)
    └── frontend/                # Next.js 15 (optional)

Jinja2 conditionals: {%- if cookiecutter.enable_rag %}...{%- endif %}

Key Features

  • 5 AI Frameworks: PydanticAI, PydanticDeep, LangChain, LangGraph, DeepAgents
  • 4 LLM Providers: OpenAI, Anthropic, Google Gemini, OpenRouter
  • RAG: 4 vector stores (Milvus, Qdrant, ChromaDB, pgvector), 4 embedding providers, reranking, image description
  • Document Sources: Local files (CLI), API upload, Google Drive (service account), S3/MinIO
  • Sync Sources: Configurable connectors (Google Drive, S3) with scheduled sync
  • PDF Parsers: PyMuPDF, LiteParse, LlamaParse (runtime selection via env var)
  • Observability: Logfire (PydanticAI), LangSmith (LangChain/LangGraph/DeepAgents)

Common Tasks

Adding a new CLI option:

  1. Add to config.py (enum/field on ProjectConfig or sub-model)
  2. Add prompt to prompts.py
  3. Add to cookiecutter.json
  4. Add conditionals to template files
  5. Update hooks/post_gen_project.py for cleanup
  6. Document in template/VARIABLES.md

Adding a new vector store:

  1. Add to VectorStoreType enum in config.py
  2. Add use_<name> to to_cookiecutter_context()
  3. Implement <Name>VectorStore(BaseVectorStore) in rag/vectorstore.py
  4. Add conditional in api/deps.py, commands/rag.py, agents/tools/rag_tool.py
  5. Add Docker service (if needed) and dependencies

Adding a new sync connector:

  1. Create connector class in rag/connectors/ following the BaseConnector pattern
  2. Register connector type in rag/connectors/__init__.py
  3. Add CLI command in commands/rag.py (e.g. rag-source-add, rag-source-sync)
  4. Add sync source schema in schemas/sync_source.py
  5. Wire up background task in worker/tasks/rag_tasks.py

Reference

ResourceLocation
Template variablestemplate/cookiecutter.json
Variable docstemplate/VARIABLES.md
Post-gen hookstemplate/hooks/post_gen_project.py
CLI helpfastapi-fullstack templates

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.