Skip to main content

Project Map

This page is the quick index for the whole repository. Use it to find the right starting point before changing code.

Root

PathPurpose
README.mdSetup, API overview, deployment notes, and route reference.
AGENTS.mdRequired coding conventions and definition of done.
docs-site/docs/features.mdCurrent behavior ledger (Features page); update it with feature changes.
docker-compose.ymlLocal PostgreSQL with pgvector.
start.sh / stop.shOne-command local launcher (API + web + docs) and port cleanup.
docs-site/Docusaurus maintainer documentation.
docs/superpowers/Historical specs and implementation plans.
server/FastAPI backend, SQLAlchemy models, migrations, tests, evals.
web/React frontend, Vite config, components, screens, types.
prototype/Original static HTML visual reference only.

Backend

PathPurpose
server/app/main.pyFastAPI app factory, router mounting, middleware, SPA/static serving.
server/app/config.pyEnvironment settings and provider selection.
server/app/models.pySQLAlchemy schema source of truth.
server/app/schemas.pyPydantic request-body validation.
server/app/serializers.pyStable response DTOs.
server/app/routers/HTTP endpoints grouped by domain.
server/app/lib/Business logic, auth helpers, uploads, combat, AI/RAG modules.
server/alembic/Database migrations.
server/tests/Pytest suite.
server/evals/AI evaluation harnesses.

Frontend

PathPurpose
web/src/App.tsxTop-level route tree and auth gates.
web/src/types.tsAPI DTO types.
web/src/lib/api.tsAll API calls and streaming client code.
web/src/lib/auth.tsxCurrent-user state and session handling.
web/src/screens/Route-level screens.
web/src/components/Shared UI and feature widgets.
web/src/styles/tome.cssDesign system and application styling.

Generated or Local-Only Output

PathPurpose
web/dist/Built SPA.
docs-site/build/Built documentation site.
docs-site/.docusaurus/Docusaurus cache.
server/storage/Private core-rule storage.
server/uploads/Public upload storage in local development.
graphify-out/Generated knowledge graph output.

Do not commit generated output unless a specific workflow says otherwise.