AIF Runner
Turns an idle developer machine into a node of an AIF Runner Network. While you
are away, the node takes tasks from your team's AIF orchestrator and runs
AI-First Framework workflows headless with the Claude Code CLI: it writes automation
tests from BDD specs, fixes bugs of the sprint, and reviews merge requests. Each task
ends in one commit and one merge request for a person to review.
This extension needs an AIF orchestrator. It is the client of a self-hosted
service that your team runs. Without the orchestrator's address and a join token
it does nothing.
What it does
- Joins the network. Enter the orchestrator's address, a name for this machine
and the join token. The node then reports to the orchestrator every 30 seconds.
- Works only when the machine is free. A task is taken inside the schedule you
set (19:00 → 07:00 by default) and only after you have been away from the keyboard
and from Claude for a while (10 minutes by default).
- Runs a task step by step. Every task gets a git worktree of its own, next to
your checkout, so your working tree is not touched. The steps (
assess,
generate, run, review) are separate claude -p processes.
- Delivers through git. One commit and one merge request per repository that
changed, opened by
git push with the git credentials you already use. No GitLab
token is asked for or stored.
- Gives the machine back. When you start using Claude again, the task finishes
its current step and goes back to the queue.
- Asks when it must. A step that cannot go on without a decision asks a question
and waits for a person; open questions are answered from the panel.
Claude quota
A node that is on, idle and inside its schedule spends the Claude quota of the
seat signed in on this machine whenever the queue has a task for it. The switch in
the panel turns that off.
Requirements
- VS Code 1.106 or newer.
- A workspace of a product that uses the AI-First Framework 2.18.0 or newer
(
.agent/project-context.yaml with a project.id).
- The Claude Code CLI, signed in (
claude --version answers 2.1.290 or newer).
git that can fetch and push the product without asking for a password, and
node on the PATH.
- Windows:
git config --global core.longpaths true.
- A trusted workspace. The extension starts the
claude CLI in the workspace and
runs the workspace's own scripts, so it is disabled in Restricted Mode.
Getting started
- Install the extension. The AIF Runner panel opens in the secondary side bar
(on the right).
- Enter the orchestrator's address, a name for this machine and the join token,
then Join.
- Run AIF Runner: Check this machine from the Command Palette. It prints one
line per thing a task needs and ends with "This machine is ready." or the number
of problems to fix. It spends no Claude quota.
The panel
| Section |
Shows |
| State |
Ready, Standing by, Waiting, Working, Paused, Finishing, Offline, Locked or Off, with the switch that turns the node on and off |
| Task |
The steps of the running task with their results, turns and cost against the budget. Pause after step, Resume, Abort task, Open worktree, Log |
| Questions |
Open questions of the products on this node, with the options and the recommended one. Answer answers one |
| Queue |
The tasks this node could run, by priority. Pick runs one now |
| Recent |
The last five tasks on this machine, with a link to each merge request |
Commands
| Command |
What it does |
| AIF Runner: Open panel |
Shows the side panel |
| AIF Runner: Join the runner network (turn on) |
Registers this machine, or turns auto-claim on again |
| AIF Runner: Leave (turn off auto-claim) |
The node stays registered and stops taking tasks |
| AIF Runner: Pick a queued task to run now |
Lists what the queue has for this node and starts the chosen task |
| AIF Runner: Pause the running task after its current step |
The running step finishes; the next one waits |
| AIF Runner: Resume the paused task |
Goes on with the next step |
| AIF Runner: Abort the running task |
Stops the task and gives it back to the queue |
| AIF Runner: Show the task log |
Opens the log of the task |
| AIF Runner: Show status |
Node, schedule, idle thresholds, products found, connection |
| AIF Runner: Check this machine |
What a task needs and whether this machine has it |
| AIF Runner: Remove this node from this machine |
Forgets the node's token |
Settings
| Setting |
Default |
Meaning |
aifRunner.orchestratorUrl, aifRunner.nodeName |
set by Join |
Where the orchestrator is; this machine's name on tasks, commits and merge requests |
aifRunner.roles |
[] |
tester, dev, ba. Empty: the orchestrator decides |
aifRunner.window |
19:00 → 07:00, every day |
When the node may take tasks on its own. A task already running when the window closes runs to its end |
aifRunner.idle |
10 minutes without Claude, 10 without input |
How long you must be away before a task starts, and what a running task does when you come back: after-step, abort or continue |
aifRunner.testEnv |
dev |
Environment the run step tests against |
aifRunner.model |
empty |
Model for the runner's steps. Empty: the seat's default |
aifRunner.claudePath |
empty |
Path to the claude CLI when it is not found automatically |
aifRunner.autoUpdate |
true |
Install a newer version when the orchestrator offers one |
What leaves this machine
The extension talks only to the orchestrator you enter and, through git, to the
remotes of your repositories. The orchestrator receives the node's name, its state,
the products open in this window, basic facts about the machine, idle readings
(minutes since the last input and the last Claude session, never the input itself),
and the progress and results of tasks. Claude Code runs under your
own account, as it does when you use it yourself.
Remove
Run AIF Runner: Remove this node from this machine, then uninstall the extension.
Worktrees of tasks, if any are left, are in aif-runner/ next to the product's
folder and can be deleted.
| |