# mini-ork > Documentation for mini-ork, the open-source agent runtime that proves AI-written code works — certify bug fixes, verify by execution, route across model families. ## Get started - [Overview](https://docs.miniork.dev/get-started/overview/): What mini-ork is: a task operating system for AI agents that plans, executes across many models, verifies against real execution, and learns only from what passed. - [Quickstart](https://docs.miniork.dev/get-started/quickstart/): mini-ork quickstart: go from nothing to a verified AI agent run in about five minutes with Python 3.11, git and one model provider key. - [Installation](https://docs.miniork.dev/get-started/installation/): Install mini-ork on macOS, Linux or WSL: Python 3.11+, git and sqlite3, with optional Docker for sandboxed verification. No server or database to set up. - [Your first run](https://docs.miniork.dev/get-started/first-run/): Walk through your first mini-ork run from the command line to a verified verdict, and see what each stage produced along the way. - [Core concepts](https://docs.miniork.dev/get-started/concepts/): mini-ork core concepts: kickoffs, task classes, recipes, nodes, lanes, gates, verdicts and run homes, each defined once with code-fix examples. ## Guides - [Writing a kickoff](https://docs.miniork.dev/guides/kickoffs/): Write a mini-ork kickoff: a markdown brief that states an outcome precisely enough for a planner to decompose and a verifier to disprove. - [Recipes and task classes](https://docs.miniork.dev/guides/recipes/): mini-ork recipes and task classes: reusable definitions of how a class of work is done, including code-fix, docs, bug-audit and framework-edit. - [Running work in worktrees](https://docs.miniork.dev/guides/worktrees/): Run AI agent changes in git worktrees with mini-ork: one branch and directory per task, so concurrent runs never edit the same file. - [Verification and gates](https://docs.miniork.dev/guides/verification/): How mini-ork verification works: every run ends in a verdict produced by gates that actually executed, with the evidence attached, and what each verdict means. - [Certifying a change](https://docs.miniork.dev/guides/certify/): How to prove an AI-written fix actually fixes the bug: mini-ork certify runs the patch against generated invariants in a sandbox and writes a certificate. - [Cost governance](https://docs.miniork.dev/guides/cost/): LLM cost governance in mini-ork: per-model metering at list price, pre-run and per-dispatch spend caps, and what happens when a budget trips. - [The web app and IDE](https://docs.miniork.dev/guides/web-app/): mini-ork board, the local serve JSON API on 127.0.0.1:7090, and the Zed-based IDE: three thin views over the same engine state. - [Automations](https://docs.miniork.dev/guides/automations/): Schedule recurring AI agent runs with mini-ork automations: cron-triggered recipe runs fired from a pull-based tick loop, with no daemon required. - [Remote nodes](https://docs.miniork.dev/guides/remote-nodes/): Run mini-ork work on remote nodes: your laptop stays the control plane while a VM you control executes runs over the node-agent protocol. - [Cloud sandboxes](https://docs.miniork.dev/guides/cloud-sandboxes/): Run AI agent work in disposable cloud sandboxes: mini-ork provisions a fresh remote node per run, collects the results and releases it. - [The self-improvement loop](https://docs.miniork.dev/guides/self-improvement/): mini-ork's self-improvement loop: prompt, workflow and code changes are measured against a held-out probe set and promoted only on real improvement. - [Failure triage and recovery](https://docs.miniork.dev/guides/failure-triage/): mini-ork failure triage: classify each failed run as a framework or consumer bug, file it, and optionally turn it into a framework-edit epic. ## CLI reference - [Overview](https://docs.miniork.dev/cli/): mini-ork CLI reference: every subcommand with its flags, environment variables and exit codes, from run and certify to providers, vault and mcp. - [run](https://docs.miniork.dev/cli/run/): mini-ork run: the recipe runner. Resolve or classify a recipe, then walk classify, plan, execute and verify with deadline gates between stages. - [Lifecycle commands](https://docs.miniork.dev/cli/lifecycle/): The eight mini-ork lifecycle commands: classify, plan, execute, verify, reflect, improve, eval and promote. Run any stage yourself to inspect or retry it. - [certify](https://docs.miniork.dev/cli/certify/): mini-ork certify CLI reference: judge whether a commit actually fixes a claimed bug and write a JSON certificate. Flags, inputs and exit codes 0/1/2. - [self-improve](https://docs.miniork.dev/cli/self-improve/): mini-ork self-improve: gated recursive self-improvement. Each iteration runs in its own worktree and commits only after its verifiers pass. - [apply](https://docs.miniork.dev/cli/apply/): mini-ork apply: promote the highest-confidence prompt change after a non-regression gate, or quarantine it with a reason. - [Inspecting state](https://docs.miniork.dev/cli/inspect/): Inspect mini-ork state from the CLI: board returns live project state as JSON, and verifier reads and labels the gate results behind a verdict. - [providers](https://docs.miniork.dev/cli/providers/): mini-ork providers: configure and inspect model credentials per lane. Keys go to an owner-only secret store and are never accepted as CLI arguments. - [vault](https://docs.miniork.dev/cli/vault/): mini-ork vault: see which secret backends are wired and which one resolves a given name, without ever printing a secret value. - [mcp](https://docs.miniork.dev/cli/mcp/): mini-ork mcp: manage the MCP server registry and audit which servers and auth a workflow grants before a run starts. - [concord](https://docs.miniork.dev/cli/concord/): mini-ork concord: coordinate several AI agents in one repository with named principals, file claims, a run wrapper and a mailbox. - [automations](https://docs.miniork.dev/cli/automations/): mini-ork automations: schedule recipe runs with cron. Each automation is a kickoff, recipe and schedule that launches a normal, observable run. - [cn](https://docs.miniork.dev/cli/cn/): mini-ork cn: the ContextNest client for cross-session memory. Probe the service, search past sessions, and settle outcomes back into it. - [zed](https://docs.miniork.dev/cli/zed/): mini-ork zed: add mini-ork to the Zed editor as an agent and MCP context server, with a timestamped backup before every settings.json change. - [Maintenance](https://docs.miniork.dev/cli/maintenance/): mini-ork maintenance commands: init, install, update, doctor, validate and garden. Cheap setup, upgrade and static checks with a Fix hint for every finding. ## Configuration - [Environment variables](https://docs.miniork.dev/configuration/environment/): mini-ork environment variables: where state lives (MINI_ORK_HOME, MINI_ORK_DB), separating the engine from the target repo, and runtime switches. - [Feature flags](https://docs.miniork.dev/configuration/feature-flags/): Catalogue of mini-ork MO_* and MINI_ORK_* feature flags with their in-code defaults, and how to set them without putting secrets on the command line. - [Providers and lanes](https://docs.miniork.dev/configuration/providers-and-lanes/): Providers and lanes in mini-ork: register model endpoints in providers.yaml and bind workflow lanes to them across OpenAI, Anthropic and compatible APIs. - [agents.yaml](https://docs.miniork.dev/configuration/agents/): Configure agents.yaml: choose which model does each job in mini-ork by mapping roles to providers, aliases and fallback chains. - [workflow.yaml](https://docs.miniork.dev/configuration/workflow/): Write a mini-ork workflow.yaml: a DAG of agent and verifier nodes with lanes, gates and edges, validated against the workflow schema before a run. - [Artifact contract](https://docs.miniork.dev/configuration/artifact-contract/): The mini-ork artifact contract: what a run must produce, how each output is checked, and what happens when a check fails. - [Task classes](https://docs.miniork.dev/configuration/task-class/): mini-ork task classes: matchers that route a kickoff to a class, the workflow it runs, and the risk tier that sets how much approval a result needs. - [Vault and secrets](https://docs.miniork.dev/configuration/vault/): mini-ork vault configuration: how ${NAME} placeholders resolve through a backend chain, from local files in the simple tier to a secret store in the secure tier. ## Architecture - [Engine map](https://docs.miniork.dev/architecture/overview/): Engine map of mini-ork: the Python primitives, registries and execution machinery every recipe shares, and where to make a change. - [Run lifecycle](https://docs.miniork.dev/architecture/run-lifecycle/): The lifecycle of a mini-ork run: a kickoff moves through six stages to a verdict with evidence, plus how nodes, edges, resume and recovery work. - [Verification stack](https://docs.miniork.dev/architecture/verification/): mini-ork's verification stack: metamorphic relations, differential testing, suite adequacy and gate hackability. Verdicts rest on execution, never model opinion. - [Artifact graph](https://docs.miniork.dev/architecture/artifact-graph/): How mini-ork's artifact graph makes node handoffs explicit: producers declare the files they publish, consumers declare what they require, and edges are checked. - [Learning loop](https://docs.miniork.dev/architecture/learning-loop/): How mini-ork learns from every run: dispatch traces become routing policy, and nodes move to the model lanes that measured better once evidence is thick enough. - [Sandboxing and placement](https://docs.miniork.dev/architecture/sandboxing/): How mini-ork isolates agent work: on-host isolation, remote placement on VMs or cloud sandboxes, and the per-node switches that control host access. ## Operations - [Troubleshooting](https://docs.miniork.dev/operations/troubleshooting/): Troubleshoot mini-ork: symptom, likely cause and fix for common failures, with the diagnostic command that tells them apart, starting with doctor. - [Recovery](https://docs.miniork.dev/operations/recovery/): Recover a failed or interrupted mini-ork run without starting over: reuse nodes that succeeded and re-dispatch only what failed. - [Scheduler and retries](https://docs.miniork.dev/operations/scheduler/): mini-ork retries at two levels: transport retries per dispatch and scheduler retries per epic. How each works and when an attempt gets another try. - [Observability](https://docs.miniork.dev/operations/observability/): Observe mini-ork runs: node results in SQLite, per-node prompts and outputs, gate transcripts, a live event stream and OpenTelemetry export. - [Security model](https://docs.miniork.dev/operations/security/): The mini-ork security model: a trusted control plane and untrusted model output, with sandboxing, secret handling and how to report a vulnerability. ## Development - [Extending mini-ork](https://docs.miniork.dev/development/extending/): Extend mini-ork without editing the core: register node types, routing policies, gate evaluators, provider transports, subcommands, embedders and recipes. - [Python SDK](https://docs.miniork.dev/development/sdk/): mini-ork Python SDK: import verification, dispatch, memory and routing primitives in-process, or drive full runs with the MiniOrk orchestrator client. - [Tests and CI](https://docs.miniork.dev/development/testing/): Testing mini-ork: test layout, isolation conventions, how CI shards the pytest suite, and the failure modes that cost the most time. - [Worktree workflow](https://docs.miniork.dev/development/worktrees/): The mini-ork worktree workflow: every change in its own git worktree and branch, with file-surface claims so concurrent agents cannot collide. ## Reference - [Schemas](https://docs.miniork.dev/reference/schemas/): mini-ork JSON schemas for task_class, workflow and artifact_contract, plus the certify certificate format, all validated before a run starts. - [Feature inventory](https://docs.miniork.dev/reference/features/): The mini-ork feature inventory: 119 shipped capabilities across seven pillars, each anchored to the code that implements it. - [Results and benchmarks](https://docs.miniork.dev/reference/results/): mini-ork results and benchmarks: verdict accuracy on adversarial SWE-bench and external repos, held-out task success and cost, with sample sizes and limits. - [FAQ](https://docs.miniork.dev/reference/faq/): mini-ork FAQ: what it is, how it differs from LangGraph, CrewAI and AutoGen, what certify proves, what it costs, and where its guarantees stop. ## Optional - [miniork.dev](https://miniork.dev/): product overview and measured results - [Source on GitHub](https://github.com/SourceShift/mini-ork): code, issues and releases