Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

dev-agent-spawn开发 Agent 生成

Agent Skill

dev-agent-spawn 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

282

周安装

12

GitHub Stars

公开资料未说明

下载量

99
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dev-agent-spawn(开发 Agent 生成)
来源仓库:https://github.com/molechowski/claude-skills
仓库路径:skills/dev-agent-spawn
安装命令:
npx skills add https://github.com/molechowski/claude-skills --skill dev-agent-spawn
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/molechowski/claude-skills --skill dev-agent-spawn

简介

用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 可结合关键词、任务场景或来源线索进行信息聚合。
  • 通过命令行安装并使用,需参考原始 README 获取具体指令。
  • 安装前建议确认是否会触发联网或文件读写,确保权限可控。
  • dev-agent-spawn 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Agent Spawn

Spawn AI coding agents (Claude Code, Codex) in new Ghostty terminals via AppleScript, wrapped in tmux for output capture. Requires Ghostty 1.3.0+, tmux, and macOS.

Spawn

bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh [OPTIONS]
FlagDescriptionDefault
-a, --agent AGENTAgent preset: claude, codexclaude
-d, --directory DIRWorking directoryCurrent dir
-p, --prompt PROMPTInitial prompt for the agentNone
-m, --mode MODEwindow, tab, split-right, split-downwindow
-r, --resume IDResume conversation by ID (claude only)None
-c, --command CMDFull custom command (overrides --agent)Resolved from --agent preset
-n, --name NAMETmux session nameagent-<timestamp>
-w, --worktreeForce worktree isolation (claude only)Auto (on in git repos)
--no-worktreeDisable worktree isolation
--no-parkDisable AeroSpace workspace auto-allocation
--workspace NAMEOverride auto-allocated workspaceAuto (3+)

Monitor

agent-spawn.sh --status              # List all agent sessions with workspace occupancy
agent-spawn.sh --focus NAME          # Switch to agent's AeroSpace workspace
agent-spawn.sh --peek NAME           # Last 50 lines of output
agent-spawn.sh --peek NAME -l 200    # Last 200 lines
agent-spawn.sh --send NAME [TEXT]    # Send text + Enter (or bare Enter)
agent-spawn.sh --kill NAME           # Kill tmux session only
agent-spawn.sh --close NAME          # Kill tmux + close Ghostty window
agent-spawn.sh --close-all           # Close all agent sessions and windows

Modes

ModeWhen to Use
windowIndependent task in a separate window
tabRelated task, keep in same window
split-rightSide-by-side view, monitor while working
split-downStacked view, log output below

Agent Presets

The --agent flag selects a CLI with the correct unattended/yolo flags. Use -c to override with a fully custom command.

AgentCommand
claude (default)claude --dangerously-skip-permissions --model opus
codexcodex --dangerously-bypass-approvals-and-sandbox

Feature support by agent

Featureclaudecodex
Worktree isolation (-w)Yes (auto-detected)No
Resume (-r)YesNo
Prompt (-p)YesYes

Examples

# Claude Code (default agent)
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -d ~/Projects/my-api \
  -p "fix the tests"

# Codex
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  --agent codex \
  -d ~/Projects/my-api \
  -p "fix the tests"

# Custom command (full override, no preset applied)
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -c "claude --dangerously-skip-permissions --model sonnet" \
  -d ~/Projects/my-api \
  -p "quick review"

Examples

Spawn with prompt

bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -d ~/Projects/my-api \
  -p "fix the failing tests in pkg/auth"

Named session for monitoring

bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -n api-review \
  -d ~/Projects/my-api \
  -p "review error handling"

# Check progress
agent-spawn.sh --peek api-review

# Send follow-up prompt
agent-spawn.sh --send api-review "also check the retry logic"

Multiple parallel agents

for dir in pkg/auth pkg/api pkg/storage; do
  bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
    -m tab \
    -n "review-$(basename $dir)" \
    -d ~/Projects/my-api \
    -p "review $dir for error handling issues"
