Back to projects
AI / Multi-agent

AI Software Architect

Multi-agent platform designed to turn a product idea into structured engineering deliverables.

  • TypeScript
  • Next.js 16
  • Trigger.dev
  • Vercel AI SDK
  • Prisma
  • PostgreSQL
  • Liveblocks
  • React Flow
  • Gemini
  • DeepSeek
  • Vitest

Problem

Turning a plain-language product idea into requirements, architecture and a backlog is slow and inconsistent, and it is hard to trace a user story to the component that implements it.

Solution

A Coordinator is designed to route work across four specialized agent teams — Business, Architecture, Engineering and Documentation — that exchange only schema-validated JSON through a shared memory, so every artifact stays traceable to its source requirement. The orchestration runtime and the first team (Business, including a human clarification step) are implemented; the other three teams are specified but not built yet.

My contribution

Personal project. The work covers the agent-system specification (coordinator workflow, 18 agent contracts, JSON schemas), the shared-memory runtime, the orchestration engine and the Business Team pipeline with its interface. The collaborative canvas, authentication and project management come from an existing foundation the platform is built on.

Key features

  • Shared memory validated with JSON Schema (Ajv): updates are checked on a draft copy and committed atomically
  • Orchestration engine behind AgentInvoker and RunRecorder ports; the Trigger.dev tasks are thin wrappers around it
  • Business Team pipeline with a human clarification step: the run suspends on a Trigger.dev waitpoint, resumes when the user answers, and unanswered questions become recorded assumptions
  • Consistency checks between generated artifacts; a failed LLM call blocks its own section instead of aborting the whole run
  • Pipeline and Memory viewer tabs that update live through Liveblocks events
  • Selectable LLM provider (Gemini by default, DeepSeek) with per-model capability flags

Architecture

Run API (POST /api/ai/run)
Orchestration engine and planner
Business Team agents (Trigger.dev)
Schema-validated shared memory
Consistency checks
Realtime events to Pipeline and Memory tabs

Engineering decisions

  • Agent definition files are the source of truth for runtime prompts, so design documents and runtime behaviour cannot drift apart.
  • Agents exchange schema-validated JSON only, never free-form chat.
  • Engine logic lives in plain TypeScript modules behind ports, so it can be unit-tested without the task runner.

Validation and tests

  • Vitest unit tests for the memory layer, orchestrator engine, planner, consistency rules, API routes and realtime broadcasting.
  • A real suspend, answer and resume cycle was exercised against Trigger.dev cloud.

Limitations

  • Only the Business Team is implemented; the Architecture, Engineering and Documentation teams are specified but not built.
  • No public demo: the hosted deployment needs its external services (authentication, canvas, task runner, storage, LLM) configured.
  • The diagram-generating design agent produces nodes but no edges yet (documented known issue).

More projects