Visual orchestrator for CLI agents

Compose CLI agents into inspectable workflows.

Orc is a local desktop and headless runner for developers using Claude Code, Codex, Pi, OMP, Hermes, and custom CLIs. Wire agent nodes, bounded review loops, and deterministic checks into a graph—then run it inside your project folder and inspect every prompt, token, and Markdown artifact.

Orchestrator
Orc /Users/synapse/Projects/Personal/Orc
⚡ 0 running workflows
☍ Feature development ☍ Premium Website Cre...
+ Add workflow
Feature development
⚙ ✓ Saved ◎ Validate ▷ Run workflow
☍ Drag to arrange · Connect handles · Click a node to customize
◈ Specification review ❐ 🗑
✓ Succeeded ▾
Feature development · 20:38:15 · Retried with saved context Raw logs  ❐  ⤓

                
Why orchestrate

CLI coding agents are capable. Chaining them by hand is fragile.

Running a single prompt to plan, write, review, and verify non-trivial changes mixes concerns in one context window. Copying outputs between terminal tabs loses provenance and makes retries manual.

Ad-hoc CLI prompting

One session, mixed responsibilities

  • ×The same agent writes the plan, implements the code, and grades its own output.
  • ×Switching between Claude Code for implementation and Codex for review requires manual copy-paste.
  • ×When step four fails, you re-run the entire prompt chain from scratch or reconstruct context manually.
  • ×No structured record of exact prompts, CLI flags, token counts, or intermediate outputs.
Orc workflow graph

Explicit steps, typed data passing, bounded loops

  • ✓Each node owns one role, provider, model, thinking effort, permission mode, and skill set.
  • ✓Outputs pass explicitly via {{start}}, {{input}}, {{nodes.<id>.output}}, and named port wires {{in.<port>}}.
  • ✓Review nodes parse structured JSON verdicts (critical / major issues block) and route bounded loops back to a fixer.
  • ✓Every run persists an immutable snapshot and writes readable Markdown artifacts per node.
Execution lifecycle

Four steps from graph to verified artifacts.

Workflows are stored as plain JSON files. Build visually on the React Flow canvas or execute the same workflow file headlessly in CI or a terminal.

01 / INPUTS

Define task & run prompts

Start with a task prompt at the Start node and declare interactive run variables with {{ask:Title}} or reusable {{ask[name]:Title}}.

refs: {{start}} · {{vars.name}}
02 / GRAPH

Wire agents & checks

Connect agent nodes, Script/Code nodes, Review gates, Approval forms, and deterministic non-agent checks with orthogonal edges and port labels.

29 starter workflow templates
03 / SUBPROCESS

Spawn locally in your repo

Orc invokes each CLI as a non-interactive subprocess in your project working directory—passing arguments as an argv array without shell interpretation.

cwd: {{project.cwd}}
04 / INSPECT & RETRY

Audit outputs & retry steps

Read every node's resolved prompt, stdout/stderr, token usage, and Markdown artifact. Fix a failed node's config and retry from that node while reusing upstream outputs.

Saved output reused
Capabilities & primitives

Built around real CLI contracts and deterministic control flow.

Orc does not wrap a proprietary hosted model. It orchestrates the local agent binaries you already authenticate and configure on your machine.

Multi-CLI adapters

Use the right agent CLI on every node.

Configure providers once in providers.json or Preferences, then override model, reasoning effort, permission mode, or session reuse per node. Orc disables auto-discovered CLI skills by default so node prompts stay deterministic.

  • Built-in adapters for Claude Code, Codex, Pi, OMP, Hermes, plus any custom CLI via argument templates.
  • Optional Session reuse across loop rounds (--resume / --session-id) with a configurable round cap.
  • Preflight validation catches incompatible flags when switching a node between providers.
Provider Non-Interactive Invocation Contract
Claude Code claude -p <prompt> --output-format stream-json --disable-slash-commands
Codex codex exec --json --skip-git-repo-check -c skills.include_instructions=false
Pi pi -p -a --mode json --no-session --no-skills [--model]
OMP omp -p --auto-approve --mode json --no-session --no-skills [--model]
Hermes hermes chat -q <prompt> --format stream-json --yolo [--ignore-rules]
Custom CLI <executable> + arg array with {{prompt}}, {{model}}, {{effort}}
Control flow & zero-token checks

Separate AI generation from deterministic verification.

Combine agent nodes with structured Review gates, human Approval forms, and six deterministic non-agent steps that spend zero tokens and evaluate real evidence on disk.

  • Review & Role Review: Parses JSON issue severities; only critical and major issues trigger the bad loop exit.
  • Approval nodes: Pause execution for human sign-off or structured JSON Answer forms ({{nodes.<id>.outputs.form}}).
  • Design Quality Gate: Verifies required artifacts, non-empty file sizes, independent re-critique issue IDs, and exit codes.
