adaptogen-run
You are in the adaptogen-run state of the adaptogen DAG. Entered from
adaptogen-orient (existing skill, first pass), from
adaptogen-build-new (freshly drafted skill's first real exercise),
from adaptogen-critique (looping back for a fresh baseline after an
edit), or from adaptogen-commit-confirm (confirming re-run, or a
regression after git revert). This skill is self-contained regardless
of which of those brought you here.
What must hold here, always
- Never dispatch this run inline in your own context. Use the Agent
tool with a fully self-contained prompt. The dispatched agent inherits
nothing from you -- no conversation history, no files you've already
read, nothing. Anything it needs must be pasted into the prompt
directly: the absolute path to the target, the concrete task, and (if
looping back with a specific prior finding in mind) a task built to
actually exercise that finding's code path.
- The one exception: leaf-agent mode. If you are yourself a subagent
and cannot spawn a nested Agent, this collapses onto you directly --
run the target's procedure in your own context instead of dispatching.
Check which mode you're in before doing anything else in this state;
it changes every remaining instruction here from "dispatch" to "do
directly."
- Never simulate. Whoever executes the target's procedure -- a
dispatched agent, or you in leaf-agent mode -- must actually run it:
actually call the tools the target's own text says to call, and report
exactly what happened, including literal file paths, literal command
output, literal edits made if the target itself edits things. A report
that reads as plausible narrative without cited tool output is not a
real run.
- The task must carry at least one concrete anchor: a real file path it
will read, a real command it will run, a real prior state it will
encounter. Scan the target for any
if <condition> / file-existence
branch, or (if the target is itself a DAG of sibling skills) any
branch named in its own transition conditions, and seed the task so
the run actually hits one -- a task with no concrete anchor produces a
happy-path run that surfaces nothing for adaptogen-critique to work
with.
Do this
- Build the task: absolute path to the target's entry
SKILL.md (which
itself may route into sibling state-skills -- tell whoever runs it to
follow the target's own routing, the same way this DAG expects to be
followed), the concrete task with its anchor, and an explicit
instruction to report literally what happened, not a summary of
intent.
- Dispatch via the Agent tool (or execute directly, in leaf-agent mode).
Wait for the full report.
- Capture the report verbatim -- you will paste it whole into
adaptogen-critique, not a paraphrase of it.
Transition
- Report captured -> dispatch
Skill(skill="adaptogen-critique") now.
State explicitly: the target's resolved absolute path, the concrete
task given, the dispatched (or self-run) report verbatim, and whether
you are in leaf-agent mode (adaptogen-critique's own text branches
on this). Skills share no context automatically -- name all four
facts directly in that dispatch.
- The caller who invoked this pass explicitly scoped it to one bounded,
reportable pass, and this is that bound -> report this run's own
findings plainly and stop (
STOP, no further dispatch). This overrides
the default transition to adaptogen-critique only when the caller's
stated bound is reached here, not by default.
1---2name: adaptogen-run3description: Dispatch a real, isolated subagent run of a target skill against a concrete, anchored task and capture its verbatim report -- never simulated. Central run state of the adaptogen DAG, entered from orient, build-new, critique (loop-back), or commit-confirm (regression). Use when adaptogen's router sends you here to actually exercise a target skill.4---56# adaptogen-run78You are in the `adaptogen-run` state of the adaptogen DAG. Entered from9`adaptogen-orient` (existing skill, first pass), from10`adaptogen-build-new` (freshly drafted skill's first real exercise),11from `adaptogen-critique` (looping back for a fresh baseline after an12edit), or from `adaptogen-commit-confirm` (confirming re-run, or a13regression after `git revert`). This skill is self-contained regardless14of which of those brought you here.1516## What must hold here, always1718- **Never dispatch this run inline in your own context.** Use the Agent19 tool with a fully self-contained prompt. The dispatched agent inherits20 nothing from you -- no conversation history, no files you've already21 read, nothing. Anything it needs must be pasted into the prompt22 directly: the absolute path to the target, the concrete task, and (if23 looping back with a specific prior finding in mind) a task built to24 actually exercise that finding's code path.25- **The one exception: leaf-agent mode.** If you are yourself a subagent26 and cannot spawn a nested Agent, this collapses onto you directly --27 run the target's procedure in your own context instead of dispatching.28 Check which mode you're in before doing anything else in this state;29 it changes every remaining instruction here from "dispatch" to "do30 directly."31- **Never simulate.** Whoever executes the target's procedure -- a32 dispatched agent, or you in leaf-agent mode -- must actually run it:33 actually call the tools the target's own text says to call, and report34 exactly what happened, including literal file paths, literal command35 output, literal edits made if the target itself edits things. A report36 that reads as plausible narrative without cited tool output is not a37 real run.38- The task must carry at least one concrete anchor: a real file path it39 will read, a real command it will run, a real prior state it will40 encounter. Scan the target for any `if <condition>` / file-existence41 branch, or (if the target is itself a DAG of sibling skills) any42 branch named in its own transition conditions, and seed the task so43 the run actually hits one -- a task with no concrete anchor produces a44 happy-path run that surfaces nothing for `adaptogen-critique` to work45 with.4647## Do this48491. Build the task: absolute path to the target's entry `SKILL.md` (which50 itself may route into sibling state-skills -- tell whoever runs it to51 follow the target's own routing, the same way this DAG expects to be52 followed), the concrete task with its anchor, and an explicit53 instruction to report literally what happened, not a summary of54 intent.552. Dispatch via the Agent tool (or execute directly, in leaf-agent mode).56 Wait for the full report.573. Capture the report verbatim -- you will paste it whole into58 `adaptogen-critique`, not a paraphrase of it.5960## Transition6162- Report captured -> dispatch `Skill(skill="adaptogen-critique")` now.63 State explicitly: the target's resolved absolute path, the concrete64 task given, the dispatched (or self-run) report verbatim, and whether65 you are in leaf-agent mode (`adaptogen-critique`'s own text branches66 on this). Skills share no context automatically -- name all four67 facts directly in that dispatch.68- The caller who invoked this pass explicitly scoped it to one bounded,69 reportable pass, and this is that bound -> report this run's own70 findings plainly and stop (`STOP`, no further dispatch). This overrides71 the default transition to `adaptogen-critique` only when the caller's72 stated bound is reached here, not by default.