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.
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.
# 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
implement
Make the change in an isolated git worktree.
docs
Update docs the change needs.
gate
Run the checks you trust.
review
Require a structured verdict.
address
Repair blockers and repeat.
describe
Write the PR title and body.
publish
Push, then open or verify a draft PR.
The runner manages phases and state while agents work in fresh processes. Phase handoffs are files, not shared conversation context.
Put commands such as npm test in the gate. Agent prose never substitutes for an actual test result.
Reviews write machine-readable verdicts with blocking findings and nits. A malformed verdict is not treated as approval.
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.
npm install --global \
@syntax-syllogism/aloop
Or run npx @syntax-syllogism/aloop --help without a global install.
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.
aloop --task "..." \
--name example \
--dry-run
Watch representative tasks before using non-interactive options.
--task "<request>"Run a task provided directly on the command line.
--task-file plan.mdUse a file as the task source when the request needs more room.
--dry-runRender the plan and prompts without starting the workflow.
-ySkip 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.