Skip to main content
Kodelyth ECC
feature

Super Agent — the Autonomous Orchestrator (Kodelyth ECC)

Drive one large objective to a verified result through ECC's Super Agent: a deterministic, resumable, budget-governed state machine that decomposes into a dependency DAG, dispatches independent steps in parallel on their own branches, conflict-checks and integrates, then verifies. Nothing faked.

One objective flowing through a state machine: decompose into a dependency DAG, dispatch ready steps in parallel on their own branches, conflict-check and integrate, then verify — resumable and budget-capped.

By Kodelyth · updated · v2.30.0

Super Agent — the autonomous orchestrator

Most ECC agents do one job well: a review, a fix, a plan. The Super Agent is the one that drives a whole objective — too big for a single pass — to a finished, verified result, by running it through a control plane instead of improvising the steps.

That control plane is a tokenless state machine in scripts/super-agent/. The agent never invents the control flow; the machine owns it. That is what makes a run three things at once: deterministic (the same state always yields the same next action), resumable (it persists after every step and continues from exactly where it stopped), and budget-governed (it halts at a step or token cap instead of running costs away).

When to use it, and when not to

Use it when the work is a real project, not an edit:

  • A feature or change too large for one pass, that splits into dependent steps.
  • You want independent steps to run in parallel, with correct, conflict-checked integration of the branches afterward.
  • You want the run to survive a crash and pick up where it left off.

Don't use it for a single edit, a one-file change, or a quick fix — just do it, or call the specific specialist. For independent work with no real internal dependencies, the lighter Swarm or a single agent is the better tool. The Super Agent earns its overhead only when the steps actually depend on each other.

Run it

From your AI tool, the slash command drives the whole loop:

/super-agent build a rate-limited login API with tests
/super-agent resume <runId>        # continue a crashed or earlier run

Under the hood it behaves as the super-agent agent and drives the machine through one CLI surface:

kodelythecc super-agent <command> ...

The loop

The machine exposes exactly one question — "what next?" — and the agent performs exactly the action it names, then reports the result back.

1. Start, always with a budget

kodelythecc super-agent start --goal "<objective>" [--step-cap N] [--token-cap N] [--scope .]

Set a --step-cap or --token-cap. An autonomous run without a budget is how costs run away; the machine treats the cap as a hard stop, not a suggestion. The output gives you a runId and the first action.

2. Ask what's next, do exactly that

kodelythecc super-agent next <runId>

The JSON action is one of:

  • decompose — Break the goal into a dependency DAG with the blueprint skill. Each step is &#123; id, description, deps: [ids], contextBrief, exitCriteria &#125;, where contextBrief is written so a fresh agent can execute the step cold. Install the plan:

    kodelythecc super-agent plan <runId> --file plan.json
  • dispatch — The listed steps are ready (their dependencies are done). Run independent steps in parallel — the Task tool, or kodelythecc swarm for isolated git worktrees — each on its own branch. Report each as it finishes:

    kodelythecc super-agent step <runId> <stepId> --status done --branch <branch> [--tokens N]
    # or, if it could not be completed:
    kodelythecc super-agent step <runId> <stepId> --status failed
  • integrate — All steps are done. Detect conflicts first, without touching the tree, via scripts/super-agent/integrate.js (mergeOrder for the order, detectConflicts for the check — backed by git merge-tree). If clean, merge in that order:

    kodelythecc super-agent integrate <runId>

    If branches conflict, it does not force the merge — it reports the conflicting files and stops for a human:

    kodelythecc super-agent integrate <runId> --conflicts path/a,path/b
  • verify — Run the real gate (tests, build, type-check — ECC's /verify). Then record the honest result:

    kodelythecc super-agent verify <runId> --passed --detail "693 tests pass"
    # or --failed --detail "2 tests red"
  • halt — The budget cap was reached or the plan stalled. Stop and report the reason; the cap is not worked around.

  • report — The run is done, failed, or stopped. Summarize it.

Repeat next → act → submit until the action is report.

Resuming a run

A run persists after every step, so a crash loses nothing:

kodelythecc super-agent list            # find the runId
kodelythecc super-agent next <runId>    # continues from exactly where it stopped
kodelythecc super-agent status <runId>  # full state of a run

What it guarantees

The design goal is a machine that cannot lie about its own state:

  • Nothing is faked. A step that did not succeed is recorded failed, and a failed step whose result others depend on stalls the run instead of letting the machine build on a broken foundation.
  • The budget is honored. The step/token cap is a hard halt.
  • Integration is conflict-safe. Conflicts are detected before the tree is touched; a conflicting merge stops for a human rather than forcing it.
  • Verification is real. verify --passed is only submitted when the tests and build actually pass, with the evidence in --detail.

Honest limits

It is a beta driver, and worth knowing where the edges are. The machine owns the control flow, but the quality of the decomposition is still the agent's job — bad dependency edges mean lost parallelism or an integration that fights itself, so the DAG is only as good as the blueprint step that produced it. Parallel dispatch across git worktrees needs a clean working tree to branch from. And the orchestrator coordinates work; it does not replace the specialist agents that do it — it dispatches to them. For a task with no real internal dependencies, that coordination is overhead you don't need.


The orchestrator — the DAG with cycle detection, the resumable state store, the budget governor, and the git merge-tree conflict check — is dependency-free Node in scripts/super-agent. The driver is the super-agent agent and the /super-agent command. For lighter parallel work, see Swarm.

npm i -g kodelyth-ecc && kodelythecc --target claude-code
Last updated: 2026-11-10T00:00:00.000Z · v2.30.0