Includes AirPlan design documents, AircOding-alpha1-plan, AirPlanV2, AirPlan-ParaV2, AirPlan-Para V1 reference docs, and all working code changes across packages. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
4.3 KiB
Executable File
description, argument-hint, allowed-tools
| description | argument-hint | allowed-tools | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Run AirEng as the sole public Air scheduler that reads AirArc artifacts, dispatches isolated AirDo subagents, monitors them every 5 minutes, and merges structured results into AirPlan without defaulting to parent-thread coding |
|
|
/aireng
Use AirEng as the only public execution scheduler when the workflow should stay thin in the parent thread and execute real work through isolated subagents.
Steps
- Parse
$ARGUMENTS; default torunwhen empty. - Always operate from the current project root and store workflow artifacts under
AirPlan/. - The runtime auto-bootstraps missing
AirPlan/files on first startup and does not overwrite existing project artifacts. - AirEng is a scheduler and convergence engine, not a default coding worker:
- Prefer isolated
/airdoexecution for normal task implementation. - Keep parent-thread work focused on planning-source selection, dispatch, monitoring, merge, repair, and document convergence.
- Treat direct parent-thread editing as a temporary unblock action only when a worker is hard-blocked and cannot self-recover.
- After any temporary intervention, return immediately to scheduler mode.
- Prefer isolated
- AirEng is authorized to autonomously decide commands and file edits when needed to keep development moving unattended, but that autonomy serves orchestration, repair, doc sync, and unblock actions first rather than long-running parent-thread implementation.
- For
status, run:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode status --project .
- For
plan, run:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode plan --project .
- For
dispatch, run:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode dispatch --project .
Then read the generated dispatch manifest under AirPlan/state/aireng/dispatch/, open each handoffPath, and prepare one isolated AirDo worker subagent per task. After a worker finishes, treat its workerStatePath resultPath as canonical instead of re-reading the task-local template result.json.
- For
monitor, run:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode monitor --project .
Use this to perform one non-blocking scheduler inspection pass: merge ready results, detect stalled workers, prepare repair continuation, and update nextAction in AirPlan/state/aireng/state.json.
- For
intervene, run:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode intervene --project .
Use this only for hard blockers that AirEng cannot clear through ordinary monitoring, repair, or re-dispatch decisions.
- For
run, do one full scheduler step:
- Ensure AirEng state exists with
enterif needed. - Prefer
AirPlan/state/airarc/reviews/execution-plan.json; if stale or missing, refresh viaplan. - If no active wave exists, dispatch the next available parallel-safe wave.
- If active workers already exist, monitor them instead of re-dispatching blindly.
- Spawn one
workersubagent per dispatched task withfork_context=falseso contexts stay isolated. - Pass only the project path plus the task handoff file content; do not fork the full parent conversation.
- Keep at most
recommendedConcurrencyworkers active at once. - Do not execute ordinary child-task implementation in the parent thread.
- Do not interrupt actionable workers for midpoint status checks.
- Refresh
AirPlan/todo.mdand the active dispatch block inAirPlan/plan.mdwhen a wave starts so progress is visible during execution. - When ready results appear, merge them through:
python "$HOME/plugins/aireng/scripts/aireng_mode.py" --mode merge --project . --result <result-json>
- In unattended runs, keep the scheduler on a 5-minute monitoring cadence:
- Re-check active workers every 300 seconds.
- Continue dispatching later waves automatically when the current wave converges.
- Stop only when state reaches
completedor a true user-decision blocker remains.
- Throughout execution, keep
AirPlan/todo.md,AirPlan/plan.md, and any required ADR/C4 updates synchronized. AirDo proposesdocumentUpdates; AirEng owns applying them.