iterion

module
v0.43.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT

README ΒΆ

Iterion logo

Iterion

From dev to imperator β€” command a legion of bots at the next level. Veni, vidi, merged.

Bots, as code. Declarative workflow orchestration for AI agents.

Stop coding like a mortal. Define your bots as readable .bot files β€” chain agents, judges, routers, human gates, parallel branches, bounded loops, and budget caps into a single, auditable execution graph, then command from the next level.

⚠️ 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.


Table of Contents


🧩 What is Iterion?

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.


πŸ“‹ Features

Authoring & orchestration
  • πŸ“ Declarative DSL β€” Human-readable .bot files with indentation-based syntax
  • πŸ€– Multi-agent orchestration β€” Chain agents, judges, routers, and await-based convergence 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
  • 🧭 4 routing modes β€” fan_out_all, condition, round_robin, and llm-driven routing
  • πŸ” Bounded loops β€” Retry and refinement cycles with configurable iteration limits
  • πŸ”² Structured I/O β€” Typed schemas for inputs and outputs with enum constraints
  • πŸ”— MCP support β€” Declare MCP servers directly in .bot files (stdio, http)
  • πŸ§ͺ Recipe system β€” Bundle workflows with presets for comparison and benchmarking
  • πŸ“ Mermaid diagrams β€” Auto-generate visual workflow diagrams (compact / detailed / full)
Execution & runtime
  • πŸ”Œ Delegation β€” Offload execution to external agents (Claude Code, Codex) with full tool access β€” works with Claude and ChatGPT/Codex subscriptions
  • 🌐 Provider-agnostic β€” In-process claw backend supports Anthropic and OpenAI (validated), plus Bedrock, Vertex, Foundry (via the vendored claw-code-go SDK)
  • πŸ’° Budget enforcement β€” Shared, mutex-protected caps on tokens, cost (USD), duration, parallel branches, and loop iterations
  • πŸ›‘οΈ Tool policies β€” Allowlist-based access control with exact, namespace, and wildcard matching
  • 🌳 Worktree auto-finalization β€” worktree: auto runs the workflow in a fresh git worktree, persists commits to a named branch, and fast-forwards the current branch on success β€” see docs/resume.md
  • πŸ›‘οΈ Per-run sandbox β€” sandbox: auto isolates each run inside a Docker/Podman container with the worktree bind-mounted at /workspace and an HTTP CONNECT proxy enforcing a network allowlist β€” see docs/sandbox.md
  • πŸ” Privacy filter β€” Built-in Go-native privacy_filter / privacy_unfilter tools redact and restore PII (emails, phones, IBANs, credit cards, URLs, ~25 secret patterns) β€” see docs/privacy_filter.md
Persistence & observability
  • πŸ“¦ 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 / cancelled states β€” see docs/resume.md
  • πŸ“ˆ 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.

Distribution & integration
  • ☁️ Bot-as-a-Service platform β€” Multi-tenant Helm deployment (MongoDB + S3 + NATS JetStream, KEDA-scaled runners, per-run Kubernetes sandboxes) with the full platform layer: orgs + quotas + metering, inbound webhooks for GitLab / GitHub / Forgejo / generic JSON, bound credentials, audit log, PATs, SMTP onboarding, self-serve studio β€” see docs/baas-overview.md
  • 🧰 TypeScript SDK β€” @iterion/sdk wraps the CLI with typed run / resume / events streaming 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

☁️ Iterion Cloud β€” Bot-as-a-Service

The same engine, hosted: an external event fires β†’ an autonomous bot 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.

From dev to imperator: the legion, as a service.

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" --> BOT["bot executes with<br/>bound creds"]
  BOT --> POST["review/fix/report<br/>posted back on the MR/PR"]

Five steps to a working loop:

  1. helm install iterion oci://ghcr.io/socialgouv/charts/iterion -f values.yaml β€” chart README
  2. Activate the bootstrap super-admin (temp password in the boot logs), create an org
  3. In the studio: org β†’ Webhooks β†’ create (provider, bot scope) β€” copy the one-time token + URL
  4. Paste them into your forge's webhook settings; add a forge_token secret + bot binding
  5. Open an MR β€” watch the run in the studio, the review lands on the MR

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 at docs/baas-overview.md.


βš”οΈ Meet the legion

Iterion ships a team of named, first-class bots β€” your legion. Each is 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.

