In our previous post, Introducing SuperQode Factory Early Preview, we outlined the architecture for an open-source, local-first software factory built directly into SuperQode. That initial release established the core delivery contract: a versioned seven-layer factory.yaml specification (Factories-as-code, Data and context, Compute, Inference, Improvement, Orchestration, and Access) with governance enforced across every layer.
Under that model, every change follows a deterministic and auditable execution lifecycle. Teams commit their factory definition alongside application code, queue pinned trials as durable WorkOrders, execute stages in isolated Git worktrees while hidden acceptance evaluators remain masked inside an OS sandbox, verify the exact candidate through SuperGauge (SHIP, HOLD, or REJECT), authorize working-tree delivery with a cryptographic human signature, and run guarded optimization against held-out trial suites.
Early adoption across real codebases surfaced a clear operational bottleneck: while a version-controlled factory.yaml provides the right long-term foundation, authoring the initial specification, configuring stack-specific regression commands, and attaching verification skills from a blank file requires unnecessary manual setup. In SuperQode 2.33.0 and SuperQode for macOS 0.5.0, we address this directly by introducing On-Demand Software Factories powered by Recursive Language Models (RLM), alongside conditional specification gating, deterministic five-dimension merge risk, built-in verification skills with visual proof, and structured onboarding.
Watch the demo
Build on demand
Teams should not have to hand-author boilerplate YAML before running their first governed trial. In Factory Studio under Build -> Describe (and via sq factory describe --rlm in the CLI or :factory describe --rlm in the TUI), developers can now trigger Build On-Demand Software Factory against any repository.
Rather than assembling an unstructured prompt from arbitrary source files, SuperQode delegates repository inspection to its Recursive Language Model (RLM) context engine:
- Lazy, read-only context mounting: The repository is exposed as an external
RLMContextdata handle inside SuperQode's bundled sandboxed Monty REPL. Corpus size and file layout are inspected lazily from metadata before reading content, while environment secrets (.env, private keys), lockfiles, and protected.superqode/evaluators remain strictly excluded. - Automated stack, verification, and risk profiling: The inspection routine reads repository manifests and CI definitions (
pyproject.toml,package.json,Package.swift,Cargo.toml,go.mod, and GitHub Actions workflows) to extract real regression commands, infer the target application surface (Web, macOS, or CLI), and identify sensitive paths such as authentication, database migrations, or deployment pipelines. - Host-bounded recursive sub-queries: When a model is configured and permitted by route policy, SuperQode executes up to two bounded recursive sub-queries (
architecture-and-stagesandverification-and-risk) to refine stage instructions, acceptance requirements, and repository-specific verification gotchas, recording complete token and file provenance. When no model is connected, local RLM inspection still produces a validated repository-native proposal in milliseconds. - Strict Factories-as-Code compliance: Nothing executes invisibly in memory and existing
release_authoritysigning policies are preserved verbatim. Factory Studio presents an inspection receipt detailing scanned manifests, selected stages and agent roles, regression checks, and interactive checkboxes for recommended skills. Applying the proposal opens the validatedfactory.yamldirectly in the editable Definition view for human review and Git commit.
# Inspect a repository read-only and compile a tailored FactorySpec draft
sq factory describe --rlm
# Refine with a connected model using host-bounded recursive sub-queries
sq factory describe --rlm "Require specification review for auth and schema changes" --model ollama/qwen3-coderTriage, spec, and build
Directing every incoming work item straight to an implementation agent works for well-scoped defects, but underspecified feature requests require architectural alignment before code is written. SuperQode now includes a conditional Triage, spec and build starter blueprint that places human review at two deliberate control points:
- Triage: Evaluates the incoming goal against the repository and emits a typed contract (
complexity,needs-spec,rationale). - Conditional Spec Gate (Human Gate 1): When
needs-specevaluates totrue, execution routes to aspecstage that produces clarifying questions, expected behavior, and a verification plan, pausing for human sign-off prior to implementation. - Fast path for well-scoped fixes: When
needs-specevaluates tofalse, the pipeline bypassesspecautomatically and proceeds directly to isolated implementation in a Git worktree. - Final Verification Gate (Human Gate 2): Every trial pauses at
verifywith regression results, protected acceptance probe evidence, diffs, and risk summaries prior to release authorization.
Within Factory Studio's Workflow view, conditional when predicates now render in plain English so branching behavior is transparent to every reviewer.
Risk, skills, and proof
Automated test pass rates confirm functional execution, but engineering teams also need structured risk signals to prioritize code review depth. We integrated three complementary evidence capabilities into Factory Studio and trial inspection:
- Deterministic Five-Dimension Merge Risk: Embedded inside the SuperGauge verdict card, every candidate is evaluated deterministically across Alignment, Impact, Verification, Rollback cost (reversible two-way changes versus one-way schema or API migrations), and Error detection. The assessment surfaces an advisory
Low,Medium, orHighrisk badge alongside concrete review gaps, without ever overriding SuperGauge's deterministicSHIP / HOLD / REJECTverdict. - Built-in Factory skills: Versioned Markdown skills can be scaffolded into
skills/and bound to harnesses in one action.merge-riskdirects implementation stages to address risk gaps before handoff, whileui-verificationprovides Web (Playwright), macOS App, and CLI presets with a structured## Gotchassection that accumulates repository-specific verification knowledge over time. - Visual Proof gallery and PR handoff: Screenshots and recordings captured under
.superqode/factory-proof/are validated and displayed inside Trial Changes & Checks with full-size inspection, Finder reveal, and one-click Markdown export combining the SuperGauge verdict, five-dimension Merge Risk table, and Visual Proof summary.
Tour and next steps
To lower the learning curve without altering the core Factory Studio workspace, we added two progressive guidance surfaces:
- Standalone Interactive Software Factory Tour: Available directly from the Welcome screen and the Factory Studio header (Tour). Five interactive slides demonstrate factory anatomy, live conditional Triage routing (Ambiguous feature versus Clear bug), reusable skills, SuperGauge with Merge Risk and Visual Proof, and guarded optimization loops, with keyboard navigation and an Auto-play mode requiring no API key or open project.
- Collapsible Next-Step Progress Strip: Tracks five evidence-backed workspace milestones (
Pick workflow -> Check & save -> First trial -> Checks & gates -> Measure & improve), pairing each completed state with a single next action, one-click Use current model binding, and clickable starter goal templates.
What's next
On-Demand Software Factories establish the first half of combining Recursive Language Models with governed software engineering: treating a repository as inspectable data to compile a validated, Git-owned factory.yaml.
Our next architectural milestone extends this foundation to On-Demand Recursive Software Factories (spawn_factory). Under that model, a committed parent factory.yaml governs a root RLM foreman capable of dynamically spawning isolated, SuperGauge-verified child sub-factories for multi-service and monorepo changes, bounded by monotonic depth and budget attenuation, an explicit human decomposition gate prior to fan-out, immutable run-level spec snapshots, and optional promotion of reusable sub-factories back into permanent repository code.
Get started
Install or upgrade SuperQode to 2.33.0:
uv tool upgrade superqode
# or install fresh
curl -fsSL https://superqode.dev/install.sh | shDownload SuperQode 0.5.0 for macOS, launch the Software Factory tour from the Welcome screen, or open any repository and select Build On-Demand Software Factory inside Factory Studio. For a hands-on walkthrough, explore the updated sample project in examples/factory/demo, revisit SuperQode Factory Early Preview, or review the Software Factory documentation.

