agentleFS
almogdepazalmogdepaz/wolfpack/skills/wolfpack-tailnet-control/SKILL.md

wolfpack-tailnet-control

Skill52 starsChanged 3 months agoMITView on GitHub

Create top-level Wolfpack sessions, spawn child agents, and inspect or control local/Tailscale sessions through the canonical CLI.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the canonical CLI. Do not discover or reconstruct browser/private HTTP flows.

    line 8
  2. Distinctive:

    Prefer one cohesive implementation handoff per approved PR or phase, not one per issue, commit, or checkpoint.

    line 50
  3. Very specific:

    Treat session selectors as opaque handles.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Wolfpack Session Control

Use the canonical CLI. Do not discover or reconstruct browser/private HTTP flows. Wolfpack uses its ordinary global API auth policy and adds no inter-session authorization layer.

Fast path

A top-level project session:

wolfpack session create <project> --harness <pi|claude|codex|gemini|cursor> --prompt '<instruction>' --json

A manual or interactive child of the current agent (same harness by default; startup prompt, outside the task contract; delegated work uses the task-worker path below):

# Pi child. Add the role --model only when its variable is set (see "Role models" below).
wolfpack agent spawn <project> --harness pi --name 200-implementation --plan .plans/000-task.md --notify-parent --json
# --model requires a pi or claude child (native per-session --model). Omit it for other child harnesses.
wolfpack agent spawn <project> --harness claude --name 200-review --plan .plans/000-task.md --notify-parent --json

wolfpack session open is only a deprecated child-spawn alias. Never use it for a top-level request. Replace <project> with --project-dir <path> when the user selects an existing directory outside the configured projects root; never pass both selectors. The CLI resolves relative paths and the server validates/canonicalizes the directory. Both creation commands perform one server-owned request and pass startup instructions without inheriting parent transcript/context. --harness <pi|claude|codex|gemini|cursor> overrides the inherited child harness while preserving parent lineage; shell is not a child harness. --model is child-only and requires a Pi or Claude child. Never change a Claude child's model with /model, because that saves a global default.

Role models. This skill names no models; the user's configuration does. For a Pi role child, pass --model "$WOLFPACK_IMPLEMENTER_MODEL" for the editing implementer or --model "$WOLFPACK_REVIEWER_MODEL" for the read-only reviewer when that variable is set; otherwise omit --model, so the child uses defaultModel and defaultThinkingLevel from the user's Pi settings (~/.pi/agent/settings.json). An explicit user or project model choice overrides both. Pi accepts a provider/id:<thinking> selector, and Wolfpack forwards it unchanged. Never infer role or model from the session name.

Use --name <session> for child agents and choose a short meaningful issue/role slug, for example 200-implementation, 200-delivery-review, or auth-boundary-audit. Avoid generic *-sub-agent names when the task purpose is known; Wolfpack will allocate a numbered suffix if the requested name is already taken. Prefer --plan <file> for plan work: Wolfpack generates the compact handoff prompt and verifies the file exists without copying plan contents into the parent transcript. Use --prompt-file <file> for long bespoke instructions. Use raw --prompt only for one short prompt sentence. Do NOT paste repository policy, architecture context, or full plans into the launch command.

Delegated agent work always uses a task ID. Spawn a task worker with explicit-root readiness and no startup assignment flags (or select an existing session by stable ID and use its registered taskEndpoint), then send the complete assignment once with agent_task_send. Use a timeout of at least one hour for coding work. The task carries questions, answers, the terminal, the origin deadline and the parent ACK. Startup prompts (--plan, --prompt-file, --prompt) and --notify-parent remain for manual or interactive sessions only; they give no task ID, deadline or tracked completion. If readiness or the Claude task integration is unavailable, report the capability gap; do not fall back to a startup prompt for delegated work.

wolfpack agent spawn --project-dir /absolute/worktree --harness pi --name task-implementation --task-worker --readiness-timeout-ms 30000 --json
# Claude task worker: needs the Claude task integration (`wolfpack setup`); --model is optional; no Pi policy file.
wolfpack agent spawn --project-dir /absolute/worktree --harness claude --name task-review --task-worker --readiness-timeout-ms 30000 --json

# inspect a target host's effective policy (pi) or resolved launch (claude) without creating a worker
wolfpack agent spawn --project-dir /absolute/worktree --harness pi --task-worker --task-worker-dry-run --json
wolfpack agent spawn --project-dir /absolute/worktree --harness claude --task-worker --task-worker-dry-run --json

--task-worker requires the launched session to use Pi or Claude and explicit --project-dir; it rejects prompts/plans and --notify-parent. A Claude worker fails before creation while the Claude task integration is off; --task-worker-policy-file is Pi-only, and a Claude --task-worker-dry-run reports the integration gate and the resolved executable, channel and model. Pi workers inherit Pi extension discovery by default; the target host may switch to isolated discovery or configure local allowlisted files through its private task-worker policy. Isolated disables discovery but still loads mandatory Pi Tasks and explicitly configured optional files. Use --task-worker-policy-file <local-json-file> only for an explicit per-spawn override; it is parsed locally and sent as typed data, never as shell argv. --task-worker-dry-run --json returns only redacted effective policy (env key names, never values) and creates no session. Inherit mode leaves Pi project trust intact; do not add --approve or assume a trusted project extension has executed. Success returns opaque taskEndpoint only after exact live session identity, canonical root, and relay v2 registration are verified. This is not model/task execution evidence. TASK_WORKER_PREFLIGHT_FAILED is before creation; TASK_WORKER_NOT_READY retains createdSession and cleanup disposition. cleanup: "unconfirmed" is not deletion evidence: inspect the returned stable ID before retrying, never resolve a reusable name. Do not silently downgrade to ordinary spawn when readiness is unsupported.

