loopfile
v0.3.0
Published
A deterministic runtime for agentic software-engineering workflows
Readme
Loopfile
Agent workflows are easy to invent and hard to run. Most of them live in bash scripts, tmux panes and hope.
Loopfile turns them into files you commit.
A loop is a manifest.yaml. Agents do the work, shell checks judge it, and
the result picks the next step. Loopfile runs the graph. No LLM decides
where the run goes.
- Every run is isolated by default. Its own Git branch. Your checkout stays clean.
- Every run is recorded. Each attempt goes into an event log. Follow it, inspect it, resume it.
- Every run is bounded. Attempts, timeouts and iteration limits come from the manifest, not from the agent's mood.
- Built for agents. Loopfile follows AXI, the Agent
eXperience Interface:
--jsondata, fixed error codes, no prompts that wait for input, and ahelp:hint on each failure. An agent can start a loop, watch it and fix what broke.
Loopfile owns execution. You own the process.
Status: early. The format is versioned (formatVersion: 1), but expect changes
before 1.0.
Install
Needs Node.js 24 or later. Git is needed only for Remote Loopfiles.
npm install -g loopfileAgent steps need a harness CLI, for example claude, installed and logged in.
Example
# manifest.yaml
formatVersion: 1
steps:
- id: write
kind: agent
harness: claude
prompt: |
Create a file named hello.txt in the workspace root. It holds one line: hello
Commit the file. Then run: loopfile result done
on:
done: check
- id: check
kind: command
run: |
grep -qx hello hello.txt
git ls-files --error-unmatch hello.txt > /dev/nullRun it from inside a Git repository:
loopfile path/to/loop-directory
loopfile status
git show loopfile/<runid>:hello.txtRun loopfile --help for all commands.
Platforms
Loopfile runs on Linux and macOS. On Windows, run it inside WSL. Native Windows is not supported.
Documentation
The docs ship with the package:
loopfile docs # list the topics
loopfile docs manifest # print one topicformat(The Loopfile format): source directory,manifest.yaml, thin and packed.loop, and upgrade.manifest(The v1 manifest): the fields of the manifest and the workflow model.runtime(How a run works): steps, routing, attempts, limits, the execution context, step commands, handoffs, inputs and the workspace.skill: an agent skill for writing loops. Install it with:mkdir -p ~/.claude/skills/loopfile loopfile docs skill > ~/.claude/skills/loopfile/SKILL.mdpatterns(Loop patterns): patterns that keep a loop running unattended, such as fix budgets, flaky checks and shared locks.skill: an agent skill for writing loops. Install it withloopfile docs skill > ~/.claude/skills/loopfile/SKILL.md.
For remote sources and trust, see Remote Loopfiles.
License
MIT
