session-tracker
БесплатноЗапускает вложенные скриптыНе проверенCheckpoints multi-step work to disk so a crashed or dropped session can be resumed rather than redone. Use when a task has two or more steps AND writes files…
от darkd1 455 установок в других каталогахОб этом скилле
session-tracker v2.6.1
Track, checkpoint, and resume multi-step tasks across session interruptions. Init once, recover anytime, minimal footprint by default.
When to use
Use when all of these hold:
- the task has 2 or more distinct steps, and
- it involves file modifications, code generation, or multi-document pipelines, and
- losing mid-task state to a crash, timeout, or disconnect would be costly to redo.
Do not use when any of these hold:
- Single-step tasks — "read this file and summarize", "what time is it"
- Read-only analysis that produces no files
- Trivial lookups — quick questions, fact retrieval, single API calls
- Privacy-sensitive tasks — credentials, secrets, or paths that should not persist to
.session/ - The user declines — "don't track this", "just do it, no logging"
- Ephemeral interactive work — exploration, debugging, ad-hoc questions
This is a conditional safety net. For anything outside the criteria above, skip it.
Why init comes first
The value comes entirely from being initialized before a crash, not after.
If init ran first, a drop leaves a full recovery trail and the next agent
picks up where things stopped. If it did not, the mid-task context is gone and
there is nothing on disk to recover from. Once a task qualifies, run init
before starting work.
Do not log secrets
log, step --desc, done --note, and init <task> persist their text
verbatim to .session/, where it survives until cleanup. Never pass
credentials, API keys, tokens, private keys, environment variable values, or
file contents. If a task involves secrets, either skip this skill or sanitize
the text first.
Workflow
crash-detect— at the very start, check for orphaned sessionsinit— at task start; the single most important callstep --start— before beginning each stepfile --reading/file --working— track files being read or modifiedping— during long operations, to signal alivelog— progress notesfile --done/step --done— mark completionssync— after updating TodoWritedone— mark the session completeresume— at the start of a new session after an interruptionprune— periodicallycleanup --dry-run, thencleanup --force— when finished entirely
Monitor is optional. status does not scan the filesystem by default.
Commands
<ST> = python3 <skill-dir>/scripts/session_tracker.py. The session
directory defaults to .session/ beside the script's project root and is
overridable with the SESSION_TRACKER_DIR environment variable.
# Initialize (minimal data, no FS scan)
<ST> init "Task" --steps "Step 1,Step 2"
<ST> init "Task" --steps "A,B" --fs-scan # enable FS scanning
<ST> init "Task" --steps "A,B" --auto-cleanup # done triggers cleanup
<ST> init "Task" --steps "A,B" --journal # cross-session history
<ST> init "Task" --steps "A,B" --replace # overwrite an orphan
# Steps and files
<ST> step 1 --start --files "/path/to/file"
<ST> step 1 --done
<ST> step 7 --start --desc "ad-hoc step" # steps need not be pre-declared
<ST> file /path --working | --done | --reading
<ST> file --rename /old /new
# Heartbeat, log, todo sync
<ST> ping --detail "Generating large document..."
<ST> log "Progress note" --step 2
echo '[{"id":"1","content":"Step","status":"completed"}]' | <ST> sync
<ST> sync # no stdin: prints stored todo list
# Completion and recovery
<ST> done [--note "completion note"]
<ST> crash-detect # recovery report
<ST> resume # resume plan
# Status and analytics
<ST> status [--fs-scan]
<ST> scan # take/diff an FS snapshot
<ST> stats # journal analytics
<ST> doctor # orphan + monitor + staleness
# Monitor (opt-in)
<ST> monitor --start --interval 60 | --foreground | --check | --stop
# Cleanup and prune
<ST> cleanup --dry-run # preview, deletes nothing
<ST> cleanup --force [--purge-journal] [--force-unmarked]
<ST> prune [--max-age 3]
Exit codes
0 success · 2 refused (dangerous or unmarked session directory) ·
3 init aborted because an orphan exists. Aborted init returning non-zero
matters: init … && do_work must not proceed as though tracking started.
Behaviour worth knowing
init aborts on an orphan. If an orphaned session is detected, init
archives its full state to crashed_state_<ts>.json, writes CRASH_NOTICE.md,
and exits 3 without overwriting anything. Pass --replace to overwrite
deliberately. Repeated aborted inits reuse the existing archive rather than
piling up new ones.
Restored content is fenced, not trusted. crash-detect and resume wrap
everything recovered from disk in BEGIN/END UNTRUSTED DATA [nonce] ma
Установить session-tracker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл session-tracker?
Checkpoints multi-step work to disk so a crashed or dropped session can be resumed rather than redone. Use when a task has two or more steps AND writes files or generates code AND losing mid-task state would be costly; when resuming after a session drop; or when the user asks for crash-resilient tracking. Do not use for single-step tasks, read-only analysis, trivial lookups, exploratory conversation, or anything involving credentials or paths that should not persist. Writes JSON state to .session/ only: task name, step list, agent-declared file paths, worklog entries — never file contents. Filesystem scanning is off by default; status does not scan unless --fs-scan is passed. No network, no eval, no environment harvesting. Optional opt-in extras: a detached 24h-bounded monitor, and a cross-session journal. Restored content is fenced and labelled as untrusted data. cleanup is irreversible and requires an ownership marker plus --force.
Как установить скилл session-tracker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл session-tracker запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic