Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

session-manager-driver

БесплатноБез исполняемых скриптовНе проверен

Drive the trusty-mpm session manager (binary `tm`) to spawn, observe, command, and decommission durable tmux-backed Claude Code sessions in isolated…

bobmatnycот bobmatnyc★ 160 звёзд на GitHub

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

Session Manager Driver

Procedural how-to for driving the trusty-mpm session manager — a Rust daemon (binary tm) that spawns, observes, and controls durable, tmux-backed Claude Code sessions, each in its own isolated git workspace. This skill wraps the tm session CLI verbs and the underlying REST API, and defines the spawn → observe → answer → stop/resume/decommission control loop plus the T1–T4 autonomy policy that governs how much the driver may do without a human.

Core design principle: YOU do the reasoning

The session manager exposes raw observability, not conclusions. When driven by claude-mpm, inference is provided by claude-mpm's own Claude — there is no OpenRouter key and none is needed.

  • The daemon ALWAYS returns raw_pane (the last ~60 lines of the tmux pane).
  • It returns a best-effort structured state, summary, pending_decision, and proposed_default — but when no OpenRouter key is configured these may be state: "unknown" / summary thin / confidence: 0.0. This is expected and fine.
  • The driver reads raw_pane and decides. Never block on the daemon's optional LLM classification. Treat state as a hint; treat raw_pane as ground truth.

Prerequisites

  • The tm binary on PATH (trusty-mpm session manager).
  • The session-manager daemon running. Default base URL: http://localhost:7424.
  • A health check before driving anything (see Health & Status below).

Command reference (tm session verbs)

Prefer the CLI over raw HTTP. Each verb maps to a REST endpoint on the daemon.

Operation CLI command HTTP endpoint
spawn tm session new <repo> --git-ref <ref> --task "<desc>" [--name-hint <h>] POST /api/v1/sessions/managed
list tm session ls [--json] GET /api/v1/sessions/managed
activity (poll) tm session activity <id> GET /api/v1/sessions/managed/{id}/activity
send text tm session send <id> "<text>" POST /api/v1/sessions/managed/{id}/send
answer decision tm session answer <id> "<answer>" POST /api/v1/sessions/managed/{id}/answer
attach (human) tm session attach <id> GET /api/v1/sessions/managed/{id}/attach-cmd
stop (keep workspace) tm session stop <id> POST /api/v1/sessions/managed/{id}/runtime-stop
resume tm session resume <id> POST /api/v1/sessions/managed/{id}/resume
decommission (delete workspace) tm session decommission <id> POST /api/v1/sessions/managed/{id}/decommission

Health & status

Before spawning or driving, confirm the daemon is reachable and healthy:

# Daemon liveness/health (warm-boot, degraded flags, etc.)
curl -sf http://localhost:7424/health || echo "DAEMON DOWN"

# Fleet snapshot (machine-readable)
tm session ls --json

If /health reports a degraded or unreachable daemon, do not spawn — escalate to the human (T4-equivalent: infrastructure problem).

The activity response (the object you interpret)

tm session activity <id> returns:

{
  "raw_pane": "<last ~60 lines of the tmux pane; ALWAYS present>",
  "runtime_active": true,
  "state": "working|idle|blocked_on_permission|errored|done|unknown",
  "summary": "<best-available text>",
  "confidence": 0.0,
  "pending_decision": "<question the session is waiting on, or null>",
  "proposed_default": "<a suggested answer, or null>"
}

How to read it:

  • raw_pane — your primary signal. Read it like a human reading the terminal. Look for prompts (? Do you want to…, (y/N), Press enter to continue), errors (panics, tracebacks, error[), completion markers, and the trailing cursor line.
  • pending_decision non-null — the session is blocked waiting for an answer. Decide per the autonomy policy below, then tm session answer <id> "<answer>".
  • runtime_active: false — the tmux runtime is stopped (the session may be stopped lifecycle state but resumable). Use tm session resume <id> to restart the runtime before sending.
  • state: "unknown" / confidence: 0.0 — the daemon's optional LLM did not classify (no OpenRouter key). Ignore the absence and classify from raw_pane yourself.

Lifecycle states

provisioning ──▶ active ⇄ stopped ──▶ decommissioned (terminal)
  • provisioning — workspace being prepared; not yet driveable. Poll until active.
  • active — runtime live; observe/send/answer freely (within tier).
  • stopped — runtime halted but workspace preserved; resumable with tm session resume. tm session stop puts a session here.
  • decommissioned — workspace deleted; terminal and irreversible. Only tm session decommission reaches this state.

stop keeps the workspace (cheap, resumable). decommission DELETES it (destructive, irreversible). Never conflate the two.

The driver loop

1. spawn       → tm session new <repo> --git-ref <ref> --task "<desc>" --name-hint <h>
                 capture the retur
Полный SKILL.md на GitHub

Установить session-manager-driver в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл session-manager-driver?

Drive the trusty-mpm session manager (binary `tm`) to spawn, observe, command, and decommission durable tmux-backed Claude Code sessions in isolated workspaces. Wraps the `tm session` CLI / REST API and provides the spawn → observe → answer → stop/resume/decommission loop. Critically, the DRIVER interprets the raw tmux pane using its own inference — it does NOT depend on the daemon's optional LLM (no OpenRouter key required).

Как установить скилл session-manager-driver?

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

Скилл session-manager-driver запускает скрипты?

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

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

Сравнить session-manager-driver с