done

# Monitor all
agent-spawn.sh --status
agent-spawn.sh --peek review-auth
agent-spawn.sh --peek review-api

Resume a previous conversation

bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -r 01abc123-def4-5678-9012-abcdef345678

Session Naming Convention

Always use descriptive -n names for spawned agents. Opaque default names like agent-1710329481 are meaningless in tmux ls output — you cannot tell which session is doing what without peeking into each one.

Keep the full -n name under 20 characters. Tmux truncates long session names in the status bar, making them unreadable. Use short slugs — 1–2 words is ideal.

Format

Use a prefix that encodes the work type, followed by a short slug:

PrefixWhenExample
task-<id>-<slug>Working a task queue itemtask-43-naming
pr-<n>-<slug>Reviewing or working a PRpr-87-auth-flow
fix-<slug>Bug fixfix-retry-timeout
feat-<slug>Feature workfeat-webhooks
res-<slug>Research / explorationres-rate-limits

Slug rules: 1–2 words, lowercase, hyphenated. Full name (prefix + slug) must be under 20 characters.

Before / After

# BAD — opaque names, impossible to manage at scale
$ tmux ls
agent-1710329481: 1 windows (created Fri Mar 13 09:31:21 2026)
agent-1710329522: 1 windows (created Fri Mar 13 09:32:02 2026)
agent-1710329558: 1 windows (created Fri Mar 13 09:32:38 2026)
agent-1710329601: 1 windows (created Fri Mar 13 09:33:21 2026)

# GOOD — short descriptive names, no truncation in tmux status bar
$ tmux ls
task-43-naming:    1 windows (created Fri Mar 13 09:31:21 2026)
pr-87-auth-flow:   1 windows (created Fri Mar 13 09:32:02 2026)
fix-retry-timeout: 1 windows (created Fri Mar 13 09:32:38 2026)
res-rate-limits:   1 windows (created Fri Mar 13 09:33:21 2026)

Usage

# Task from the queue
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -n task-43-naming \
  -d ~/Projects/claude-skills \
  -p "/dev-task-queue claim and work on task #43"

# PR review
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -n pr-87-auth-flow \
  -d ~/Projects/my-api \
  -p "review PR #87"

# Peek and send by meaningful name
agent-spawn.sh --peek task-43-naming
agent-spawn.sh --send pr-87-auth-flow "also check error paths"

Task Queue Transcript Linking

When spawning agents to work on task queue items, always include transcript linking in the completion step of the prompt. Without this, --jsonl-path is never passed to complete_task.py and the conversation transcript is lost.

The agent's completion step must:

  1. Find its transcript .jsonl file (most recently modified file in ~/.claude/projects/)
  2. Pass --jsonl-path to complete_task.py

Always include this completion block in task queue prompts:

After implementing, push your branch, create a PR, and complete the task with transcript linked:
JSONL_PATH=$(ls -t ~/.claude/projects/*/*.jsonl 2>/dev/null | head -1)
python3 ~/.agent-task-queue/scripts/complete_task.py <ID> --jsonl-path "$JSONL_PATH" --notes "PR: <url>"

Full task queue spawn template

bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -n task-43-naming \
  -d ~/Projects/claude-skills \
  -p 'You are working on task #43 from the agent task queue.

FIRST: Create a git worktree to work in isolation:
git worktree add .claude/worktrees/task-43-naming -b task-43-naming
cd .claude/worktrees/task-43-naming

Then claim the task:
python3 ~/.agent-task-queue/scripts/claim_task.py 43 --session-id $(uuidgen)

THE TASK: <description>

After implementing, push your branch, create a PR, and complete the task with transcript linked:
JSONL_PATH=$(ls -t ~/.claude/projects/*/*.jsonl 2>/dev/null | head -1)
python3 ~/.agent-task-queue/scripts/complete_task.py 43 --jsonl-path "$JSONL_PATH" --notes "PR: <url>"'

