AGENT SKILL

tmux-agent-launcher

Launch Claude, OpenCode, Codex, or Harnessy (`hsy`) in a named tmux session from the command line or agent workflows.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 13
Forks
6

01 前言 Front Matter

name
tmux-agent-launcher
description
Launch Claude, OpenCode, Codex, or Harnessy (`hsy`) in a named tmux session from the command line or agent workflows.
allowed-tools
Read, Bash
argument-hint
--runner <claude|opencode|codex|hsy> [session-name] [options] [--permission-mode bypass|default] [-- <runner-args>...]
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Tmux Agent Launcher

Purpose

Launch claude, opencode, codex, or Harnessy (hsy) inside a named tmux session, attach to an existing named tmux session, or list tmux sessions, without re-implementing the logic in the skill.

Inputs

  • runner: claude, opencode, codex, or hsy

  • optional session name; when omitted, prompt for a name defaulting to the current folder and generate {name}-{runner}-{index}

  • optional mode: attach

  • optional mode: list

  • optional --cwd <path>

  • optional --attach; launch mode attaches by default

  • optional --no-attach to leave the new session detached

  • optional --dry-run

  • optional --permission-mode <bypass|default>; defaults to the per-user Harnessy install config, then bypass. This setting injects no flags for hsy, which has no sandbox or per-tool approval boundary.

  • optional --skip-permissions / --no-skip-permissions

  • optional -- <runner-args>...: arguments passed directly to the selected agent CLI. For hsy, project-resource trust remains explicit through passthrough flags such as -- --approve or -- --no-approve.

  • Template paths are resolved from ${AGENTS_SKILLS_ROOT}/tmux-agent-launcher/.

Steps

  1. Read the command contract at ${AGENTS_SKILLS_ROOT}/tmux-agent-launcher/commands/tmux-agent-launcher.md.
  2. Validate that the request includes a supported runner; session name is optional in launch mode.
  3. Execute tmux-agent-launcher with the requested arguments.
  4. Prefer --json when the caller needs machine-readable output.
  5. Return the script output as-is rather than duplicating launch logic in the skill.

Deterministic Logic (Scripts)

  • Source of truth: ${AGENTS_SKILLS_ROOT}/tmux-agent-launcher/scripts/tmux-agent-launcher
  • Input contract: documented in the command contract
  • Output contract: human mode and --json

Output

  • The launcher script's stdout/stderr and exit semantics.

04 同仓库更多 Skills