Bot 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 β€” alternating Claude/GPT review-fix on the branch diff, auto-commits on convergence branch_improve_loop
🌍 Willy Whole-repo reviewer-fixer β€” the same loop across the entire 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/).


πŸš€ Getting Started

Installation

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 invoke the same Go core. The DSL, runtime, persistence and observability are identical β€” they only differ in how you reach them.

Your first workflow
# Scaffold a new project
mkdir my-project && cd my-project
iterion init

# Authenticate Claude Code (the scaffolded workflow's backend)
claude login

# Optional: copy .env.example to .env to override PROJECT_DIR
cp .env.example .env

# Validate the workflow
iterion validate pr_refine_single_model_backend.bot

# Run it
iterion run pr_refine_single_model_backend.bot \
  --var pr_title="Fix auth middleware" \
  --var review_rules="No SQL injection, no hardcoded secrets" \
  --var compliance_rules="Must satisfy the review rules and keep tests passing"

iterion init creates a complete PR refinement workflow (review β†’ plan β†’ compliance check β†’ act β†’ verify) that you can run immediately.

Inspect results
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 report

All run data (events, artifacts, interactions) is stored in .iterion/runs/.


πŸ€– Workflow files

Iterion accepts plain workflow sources as .bot files. Any other extension is rejected at the CLI, server, dispatcher, and studio boundaries.

Bots can also be shipped as .botz β€” a tar.gz packaging the workflow with adjacent resources (Claude Code skills, reusable prompts, default attachments, manifest). Scaffold with iterion bundle init, build with iterion bundle pack, run with iterion run my.botz. See docs/bundles.md.


✨ A Taste of the DSL

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 fan-out, human gates for approval, bounded loops for retry, budget caps for cost control, and more β€” see docs/dsl.md for the full reference.


πŸ“š Documentation

The full documentation lives under docs/ β€” start with the documentation index. Highlights:

Get going

Author workflows

Run & operate

Architecture & contributing

References


πŸ“„ License

MIT. See LICENSE for the full text. Copyright Β© SocialGouv.

Directories ΒΆ

