Proposal · Python on LangGraph

An idea goes in. A tested, dockerized app comes out.

Crews of agents do the work a product team does. Each crew is a LangGraph subgraph. Crews never pass chat to each other, only approved files. You sign off at three points, and every correction you make can become a better skill for the next project.

Agent work (LLM) Plain code, no LLM Artifact handed over You decide

The factory floor

Crews in the same stage run at the same time. A stage starts when the artifacts it needs are approved. Select a crew to see who is in it and what it hands over.

Your ideaA sentence, a brief, or existing documents
planner picks the crews this project needs
Understand2 crews in parallel
requirements · market-report · risk-register · reuse-report
Define1 crew
prd · user-stories · acceptance-criteria
Gate 1You approve the MVP scope.
Specify3 crews in parallel
screens · design-tokens · api-contract · data-model · test-plan
Gate 2You approve the screens and the contracts.
Buildparallel, one git worktree per task
branches · e2e-suite
Provemostly plain code
test-evidence · security-report · docker-image
Gate 3You approve the release.
Shippable productSource, tests, image, compose file, run and rollback notes

Inside one crew

Every crew has the same shape, so adding a crew means registering agents, skills and an output contract. The engine does not change.

LeadReads the input artifacts and splits the work.
Specialist
Specialist
Specialist
SynthesizerMerges the parts into one draft artifact.
Contract checkSchema, required fields, links to sources.
AuditorA different agent. Read-only. Approves or rejects with reasons.
Artifact v1Approved and frozen.

A rejection goes back to the specialist who owns the failing part, not to the whole crew. After a set number of rounds the crew stops and asks you.

In the factoryIn LangGraph
CrewA compiled subgraph with its own private state
Specialists in parallelSend fan-out, reducers merge the results
Planner choosing crewsA conditional edge that emits one Send per chosen crew
Your gatesinterrupt(), resumed with your decision
Resume after a crashPostgres checkpointer, one thread per project run
Long-term memory and skillsStore, namespaced by organisation, project and skill

How a handover works

The next crew receives a reference to a file, not a conversation. This keeps prompts small and makes every decision traceable.

api-contractv2 · approved
made byArchitecture crew, API designer
built fromprd v3, data-model v1
checked bycontract check passed, auditor approved
approved byyou, at Gate 2
used byDevelopment, QA
contentopenapi.yaml in the artifact store
  • Approved means frozen. A change creates v3. Nothing is overwritten.
  • Each crew records which version it used. When the PRD changes, the engine knows that the API contract, two tests and one backend task are stale, and reruns only those.
  • Parallel work is safe because of contracts. Frontend builds against the approved API contract while backend implements it.
  • Private reasoning stays private. The design crew sees the approved PRD, not the market researcher's notes.

Memory in four layers

An agent gets a small package assembled for its task. It never gets the whole project history.

LayerHoldsLives forStored in
WorkingThe current task, tool results, draftsOne crew runSubgraph state and checkpointer
ProjectApproved artifacts, decisions, your preferences for this productThe projectPostgres and artifact store
OrganisationYour boilerplate conventions, lessons that held across projectsUntil replacedStore with pgvector search
SkillsHow to do a job: instructions, checklist, good examples, mistakes to avoidVersionedFiles in git

How a skill gets better

Example: you reject a pull request because the database migration has no rollback.

  1. You give feedbackRecorded with the artifact, the agent and the skill version that produced it.backend-engineering v1.4
  2. The system sorts itA one-off slip, a rule for this project, or a rule for all projects.
  3. It drafts a changeOne new checklist line and one mistake-to-avoid entry, shown to you as a diff.
  4. It replays past tasksOld skill against new skill on work that was already judged. No regression allowed.
  5. You approve the diffOr reject it. The old version stays in use until you decide.
  6. It promotes in two stepsThis project first. Organisation-wide after it holds up on other projects.backend-engineering v1.5

A running project keeps the skill versions it started with. Agents propose changes to skills. They never edit their own runtime, permissions or gates.

Who decides what

This split is what keeps cost and memory low. An LLM call is the most expensive thing in the system.

Agents propose

  • Which crews a project needs
  • Requirements, designs, architecture, code
  • Whether a draft is good, as an auditor
  • Changes to skills

Code decides

  • Whether a plan is allowed: dependencies, budget, permissions
  • What runs next and how many at once
  • Whether an artifact matches its contract
  • Whether tests, lint, types and scans pass
  • What became stale after a change

What I would build first

A thin line through the whole factory before any crew gets wide. One real app shipped end to end teaches more than a complete Discovery crew with nothing after it.

  1. The spine. Parent graph, artifact store with versions, Postgres checkpointer, one gate. No crews yet.
  2. One agent per crew. Intake, product spec, developer on your boilerplate, E2E test writer, Docker build. Ship one small app.
  3. Auditors and contract checks. Add the independent reviewer to each crew and measure how often it catches something real.
  4. Parallel work. Worktrees, the merge step, and backend and frontend against one contract.
  5. The skill loop. Feedback capture, replay, approval. It needs the judged runs from steps 2 to 4 to replay against.
  6. Wider crews. Market survey, risk, design system, security. Each one is a registration, not an engine change.

Four things only you can decide

  • Your boilerplate. One main foundation or several? Which stack? The Foundation scout and Development crew are shaped by this.
  • What "actual design" means. I would have the Design crew produce coded screens and design tokens, because the frontend agent can use them directly. Figma files are a different, harder integration.
  • How often you want to be asked. Three gates as drawn, a review at every handover, or only on exceptions.
  • Where it runs. One server with Docker Compose is enough to start and keeps memory predictable.