spawn-new-session

spawn-new-session is a skill for Claude Code from Pawel-Kica/claude-code-100. It costs 16 tokens per session (368 once invoked), scanned A, original, MIT.

A skill for handing work to separate Claude sessions running in their own cmux tabs, which are visible terminal workspaces.

In plain words
What is it for?
Use it to write a complete handoff brief, start an agent in a background cmux tab, and report which task was assigned to which tab.
Why use it?
It gives each agent its own context and permissions instead of making multiple agents share one conversation.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it to write a complete handoff brief, start an agent in a background cmux tab, and report which task was assigned to which tab.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pawel-kica/claude-code-100/spawn-new-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 Pawel-Kica/claude-code-100 --skill spawn-new-session
Clone the repo
git clone --depth 1 https://github.com/Pawel-Kica/claude-code-100

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-new-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/pawel-kica/claude-code-100/spawn-new-session.svg)](https://agentmods.dev/skills/pawel-kica/claude-code-100/spawn-new-session)
Your own site
<a href="https://agentmods.dev/skills/pawel-kica/claude-code-100/spawn-new-session"><img src="https://agentmods.dev/badge/skills/pawel-kica/claude-code-100/spawn-new-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00016 $0.00368
Opus 5 $0.00008 $0.00184
Sonnet 5 $0.00003 $0.00074
Haiku 4.5 $0.00002 $0.00037

Measured 8d ago against content hash ae3c3a563fe0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

spawn-new-session scanned grade A with 0 findings 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/spawn-agent.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cmux/spawn-new-session/SKILL.md · 29 lines

What it actually says

Peer agents, not subagents: full Claude sessions in their own cmux tabs, each with its own context and permissions, user watching.

Run

  1. Write a brief per agent to ~/.claude/spawns/<YYYY-MM-DD-HHMM>-<slug>.md. It is the whole handoff — the tab inherits nothing from this conversation.
  2. ~/.claude/skills/spawn-new-session/scripts/spawn-agent.sh --brief <path> --cwd <dir> --label <slug>. --cwd = current working dir unless the task clearly belongs elsewhere. Always spawn in background — never pass --focus true, even if the user says they will watch; they switch tabs themselves. --split for a pane, --prompt <text> to override the default kickoff prompt. cmux only — exits 3 if the cmux socket is unreachable.
  3. cmux read-screen --surface <ref> --lines 30 — expect the Claude TUI.
  4. Report a table: Task | Tab | Brief. Then stop — the tabs own that work now.

Brief

# <title>
## Objective — done, in a line
## Context — decisions already made and why, constraints, gotchas; specs/PRs by path or URL
## Where — cwd, key files
## Do — ordered steps
## Goal / Done When — checkable criteria
## Suggested skills — /<skill>, why

A brief that ends in git commit/push says in writing that user approves first.

Files

What ships with it

1 file 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. 8d ago First seen · 29 lines · 16 tokens per session scan A ae3c3a563fe0

Subscribe to this mod's changes

spawn-new-session is a skill published in the GitHub repository Pawel-Kica/claude-code-100 (2 stars, last pushed 15d ago), licensed MIT. It adds 16 tokens to every session and 368 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens