/mycelium-extra:iteratefrom mycelium-extra
Run a tree of experiments on one fixed command, one git branch per node, until a stop rule you chose is met. Use for try, measure, keep-or-drop loops on an analysis; `--mode method` adds a frozen evaluator for benchmark work. Not for one planned run.
Ships in mycelium-extra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Try a variant, measure it, keep or drop it, repeat, without losing track. Each variant is a node in a tree, kept in plans/tree.jsonl. Node runs go through the plan gate. The winner is promoted through grill and checked by verify.
Ideas from OpenResearch (MIT, alphaXiv). The tree state is this plugin's own; no OpenResearch code is used.
The run command, the readout, the noise floor, the repair cap and the stop rule each change what the loop concludes. Each is an impactful choice: put it in a grill plan as its own user row and wait for the user to approve. Never fill one in yourself. See references/loop-rules.md for the sourced values to show as options.
Then write the root node from the approved rows:
<skill-dir>/../../hooks/mxpy - --analysis analysis/<name> add <slug> --run-cmd "<cmd>" --readout "<name>" --replicates <N> --margin "<the row's words>" --repair-cap <N> --stop-after <N> --stop-rule "<the row's words>" < <skill-dir>/scripts/tree.py
Done when tree.py status shows all five rows and no not set. A stop rule of another shape (a metric target, a time budget) goes in --stop-rule with no --stop-after; tree.py cannot judge it, so stop-check exits 3 and says to ask the user. A missing row makes stop-check exit 3 and name the row to ask for. Once the user confirms a missing row, or a changed one such as a higher repair cap, record it with tree.py plan --<row> ....
One node is one git branch exp/<slug> in the analysis repo. Record it with tree.py add <slug> --parent <parent> --question "<one line>", then make the branch yourself: git switch -c exp/<slug> exp/<parent> (the root's branch exp/<root> comes from the starting commit). tree.py never touches git. Children inherit code and the run command. Nodes differ only in committed code or config, never in env vars or flags. Done when tree.py status lists the node and git branch shows exp/<slug>. The loop guard checks the frozen branch by that name. Idea from OpenResearch (MIT, alphaXiv): nodes as branches with one fixed command.
Commit the change on the node's branch, then run the fixed command as an explore run (allow explore <plan hash>). The gate pins the run command and data inputs; it does not pin node code, and pin_scripts re-pins an edited script with a notice. Record the run with tree.py run <slug> --receipt <N>, where N is the line of .mycelium-extra/receipts.jsonl the run wrote. With no gate, use --exit <code>. Done when tree.py status shows the run and its state: ran, failed, or unknown when the receipt has no integer exit status (ask the user how it ended; do not repair it).
Status is not a result. Open the log and check that it names the variant and its config, then quote the lines that hold the readout. Record it: tree.py run takes --readout-value and --log. Each turn that ran nodes ends with tree.py summary, one line per node, and you confirm the readout line matches the node you ran. Idea from OpenResearch (MIT, alphaXiv): read results from logs, not status.
Every conclusion cites a saved figure you opened (/mycelium-extra:plot-first). A conclusion with none is written unsupported: no inspected figure.
tree.py answer <slug> --outcome better|same|worse --summary "<line>" --figure <path>. This freezes the node; do not commit on its branch again.tree.py repair <slug> --note "<what>", then run again. Each repair needs a run after it. At the cap the command refuses: ask the user to raise the cap, drop the node or stop.A new impactful choice that surfaces mid-loop (a filter, a threshold, a dropped sample) is not a node. Stop and ask.
Run tree.py stop-check before ending a turn. Exit 0: the stop rule is met or a stop is recorded. Exit 3: not yet, and the message says why. Exit 2: no tree. The user can end the loop at any time: tree.py stop --reason user.
Promote the winner with grill's promote-explore path: a full plan, a re-run under approval, then verify. Explore results are not reportable.
For a method built against a benchmark, add the root with --mode method. Read references/method-mode.md first. It swaps the stop rule for an iteration floor and adds a sealed test split row and four steps.
tree.py freeze-evaluator --file <path> ... writes SHA-256 hashes of the card and those files. check-evaluator compares them. No node runs before the freeze, and a run or an answer is refused while a hashed file differs.--kind baseline and one --kind sanity (constant output, shuffled labels or no signal). A candidate counts toward the floor only after both have run.user row. tree.py stop-check exits 3 until that many candidates are answered. Only the user ends the loop sooner.user row), run them, then tree.py arena A B --winner A. A rubric set after the runs is refused. Idea from pstack's arena (MIT, cursor/plugins).Ideas from tusoskill, rewritten here with no copied code or text. If the repo also holds a state/state.json from the tusoskill skill, the loop guard runs that skill's own stop-check at turn end. See the loop guard below.
"loops": "off" | "warn" | "block" in .mycelium-extra/gate.json (default off) turns on hooks/loop_guard.py. It works with the gate on or off. It refuses (block) or notes (warn) a commit-making git call (commit, merge, cherry-pick, revert, rebase, am, pull, or an alias) on a frozen branch, and the fixed command run behind an env var other than display and device ones. At turn end it blocks once per tree state while stop-check exits 3, and when a hashed evaluator file changed. A Write, Edit, MultiEdit, NotebookEdit or apply_patch call on a hashed evaluator file is refused (block) or noted (warn). With a tusoskill state/state.json in the repo, the turn-end check also runs that skill's biomni_method_state.py stop-check and blocks while it exits 3. It stays silent when the script is absent. Ask the user whether to stop; record tree.py stop --reason user only when the user says so. The user can also set "loops": "warn". For the tusoskill bridge the message names record-blocker --kind user, which you run only when the user says to stop.
plans/tree.jsonl only through tree.py. Never edit a line.freeze-evaluator --refreeze --note.glossary's ITERATIONS.md is for loops with no metric; this tree is for loops with one.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mdmanurung/mycelium-extra --plugin mycelium-extra35 skills in this plugin
/analysis-mapChart a research program too big for one session as a map of decision tickets, then resolve them one at a time. Plans decisions; runs no analysis./analysis-reportFill the Quarto report new-analysis scaffolds in reports/ after a run. Narrative, quoted script excerpts, a step diagram and inspected figures in Overview, Methods, Results and Reproducibility tabs./ask-extraAsk which Mycelium Extra skill fits your situation. Names one to three skills to type and why; starts none of them.Other plugins' skills for the same job