|
| 1 | +# AI Agent Builder |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +A single-user, production-focused system for turning rough product ideas |
| 12 | +(pitch decks, docs, spreadsheets, notes) into a complete, implementation-ready |
| 13 | +spec set: market research, competitive analysis, differentiation, PRD, ADRs, |
| 14 | +architecture, and Codex-ready implementation prompts. |
| 15 | + |
| 16 | +## What it does |
| 17 | + |
| 18 | +- Ingests source material: PDFs, slides, docs, markdown, spreadsheets. |
| 19 | +- Runs deep research and validation: |
| 20 | + - competitors, positioning, pricing signals, go-to-market constraints |
| 21 | + - feature gaps, differentiation opportunities, risk analysis |
| 22 | +- Produces formal, versioned outputs: |
| 23 | + - PRD, architecture, ADRs, roadmap, build plan |
| 24 | + - Codex prompts structured for end-to-end production implementation |
| 25 | +- Keeps an iterative project workspace so you can upload more material and |
| 26 | + re-run or refine outputs over time. |
| 27 | + |
| 28 | +## High-level architecture |
| 29 | + |
| 30 | +```mermaid |
| 31 | +flowchart LR |
| 32 | + A[Uploads / Notes] --> B[Ingestion + Index] |
| 33 | + B --> C[Research Agents] |
| 34 | + C --> D[Gap + Differentiation] |
| 35 | + D --> E[PRD + ADR + Architecture] |
| 36 | + E --> F[Codex Implementation Prompts] |
| 37 | + F --> G[Export + Versioned Artifacts] |
| 38 | +``` |
| 39 | + |
| 40 | +## Tech stack |
| 41 | + |
| 42 | +- Runtime + tooling: Bun |
| 43 | +- Web: Next.js 16 (App Router), React 19 |
| 44 | +- Styling/UI: TailwindCSS v4, shadcn/ui, Lucide |
| 45 | +- AI: Vercel AI SDK v6 + AI Gateway |
| 46 | +- DB: Neon Postgres + Drizzle ORM |
| 47 | +- Infra helpers: Upstash (Redis, QStash, Vector) |
| 48 | +- Quality: Biome (format/lint) + ESLint (TSDoc/JSDoc enforcement) + Vitest |
| 49 | +- Typing/Schema: Zod v4 |
| 50 | +- Releases: Release Please (semver via Conventional Commits) |
| 51 | + |
| 52 | +## Local development |
| 53 | + |
| 54 | +### Prerequisites |
| 55 | + |
| 56 | +- Bun v1.2+ (uses `bun.lock`) |
| 57 | +- A Neon database URL in `DATABASE_URL` |
| 58 | +- Upstash credentials (Redis/Vector/QStash) |
| 59 | +- Vercel AI Gateway API key (`AI_GATEWAY_API_KEY`) |
| 60 | + |
| 61 | +### Setup |
| 62 | + |
| 63 | +```bash |
| 64 | +cp .env.example .env.local |
| 65 | +bun install |
| 66 | +bun run db:generate |
| 67 | +bun run db:migrate |
| 68 | +bun run dev |
| 69 | +``` |
| 70 | + |
| 71 | +## Fetch AI Gateway model catalog |
| 72 | + |
| 73 | +The AI Gateway exposes an OpenAI-compatible models endpoint: |
| 74 | +`GET https://ai-gateway.vercel.sh/v1/models` |
| 75 | + |
| 76 | +```bash |
| 77 | +AI_GATEWAY_API_KEY=... bun run fetch:models |
| 78 | +``` |
| 79 | + |
| 80 | +## CI and quality gates |
| 81 | + |
| 82 | +Run the same checks as CI: |
| 83 | + |
| 84 | +```bash |
| 85 | +bun run format |
| 86 | +bun run lint |
| 87 | +bun run typecheck |
| 88 | +bun run test |
| 89 | +bun run build |
| 90 | +``` |
| 91 | + |
| 92 | +## Releases and versioning |
| 93 | + |
| 94 | +This repo uses Release Please and Conventional Commits. |
| 95 | + |
| 96 | +While `version < 1.0.0`, breaking changes bump **minor** and features bump |
| 97 | +**patch** (to avoid major releases during active development). |
| 98 | + |
| 99 | +## How to cite |
| 100 | + |
| 101 | +This repo includes a `CITATION.cff`. GitHub will surface a “Cite this repository” |
| 102 | +entry when the file is present. |
| 103 | + |
| 104 | +## Security |
| 105 | + |
| 106 | +- CodeQL and OpenSSF Scorecard run in GitHub Actions. |
| 107 | +- Dependency Review runs on PRs. |
| 108 | +- Dependabot is configured for Bun lockfiles (`bun.lock`). |
0 commit comments