Command Palette

Search for a command to run...

Назад к скиллам
скилл № 26423

bip-helper

Start, message, resume, and shut down a long-lived helper session — a `claude --bg` peer that survives the primary's compaction and restarts, can message any…

БесплатноБез исполняемых скриптов
matsenот matsen★ 35 звёзд на GitHub

Установить bip-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/bip-helper

A helper is a separate claude --bg session that you, the primary, start and later shut down. Unlike an Agent subagent, it has its own context, outlives your compaction or restart, messages any session by name, and the user can attach to it. Use a subagent when one call answers only you; use a helper when the work outlives your turn or talks to other sessions.

Usage

/bip-helper start <role> "<brief>"   # role is a short word: review, gate, build
/bip-helper stop <role>
/bip-helper sweep

Facts this skill depends on

  • claude --bg sessions ignore the shell's CLAUDE_CODE_OAUTH_TOKEN; they authenticate from the env token in ~/.claude/settings.json, written by the account switch in matsen/setup.
  • A --resume keeps none of the original flags; pass them again.
  • A message to a session in a different permission mode is held for its user to approve, and nobody watches a helper. Start it in your own mode with --permission-mode (bypassPermissions starts without a prompt).
  • A stopped helper is missing from ListAgents and SendMessage cannot reach it; resume it first. Idle unattached sessions stop after about an hour, so a finished helper is usually stopped — expected, not a failure.
  • A notify_when_idle notice arrives only when your turn ends, and a subscription made while the helper is idle reports that earlier idle. End your turn and act when the notice or report arrives.
  • claude --bg prints backgrounded · <id> · <name>; stop, rm, logs, and attach take that short id. --resume takes the full session id from claude agents --json --all.
  • A background session's scratchpad is ~/.claude/jobs/<id>/tmp/, which claude rm deletes; nothing citable belongs there.

Rules

  • Every helper owns a home directory, $HELPERS/<name>/, holding result.md, every extra checkout, and every file it cites, so stop and sweep see all of it.
  • The helper works in a directory of its own, never a checkout another live session uses (/bip-issue-work moves a co-tenant's branch work into a worktree; reclaim_slot stops with NOT FREE while any process is in the slot). A pooled clone is allowed only when available and held by you first (start, step 2); a --bg helper has no tmux window, so the hold is its only in-use mark.
  • A worker in a pooled slot does not start helpers: reclaim_slot neither removes nor reports their checkouts, so they would outlive the slot. Ask the epic or conductor to start one.
  • Delete with find <path> -delete, never rm: a $ in the same command as rm trips Claude Code's destructive-removal guard, even in bypass mode.
  • Kill only by the recorded short id, never pgrep/pkill, a name, or argv: a spawn prompt is argv, so a pattern can match your own shell.

Records

HELPERS="${XDG_STATE_HOME:-$HOME/.local/state}/bip/helpers"
# $HELPERS/<short-id>.json   written by the primary at start:
#   {"id","session_id","name","primary","home","dir","dir_kind":"worktree|held-clone","hold"}
# $HELPERS/<name>/           the helper's home
# $HELPERS/<name>/result.md  written by the helper, one appended section per round

start

  1. Name it and make its home. Your name is the first line of ListAgents; the helper is <primary>-<role>. If ListAgents shows that name or $HELPERS/<primary>-<role> exists, pick another role word.

    HELPERS="${XDG_STATE_HOME:-$HOME/.local/state}/bip/helpers"
    HOME_DIR="$HELPERS/<primary>-<role>"
    mkdir -p "$HOME_DIR"
    
  2. Pick its working directory DIR.

    • Research, review, messaging, or code changes: a detached worktree of your repo off origin/main, inside the home, KIND=worktree. Not the bare home: claude --bg refuses an untrusted directory ("Workspace not trusted"), but a worktree of a trusted repo starts. Tell a research-only helper the checkout is read-only; otherwise it branches there itself (for example via /bip-issue-work).
      git -C <repo> fetch -q origin
      DIR="$HOME_DIR/$(basename "$(git -C <repo> rev-parse --show-toplevel)")"
      git -C <repo> worktree add --detach "$DIR" origin/main
      
    • Gates or builds that need a built environment (a .pixi env, a vendored binary) that a fresh worktree would have to install from scratch: a conductor or epic session with a clone pool can lend an available pooled clone (as /bip-conductor Step 4 classifies it), held so spawn selection and bip spawn skip it, KIND=held-clone. Run from your own checkout, where .epic-config.json lives; <this-skill's-base-directory> is the base directory given at invocation; lib/spawn-intent.sh is its sibling.
      source "$(dirname "<this-skill's-base-directory>")/lib/spawn-intent.sh"
      CLONE_ROOT=$(resolve_clone_root .epic-config.json)
      HOLD="$CLONE_ROOT/.holds/<clone>"
      mkdir -p "$CLONE_ROOT/.holds" && echo "helper <primary>-<role>" > "$HOLD"
      DIR="$CLONE_ROOT/<clone>"
      
      Write the hold befor
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл bip-helper?

Start, message, resume, and shut down a long-lived helper session — a `claude --bg` peer that survives the primary's compaction and restarts, can message any session, and that the user can attach to. Includes a sweep for leftover helpers. Use when side work (a long gate, a trial build, a cross-session review) would otherwise block the primary's attention.

Как установить скилл bip-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bip-helper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bip-helper с