Agent & Review Nodes Agent, Plan, Review (good/bad), Role Review, Router, Best of N
Flow & Concurrency Condition, Loop, For each, Parallel, Merge, Sub-workflow, Approval
Script & Code Nodes Run local scripts; emit NAME=value lines to {{in.NAME}} ports
6 Deterministic Checks (0 tokens) Redact, Validate (JSON/paths), Compare (diff), Assert, Discover, Design Quality Gate
Modularity & portability

Reusable Markdown skills and explicit output ports.

Attach reusable SKILL.md instructions to any node without adding clutter to your graph topology. Use named output ports to route specific artifacts to downstream reviewers without merging everything into one blob.

  • Ships with 25 Agent Skills plus Orc's React code style skill; import or export individual skill-name.md files.
  • Mode directives (## Mode: revise) let one planner or reviewer node adapt its instructions on loop iterations.
  • Draft Agent generates a configured node definition and prompt from a short purpose description.
Assembled Prompt Order (Deterministic)
1. Node prompt (charter, task, {{start}} / {{in.plan}})
2. Placement prompt hints
3. Attached skills (--- SKILL: test-driven-development ---)
4. Mode directive + loop feedback ({{loop.feedback}})
5. Routing / JSON verdict contract
Run inspection & recovery

Every run leaves a readable paper trail on disk.

Every desktop run writes a manifest, per-node Markdown outputs, token totals, and logs beside the saved run JSON. If a later step fails, edit its settings and click Retry node—completed upstream nodes reuse their saved outputs.

runs / run-2026-12-02-042 /
manifest.json — immutable run snapshot & token accounting Saved alongside runs/<id>.json

          
Local-first & safety model

Your files, your CLI credentials, your machine.

Orc is a local orchestrator, not a cloud middleman. It does not require an account, host your code, or collect usage telemetry.

Runs with your user permissions

Orc is not a sandbox. Agents and scripts execute in your chosen project folder with your OS user permissions. Choose per-node permission modes (such as read-only or workspace-write) and review execution settings in the run dialog before launching.

Process-group isolation & argv safety

Commands are spawned directly as argument arrays with no shell interpretation. Each node runs in its own process group so cancelling or timing out sends SIGTERM (and SIGKILL after 3s) cleanly to the entire subprocess tree.

Plain JSON & Markdown storage

Projects, workflows, run logs, and skills live locally in plain JSON and Markdown files. Export workflows with embedded skill definitions to share them or run them headlessly via node src/cli.ts.

Repository & support

Inspect the source, file issues, or support development.

GitHub · synapse/orc

Built in the open with TypeScript, Electron, and React Flow

Explore the core engine (src/core/), inspect the 394-test suite (npm test), browse starter workflow templates, or open an issue or pull request on GitHub.

Independent project

Support continued development

Orc has no paid tiers, subscriptions, or enterprise upsells. If it saves you time orchestrating local CLI agents, you can support maintenance and new features on Buy Me a Coffee.

FAQ

Practical details from the repository.

Which CLI agents work with Orc?

Orc includes built-in adapters and output parsers for Claude Code, Codex, Pi, OMP, and Hermes, plus a Custom CLI provider type that invokes any executable using an argument template ({{prompt}}, {{model}}, {{effort}}, {{permissionMode}}, or stdin). You install and authenticate those CLIs yourself.

Does Orc require an account or cloud service?

No. Orc runs locally on your machine against your local filesystem. External model APIs are only contacted by the underlying agent CLIs you choose to run.

Can I run Orc workflows without the desktop GUI?

Yes. The workflow engine in src/core/ has zero UI dependencies. You can run any workflow JSON headlessly from a terminal with node src/cli.ts <workflow.json> (and --providers file.json if needed).

How does retrying a failed node work?

Each run saves every node's resolved input, output, logs, and loop state. After fixing a failed node's prompt or provider settings, choose Retry node to start a new linked run from that step—completed upstream nodes reuse their saved outputs (labelled Saved output reused) without re-running.

What are the development and runtime requirements?

Running from source or packaging standalone builds requires Node.js ≥ 24 and npm (npm install, npm run dev, or npm run build:app). Standalone Electron builds bundle their runtime so end users only need their agent CLIs installed.

What is the current license status?

The source code is hosted publicly at github.com/synapse/orc. As noted in the repository README, a formal LICENSE file has not yet been selected and committed by the maintainer.

Get started

Clone the repo and run your first graph locally.

Inspect the README, run npm run dev or node src/cli.ts, and compose your local CLI agents into repeatable workflows.