Prefer one cohesive implementation handoff per approved PR or phase, not one per issue, commit, or checkpoint.

Structured inspection and control

To explicitly target a configured Tailnet peer, prefix supported commands:

wolfpack --machine <short-name-or-fqdn> list --json

Short names use the exact configured tailscaleHostname suffix; full names must be canonical hostnames in it. The CLI verifies bounded structured /api/machine identity with normal auth and fails closed without localhost fallback. Remote success includes verified machine identity and server-owned sessionId. Remote spawn resolves its parent on the selected machine, not cross-machine lineage; unsupported commands reject --machine. Use the same verified machine selector for owned remote teardown and absence verification.

wolfpack list --json
wolfpack session status <session-or-id> --json
wolfpack session read <session-or-id> --json
wolfpack agent inbox --json
wolfpack session inbox <session-or-id> --since <seq> --json
wolfpack session send <session-or-id> '<text>' --json
wolfpack session wait <session-or-id> '<text>' --json

wolfpack session send is only for explicit interactive steering. Act on the JSON outcome, not the exit status alone: pasted_not_submitted (exit 7) means the text sits unsubmitted in the target's input, so submit it with wolfpack session send <session-or-id> $'\r' --no-enter (do not re-send the text), or pass --ensure-submitted on the original send to retry Enter once automatically. Never send /exit or /quit to clean up a session: those are Pi input, not Wolfpack teardown. Do not guess lifecycle commands.

Treat session selectors as opaque handles. Prefer the stable sessionId returned by create/spawn/list/status. If the user already supplied an exact target, do not list first.

Read-only inspection is allowed when requested. Creation, sending input, killing, taking control, remote-host access, and notifications require explicit user intent for that action and target. Interactive attach/takeover is a UI workflow; do not reconstruct it through the CLI or a private API. Inspect current attach source/tests only when explicitly asked for low-level automation.

Spawning a child grants the spawning coordinator cleanup authority for that exact child. Endpoint assignments use agent_task_done followed by one parent agent_task_ack; only after that task lifecycle may the parent retain or kill the exact stable session ID. Manual startup-prompt children have no task ID and are outside this lifecycle. --notify-parent queues a structured message in the exact live parent's memory-only inbox and also sends web push to enrolled human devices; the message text is never typed into the parent terminal. The server also derives child events (blocked, error, done, exited, message) for every spawned child on this machine, with no child action, and records them as inbox entries with a structured childEvent. It delivers each event to the parent agent as a task-relay envelope when the parent's endpoint supports it, otherwise as one tagged typed note such as [wolfpack] child events: worker-1 error (details: wolfpack agent inbox --json), typed only while the parent waits for input and the setting allows it. Runtime done, blocked and reason: killed exits are never typed. A typed note carries only the child name, event, input kind and exit details, never child message text, so treat it as a wake-up, not as instructions. To block until children report, run wolfpack agent wait --children any|all --json (default timeout 180 s; outcome: "timeout" is a check-in result with exit 0) and pass the returned cursor and bootId as --since/--boot-id to the next wait; wolfpack agent children --json lists live children with state, authority, settled and the last event. The coordinator can also poll wolfpack agent inbox --json (optionally --since <last-seq>) or follow wolfpack events --session <self> --kinds parent_notified,child_event --json. Inbox entries retain the newest 100 per parent, disappear on parent exit/server restart, and carry an unverified informational from; neither they nor wait results are task-completion evidence. Verify the child's actual work and stable session (wolfpack session status <stable-session-id> --json; wolfpack session read <stable-session-id> --json when terminal inspection is needed), then deliberately retain or run wolfpack kill <stable-session-id> --json. In either mode, verify that exact ID is absent from wolfpack list --json after a kill. Never scrape terminal/UI prose as protocol, bypass auth, guess tokens, or kill a mistaken session as cleanup without permission.

task recovery identity

with default SQLite relay storage, existing volatile-v1 clients automatically resume transport after server/relay restart while the same plugin processes and RAM task state/outbox remain alive. plugin/agent-process restart is not recovered. do not create replacement sessions, replay tool actions or send a second assignment to repair a recoverable interruption. inspect structured status and stable task IDs; acceptance, model incorporation, terminal result, parent verification and parent ACK remain separate. corrupt/unverifiable server storage blocks recovery. explicit memory-only server storage retains weaker restart-loss behavior; the wire profile does not negotiate endpoint persistence. see the source relay recovery contract.

References — load only when needed

  • canonical session, setup, troubleshooting, and broker references

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.