Agentic Label Engineering (ALE)
Typed task labels, an append-only board, and a zero-LLM watchdog for multi-agent coding work.
When several coding agents work from one plan, the weak point is the word "done". An agent can say it
finished while the tests fail, drift outside the files it was meant to touch, or stall without anyone
noticing. ALE moves those judgments out of the agents and into code:
- An orchestrator writes one label per task: who should do it, which files it may change, and the
2 to 5 shell commands that prove it is finished.
- Every claim, heartbeat and submission goes into an append-only event log. State is computed from
the log, never stored.
- Only
ale verify can mark a task accepted, and only after it runs the acceptance commands
itself. No agent can mark its own work done.
- A watchdog with no model in it flags stale claims, stuck tasks and overruns.
A visual explainer is published at https://yodem.github.io/agentic-label-engineering/
(source: docs/index.html).
PLAN.md ──bake──▶ labels ──init-run──▶ board (events.jsonl)
│
dispatch ─▶ claim ─▶ heartbeat ─▶ submit ─▶ ale verify ─┬─▶ accepted ─▶ integrate
└─▶ rejected ─▶ fix task
Status: pre-1.0. The executor protocol works with Claude Code, Pi and Codex. Interfaces may still change.
Install
Requirements: Python 3.9 or newer, git, and a POSIX system (macOS or Linux).
Install the ale CLI from GitHub, into a virtualenv or as a uv tool:
python3 -m venv ~/.venvs/ale && . ~/.venvs/ale/bin/activate
pip install git+https://github.com/yodem/agentic-label-engineering.git
ale --help
uv tool install git+https://github.com/yodem/agentic-label-engineering.git # alternative
ale --version prints the installed version.
The package bundles the whole plugin (agent catalog, hooks, launchers), so it works outside a checkout,
and workers it starts load the same hooks as the Claude Code plugin.
To hack on ALE itself, install from a clone with pip install -e . (see CONTRIBUTING.md).
Claude Code plugin
The plugin adds the executor hooks, the /label-layer and /ale:board skills, and the /ale-board
status Mod. It calls the ale CLI, so install that first.
/plugin marketplace add yodem/agentic-label-engineering
/plugin install ale@agentic-label-engineering
The /ale-board Mod also needs CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1; without it the rest of the
plugin works and the Mod stays silent. See mod/README.md.
Pi and Codex
Quick start: one task by hand, no agent
This five-minute walkthrough plays both roles, orchestrator and executor, so you can watch the
protocol refuse a false "done". Run it with ale on your PATH (see Install).
1. A throwaway project with a two-task plan. .ale/ holds run state and stays out of git.
mkdir /tmp/ale-demo && cd /tmp/ale-demo
git init -q && printf '.ale/\n' > .gitignore && git add .gitignore && git commit -qm init
ale setup
cat > PLAN.md <<'EOF'
# Plan
## Task 1: Add a greeting module
**Files:** Create: `src/greet.py`
Write `greet(name)` returning `Hello, <name>!`.
Run: `test -f src/greet.py`
Run: `python3 -c "import sys; sys.path.insert(0, 'src'); from greet import greet; assert greet('Ada') == 'Hello, Ada!'"`
## Task 2: Document the greeting
**Files:** Modify: `README.md`
Depends on Task 1.
Run: `test -f README.md`
Run: `grep -q greet README.md`
EOF
2. Bake labels. ALE reads the plan literally: Files: lines become allowed paths, Run: lines
become acceptance checks, and Depends on Task N becomes a dependency. It writes an ale-label
block under each task heading and a PLAN.md.ale-provenance.json record, then exits 1 and lists
the gaps. That's expected.
ale plan bake PLAN.md --write # exit 1: gaps listed
T1: lane
T1: lane_reason
T2: lane
T2: lane_reason
Lane (inline, workflow or pane) and the reason for it are always the planner's call; no
classifier guesses them. Fill them in, check the plan, and commit it:
sed -i.bak 's/"lane":null/"lane":"inline"/; s/"lane_reason": null/"lane_reason": "Small and watched, so inline."/' PLAN.md && rm PLAN.md.bak
ale plan bake PLAN.md
git add -A && git commit -qm plan # PLAN.md and its .ale-provenance.json
3. Start the run and dispatch. init-run freezes the labels. ready lists tasks whose
dependencies are met. dispatch --no-exec creates a git worktree for T1 without launching an agent.
It prints a spawn request (the prompt an agent would get), saved here to a file.