| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Loop combines Ultracode's parallel Codex worker orchestration with Fable-powered prompt review and Stop-hook course correction. Fable oversees the goal loop; Codex executes.
The Fable hook layer is opt-in per Codex thread. Start a prompt with [loop] or include [loop] in the prompt to activate Loop review for that thread. Prompts without [loop] are passed through unchanged, and the Stop hook stays inactive until a [loop] prompt marks the thread active.
The orchestration engine is copied from Ultracode so this plugin can be installed as a standalone public plugin. The CLI wrapper is:
node scripts/loop-cli.js "investigate this bug with parallel workers"The underlying workflow surfaces remain compatible with Ultracode: task fan-out, steps[] DAGs, workers_spec[], imperative Workflow scripts, saved workflows, resume, status, budgets, and the run dashboard.
For open-ended research, start from examples/research-loop.workflow.js: it uses stateful loopUntilDry with dedupeFindings: true so each round sees the running finding/source memory and repeat-only rounds count as dry.
hooks/hooks.json defines:
Loop does not install or trust hooks automatically.
Loop talks to Fable through the Claude Code CLI in headless mode (claude -p) by default:
If the claude CLI is not installed and ANTHROPIC_API_KEY is set, Loop falls back to the legacy @just-every/ensemble API backend.
Optional environment variables (environment, project .env, plugin .env, or ~/.env):
LOOP_DISABLED=1 # turn the hooks off
LOOP_BACKEND=auto # auto (default) | claude | ensemble
LOOP_CLAUDE_BIN=claude # path to the Claude Code CLI
LOOP_MODEL=claude-fable-5 # model passed to the backend
LOOP_EFFORT= # optional --effort for the claude backend (low..max)
LOOP_TIMEOUT_MS=1200000 # per-review timeout (20 minutes)
LOOP_MAX_CONTEXT_CHARS=16000 # cap on conversation context sent with the prompt
LOOP_MAX_CONTINUES=8 # max consecutive Stop-hook continuations
LOOP_DIGEST_MODEL=haiku # model that summarizes the turn transcript for stop reviews (off to disable)
LOOP_DIGEST_TIMEOUT_MS=60000 # digest call timeout
LOOP_DIGEST_MAX_CHARS=150000 # cap on transcript text fed to the digest modelANTHROPIC_API_KEY is only required for the ensemble backend.
npm test| Back | FazBrowse Home | New Git URL |