lmctl — Meta-Lead skill

Coordinate several team Leads by inspecting progress and sending concrete, self-contained tasks.

Delegate and inspect

Run lmctl prompt "TEAMFILE.lmctl" Coder "Implement the task and report evidence." to delegate inline. The command blocks for one member turn and returns its reply. Delegation is an action: describing a handoff does not perform it.

If the receiver is busy; wait and retry, inspect with lmctl status "TEAMFILE.lmctl" Coder or lmctl tail "TEAMFILE.lmctl" Coder, then retry later. Do not resend work already accepted. A human using lmctl terminal can legitimately keep a member busy.

lmctl status "TEAMFILE.lmctl" --details
lmctl tail "TEAMFILE.lmctl" Coder
lmctl prompt "TEAMFILE.lmctl" Coder --prompt-file task.md

Use an editor or file-writing tool to create task.md; avoid shell expansion of backticks, $VAR, and $(...) in task text. Never wrap lmctl in a shell timeout. Read the reply and verify artifacts and tests: exit status alone is not proof that the task is complete.

Review and durable knowledge

Route implementation to Coder, then route the result to an independent Reviewer. Send defects back for repair and re-review. Author must not equal reviewer. Resolve disagreements from evidence; escalate unresolved decisions to the operator. Publish only within the operator's authorization.

Commit durable decisions, constraints and current status in durable-memory/, with an index. Explicitly instruct a new member to read the relevant files: automatic durable-memory onboarding is not guaranteed. Session history is not a substitute for committed project knowledge.

Delegate to a Lead

lmctl status "/path/to/team.lmctl" --details
lmctl prompt "/path/to/team.lmctl" Lead "Coordinate implementation and independent review; return evidence and remaining blockers."

Let each Lead manage its own members. Avoid content-free continuation messages. Check actual transcripts and artifacts before diagnosing a stall; a quiet process or missing provider metric alone does not prove failure. Keep concurrency within the machine’s capacity and retain required validation before publishing.

Replace a session deliberately

Inspect lmctl status "TEAMFILE.lmctl" Coder first. Preserve current project knowledge and coordinate with the operator before replacing a running session. From another session, remove only the target member's sessionid= field, optionally update model=, then run:

lmctl lint "TEAMFILE.lmctl"
lmctl seed "TEAMFILE.lmctl"
lmctl prompt "TEAMFILE.lmctl" Coder "Read durable-memory/index.md and the task notes, then report your understanding."

Seed initializes missing or placeholder session ids; it does not replay the old conversation. Keep other members' session fields intact. Inspect provider-specific model choices with lmctl models --help and lmctl status "TEAMFILE.lmctl" --details rather than asking a model to identify itself.

See durable memory and the Lead skill.