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★ 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 --bgsessions ignore the shell'sCLAUDE_CODE_OAUTH_TOKEN; they authenticate from theenvtoken in~/.claude/settings.json, written by the account switch in matsen/setup.- A
--resumekeeps 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(bypassPermissionsstarts without a prompt). - A stopped helper is missing from
ListAgentsandSendMessagecannot 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_idlenotice 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 --bgprintsbackgrounded · <id> · <name>;stop,rm,logs, andattachtake that short id.--resumetakes the full session id fromclaude agents --json --all.- A background session's scratchpad is
~/.claude/jobs/<id>/tmp/, whichclaude rmdeletes; nothing citable belongs there.
Rules
- Every helper owns a home directory,
$HELPERS/<name>/, holdingresult.md, every extra checkout, and every file it cites, sostopandsweepsee all of it. - The helper works in a directory of its own, never a checkout another live session uses (
/bip-issue-workmoves a co-tenant's branch work into a worktree;reclaim_slotstops withNOT FREEwhile any process is in the slot). A pooled clone is allowed only when available and held by you first (start, step 2); a--bghelper has no tmux window, so the hold is its only in-use mark. - A worker in a pooled slot does not start helpers:
reclaim_slotneither removes nor reports their checkouts, so they would outlive the slot. Ask the epic or conductor to start one. - Delete with
find <path> -delete, neverrm: a$in the same command asrmtrips 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
Name it and make its home. Your name is the first line of
ListAgents; the helper is<primary>-<role>. IfListAgentsshows 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"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 --bgrefuses 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
.pixienv, a vendored binary) that a fresh worktree would have to install from scratch: a conductor or epic session with a clone pool can lend anavailablepooled clone (as/bip-conductorStep 4 classifies it), held so spawn selection andbip spawnskip it,KIND=held-clone. Run from your own checkout, where.epic-config.jsonlives;<this-skill's-base-directory>is the base directory given at invocation;lib/spawn-intent.shis its sibling.
Write the hold beforsource "$(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>"
- Research, review, messaging, or code changes: a detached worktree of your repo off
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…