The control plane for AI agents. Apps have Linux. The cloud has Kubernetes. AI agents have Iterion.
Kubernetes gave cloud workloads a declarative control plane. Iterion brings that model to AI agents. Define agent workflows as readable .bot files β chain agents, judges, routers, human gates, parallel branches, bounded loops, and budget caps β and operate every run from a single, auditable execution graph.
β οΈ This project is highly experimental. APIs, DSL syntax, and storage formats may change without notice. Use at your own risk in production environments. Feedback and contributions are welcome!
π New here? Read Why Iterion? β the origin story, the patterns we've seen work, the asymptote lens that motivated the engine, and the workflow-lab dimension. Helps you decide whether Iterion fits how you work before you install anything.
π§ Want the as-built picture? Read Current state of Iterion β shipped surfaces, execution architecture, backend status, security defaults, cloud control plane, and deliberate limits, verified against
main.
- Why Iterion? β origin + recipe + asymptote + lab
- Current state β as-built capabilities, architecture, defaults, and limits
- What is Iterion?
- Features
- Ready-to-run agent workflows
- Getting Started
- Workflow files
- A Taste of the DSL
- Documentation
- License
If you've ever noticed yourself repeating the same prompt-and-review patterns while vibe-coding with an LLM β "ask the model, eyeball the diff, ask it to fix what it missed, run the tests, ask again" β and wondered how to automate and optimize that loop, Iterion is built for you. Capture the pattern once as a .bot workflow, give it budget caps, parallel reviewers, judges and human gates, and let the engine run it deterministically every time.
Iterion is a workflow engine that turns .bot files into executable AI pipelines. You describe what your agents should do β review code, plan fixes, check compliance, ask a human β and Iterion handles how: scheduling branches in parallel, enforcing budgets, persisting state, and routing between nodes.
flowchart LR
BOT[".bot file"] --> PARSE["Parse"]
PARSE --> COMPILE["Compile"]
COMPILE --> VALIDATE["Validate"]
VALIDATE --> EXEC["Execute"]
EXEC --> NODES["agents, judges,<br/>routers, await,<br/>humans, tools<br/>running in parallel<br/>with budget tracking"]
NODES --> OUT["results, artifacts, event log"]
Think of it as a DAG runner purpose-built for LLM workflows β with first-class support for things like structured I/O, conversation sessions, human-in-the-loop pauses, and cost control.
The studio's visual editor β drag-and-drop graph, live diagnostics, and an inspector for every node. See more screenshots.
- π Declarative DSL β Human-readable
.botfiles with indentation-based syntax - π€ Multi-agent orchestration β Chain agents, judges, routers, humans, deterministic tools/computes, sub-bots, and event nodes into complex graphs
- π₯οΈ Visual editor β Browser-based workflow builder with drag-and-drop, live validation, and source view
- π Human-in-the-loop β Pause for human input, auto-answer via LLM, or let the LLM decide when to ask β see docs/human-in-the-loop.md
- π Parallel branching β Fan-out via routers, converge at downstream nodes with
await: wait_all/await: best_effort - π§ 5 routing modes β
fan_out_all,fan_out_each,condition,round_robin, andllm-driven routing - π§© Reusable composition β Parameterised
group/usemacros, nestedsubbotruns, sequentialforeach, and resource-aware fan-out - π Fuelled loops β Fixed, templated, or convergence-driven loops with iteration and liveness backstops
- π‘ In-bot events β
emit/waitnodes coordinate concurrent branches without polling - π² Structured I/O β Typed schemas for inputs and outputs with enum constraints
- π MCP support β Declare MCP servers directly in
.botfiles (stdio,http) - π§ͺ Recipe system β Bundle workflows with presets for comparison and benchmarking
- π Mermaid diagrams β Auto-generate visual workflow diagrams (compact / detailed / full)
- π Multiple execution backends β In-process
clawand the recommended Claude Code delegate, plus explicit Kimi Code and Grok Build CLI-agent backends; the Codex delegate is deprecated and frozen - π Provider routing β
clawvalidates Anthropic and OpenAI as first-class lanes and also wires xAI, Bedrock, Vertex, Foundry, and compatible endpoints with varying test coverage; OpenAI can use an API key or a ChatGPT/Codex OAuth forfait - π° Budget enforcement β Shared, mutex-protected caps on tokens, cost (USD), duration, parallel branches, and loop iterations
- ποΈ Live control and recovery β Queue operator/supervisor messages, raise budgets, grant loop iterations, retry eligible failures, and resume from persisted checkpoints
- π‘οΈ Tool-permission gate β Shared
off/ask/denypolicy forclaude_codeandclaw, with allow/ask/deny rule lists; restrictive modes are opt-in - π³ Worktree finalization β
worktree: autoruns in a fresh Git worktree and protects committed results with a named branch; CLI or studio merge policy decides when and how it lands β see docs/merge-policy.md - π‘οΈ Per-run sandbox β Opt-in Docker/Podman/Kubernetes isolation. Local containers preserve the host worktree path by default; network mode is open unless the workflow selects an allowlist/denylist proxy β see docs/sandbox.md
- π§° Reproducible bot tools β A bot and its target repository can each declare a pinned
devbox.json; Iterion composes both toolchains and exposes them to non-interactive nodes - π Privacy filter β Built-in Go-native
privacy_filter/privacy_unfiltertools redact and restore PII (emails, phones, IBANs, credit cards, URLs, ~25 secret patterns) β see docs/privacy_filter.md
- π¦ Artifact versioning β Per-node, per-iteration versioned outputs persisted to disk
- π Event sourcing β Append-only JSONL event log for full replay and debugging
- β―οΈ Resumable runs β Checkpoint-based resume from
failed_resumable/paused_waiting_human/cancelledstates β see docs/resume.md - π§ Run operations β Run trees, files/diffs/commits, live steering, human answers, notes/tags, and a local post-mortem shell for preserved worktrees
- π Observability stack β Prometheus
/metrics, OTLP traces, and a self-contained docker-compose stack with pre-built Grafana dashboards β see docs/observability/README.md
Run analytics β cost over time stacked by workflow, plus per-workflow run counts, fail rates, and P50/P95 durations.
- βοΈ Multi-tenant agent control plane β Self-hostable Helm deployment (MongoDB + S3 + NATS JetStream, KEDA-scaled runners, per-run Kubernetes sandboxes) with org β team tenancy, repo-first forge integrations, schedules/triggers/webhooks, bound credentials, quotas/metering, audit, SSO, PATs, SMTP onboarding, and a typed remote CLI β see the Iterion Cloud overview
- π§© Skills, plugins, and marketplace β Package bot resources, install project/global skills, contribute MCP/rewriter/skill/hook/lifecycle plugins, and distribute bots or plugins through one registry model
- π§° TypeScript SDK β
@iterion/sdkwraps the CLI with typedrun/resume/eventsstreaming for Node, Deno, and Bun apps - π§ AI agent skill β Install as a skill in Claude Code, Codex, Cursor, Windsurf, GitHub Copilot, Cline, Aider, and other AI coding agents
The same engine, deployed for teams: an external event fires β an agent workflow runs with your org's bound credentials β the result lands back in your own system. Open a merge request, get Revi's review as inline comments β no human in the loop, no secret ever in a prompt.
Run agent workflows as governed services.
flowchart LR
FORGE["forge event"] -- "token/HMAC,<br/>rate, quota" --> HOOK["POST /api/webhooks/{provider}/{id}"]
HOOK --> NATS[("NATS queue")]
NATS --> RUNNER["runner pod<br/>(KEDA-scaled)"]
RUNNER -- "BYOK key +<br/>file secrets" --> WORKFLOW["agent workflow executes<br/>with bound creds"]
WORKFLOW --> POST["review/fix/report<br/>posted back on the MR/PR"]
Five steps to a working forge loop:
helm install iterion oci://ghcr.io/socialgouv/charts/iterion -f values.yamlβ chart README- Activate the bootstrap super-admin (temp password in the boot logs), create an org
- In the studio, open Integrations, connect GitHub/GitLab/Forgejo, and select a repository
- Enable a bot for that repository; Iterion provisions the managed hook, webhook secret, credential binding, and optional schedule
- Open a PR/MR β watch the run in the studio and the result land back on the forge
Org quotas (runs / cost / concurrency / rate), audit log, personal access tokens, DLQ ops and Prometheus metrics make it operable as a real multi-tenant service. Start with the Iterion Cloud overview.
Iterion ships a catalog of named, first-class agent workflows. Each is packaged as a general-purpose .bot you point at any repo: run it directly (iterion run bots/<name>/main.bot), dispatch it per issue, or schedule it.
| Workflow | Role | Bundle |
|---|---|---|
| π§ Nexie | Co-CTO orchestrator β surveys the repo, elicits priorities, proposes a roadmap, and emits kanban issues | whats-next |
| π οΈ Featurly | Ships a feature end-to-end β plan β implement β simplify β review-fix loop | feature_dev |
| πΏ Billy | Branch reviewer-fixer β one adaptive campaign over the branch diff, with deterministic checks and convergence gates | branch_improve_loop |
| π Willy | Whole-repo reviewer-fixer β the same unit-convergent campaign across the full codebase | whole_improve_loop |
| π Doki | Doc aligner β detects & fixes doc/code drift (the docs, never the code) | docs-refresh |
| π Revi | Code reviewer β read-only cross-family review, publishes findings to the board | review_pr |
| π‘οΈ Seki | Source security auditor β SAST + secret scan + LLM triage | sec-audit-source |
| π¦ Depsy | Supply-chain auditor β dependency malware / CVE scan | sec-audit-deps |
| β¬οΈ Renovacy | Security-aware dependency upgrader | secured-renovacy |
List them anytime with iterion bots list; see docs/examples.md for the full catalog (including the DSL demos under examples/).
Same engine, eight delivery modes β pick the one that fits your workflow:
| Mode | Best for | Install | Docs |
|---|---|---|---|
| π₯οΈ CLI | Scripted runs, CI/CD pipelines | curl -fsSL https://socialgouv.github.io/iterion/install.sh | sh |
install.md |
| π Studio (web app) | Visual workflow design (browser-based) | Bundled with the CLI: iterion studio |
visual-editor.md |
| πͺ Desktop app | Native window, multi-project, OS keychain, auto-update | Download iterion-desktop from Releases |
desktop.md |
| π³ Docker | Zero-install runs, reproducible CI | docker run --rm ghcr.io/socialgouv/iterion:latest |
install.md#docker |
| βοΈ Cloud / server | Multi-tenant deployment, shared run store, REST/WS API | helm install iterion oci://ghcr.io/socialgouv/charts/iterion |
cloud.md |
| πΌ Dispatcher | Autonomous loop β poll a tracker, dispatch a workflow per issue | Bundled: iterion dispatch iterion.dispatcher.yaml |
dispatcher.md |
| β° Scheduler | Cron recurring runs (weekly audits, nightly passes) β no resident daemon | Bundled: iterion schedule add β¦ && iterion schedule install |
scheduling.md |
| π¦ TypeScript SDK | Programmatic invocation from Node/Deno/Bun | npm install @iterion/sdk |
sdks/typescript/ |
All eight use the same Go compiler and runtime contracts. They differ in launch transport, persistence adapter, isolation driver, and whether execution is in-process or queued to a runner.
There is no mandatory setup step β cd into the repository you want bots to
work on and pick the entry point that matches your intent:
| You want to⦠| Start here |
|---|---|
| Run a bot on this repo | iterion bots list β iterion run <bot> |
| Build your own bot | iterion bots create <slug>, or the studio builder at /bots/new |
| Wire bots into CI / a forge | docs/repo-scope.md β connect a repo, then trigger on PRs and issues |
| Use a cloud instance | iterion remote login <url> β see docs/cloud-cli.md |
Iterion ships a fleet (see Meet the legion) β the fastest way to see it work is to point one at your repo:
cd /path/to/your/repo
claude login # authenticate a backend (or set an API key)
iterion bots list # what's available
iterion run bots/review-pr/main.bot --store-dir "$PWD/.iterion"iterion bots templates # blank, code-reviewer, docs-writer, β¦
iterion bots create my-bot --template code-reviewer
$EDITOR bots/my-bot/main.bot # write the mission
iterion validate bots/my-bot/main.bot
iterion run bots/my-bot/main.botThis scaffolds a complete bot bundle (main.bot + manifest.yaml + README.md
- the resource directories) β so the bot is immediately discoverable by
iterion bots list, editable in the studio, and dispatchable. The generated workflow is parsed and compiled before anything is written, so a scaffold never lands a broken bot.
iterion studio gives you the same thing with a visual builder, a live run
console, and a kanban board.
iterion inspect # List all runs
iterion inspect --run-id <id> --events # View a specific run with events
iterion report --run-id <id> # Generate a detailed reportRun data lives under the resolved store. The example above opts into
$PWD/.iterion so the CLI and iterion studio --dir "$PWD" share it. Without
--store-dir, Iterion reuses an existing managed project .iterion or stores
the run in a deterministic project slot under ~/.iterion/projects/; reuse the
same override when inspecting a run. See the current storage contract.
Agent workflows, as code. Define readable, versioned workflows in .bot files. The DSL and visual editor are two views of the same source of truth.
Iterion accepts plain workflow sources as .bot files. Any other extension is rejected at the CLI, server, dispatcher, and studio boundaries.
Agent workflows can also be shipped as .botz bundles β tar.gz archives packaging the workflow with adjacent resources (Claude Code skills, reusable prompts, default attachments, manifest). Scaffold with iterion bots create, build with iterion bundle pack, run with iterion run my.botz. See docs/bundles.md.
Here's the simplest possible workflow β an agent reviews code and decides pass/fail:
prompt review_system:
You are a code reviewer. Evaluate the submission
and decide if it meets quality standards.
prompt review_user:
Review this code:
{{input.code}}
schema review_input:
code: string
schema review_output:
approved: bool
summary: string
agent reviewer:
model: "${MODEL}"
input: review_input
output: review_output
system: review_system
user: review_user
workflow minimal:
entry: reviewer
reviewer -> done when approved
reviewer -> fail when not approved
That's it β 28 lines. The agent gets a code input, produces a structured {approved, summary} output, and the workflow routes to done or fail based on the verdict.
From here you can add judges for multi-pass review, routers for parallel or per-item fan-out, human gates, reusable groups, nested bots, event coordination, fuelled loops, and budget caps β see docs/dsl.md for the language guide and reference map.
The full documentation lives under docs/ β start with the documentation index. Highlights:
Get going
- docs/current-state.md β as-built product, runtime, control-plane, and maturity snapshot
- docs/install.md β every install method (CLI, desktop, Docker, Helm, SDK)
- docs/visual-editor.md β studio (browser-based workflow editor)
- docs/desktop.md β native desktop app
- docs/examples.md β workflows of increasing complexity (starter β advanced)
- docs/skill.md β install Iterion as an AI agent skill (Claude Code, Cursor, Copilotβ¦)
Author workflows
- docs/dsl.md β full
.botDSL reference - docs/routers.md β routing modes deep dive
- docs/human-in-the-loop.md β pause for human input; all five interaction values and their node-specific behavior
- docs/recipes.md β preset-driven runs (benchmarking, prompt comparison)
- docs/backends.md + docs/delegation.md β model/provider routing and the
claw, Claude Code, Kimi, Grok, and legacy Codex execution paths - docs/cursors.md β prompt-engineering cursors (ambition / depth / rigor / autonomy dials)
- docs/attachments.md β file/image attachments in prompts
- docs/privacy_filter.md β built-in PII redaction tools
- docs/workflow_authoring_pitfalls.md β required reading before authoring workflows that commit code
Run & operate
- docs/cli-reference.md β every
iterionsubcommand and flag - docs/resume.md β resume / failure / cancellation matrix
- docs/sandbox.md β per-run container isolation
- docs/observability/README.md β Prometheus, OTLP, Grafana
- docs/persisted-formats.md β on-disk format spec
- docs/cloud.md + docs/cloud-deployment.md β cloud mode overview + operator runbook
Architecture & contributing
- docs/architecture.md β compiler pipeline, runtime engine, persistence
- docs/adr/ β architecture decision records
- docs/development.md β build, test, project structure for contributors
References
- docs/references/dsl-grammar.md β readable grammar
- docs/references/diagnostics.md β authoritative sparse catalogue: DSL C001βC199 and bundle checks C200βC230
- docs/references/patterns.md β 10 reusable workflow patterns
- docs/grammar/iterion_v1.ebnf β formal EBNF grammar
MIT. See LICENSE for the full text. Copyright Β© SocialGouv.
