IWTBI turns a public GitHub repository into an actionable build brief for coding agents and developers. Paste a repo URL, run the analysis pipeline, and get a structured document you can use to rebuild, extend, or review the project.
The application ships as a small monorepo:
frontend/: Astro static site served by nginxbackend/: FastAPI API, analysis orchestration, caching, and email fanoutbackend/postgres/: canonical SQL schema for saved analyses and notificationsops/: deployment examples
- Measures a repository before analysis to decide whether it fits the safe context budget.
- Runs a multi-agent backend pipeline over the cloned repository.
- Supports private server-managed AI profiles for controlled internal analyses.
- Streams progress to the browser through Server-Sent Events (SSE).
- Saves completed analyses to internal PostgreSQL and exposes them in a public library.
- Optionally emails users when an analysis finishes.
flowchart LR
A["User submits GitHub URL"] --> B["POST /api/preflight"]
B --> C["GET /api/ticket"]
C --> D["POST /api/analyze"]
D --> E["Clone repository"]
E --> F["Read and prioritize files"]
F --> G["7 specialists in batches of up to 3"]
G --> H["Hamilton integration and validation"]
H --> I["Persist in PostgreSQL"]
H --> J["Stream completion to browser"]
I --> K["Library page"]
I --> L["Optional email notification"]
flowchart TB
Browser["Astro frontend"] -->|HTTP + SSE| API["FastAPI backend"]
API -->|clone| GitHub["Public GitHub repos"]
API -->|cache + library| Postgres["PostgreSQL"]
API -->|email| Resend["Resend"]
API -->|LLM calls| Provider["Your OpenAI-compatible API or a built-in provider profile"]
- Grace Hopper: stack, versions, dependencies and build commands.
- Alan Kay: architecture, modules, exact paths and relationships.
- Barbara Liskov: data models, schemas, migrations and persistence.
- Roy Fielding: APIs, authentication, events and data contracts.
- Hedy Lamarr: screens, components, states and responsive behavior.
- Donald Knuth: business rules, algorithms and edge cases.
- Lynn Conway: environments, containers, CI/CD and deployment.
- Margaret Hamilton: cross-cutting build order, global acceptance criteria, evidence and unresolved questions. Specialist sections remain intact.
The seven specialists run as independent LLM calls in batches of at most three. Hamilton runs after them as a separate integration call.
.
|- backend/
| |- app/
| |- tests/
| `- postgres/
|- frontend/
| |- src/
| `- public/
|- docs/
|- ops/
`- docker-compose.yml
-
Create a private
.envwith fresh local secrets:./scripts/init-self-host.sh
-
Add your own AI endpoint, model and API key to
.env. The defaultopenai_compatibleprofile works with OpenAI-compatible services. NaN, z.ai and Ollama Cloud profiles are also available.Administrators can define private profiles in
LLM_PROFILES_JSONfor the protected internal route. They are not shown in the public frontend. -
Start the stack:
docker compose up --build
-
Open:
- frontend: http://localhost:3410
- backend health: http://localhost:8410/health
-
PostgreSQL starts empty and applies the schema automatically. Initialize it manually only when running without Docker Compose:
psql "$DATABASE_URL" -f backend/postgres/schema.sqlThe default Docker Compose stack starts PostgreSQL and applies this schema automatically on first boot.
