/cave-teams:cave-teams-learnerfrom cave-teams
The testing machine for cave-teams — force every topology to actually RUN with real LLM agents and read the interactions (message files + histories), not pass/fail flags. Use to verify a topology works, to regression-check the library, or to see a leader-driven / world topology execute end to end. Triggers: "test the topologies", "run every topology", "verify cave-teams", "does this topology actually run", "cave-teams learner", "force the agents to run".
Ships in cave-teams. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The rule this skill enforces (learned the hard way): the result of a test is not the test. The test is forcing the actions onto a real LLM and reading every interaction. Never conclude a topology "works" or "wanders" from a status flag or a store snapshot — read the message files and the agent transcripts first. (A tooled worker mid-task looks identical to a stuck one until you read its history.)
This skill traverses the cave-teams curriculum (curriculum/cave-teams.manifest.json) and, for each
topology, RUNS it with real agents, then tallies the actual interactions. It is the systematic
version of ad-hoc probing — the powerset-agent pattern (see garage-lab/POWERSET-PRINCIPLES.md).
tools/learner.py — the leader-driven plane. Runs each topology with an automated LLM
leader (llm_leader) or a coded leader (a leader_fn), reads the message files + the
execution stream (dispatch / finish + still_running), the guardrail blocks, and the artifacts.
Nodes: sequential, parallel (broadcast+reap), branch (leader routing), loop_raw (coded
verdict-reading leader), loop (the llm-leader loop that exposes the pointer-not-payload finding).tools/worlds_test.py — the world features on tooled agents: blackboard, season,
evolve (deterministic). Reads the resulting arena/season state.tools/worlds_features2.py — npc (call_npc → NPC → inventory) and nested_worlds
(world_as_agent). Reads the outer board.# env: a MiniMax key (env var ONLY — never write it to a file or commit it), a heaven data dir,
# and cave-teams on the path.
MINIMAX_API_KEY=<key> HEAVEN_DATA_DIR=/tmp/heaven-data PYTHONPATH=/path/to/cave-teams \
python tools/learner.py --only sequential # one node
MINIMAX_API_KEY=<key> HEAVEN_DATA_DIR=/tmp/heaven-data PYTHONPATH=/path/to/cave-teams \
python tools/learner.py # all leader-driven nodes
MINIMAX_API_KEY=<key> HEAVEN_DATA_DIR=/tmp/heaven-data PYTHONPATH=/path/to/cave-teams \
python tools/worlds_test.py # blackboard · season · evolve
Each writes a results JSON and prints the actual interactions. After a run, read the printed
execution stream + artifacts (and, for a leader-driven run, team_dir/sessions/session/messages/*)
to confirm the topology behaved — that reading IS the verification.
$HEAVEN_DATA_DIR/agents/<name>/memories/histories/…. A worker doing real multi-step work looks
stuck from the outside; read its turns before calling it broken.os._exit(0)): heaven leaves non-daemon threads alive, so a plain
return HANGS the process long past the work finishing (looks "stuck", isn't).MiniMaxRuntime(tools=None) → BashTool + NetworkEditTool (a real coding
agent). tools=[] is an explicit strip (pure chat) — only for topology-plumbing tests.cave-teams-volume (the curriculum) · curriculum/TOPOLOGY-DIAGRAMS.md (every topology diagrammed +
its receipt) · cave-run-team / cave-leader / cave-messages (the leader-driven plane it exercises).
Part of the cave-teams plugin.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sancovp/cave-teams --plugin cave-teams21 skills in this plugin
/caveDrive the whole cave-teams library from one function, as DATA — build/run any team from a spec in any sequence, save a team to your proven library, reuse a proven team anywhere, and discover teams across projects. Use when you want to serialize a team, run a team from JSON/dict, save+reuse a proven team across repos ("golden"), or have a higher system / global app drive cave-teams. NOT how you normally program (use the cave-teams DSL for that). Triggers: "cave()", "metacontrol", "run from a spec", "team as data", "golden team", "reuse a proven team", "scan for .cave", "global cave"./cave-blackboardN agents read and write a shared state over rounds, with a mutator that folds each contribution in and an optional adjudicator (stigmergy arena). Use for agents collaborating on a shared board, a market, a workspace they all see. `blackboard()`./cave-branchRun different agents depending on a condition (guarded choice / router). Use for 'if X do this else that', routing, triage, picking a path by the state. `choice()` / `router()`./cave-conditionsProgram WHEN each agent may be messaged — conditions on messages, the GUARDRAILS of a leader-driven team run. Use to gate agents on runtime state: after these two respond, only when a flag holds, any predicate over the message log. THIS is what makes cave-teams programmable where Claude Code Teams' flow is fixed./cave-dagRun agents on a dependency graph — each fires when its inputs are ready (the general scheduler; sequential and parallel are its limits). Use for 'merge after frontend AND backend', diamond/fan-in dependencies, partial orders. `dag()`./cave-dovetailHand off specific named data from one agent to the next, typed (load files, validate expected outputs, map outputs→inputs). Use when step B needs particular named inputs produced by step A, not just the raw text. `dovetail()`.