Preskoči na vsebino

Factory Model

How Colibri maps to the architecture described in Kaggle’s “New SDLC with Vibe Coding” whitepaper (May 2026, Addy Osmani et al.). The paper’s central thesis: generation is solved — verification, judgment, and direction are the new craft.

The developer’s primary output is not code — it’s the system that produces code. A factory manager designs the assembly line and ensures quality control. The modern developer designs the development system and ensures its output meets the required standard.

Colibri is that factory:

Factory roleColibri component
Factory managercolibri-daemon — spawns agents, enforces cost limits, runs scheduler
Assembly linezot agents — subprocesses that receive tasks via RPC stdin
Raw materialsMCP tools — colibri-mcp bridge + external stdio servers (see below)
Quality controltask_evals — self-report (Phase 1) + local LLM (Phase 2)
Cost accountingtask_costs — per-task token/cost capture, mother dashboard
Shift supervisorcolibri doctor — self-diagnosis, checks battery, suggests fixes

A raw model is not an agent. It becomes one once a harness gives it state, tool execution, feedback loops, and enforceable constraints.

Colibri is the harness. What the whitepaper calls “harness engineering” is what the daemon does every tick:

Harness componentColibri
InstructionsProject rule files, skill files, system prompts
ToolsMCP servers (see external-mcp)
Orchestrationscheduler.rs — autospawn, heartbeat, task dispatch
Guardrailscost_mode enforcement, model selection constraints
Observabilitytask_costs, PostgreSQL dashboard, screenshot capture
MemorySQLite coordination store, session JSONL

See agent-harness for the zot/Colibri split, doctor for the self-diagnosis battery, and task-dispatch-flow for the end-to-end task path.

The whitepaper describes a spectrum, not a binary. Colibri lands firmly on the agentic engineering side:

DimensionVibe codingAgentic engineeringColibri today
Intent specificationCasual promptsFormal specs, docsTask title + description
Verification”Seems to work?”Test suites + evalsEvals (Phase 1+2), no CI gating
Codebase understandingMinimalComprehensive reviewAgent harness + skills
Error handlingCopy-paste errors to AIAgent self-diagnosesEval fallback chain
ScopePrototypesProduction systemsBoth (ISO dev + bare-metal)

The single biggest differentiator is verification. Colibri has evals but they run after task completion — they observe quality, they don’t gate it. Closing that gap (eval suites as CI precondition) is the most impactful step toward the disciplined end of the spectrum.

Two modes of working with AI agents, from the whitepaper:

ModeHow Colibri does it
Conductorzot rpc — one agent, stdin dispatch, real-time glasspane watch
OrchestratorKanban board — multi-agent queue, capability-matched dispatch

Conductor mode is solid: one zot agent per daemon, RPC dispatch, glasspane observation of every turn. Orchestrator mode — where the developer defines goals, assigns to multiple agents, and reviews results — is nascent. The Kanban system exists but isn’t deeply integrated with the scheduler. Multi-agent task decomposition and parallel dispatch are planned.

The daemon now self-maintains via colibri doctor --fix: stale agents are auto-pruned on every --fix run, and colibri upgrade rebuilds + restarts the daemon from source when the binary is stale. See doctor.

The quality of AI-generated code depends less on clever prompts and more on the quality of the context provided.

The whitepaper identifies six context types. Colibri covers all six:

TypeColibri
InstructionsAGENTS.md, system prompts in spawner config
KnowledgeWiki + guide docs, architecture diagrams
MemorySQLite store, session JSONL, persistent memory
Examples.agent/skills/ — SKILL.md patterns, code examples
ToolsMCP servers, colibri-mcp tool catalog
Guardrailscost_mode, model selection, COLIBRI_AUTOSPAWN

Colibri’s skill system implements the whitepaper’s “Agent Skills” pattern exactly — lightweight metadata at startup, full instructions loaded on task match, deep references pulled only when needed. The colibri-skills crate with FTS5 search is the catalog. See skills-catalog.

The whitepaper distinguishes two cost profiles:

  • Vibe coding: low CapEx (no upfront investment), high OpEx (token burn loops, maintenance tax, security remediation)
  • Agentic engineering: high CapEx (harness design, eval suites, guardrails), low OpEx (pre-tested output, structural consistency, automated verification)

Colibri is firmly on the agentic engineering side. The upfront investment lives in the daemon, spawner, scheduler, eval harness, and MCP servers. The OpEx savings come from cost capture, model selection, context efficiency via skills, and the eval pipeline.

The whitepaper’s key OpEx metric — first-pass success rate — is not yet tracked in Colibri. See model-selection-and-eval for the eval harness that will support it.

Per-task costs now carry a prompt_hash (#308) — enabling prompt→cost correlation across tasks. This is the measurement layer the prefix-caching spec (#297) needs to determine whether spawn-time context is byte-stable enough for cache hits on the agent path.

The same vibe coding workflow that produces a script today produces a production agent tomorrow.

Colibri’s Clawdie-ISO path embodies this. The operator USB is both a development surface and an installer — the same binary (colibri-daemon) serves both roles. The path from prototype to production is: build → ISO → flash → bare-metal → production, without a rewrite or a separate deployment pipeline.