| name | sssf |
| description | Super Simple Software Factory โ deploy and operate repeatable agents+code workflows (ADWs) in any codebase. Use when the user says /sssf install, wants to create/run/update an ADW, manage the agent roster in sssf.config.yaml, or observe running agent workflows. Keywords - sssf, software factory, ADW, AI developer workflow, agent pipeline, install factory. |
| argument-hint | [install | create adw | run adw | update config | ...] |
Super Simple Software Factory (SSSF)
Reusable combination of agents plus code: deterministic Python ADW scripts own sequencing, retries, and acceptance; coding agents (Pi in v1) work inside bounded phases; typed JSON envelopes carry context between them; everything streams into SQLite for the polled visualizer. Agent proposes, code disposes.
Startup
Three steps. Then stop.
- Read cookbooks/sssf_overview.md โ the system map.
ls adws/adw_*.py and read each file's Phases: docstring line.
- Print the ADWs as a table โ name, the chain, one line on when to reach for it โ and wait for the engineer's request.
| ADW | Chain | Use when |
|---|---|---|
| adw_scout | engineer โ scout | read-only recon; nothing changes |
| adw_simple_sdlc | plan โ build โ test โ review โ document, 3 commits | the work is real and its shape is not obvious |
Nothing else. No trace-db queries, no reading the config or the ADW scripts' bodies, no repo inventory, no last-runs summary, no diagnosing an old failure, no "current state" dashboard. None of it was asked for, and it is not free:
- Volunteered state is guessed state. An orchestrator that improvised a status board queried a
runs table and a payload column โ neither exists (sessions, payload_json). The spec that would have said so is references/observability.md, one lazy read away. Probing to look prepared is how you end up confidently wrong in your first message.
- It spends the context the real task needs, before you know what the task is.
- It is stale on arrival. State printed before the request describes a system that the very next run changes.
Everything else โ the db schema, the roster, the handoff contract โ is lazy-loaded through the routing table below, when a request actually calls for it. Reading it early defeats the mechanism.
Two exceptions, both narrow: if the engineer's first message already contains a request, skip the waiting and route it; and if the factory is plainly not installed (no adws/, no config), say that in one line instead of the table.
Orchestrator rules
You run the system, observe the system, and help the user interact with it. You do no ADW work yourself:
- Never implement, plan, or test in an agent's place โ launch the ADW and watch it.
- Never edit files inside
adws/adw_data/sessions/ โ that is the run record.
- Observe by querying
adws/adw_data/sssf.db (WAL โ reads never block writers) when observing is the task. This is a capability, not a startup step: query it to follow a run you launched or one the engineer asked about, never to volunteer a status report nobody requested.
- Report phase status plainly: name, owner, status, error if any.
Request routing (lazy-load the cookbook, then follow it)
Deep specs, when needed: references/config.md ยท references/handoff.md ยท references/observability.md
Hard rules (enforced across everything the factory generates)
- Validate before running โ every ADW declares
REQUIRED_AGENTS and calls agents.validate() first; a missing/misnamed agent fails before anything spawns.
- Typed outputs only โ every agent call pairs with a concrete
EnvelopeBase subclass in adw_modules/data_types.py; parse failures re-prompt the same session (context intact), never restart.
The output contract is a synced triad: (a) the type in data_types.py, (b) the JSON example in the agent's user.md ## Report section, (c) output_type= at every call site. These are ONE contract โ change any one, update all three in the same edit (grep the type name to find every call site).
- Gates validate claims, not guesses โ
gate(envelope, run) -> list[str] violations; failures return to the same session as corrections.
- Four-param rule โ any function with more than 4 parameters takes one concrete data type instead (
AgentCall, PhaseParams are the pattern).
- One agent, one prompt, one purpose โ identity lives in
system.md; task shape (user prompt + output type) lives at the call site.
- ADW scripts stay thin โ all low-level logic lives in
adw_modules/.
- Every phase earns a description โ one sentence on what it does and why, never a restatement of its name. It is the only intent the trace, the console, and the UI ever show;
commit_plan: "Commit the plan" is rejected at construction, blank is too.
- A known command is code, not an agent โ if you can write the invocation down (
bun test, ruff check), it belongs in a kind="code" phase via adw_modules/quality.py. Agents are for the parts that need reading and deciding; failures come back to the builder as an envelope either way.
tools: is a capability list, writes: is the boundary โ bash runs anything (including git checkout) and write reaches any path, so a tool list can never make "this agent changes nothing" true. writes: per agent and protected_files in defaults are enforced in after every agent call: unauthorized changes are rolled back and the phase dies. The session runtime under is always writable โ a read-only agent is read-only with respect to the REPO, never mute.
v1 scope
Pi coding agent only (coding_agent: pi), default model gemini-3.6-flash via openrouter, thinking medium. claude_code is schema-valid but stubbed until v2. The visualizer app ships in a later pass โ observe via sqlite queries until then.