opencode lmctl Lead skill

Run an lmctl team from opencode using the provider-independent command contract.

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.

Harness integration

Consult the installed harness documentation before using background execution or job notifications. This page does not promise a particular fork’s shell/job tools or automatic continuation. If a notification is available, inspect the completed result and choose the next action; it is not an instruction to resend the task.

See durable memory and the Lead skill.