/sunstack:spawnfrom sunstack
Start a Claude Code or Codex session as a Sunstack agent, or a free session, beside this pane or in a new tmux window; list this project's live sessions; name, dismiss or kill one. Use for "sunstack spawn", "sunstack name", "rename this session", "give this session a name", "/sunstack:spawn", "start a session for builder.alice", "sunstack team --sessions", "close the session for builder.alice", or a message waiting for an agent with no live session.
Ships in sunstack. 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.
None: SKILL.md is the whole skill.
Command: sunstack spawn (also team --sessions, name, dismiss, kill). Closing everything idle at once is the clean skill. Skill: /sunstack:spawn in Claude Code, $sunstack:spawn in Codex.
sunstack/PROTOCOL.md in this folder or above), say so in one line and stop; the health skill sets one up.pm agent; none: ask the user), as <team>/<id> or <host>:<team>/<id>,
and stop. Hiring, firing, spawning, dismissing or directing in a different team yourself
needs the user's explicit yes first.sunstack command on its own, with nothing chained after it.sunstack issue "<what happened, at which step>", never message or brief text. Failed commands are already recorded.spawn needs tmux installed. Inside tmux it opens beside this pane by default; outside tmux
it always uses the team's home. Without tmux
(no_tmux), give the user the steps to start it themselves: open a terminal in the project,
run claude or codex, then /sunstack:as <id> (Codex: $sunstack:as <id>).sunstack team --sessions
Lists every live session: name (<id>_<task>), tool, host, tmux place, and the command to
resume it. sunstack team shows the same per agent.
Choose the agent (rank as in the as skill's "Pick the agent"), the tool (default: the
agent's tool: in its AGENT.md, else the one this session runs), a task label (up to 20 characters), and a one-line first
instruction (no single quotes), for example "handle message " or "work on KR2".
Choose where: by default a pane beside this one, or a new window in this tmux session when this pane is too small to split. Offer another place only with a reason, and say it in the plan:
--place window, a new window in this tmux session, when the user asked for one;--place team, the team's home (a tmux session ss-<team>-<id> with one window per
agent), when the user wants it out of sight; sunstack attach <session> finds it later.
If the new session is for a piece of work with a result, write a task brief (the send
skill's template: Goal, Scope, Done when, Verify, Report) to a file and pass it with
--brief; the session finds it in its inbox as its first task.
When another live session of the same agent edits the same git checkout, decide from the
tasks: if their files may overlap, put the new session's work in its own git worktree and
say so in the brief's Scope (the folder and branch). Sessions that only read, or touch
separate files, share the checkout.Show the plan (agent, tool, task, first instruction, brief, place) and ask: start / edit / cancel.
On yes:
sunstack spawn "<id>" --tool <claude|codex> --task "<task>" --note "<first instruction>"
Add --place window or --place team for another place the user chose in the plan, and then
add --yes, which says the user asked for that place: without it the CLI refuses another
place from an agent session. Add --brief "<brief file>" for a task brief. It opens a pane beside this one (or the place asked for) in the project root,
prints where, claims the agent for the new session, and starts the CLI
with a first prompt that takes on the identity. The new session may stop at its first-run
prompts (sign-in, Codex's hook review, Claude Code's folder trust check); tell the user which
pane to look at.
sunstack: answered ... line: a trust screen was answered as the user chose
(sunstack prompts); tell the user in one line. A sunstack: waiting at ... line names
the pane and the screen; tell the user to answer it there.
When it suggests sunstack prompts, tell the user once, plainly: for Codex, "Trust all"
trusts every current hook of every plugin, not only Sunstack's, and with on it is picked
in every Codex pane in tmux that shows the review, also ones Sunstack did not start
(the hub connector looks every few seconds; sunstack prompts sweep looks now and lists
the panes that wait); for Claude, it answers
"Yes, I trust this folder" only in a team folder, in sessions Sunstack starts. To choose, the user runs
sunstack prompts --codex-hooks <on|off> or --claude-folders <on|off> in their own
terminal (on: answer it from now on, off: never); it is refused from this session.warning: line means the CLI was not seen running a few seconds after launch: it may
be at a login or trust prompt, or have exited. Tell the user which pane to look at.task_taken: another session of that agent already has this task label; pick
another.team_full: the team already has max_sessions live sessions (sunstack/TEAM,
default 6); the error lists them with their doing lines. Offer to close the idle ones first
(sunstack clean, the clean skill), to finish one (dismiss) or
to start it anyway; only on the user's yes rerun with --over-cap. A lead handing out
many tasks starts the next session when one finishes, not all at once.missing_brief: the brief lacks the labels named; fill them in. Nothing was opened.halted: the team is halted (the error gives the reason). Tell the user; only
they end it with sunstack halt --off.home_taken: a tmux session with the home's name exists but sunstack did not make
it; ask the user to rename or close it, or use the default place or --place window.no_tmux: tmux is not installed; give the manual steps above.To give it work, send a message (send skill) to the new session name.
A plain Claude or Codex session that holds no agent, for work outside the team's roles:
sunstack spawn --free --tool <claude|codex> [--name <label>] [--title "<title>"] [--note "<first prompt>"] [--dir <folder> | --beside <session>]
It opens where an agent session would (beside this pane by default; --place window or
--place team as above), working in the team root, in --dir (relative to the team root),
or in the folder of the session named by --beside. Started from a tmux server other than the
default one, it always opens in the team's home, where free sessions are found and counted. Its label (--name, else <tool>-<n>)
names it in the org view, in sunstack attach and in sunstack kill. It counts toward
max_sessions like any session. Confirm with the user first: it starts a paid session.
sunstack name "<name>" # this session
sunstack name "<session>" "<name>" # another one: its label or session ID
It works for any session in a tmux pane, in a team or not, also one Sunstack did not start.
Pick a short name for what the session works on. An agent session's name is <id>_<label>,
so the name is its task label (up to 20 characters) and only that session changes it; any
other session takes a label of up to 20 characters. Lowercase letters, digits and -. The
org view, sunstack attach and sunstack kill use the new name. The title (tmux pane,
Claude Code, Codex) says the project: <project>/<id>:<task> for an agent session,
<project>/<label> for any other session. Only when the user asks for a title of their own,
pass it with --title "<title>" (on spawn --free or sunstack name); it is kept as given. The
title Claude Code or Codex shows is the user's: when the command prints a do: line
(/rename <title>), pass it on. A session Sunstack starts is titled from the start.
sunstack dismiss "<id or id_task>"
This sends a shutdown message (and a nudge). The session saves and releases; it is done
when sunstack team --sessions no longer lists it. Prefer this: nothing is lost.
Only when the user asks for it, or a session is stuck and the user agrees. It closes that one session's tmux pane at once; unsaved work in it is lost.
Name the exact session (sunstack team --sessions); if the agent has several, ask which.
Tell the user what will close and that unsaved work is lost; ask: close / cancel.
On yes:
sunstack kill "<id_task>" --yes
Claude Code and Codex also ask before running it. The claim is dropped and messages the session had taken go back to the inbox.
no_pane: the session is not in a tmux pane sunstack knows; the user closes it.not_running: the pane no longer runs that CLI, so it is left alone; tell the user.missing_arguments: several sessions; ask which.self: that is this session's own pane; the user closes it.From a terminal, the user can run sunstack kill <id_task> directly; it asks for
confirmation.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lucklyric/sunstack --plugin sunstack21 skills in this plugin
/asTake on a Sunstack agent identity (for example builder.alice) in this project, alone or alongside sessions already working as it, or recover the identity this session already holds. Use for "sunstack as", "/sunstack:as", "take on the builder agent", "which Sunstack agent should I be", "sunstack whoami", "which agent am I", or after compaction or /clear lost the session state. Only in projects with a Sunstack team (sunstack/PROTOCOL.md)./boardShow and align the Sunstack team's objectives and key results across the user and every agent, with dependencies, stale or overdue entries and unfollowed directives. Use for "sunstack board", "/sunstack:board", "the team's OKRs", "the team's dependencies", "align the team". Not the ranked to-do list (next skill)./checkHandle the Sunstack messages waiting for this session: read, take, act, reply and ack. Use when a prompt starts with "/sunstack:check" or "$sunstack:check", when a Sunstack hook says messages wait, or for "sunstack check". Only when Sunstack is installed./cleanClose the Sunstack team's unused sessions and leftover panes in one go (agent and free sessions at their prompt over 24h with nothing unfinished, spawned sessions that released their agent, panes whose Claude or Codex exited, and claims whose pane is closed), after one confirmation. Use for "sunstack clean", "/sunstack:clean", "clean up", "clean up sessions", "clean up panes", "close idle sessions", "close unused sessions", "close finished sessions", "close exited panes", "too many sessions", "sunstack kill --idle". Closing one named session is the spawn skill. Only in projects with a Sunstack team (sunstack/PROTOCOL.md)./directGive the Sunstack team, a role or an agent a dated directive from the user (a priority, focus or constraint), or pause the team (halt). Use for "sunstack direct", "/sunstack:direct", "from now on every agent should ...", "pause the team". One piece of work for one agent goes through the send skill./driveHand a prompt to another Claude Code or Codex session in a tmux pane, wait for its turn to end and read its reply: a co-worker session beside this one that the user can watch. Works in any session, with or without a Sunstack team. Use whenever the user names Codex as the one to do something, whatever the verb ("use codex", "using codex", "ask codex", "run codex", "call codex", "have codex review this", "let codex fix it", "tell codex", "get codex to", "delegate this to codex", "with codex", "via codex", "codex cli", a prompt that starts with "codex," or a bare "codex review my changes", "have codex review this PR, branch or diff", "continue with codex", "resume the codex session"), asks to hand work to the OpenAI or GPT reasoning model ("have GPT review this", "ask the high-reasoning model"), or asks for a second Claude Code as a co-worker ("spawn a claude pane", "a second claude", "another claude for this", "a claude worker beside you", "drive claude in a pane", "have claude review it in its pane", a claude implementer with a codex reviewer). Also for "sunstack drive", "/sunstack:drive", "drive a session", "send a prompt to that pane and wait", sending prompts to several co-worker panes in parallel, and telling whether a driven session is idle, busy or blocked. Not for a session that works as a Sunstack agent (that is the send skill), not when Codex or Claude is only the topic, and not when "claude" means this session itself.