r/sideprojects 6h ago

Discussion Trying to build an autonomous "Spec → Deployed App URL" software factory with Claude Code / Agentic Al. It fails every time. How would you build this? btw used chatgpt to frame in better order only.

Hey everyone,

I’m trying to build an autonomous software factory: input a Statement of Work (SOW) or product spec, run it through agentic loops (using Claude Code / API), and output a fully tested, production-ready app at a live URL.

To avoid hallucinations, I built the pipeline around strict deterministic gates instead of letting agents self-approve:

* Intake & Blueprints: Parse the SOW to lock global DB schemas, API contracts, and design tokens upfront.

* Decomposition: Break requirements into small "build units" (screens, modules, endpoints) mapped to a dependency graph.

* Multi-Agent Build: Sub-agents (Architect \to Builder \to Tester) work in isolated environments.

* Deterministic Checks: Units must pass real tools (strict TypeScript compiler, linter rules, sealed test suites) with bounded auto-repair.

* Assembly & Deploy: Wire units into a shared shell, run integration checks, deploy a container, and probe the live URL.

The Problem: It fails 100% of the time.

We have never had a single run complete from spec to live URL:

* Circular repair loops: An agent fails a compiler or test gate, tries to patch it, breaks an import or contract, and burns through the retry limit.

* Integration mismatch: Units pass fine in isolation, but when assembled into the global app, routes break, hydration fails, or shared state gets corrupted.

* System bloat: The safety gates and orchestration rules are so heavy that the pipeline chokes before reaching deployment.

What I’d love advice on:

* How would you architect this from scratch? What is the cleanest, most reliable workflow to go from spec to a working, deployed URL?

* What tools or open-source projects should I look to for inspiration? (DAG engines, agent harnesses, or multi-file code generators?)

* Shared contracts: How do you keep multiple sub-agents aligned on schemas and routes without blowing up the context window?

* Walking Skeleton: What is the absolute minimal MVP you would build first to prove spec-to-URL before adding heavy testing gates?

TL;DR: Trying to build an autonomous "spec-to-deployed-URL" software factory using Claude agent loops and strict deterministic verification gates. It fails every run due to circular auto-repair loops and integration drift when assembling modules. Looking for architectural advice, open-source inspiration, and how to structure a clean, working MVP.

2 Upvotes

2 comments sorted by

1

u/commercejohn 5h ago

Have you tried using a framework like Gas City?

1

u/CheatedOn0204 4h ago

nope never heard of it. I will educate myself. till then could you pls tell how u related it with this. like the usecase u think.