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★ 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, andproposed_default— but when no OpenRouter key is configured these may bestate: "unknown"/summarythin /confidence: 0.0. This is expected and fine. - The driver reads
raw_paneand decides. Never block on the daemon's optional LLM classification. Treatstateas a hint; treatraw_paneas ground truth.
Prerequisites
- The
tmbinary 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_decisionnon-null — the session is blocked waiting for an answer. Decide per the autonomy policy below, thentm session answer <id> "<answer>".runtime_active: false— the tmux runtime is stopped (the session may bestoppedlifecycle state but resumable). Usetm 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 fromraw_paneyourself.
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 stopputs a session here. - decommissioned — workspace deleted; terminal and irreversible. Only
tm session decommissionreaches this state.
stopkeeps the workspace (cheap, resumable).decommissionDELETES 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
docx
Use 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…
от Anthropicxlsx
Use 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…
от Anthropicpptx
Use 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…
от Anthropic