Path Synopsis
Package bots exposes the productised bot recipes shipped with iterion (the named team β€” Featurly, Billy, Willy, …) as an embed.FS so the binary can run them by basename from any working directory.
Package bots exposes the productised bot recipes shipped with iterion (the named team β€” Featurly, Billy, Willy, …) as an embed.FS so the binary can run them by basename from any working directory.
cmd
iterion command
Command iterion is the CLI for the iterion workflow engine.
Command iterion is the CLI for the iterion workflow engine.
iterion-desktop command
Package main is the Iterion Desktop binary.
Package main is the Iterion Desktop binary.
contrib
mattermost-clarify command
Command mattermost-clarify is a chat channel adapter that wires a Mattermost bot ("@clarify-bot") to iterion's run-completion webhook (pkg/notify), letting iterion facilitate a thread without iterion itself knowing anything about Mattermost.
Command mattermost-clarify is a chat channel adapter that wires a Mattermost bot ("@clarify-bot") to iterion's run-completion webhook (pkg/notify), letting iterion facilitate a thread without iterion itself knowing anything about Mattermost.
examples
mcp_test_server command
Tiny MCP stdio server used by the live tests.
Tiny MCP stdio server used by the live tests.
pkg
alert
Package alert implements run-health alerting for the iterion studio / server.
Package alert implements run-health alerting for the iterion studio / server.
artifactlabels
Package artifactlabels derives semantic labels for a published artifact from the SHAPE of its output data β€” so an artifact groups under "Plans", "Verdicts", etc.
Package artifactlabels derives semantic labels for a published artifact from the SHAPE of its output data β€” so an artifact groups under "Plans", "Verdicts", etc.
audit
Package audit persists control-plane mutations into a queryable, tenant-scoped log.
Package audit persists control-plane mutations into a queryable, tenant-scoped log.
auth
Package auth implements the multitenant authentication core: password hashing, JWT issuance/verification, refresh token rotation, and the per-request Identity carried through ctx.
Package auth implements the multitenant authentication core: password hashing, JWT issuance/verification, refresh token rotation, and the per-request Identity carried through ctx.
auth/desktopsso
Package desktopsso holds the single-use, TTL-bounded ticket store that carries a login result between the OIDC callback (which MINTS a ticket for a desktop SSO flow) and the desktop exchange endpoint (which REDEEMS it).
Package desktopsso holds the single-use, TTL-bounded ticket store that carries a login result between the OIDC callback (which MINTS a ticket for a desktop SSO flow) and the desktop exchange endpoint (which REDEEMS it).
auth/oidc
Package oidc owns the SSO connectors: Google, GitHub, and a generic OIDC discovery-based provider.
Package oidc owns the SSO connectors: Google, GitHub, and a generic OIDC discovery-based provider.
auth/orgsso
Package orgsso owns the per-tenant (per-org) SSO provider configuration: the rows an iterion org admin self-serves to enable login via their own Keycloak (a discovery-based OIDC provider) or to gate the deployment-level GitHub login on specific GitHub teams.
Package orgsso owns the per-tenant (per-org) SSO provider configuration: the rows an iterion org admin self-serves to enable login via their own Keycloak (a discovery-based OIDC provider) or to gate the deployment-level GitHub login on specific GitHub teams.
auth/wsticket
Package wsticket holds the single-use, short-TTL ticket store that lets a client open an authenticated WebSocket without carrying a long-lived access JWT in the URL (query strings leak to access logs, proxies, and Referer).
Package wsticket holds the single-use, short-TTL ticket store that lets a client open an authenticated WebSocket without carrying a long-lived access JWT in the URL (query strings leak to access logs, proxies, and Referer).
backend/cost
Package cost holds the per-model token-pricing table used to annotate generation outputs with `_tokens` / `_model` / `_cost_usd`.
Package cost holds the per-model token-pricing table used to annotate generation outputs with `_tokens` / `_model` / `_cost_usd`.
backend/delegate
Package delegate provides the Backend interface and types for executing agent/judge nodes via pluggable backends (CLI agents like claude-code/codex, or API-based backends like claw).
Package delegate provides the Backend interface and types for executing agent/judge nodes via pluggable backends (CLI agents like claude-code/codex, or API-based backends like claw).
backend/delegate/claudesdk
Package claudesdk provides a Go SDK for the Claude Code CLI.
Package claudesdk provides a Go SDK for the Claude Code CLI.
backend/detect
Package detect probes the host environment for available LLM credentials and CLI binaries, producing a Report consumed by the studio (UI hints) and the runtime resolver (auto backend selection).
Package detect probes the host environment for available LLM credentials and CLI binaries, producing a Report consumed by the studio (UI hints) and the runtime resolver (auto backend selection).
backend/forfait
Package forfait implements a best-effort Anthropic "forfait" (Claude Code OAuth subscription) usage-cap check used by the LAYER-2 run-level auto-resume loop.
Package forfait implements a best-effort Anthropic "forfait" (Claude Code OAuth subscription) usage-cap check used by the LAYER-2 run-level auto-resume loop.
backend/llmtypes
Package llmtypes defines iterion-owned types for the LLM generation layer.
Package llmtypes defines iterion-owned types for the LLM generation layer.
backend/model
Package model provides the ModelRegistry and claw-based NodeExecutor for resolving "provider/model-id" specs and executing LLM nodes.
Package model provides the ModelRegistry and claw-based NodeExecutor for resolving "provider/model-id" specs and executing LLM nodes.
backend/permission
Package permission implements iterion's tool-permission gate β€” the anti-hypnosis / anti-prompt-injection boundary that mirrors Claude Code's default "ask" posture for BOTH execution backends (claude_code and claw).
Package permission implements iterion's tool-permission gate β€” the anti-hypnosis / anti-prompt-injection boundary that mirrors Claude Code's default "ask" posture for BOTH execution backends (claude_code and claw).
backend/recipe
Package recipe defines the RecipeSpec model and loading/application logic.
Package recipe defines the RecipeSpec model and loading/application logic.
backend/rewrite
Package rewrite is iterion's command-output-rewriter extension point: the generalization of what used to be the hardcoded rtk integration.
Package rewrite is iterion's command-output-rewriter extension point: the generalization of what used to be the hardcoded rtk integration.
backend/secretguard
Package secretguard protects secret values from leaking through an agent run.
Package secretguard protects secret values from leaking through an agent run.
backend/thinktokens
Package thinktokens provides an approximate token count for extended-thinking (reasoning) text.
Package thinktokens provides an approximate token count for extended-thinking (reasoning) text.
backend/tool
Package tool provides a unified ToolRegistry that normalizes built-in tools and MCP server tools under a single namespace and resolution scheme.
Package tool provides a unified ToolRegistry that normalizes built-in tools and MCP server tools under a single namespace and resolution scheme.
backend/tool/privacy
Package privacy implements two iterion built-in tools that detect and redact personally identifiable information (PII):
Package privacy implements two iterion built-in tools that detect and redact personally identifiable information (PII):
backend/tool/privacy/detector
Package detector implements the pure-Go PII detection backend used by the privacy_filter / privacy_unfilter built-in tools.
Package detector implements the pure-Go PII detection backend used by the privacy_filter / privacy_unfilter built-in tools.
backend/tooldisplay
Package tooldisplay turns a tool call (name + raw JSON input) into the strings the engine renders in console logs and the per-node Tools tab.
Package tooldisplay turns a tool call (name + raw JSON input) into the strings the engine renders in console logs and the per-node Tools tab.
benchmark
Package benchmark implements a multi-recipe benchmark runner with isolated workspaces and comparable metrics collection.
Package benchmark implements a multi-recipe benchmark runner with isolated workspaces and comparable metrics collection.
benchmark/asymptote
Package asymptote computes per-iteration quality scores from persisted runs and compares groups of runs (e.g.
Package asymptote computes per-iteration quality scores from persisted runs and compares groups of runs (e.g.
benchmark/quality
Package quality is the subjective quality + value-for-money assessment layer for iterion's live e2e tests.
Package quality is the subjective quality + value-for-money assessment layer for iterion's live e2e tests.
botinstall
Package botinstall imports a bot bundle from a git URL or local path into a workspace so `iterion bots list`, the dispatcher, and the studio discover it.
Package botinstall imports a bot bundle from a git URL or local path into a workspace so `iterion bots list`, the dispatcher, and the studio discover it.
botregistry
Package botregistry discovers bots on disk: single .bot files and .botz bundle directories.
Package botregistry discovers bots on disk: single .bot files and .botz bundle directories.
botreplay
Package botreplay implements a record/replay golden-test framework for iterion bots.
Package botreplay implements a record/replay golden-test framework for iterion bots.
botscaffold
Package botscaffold renders a new single-agent bot bundle (main.bot + manifest.yaml + README.md + skills/) from a builder Spec.
Package botscaffold renders a new single-agent bot bundle (main.bot + manifest.yaml + README.md + skills/) from a builder Spec.
bundle
Package bundle implements the `.botz` archive format: a ZIP archive that packages an iterion workflow (`main.bot`) with adjacent resources (skills, prompts, presets, default attachments, manifest).
Package bundle implements the `.botz` archive format: a ZIP archive that packages an iterion workflow (`main.bot`) with adjacent resources (skills, prompts, presets, default attachments, manifest).
bundlelint
Package bundlelint cross-checks a bot bundle's manifest.yaml against its compiled main.bot workflow, surfacing structural inconsistencies that neither the manifest parser (pkg/bundle) nor the DSL compiler (pkg/dsl/ir) can see on their own β€” because each validates only one side.
Package bundlelint cross-checks a bot bundle's manifest.yaml against its compiled main.bot workflow, surfacing structural inconsistencies that neither the manifest parser (pkg/bundle) nor the DSL compiler (pkg/dsl/ir) can see on their own β€” because each validates only one side.
cli
Package cli implements the iterion command-line interface.
Package cli implements the iterion command-line interface.
clock
Package clock provides a small Clock abstraction so time-dependent logic (notably the per-day spend-cap reset) can be driven by a fake clock in tests.
Package clock provides a small Clock abstraction so time-dependent logic (notably the per-day spend-cap reset) can be driven by a fake clock in tests.
cloud/metrics
Package metrics centralises the Prometheus metrics exposed by the cloud-mode iterion server and runner pods.
Package metrics centralises the Prometheus metrics exposed by the cloud-mode iterion server and runner pods.
cloud/orgsweep
Package orgsweep nightly-purges organizations that were soft-deleted (Status == pending_deletion) once their grace window (Org.PurgeAfter) has elapsed.
Package orgsweep nightly-purges organizations that were soft-deleted (Status == pending_deletion) once their grace window (Org.PurgeAfter) has elapsed.
cloud/tracing
Package tracing wires the OpenTelemetry trace SDK so the spans emitted by pkg/runtime, pkg/runner, and pkg/server are actually exported.
Package tracing wires the OpenTelemetry trace SDK so the spans emitted by pkg/runtime, pkg/runner, and pkg/server are actually exported.
cloudsched
Package cloudsched is the cloud-mode recurring-bot scheduler: a per-org store of cron-scheduled bots and a multi-replica-safe ticker that fires each due schedule exactly once (CAS on the next-fire time, no leader election needed).
Package cloudsched is the cloud-mode recurring-bot scheduler: a per-org store of cron-scheduled bots and a multi-replica-safe ticker that fires each due schedule exactly once (CAS on the next-fire time, no leader election needed).
config
Package config loads iterion runtime configuration from environment variables and an optional YAML file.
Package config loads iterion runtime configuration from environment variables and an optional YAML file.
dispatcher
Package dispatcher implements iterion's long-running dispatcher.
Package dispatcher implements iterion's long-running dispatcher.
dispatcher/boardmongo
Package boardmongo is the Mongo-backed implementation of native.BoardStore β€” the cloud counterpart of the filesystem pkg/dispatcher/native.Store.
Package boardmongo is the Mongo-backed implementation of native.BoardStore β€” the cloud counterpart of the filesystem pkg/dispatcher/native.Store.
dispatcher/native
Package native implements iterion's first-class issue/kanban tracker.
Package native implements iterion's first-class issue/kanban tracker.
dispatcher/native/boardops
Package boardops contains the capability-gated operations that the __mcp-board MCP server and the /api/v1/mcp/board HTTP handler share.
Package boardops contains the capability-gated operations that the __mcp-board MCP server and the /api/v1/mcp/board HTTP handler share.
dispatcher/tracker
Package tracker defines the issue-tracker abstraction used by the dispatcher (`iterion dispatch`).
Package tracker defines the issue-tracker abstraction used by the dispatcher (`iterion dispatch`).
dsl/ast
MarshalFile / UnmarshalFile provide JSON serialization and deserialization for File types, converting Go iota-based enums to human-readable string representations.
MarshalFile / UnmarshalFile provide JSON serialization and deserialization for File types, converting Go iota-based enums to human-readable string representations.
dsl/expr
Package expr implements a small expression language used by iterion's `compute` nodes and `when` edge clauses.
Package expr implements a small expression language used by iterion's `compute` nodes and `when` edge clauses.
dsl/ir
Package ir defines the canonical Intermediate Representation (IR) produced by compiling an AST.
Package ir defines the canonical Intermediate Representation (IR) produced by compiling an AST.
dsl/types
Package types defines shared enum types used by both the AST and IR packages.
Package types defines shared enum types used by both the AST and IR packages.
dsl/unparse
Package unparse converts an ast.File back into .bot DSL text.
Package unparse converts an ast.File back into .bot DSL text.
dsl/workflowfile
Package workflowfile is the single source of truth for which file extensions iterion recognises as workflow source files.
Package workflowfile is the single source of truth for which file extensions iterion recognises as workflow source files.
eventbus
Package eventbus is the internal publish/subscribe spine that carries trigger.Event values from producers (native board, run completion, forge webhooks, schedule ticks, custom ingress) to consumers (the trigger Evaluator).
Package eventbus is the internal publish/subscribe spine that carries trigger.Event values from producers (native board, run completion, forge webhooks, schedule ticks, custom ingress) to consumers (the trigger Evaluator).
forge
Package forge is iterion's OUTBOUND forge-integration layer: it connects a team to a GitLab / GitHub / Forgejo account (OAuth or PAT), lists that account's repos, and AUTO-PROVISIONS the forge-side webhook + the bot-secret binding when an operator enables a bot on a repo — replacing the manual PAT→secret→binding→webhook→forge-hook chain.
Package forge is iterion's OUTBOUND forge-integration layer: it connects a team to a GitLab / GitHub / Forgejo account (OAuth or PAT), lists that account's repos, and AUTO-PROVISIONS the forge-side webhook + the bot-secret binding when an operator enables a bot on a repo — replacing the manual PAT→secret→binding→webhook→forge-hook chain.
forge/forgejo
Package forgejo is the Forgejo/Gitea implementation of forge.Admin.
Package forgejo is the Forgejo/Gitea implementation of forge.Admin.
forge/github
Package github is the GitHub implementation of forge.Admin: the outbound write-side client the orchestrator uses to list repos and create/update/delete the iterion webhook on them.
Package github is the GitHub implementation of forge.Admin: the outbound write-side client the orchestrator uses to list repos and create/update/delete the iterion webhook on them.
forge/gitlab
Package gitlab is the GitLab implementation of forge.Admin: the OUTBOUND write-side client the orchestrator uses to list a connection's projects and create/update/delete the iterion webhook on them.
Package gitlab is the GitLab implementation of forge.Admin: the OUTBOUND write-side client the orchestrator uses to list a connection's projects and create/update/delete the iterion webhook on them.
git
Package git is a minimal wrapper around the `git` CLI for the studio's modified-files panel.
Package git is a minimal wrapper around the `git` CLI for the studio's modified-files panel.
identity
Package identity owns the multitenant user/team/membership domain.
Package identity owns the multitenant user/team/membership domain.
internal/clilocate
Package clilocate centralises the host-side probe used by backends that shell out to a CLI binary (claude, codex, …).
Package clilocate centralises the host-side probe used by backends that shell out to a CLI binary (claude, codex, …).
internal/mongoutil
Package mongoutil holds tiny helpers for the Mongo driver shared across iterion's storage packages (pkg/store/mongo, pkg/identity, pkg/secrets, pkg/auth).
Package mongoutil holds tiny helpers for the Mongo driver shared across iterion's storage packages (pkg/store/mongo, pkg/identity, pkg/secrets, pkg/auth).
internal/proc
Package proc holds tiny process-management primitives shared across iterion's shell-out wrappers (gitCmd, dockerCmd, kubectlCmd).
Package proc holds tiny process-management primitives shared across iterion's shell-out wrappers (gitCmd, dockerCmd, kubectlCmd).
internal/shellquote
Package shellquote produces POSIX-shell-safe single-quoted tokens for use in `sh -c` command strings.
Package shellquote produces POSIX-shell-safe single-quoted tokens for use in `sh -c` command strings.
internal/strutil
Package strutil holds tiny string helpers that have no direct stdlib equivalent and were otherwise copy-pasted across packages.
Package strutil holds tiny string helpers that have no direct stdlib equivalent and were otherwise copy-pasted across packages.
knowledge
Package knowledge defines the backend-agnostic contract for iterion's shared memory / knowledge system: the MemoryStore interface, the SpaceRef identity model (the sharing axes), and the document/index value types both adapters return.
Package knowledge defines the backend-agnostic contract for iterion's shared memory / knowledge system: the MemoryStore interface, the SpaceRef identity model (the sharing axes), and the document/index value types both adapters return.
log
Package log provides a leveled logger with emoji-rich console output for the iterion workflow engine.
Package log provides a leveled logger with emoji-rich console output for the iterion workflow engine.
mail
Package mail is iterion's minimal transactional mailer: stdlib SMTP (explicit STARTTLS) + embedded templates for the two flows that need email β€” invitations and password resets.
Package mail is iterion's minimal transactional mailer: stdlib SMTP (explicit STARTTLS) + embedded templates for the two flows that need email β€” invitations and password resets.
marketplace
Package marketplace is the hosted bot registry that sits on top of pkg/botinstall.
Package marketplace is the hosted bot registry that sits on top of pkg/botinstall.
memory
Package memory provides the per-workspace iterion memory tree at ~/.iterion/projects/<encoded-workdir>/memory/<scope>/.
Package memory provides the per-workspace iterion memory tree at ~/.iterion/projects/<encoded-workdir>/memory/<scope>/.
notify
Package notify delivers run-completion webhooks β€” a generic "this run reached a terminal state, here is its final answer" callback POSTed to a URL supplied at launch time.
Package notify delivers run-completion webhooks β€” a generic "this run reached a terminal state, here is its final answer" callback POSTed to a URL supplied at launch time.
orgusage
Package orgusage meters per-org (tenant) monthly run launches and LLM spend, and enforces the launch-time caps.
Package orgusage meters per-org (tenant) monthly run launches and LLM spend, and enforces the launch-time caps.
pat
Package pat implements personal access tokens β€” long-lived bearer credentials for programmatic API access (CI jobs, SDKs, curl) where the 15-minute JWT + refresh-cookie dance is impractical.
Package pat implements personal access tokens β€” long-lived bearer credentials for programmatic API access (CI jobs, SDKs, curl) where the 15-minute JWT + refresh-cookie dance is impractical.
plugin
Package plugin implements iterion's plugin ecosystem: declarative, out-of-process extensions described by a `plugin.yaml` manifest with typed contribution points.
Package plugin implements iterion's plugin ecosystem: declarative, out-of-process extensions described by a `plugin.yaml` manifest with typed contribution points.
queue
Package queue defines the message contract exchanged between the iterion server (publisher) and the iterion runner (consumer).
Package queue defines the message contract exchanged between the iterion server (publisher) and the iterion runner (consumer).
queue/nats
Package nats wraps the NATS / JetStream / KV layer for iterion's cloud queue.
Package nats wraps the NATS / JetStream / KV layer for iterion's cloud queue.
reviewtopology
Package reviewtopology resolves the mono/dual review topology for bi-model review-loop bots (whole-improve-loop, branch-improve-loop, feature-dev, docs-refresh, secured-renovacy) from detected credentials (provider keys AND usable backends β€” e.g.
Package reviewtopology resolves the mono/dual review topology for bi-model review-loop bots (whole-improve-loop, branch-improve-loop, feature-dev, docs-refresh, secured-renovacy) from detected credentials (provider keys AND usable backends β€” e.g.
runner
Package runner implements the cloud-mode iterion runner pod.
Package runner implements the cloud-mode iterion runner pod.
runtime
Package runtime β€” conflict handling for the deferred squash merge.
Package runtime β€” conflict handling for the deferred squash merge.
runtime/recovery
Package recovery defines typed recovery recipes that decide what to do when a node fails.
Package recovery defines typed recovery recipes that decide what to do when a node fails.
runview
Package runview β€” agent-driven merge-conflict resolution.
Package runview β€” agent-driven merge-conflict resolution.
runview/runstream
Package runstream is the store-agnostic run-streaming seam (ADR-053): one Source per store delivers BOTH the structured event timeline and the raw log bytes of any run β€” persisted replay first, then live tail, gap-free β€” so the run-console WS layer never branches on how a run was produced (in-process launch, detached subprocess, external daemon, cross-store, cloud runner pod).
Package runstream is the store-agnostic run-streaming seam (ADR-053): one Source per store delivers BOTH the structured event timeline and the raw log bytes of any run β€” persisted replay first, then live tail, gap-free β€” so the run-console WS layer never branches on how a run was produced (in-process launch, detached subprocess, external daemon, cross-store, cloud runner pod).
sandbox
Package sandbox defines the iterion sandboxing abstraction.
Package sandbox defines the iterion sandboxing abstraction.
sandbox/devcontainer
Package devcontainer parses the subset of devcontainer.json fields iterion's sandbox driver consumes.
Package devcontainer parses the subset of devcontainer.json fields iterion's sandbox driver consumes.
sandbox/docker
Package docker implements the Docker/Podman sandbox driver.
Package docker implements the Docker/Podman sandbox driver.
sandbox/kubernetes
Package kubernetes implements iterion's sandbox driver for cloud (in-cluster) deployments.
Package kubernetes implements iterion's sandbox driver for cloud (in-cluster) deployments.
sandbox/netproxy
Package netproxy implements iterion's HTTP CONNECT proxy that enforces the workflow's sandbox network policy.
Package netproxy implements iterion's HTTP CONNECT proxy that enforces the workflow's sandbox network policy.
sandbox/noop
Package noop provides the always-available passthrough sandbox driver.
Package noop provides the always-available passthrough sandbox driver.
sandbox/registry
Package registry centralises the iterion-shipped sandbox-driver constructor list.
Package registry centralises the iterion-shipped sandbox-driver constructor list.
secrets
Package secrets seals and unseals sensitive values (BYOK API keys, OAuth credentials, OIDC client secrets) at rest.
Package secrets seals and unseals sensitive values (BYOK API keys, OAuth credentials, OIDC client secrets) at rest.
secure/httpdial
Package httpdial is the single source of truth for iterion's SSRF guard: resolving an operator/admin-supplied host to a safe IP and dialing only that pinned IP (DNS-rebinding-proof).
Package httpdial is the single source of truth for iterion's SSRF guard: resolving an operator/admin-supplied host to a safe IP and dialing only that pinned IP (DNS-rebinding-proof).
server
Package server provides an HTTP API for the iterion studio.
Package server provides an HTTP API for the iterion studio.
server/cloudpublisher
Package cloudpublisher wires runview.LaunchPublisher on top of NATS + Mongo so the cloud-mode `iterion server` can hand work off to the runner pool instead of executing in-process.
Package cloudpublisher wires runview.LaunchPublisher on top of NATS + Mongo so the cloud-mode `iterion server` can hand work off to the runner pool instead of executing in-process.
server/projects
Package projects manages the studio's per-user project registry.
Package projects manages the studio's per-user project registry.
sessionboard
Package sessionboard models the per-run "Session board": a small, declarative dashboard the studio renders on a run's Tasks tab.
Package sessionboard models the per-run "Session board": a small, declarative dashboard the studio renders on a run's Tasks tab.
skilllib
Package skilllib implements iterion's first-class skill library: a standalone, operator-curated store of Claude-Code-style SKILL.md skills, stored globally (~/.iterion/skills/) with an optional per-project override, and referenced from workflows via the DSL `skills:` field.
Package skilllib implements iterion's first-class skill library: a standalone, operator-curated store of Claude-Code-style SKILL.md skills, stored globally (~/.iterion/skills/) with an optional per-project override, and referenced from workflows via the DSL `skills:` field.
store
Package store implements the file-backed persistence layer for iterion runs.
Package store implements the file-backed persistence layer for iterion runs.
store/blob
Package blob defines the artifact-blob interface implemented by S3 (cloud) and (potentially) a local filesystem variant for testing.
Package blob defines the artifact-blob interface implemented by S3 (cloud) and (potentially) a local filesystem variant for testing.
store/mongo
Package mongo implements the cloud-mode RunStore on top of MongoDB for run metadata + events + interactions, paired with an external blob.Client (S3) for artifact bodies.
Package mongo implements the cloud-mode RunStore on top of MongoDB for run metadata + events + interactions, paired with an external blob.Client (S3) for artifact bodies.
store/storetest
Package storetest exposes the conformance suite that every store.RunStore backend must satisfy.
Package storetest exposes the conformance suite that every store.RunStore backend must satisfy.
supervise
Package supervise implements LLM-driven supervisor agents that watch a running iterion workflow from a separate goroutine/process and enqueue steering messages the supervised run picks up at its next turn β€” like a human watching a Claude Code session and typing.
Package supervise implements LLM-driven supervisor agents that watch a running iterion workflow from a separate goroutine/process and enqueue steering messages the supervised run picks up at its next turn β€” like a human watching a Claude Code session and typing.
trigger
Package trigger is the unifying spine for event-driven runs.
Package trigger is the unifying spine for event-driven runs.
valkey
Package valkey wraps a go-redis client used to share ephemeral server state across replicas (forge OAuth/CSRF state, board-MCP run tokens, auth rate-limit buckets).
Package valkey wraps a go-redis client used to share ephemeral server state across replicas (forge OAuth/CSRF state, board-MCP run tokens, auth rate-limit buckets).
webhooks
Package webhooks is iterion's inbound-webhook spine: long-lived, per-org webhook tokens that authenticate an external caller (a forge, CI, a script) and authorize it to launch a configured set of bots.
Package webhooks is iterion's inbound-webhook spine: long-lived, per-org webhook tokens that authenticate an external caller (a forge, CI, a script) and authorize it to launch a configured set of bots.
webhooks/generic
Package generic decodes the bot-agnostic JSON shape iterion accepts on /api/webhooks/generic/{id}.
Package generic decodes the bot-agnostic JSON shape iterion accepts on /api/webhooks/generic/{id}.
webhooks/gitlab
Package gitlab decodes GitLab webhook payloads into the narrow, normalized shape iterion's inbound handler consumes.
Package gitlab decodes GitLab webhook payloads into the narrow, normalized shape iterion's inbound handler consumes.
webhooks/prforge
Package prforge decodes pull_request webhook payloads from PR-over-forge providers β€” GitHub and Forgejo/Gitea β€” which share the same wire shape for the pull_request event.
Package prforge decodes pull_request webhook payloads from PR-over-forge providers β€” GitHub and Forgejo/Gitea β€” which share the same wire shape for the pull_request event.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL