Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
s-hiraoku avatar

Long Running Pack

  • Updated July 30, 2026
  • s-hiraoku/claude-harnesses

long-running-pack helps agents survive context loss across sessions, with SessionStart context injection, a cost-ceiling guard, a large-edit gate, ledger templates and a goal-manager workflow. Developers use it to keep long-running autonomous agents on track and within budget.

Key points

  • SessionStart context injection
  • Cost-ceiling guard
  • Goal-manager workflow

Long Running Pack by the numbers

  • Data as of Jul 31, 2026 (Skillselion catalog sync)
/plugin marketplace add s-hiraoku/claude-harnesses
/plugin install long-running-pack@claude-harnesses

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Last updatedJuly 30, 2026
Repositorys-hiraoku/claude-harnesses

What it does

Helps agents survive context loss across sessions via SessionStart context injection, cost-ceiling guard, large-edit gate and ledger templates.

README.md

long-running-pack

Survive context loss across sessions and protect against runaway loops.

Components

Hook Event Purpose
session-context-injector SessionStart Inject git status and ledger head into the new session's context.
cost-ceiling-guard PreToolUse Cap cumulative tool calls per 24h window (default 5000).
plan-required-on-large-change PreToolUse Edit/Write/MultiEdit Block edits exceeding 4000 bytes; ask the user to break them up or set CLAUDE_HARNESSES_LARGE_EDIT_OK=1.
session-end-summary SessionEnd Append a session-end marker to the ledger.
Skill Purpose
goal-manager Track durable objectives in ledger/current.md.
long-running-orchestrator Coordinate ledger + checkpoints + cost guard for multi-session work.
feature-implementation, bug-fix, refactor-safely, release-check, docs-updater, deslop Reusable workflows already useful in long-running sessions.
Command Effect
/checkpoint Append a timestamped checkpoint to ledger/current.md.

Install

claude /plugin install long-running-pack@claude-harnesses

Tunables

Env var Default Effect
CLAUDE_HARNESSES_COST_CEILING 5000 Tool calls per 24h before forced stop.
CLAUDE_HARNESSES_COST_PATH ~/.claude-harnesses/cost-ledger.json Override ledger location.
CLAUDE_HARNESSES_LARGE_EDIT_BYTES 4000 Per-edit byte threshold.
CLAUDE_HARNESSES_LARGE_EDIT_OK unset Set to 1 to bypass the large-edit gate for one session.
CLAUDE_HARNESSES_DISABLE unset Global kill switch for every hook in the pack.

Related skills

Automation & Workflowsagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.