spawn-session

spawn-session is a skill for Claude Code from shimo4228/claude-harness. It costs 44 tokens per session (3,400 once invoked), scanned B, original, MIT.

A workflow for starting a detached Claude Code Remote Control session for another project. The new session appears in the Claude mobile app and in Herdr's session list; detached means it runs independently of the current session.

In plain words
What is it for?
Use it to launch a named session for a different project, such as from an iPhone, and make that session available for remote control.
Why use it?
It removes the need to access the Mac directly when you want to start a separate remote coding session. It also distinguishes this use from continuing an existing session or creating multiple sessions in the same repository.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to launch a named session for a different project, such as from an iPhone, and make that session available for remote control.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/spawn-session
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shimo4228/claude-harness --skill spawn-session
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spawn-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/spawn-session/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/spawn-session)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/spawn-session"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/spawn-session/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spawn-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/spawn-session"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/spawn-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,400 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03400
Opus 5.5 $0.00018 $0.01360
Sonnet 5.5 $0.00009 $0.00680
Haiku 4.5 $0.00004 $0.00340

Measured 29d ago against content hash dff1bfcd8be6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

spawn-session scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (spawn.sh, test-spawn-session.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Dispatch で足りる用件** → Cowork タブの Dispatch に投げると、開発作業なら **Code タブのセッション**が起きる(Dispatch バッジ付きでサイドバーに出る)。**`~/.claude` の設定系は読まれる** — personal skills in `~/.claude/skills/` は local session に効き、`~/.claude/settings.json` も D
skills/spawn-session/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

spawn-session

生きている任意のセッションから、名前付き・detached な新しい Claude Code Remote Control セッションを Herdr 内に起動する。新セッションは自分の RC を登録するので Claude モバイルアプリのセッション一覧に出る。iPhone から Remote Control 越しに操作している最中に、Mac に触れず別プロジェクトのセッションを増やすのが主用途。Herdr の艦隊ビュー(サイドバー・agent status)にもそのまま並び、skill: agent-send で指示を送れる。session や script(task-triage の dispatch、launchd の tick)から起こす経路でもある。

When to use

  • 新しいセッションが欲しい(多くは別プロジェクト用)でモバイルアプリ一覧に出したい
  • トリガー例: 「新しいセッション立てて」「AAP のセッション開いて」「spawn a session for X」/ /spawn-session [project]

When NOT to use

  • 既存の会話を続けたい → claude --continue / --resume
  • 現在のセッションの文脈を消したいだけ → /clear
  • 現在のセッションの model / effort 切替 → /model, --effort
  • よく使うフォルダで phone から 1 本起こしたいだけで、Herdr pane に置かなくてよい → Desktop アプリの Settings > Claude Code の「スマートフォンと claude.ai からここでセッションを開始できるようにする」をオンにすると、アプリが開いている間、Claude アプリの Code タブに Mac の device card が出る。選べるのは登録フォルダ(Claude Code でよく使う 6 個まで + ピン留め・追加したもの)で、任意の directory はたどれない(2026-10-10、Desktop の設定画面で確認)。その session は Desktop アプリの下で動き、Herdr pane には並ばず agent-send も届かない。Desktop が公開中のフォルダでは CLI の claude remote-control は起動を拒む
  • 同じ repo で複数セッションが欲しいだけ → 公式 server mode(claude remote-control --spawn worktree --capacity N)で足りる。この skill は要らない
  • Dispatch で足りる用件 → Cowork タブの Dispatch に投げると、開発作業なら Code タブのセッションが起きる(Dispatch バッジ付きでサイドバーに出る)。~/.claude の設定系は読まれる — personal skills in ~/.claude/skills/ は local session に効き、~/.claude/settings.json も Desktop と共有される(設定が claude.ai 同期になるのは Cowork タブ側の skills / plugins / connectors であって Code セッションではない)。この skill を使う理由は設定の届き方ではなく、Desktop アプリが実行主体になり Herdr 艦隊ビューに並ばないことと、起こす repo をこちらが選べないこと(Dispatch が種別で振り分ける)。Pro/Max 限定で Team/Enterprise では使えない
  • cloud session(Claude Code on the web)→ Anthropic 側で実行されるので、ローカル FS / MCP / Herdr と無関係。手元の repo を触らせたいなら対象外

How it works

埋めているギャップは cwd の壁であって、セッション数の壁ではない(2026-08-01 に公式 docs で確認)。公式 Remote Control には server mode があり --spawn <same-dir|worktree|session> / --capacity <N>(既定 32)/ --[no-]create-session-in-dir で 1 プロセスから複数セッションを持てる。ただし server mode の全セッションはその server プロセスの cwd(= 1 repo)に縛られる — same-dir は cwd 共有、worktree はその repo の worktree。phone から別プロジェクトを起こす公式の道は、上の device card(登録フォルダに限る)。この skill は、登録していないプロジェクトをニックネームから解決し、Herdr の pane に置き、session や script からも起こせる道で、生きている任意のセッションが Bash で別の claude --remote-control "<名前>" を、指定した repo の cwd で Herdr の pane 内に detached 起動する。新プロセスが自分の RC を登録し、アプリ一覧に出る。Herdr の persistent session(server)が pty を保持するので、Ghostty/SSH の切断や起動元セッションの終了後も生き残る。server が動いていなければ spawn.sh が headless server を自動起動する(tmux のサーバー自動起動と同等のセマンティクス)。

Read the full file on GitHub · 94 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · +2 lines dff1bfcd8be6
  2. 1mo ago Changed · -61 lines ce6125d1d67c
  3. 1mo ago Changed · -106 tokens per session b5ff2050a3d6
  4. 1mo ago Changed · -47 tokens per session 830ee81c1b4f
  5. 2mo ago Changed b4634a7a8437
  6. 2mo ago Changed · +25 lines 53cc8ad68cb3
  7. 2mo ago Changed · +2 lines cef6bb941cd5
  8. 2mo ago Changed · -3 lines 0e5017f82dae
  9. 3mo ago First seen · 129 lines · 197 tokens per session scan B 89a6de516395

Subscribe to this mod's changes

spawn-session is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 44 tokens to every session and 3,400 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

spawn-session compared with skills from other repositories

spawn-session next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spawn-sessionshimo4228/claude-harnessSkill47d agoMITB44Claude Code
agent-adoption-triageshimo4228/agent-adoption-triageSkill21mo agoMITA143Claude Code
git-commitadongwanai/learn-workbuddySkill5631mo agoMITA0Claude Code, Codex
pi-triagesky-valley/piSkill94yesterdayMITA57Claude Code
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
zodanivar/zod-skillSkill24yesterdayMITA217Claude Code, Codex
trailhead-chartToRvaLDz/trailheadSkill37yesterdayMITA138Claude Code