Skip to content

Workstreams and Factory Patterns

The factory pattern is BMO’s practical way to make repeated work less ad hoc without pretending the agent is an autonomous system. It turns the multiplayer engineering workspace into a repeatable operating shape: a workstream names the durable unit of work, recipes or prompts define the reusable process, agents and nanites handle bounded lanes, review and verification record evidence, recovery stays visible, and markers/trail preserve signal-shaped coordination for the next turn.

Factory-shaped workstream cell
Repeatable work becomes a durable workstream with bound process, background lane, and inspectable evidence.

A single chat can solve one task. A serious project usually needs a repeatable loop:

  • preserve the goal and current branch context
  • run the same review or verification pattern more than once
  • attach findings, plans, artifacts, and follow-up work to one durable row
  • let background checks contribute without taking over the foreground session
  • recover after interruption without replaying a whole transcript

The factory pattern gives that loop a stable operating shape.

Think of a factory as a small production cell for agent work:

Factory partBMO surfacePurpose
Work itemWorkstream rowStable identity for an epic, PR, issue, or follow-up package
ProcessRecipe, prompt, or staged workflowRepeatable steps and gates
Side laneNanite or child agentBounded parallel inspection or summarization
Memory of frictionMarkers and trailAdvisory hints about hotspots, failures, or handoffs
EvidenceArtifacts, findings, verification rowsInspectable output and next actions

This makes repeated agent behavior inspectable. The operator can ask “what is this workstream, who owns which lane, what has been tried, what failed, what was reviewed, and what should run next?” without relying on hidden model memory.

  • A task spans more than one session.
  • A review or verification loop should run repeatedly with similar inputs.
  • Multiple agents, nanites, or tools contribute to the same outcome.
  • You want a durable handoff between planning, implementation, review, and verification.
  • You are asking a throwaway question.
  • The work has no follow-up or durable artifact value.
  • A simple one-shot bmo run or interactive chat would be easier to inspect.
Terminal window
bmo workstream create --label "docs/book-visual-coverage"
bmo workstream set-plan <id> --path docs/plans/book-visual-coverage.md --kind custom
bmo workstream verify-run <id> pnpm --dir docs run build
bmo nanite run --session <parent-session-id> "summarize residual docs gaps for this workstream"

That sequence creates durable identity, binds a plan, records a verification result, and lets a bounded background run produce a handoff.

Markers and trail are not the factory. They are the shop-floor signs that help later turns understand where attention should go.

  • Markers are explicit, bounded notes left by tools or operators: “this path is risky,” “this validation failed,” “inspect here before editing.”
  • Trail is aggregate advisory context across sessions: repeated truncation, recurring validation failure, or other scoped signals.
  • Workstreams provide the durable named row that these signals can support.

Use markers for intentional handoffs. Use trail for accumulated environmental hints. Use workstreams when the work itself needs an identity.

A healthy factory-shaped workflow has visible state in more than one surface:

SurfaceSignal
Status/sidebarWorkstream, observer, schedule, and run-state hints
/cartographyHeat, markers, and trail tabs for workspace context
bmo workstream status or /workstream-statusBounded workstream summary: identity, bindings, verify/preflight/nanite posture, and drill-in availability
bmo workstream showRaw durable row fields and attached metadata when you need the underlying record
Agent debuggerParent/child run history and tool events
Artifacts/todosConcrete outputs, not just prose in chat

For a factory-shaped run to stay inspectable after interruption, the operator should be able to review a compact handoff without replaying the whole chat. That handoff usually includes:

  • a workstream id and bound plan or recipe;
  • a declared collaboration boundary, such as parent-only, child agent, nanite, team, mesh/A2A proposal, full-app shared workspace, or minimal MCP;
  • delegated lane results when delegation is used;
  • review findings, verification rows, or equivalent artifacts;
  • a clear status for completed, partial, blocked, superseded, or unavailable outcomes.