Worktree Isolation

When spawning into a git repository, each agent automatically gets an isolated git worktree via Claude Code's /worktree command. This prevents branch conflicts and dirty working tree issues when multiple agents work in the same repo concurrently.

Behavior:

  • Auto (default): Detects if the target directory is a git repo. If yes, enables worktree isolation.
  • -w, --worktree: Force worktree isolation on (even if auto-detect fails).
  • --no-worktree: Disable worktree isolation (agent works directly on the repo).

The script prepends /worktree to the agent's prompt, so Claude Code creates a temporary worktree branch before starting work. Each agent gets its own branch and working directory — no coordination needed.

# Auto-enabled in git repos (default)
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  -d ~/Projects/my-api \
  -p "fix the failing tests"

# Explicitly disable worktree for a quick read-only task
bash ~/.claude/skills/dev-agent-spawn/scripts/agent-spawn.sh \
  --no-worktree \
  -d ~/Projects/my-api \
  -p "explain the auth flow"

AeroSpace Workspace Integration

When AeroSpace is installed, spawned agents are automatically moved to dedicated workspaces to keep your main workspace clean.

Allocation Rules

  • Workspaces 1–3 are reserved for the user/orchestrator
  • Agent workspaces start at workspace 4 and go up (4, 5, 6,...)
  • Max 3 agents per workspace (AeroSpace tiles them as a readable 3-way split)
  • When workspace 4 is full, the next agent goes to workspace 5, etc.
  • Dead sessions (tmux exited) don't count toward occupancy

Override or Disable

# Force agent to workspace 9
agent-spawn.sh --workspace 9 -n task-99-hotfix -d ~/Projects/app -p "urgent fix"

# Keep agent in the current workspace (old behavior)
agent-spawn.sh --no-park -n res-quick -d ~/Projects/app -p "quick lookup"

Navigation

# Switch to an agent's workspace
agent-spawn.sh --focus task-43-naming

# See workspace occupancy for all agents
agent-spawn.sh --status

Status Output

NAME                  WORKSPACE     TMUX        WINDOW
----                  ---------     ----        ------
task-43-naming        3 (2/3)       attached    window-aea3a4600
task-65-aero          3 (2/3)       attached    window-789908c00
pr-158-mise           4 (1/3)       attached    window-8e7de2700
res-quick             -             attached    window-44aabb100

Graceful Degradation

If AeroSpace is not installed, workspace allocation is silently skipped. All other features (tmux, peek, send, close) work unchanged.

How It Works

  1. Activate Ghostty (launches if not running)
  2. Create surface configuration with the target working directory
  3. Open a new window/tab/split using that configuration
  4. Send a tmux command that creates a named session and runs claude inside it
  5. Detect the new AeroSpace window by diffing aerospace list-windows before/after spawn
  6. Move the window to the allocated workspace via aerospace move-node-to-workspace

The input text + send key enter pattern is used instead of the command surface config property. The command property replaces the login shell, skipping .zshrc/.zprofile and losing PATH setup.

Tmux wrapping enables --peek (capture-pane), --send (send-keys), and --kill (kill-session) without Ghostty API limitations.

Troubleshooting

ProblemFix
"execution error" from osascriptGrant Automation permission: System Settings > Privacy & Security > Automation > allow your terminal to control Ghostty
Ghostty not foundInstall Ghostty 1.3.0+ from https://ghostty.org
Claude not found in new terminalEnsure claude is on PATH in your shell profile (.zshrc)
Split opens but no command runsIncrease delay — edit delay 0.3 in script if shell init is slow
--peek shows emptySession may not have started yet — wait a moment and retry
Agent not moving to workspaceEnsure AeroSpace is installed and running (aerospace --version)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.52%
按下载量换算34

Claude

30.57%
按下载量换算30

Cursor

18.02%
按下载量换算18

Gemini CLI

8.78%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/molechowski/claude-skills --skill dev-agent-spawn 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills