aloop
//_workflow //_setup

aloop

CLI agentic

A dependable loop for agent-driven coding tasks.

aloop drives a task through implementation, documentation, deterministic gates, structured review, and repair, then opens a draft pull request. It owns the control flow. The agent CLIs you configure provide judgment in fresh processes, and each phase hands off through files, not a shared chat.

New to aloop? Read the introduction.

zsh — aloop
# install once, or run with npx
$ npm install --global @syntax-syllogism/aloop

# from inside a git repository, scaffold loop.config.mjs
$ aloop init

# inspect the rendered plan before changing anything
$ aloop --task "Add request tracing" --name request-tracing --dry-run

# run the task; aloop confirms each phase by default
$ aloop --task "Add request tracing" --name request-tracing

// how it works

  1. 01

    implement

    Make the change in an isolated git worktree.

  2. 02

    docs

    Update docs the change needs.

  3. 03

    gate

    Run the checks you trust.

  4. 04

    review

    Require a structured verdict.

  5. 05

    address

    Repair blockers and repeat.

  6. 06

    describe

    Write the PR title and body.

  7. 07

    publish

    Push, then open or verify a draft PR.

A driver, not a black box

The runner manages phases and state while agents work in fresh processes. Phase handoffs are files, not shared conversation context.

Deterministic gates

Put commands such as npm test in the gate. Agent prose never substitutes for an actual test result.

Reviews fail closed

Reviews write machine-readable verdicts with blocking findings and nits. A malformed verdict is not treated as approval.

Resumable and audited

Each run records a manifest with commit SHAs, prompt hashes, gate receipts, and review verdicts. Resume a stalled run, or rerun a single phase with --from.

// setup

1

Install

npm install --global \
  @syntax-syllogism/aloop

Or run npx @syntax-syllogism/aloop --help without a global install.

2

Configure the loop

export default {
  engines: { default: "claude", review: "codex" },
  gate: ["npm test"],
  maxRounds: 3,
};

Choose an engine per phase. Built in: Claude, Codex, agy, and Gemini. Other CLIs can be registered as adapters.

3

Prove it first

aloop --task "..." \
  --name example \
  --dry-run

Watch representative tasks before using non-interactive options.

// commands

--task "<request>"

Run a task provided directly on the command line.

--task-file plan.md

Use a file as the task source when the request needs more room.

--dry-run

Render the plan and prompts without starting the workflow.

-y

Skip phase confirmations only after you have proven the engines and workflow for that task shape.

--resume --name <slug>

Continue a stalled run from its saved state. Add --from <phase> to rerun one phase, such as review.

aloop status <slug>

Check the current phase, verdict, and metrics. aloop watch streams changes, and aloop inspect shows the full manifest.