super-workstream
Organize and progress multi-task queues under dynamic lane leases with long-turn context safety. Use when an operator or loop needs to execute a sequence of…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить super-workstream в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/super-workstream — queue progression, dynamic lane leases, and context safety
The queue-ordered workstream coordinator. Bridges high-level operator intents, just-in-time lane leases, and rigorous long-turn context safety. It allows one skill, loop, or autonomous agent to progress multiple tasks sequentially without suffering from context bloat or monopolizing shared trunk lanes.
The fleet runs many work engines: fak dispatch tick handles one issue under one lease;
fak superloop walks scorecards and member loops to find the single worst-first entry;
/super-loop fans out N detached processes across accounts. But when an agent needs to
advance a coherent sequence of multiple work items over a long session, it hits two
opposing failure modes:
- Context Bloat & Attention Dilution: Running 5+ tasks in one continuous raw context window accumulates 40–100 turns. Old command outputs pollute attention, prompt caching degrades, and the model confuses requirements across tasks.
- Coarse Trunk Lockout: Taking one broad lane lease across the whole multi-task session
blocks peer agents and human contributors on the shared trunk. Conversely, omitting lane
leases leads to collisions (
COLLISION_RISK).
A Super Workstream resolves this by operating as a functional coordinator that executes an ordered queue through three synchronized disciplines:
[ Queue of WorkItems ]
│
▼
┌─────────────────────────┐
│ 1. Dynamic Lane Lease │ Acquire just-in-time for active item; release immediately on exit.
│ (laneadmit / yield) │ If contended by a peer, skip to a downstream disjoint item.
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 2. Bounded Execution │ Execute item within a strict turn budget (default 8 turns).
│ & Witness Gate │ Prove real execution (CLAIM_TEST_GREEN); commit by explicit path.
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ 3. Context Safety │ Evaluate context pressure. At item boundaries or turn ceilings,
│ & O(1) Carryover │ emit StreamCarryoverSeed, reset transcript, and re-arm clean context.
└─────────────────────────┘
Core Principles
1. Dynamic Per-Item Lane Leasing
Never hold a coarse lane lease across multiple queue items.
- Acquire the exact lane/tree lease (
laneadmit.Request) immediately before executing the active item. - If the head item's lane is held by a peer session (
COLLISION_RISK), check for a downstream disjoint item in the queue (FindNextDisjointItem). If one exists, progress that item immediately; otherwise, yield until the peer lease clears. - As soon as the item is committed, failed, or yielded, release the lease before advancing the queue.
2. Bounded Turn Budget per Work Unit
Every work item carries a defined turn budget (MaxTurns, default 8).
- Keep the coordinator context clean: do not execute long multi-page compiler outputs or exploratory grep loops in the coordinator context.
- When an item approaches 70% of its turn budget (
PRESSURE_WARN), focus on completing the minimal reproduction and verification. - If an item exhausts its turn budget without completion (
RESET_REQUIRED), checkpoint its partial progress, release the lane lease, and re-arm with a fresh turn.
3. Context Safety via StreamCarryoverSeed
To sustain long runs across dozens of tasks, the stream discards raw historical transcripts at item boundaries and carries only a compact O(1) Carryover Seed:
- Stream ID & Intent: High-level objective.
- Queue Progress: Completed count, remaining items.
- Closed Receipts: For finished items, preserve ONLY
{ID, Title, CommitSHA, WitnessStatus}. - Stream Pins: Invariants (e.g. "keep main buildable", "explicit path commits only").
- ctxplan Layout: Reconstructs the context frame using
ctxplan.Layout:Base: Stream invariants and pins (exact precision).Recent: Previous item's summary receipt (planned precision).Current: Active work item descriptor and acceptance criteria (exact precision).Deep: Historical git/CAS pointers (pointer precision).
Step-by-Step Execution Workflow
Step 0: Define or Inspect the Workstream Plan
Inspect the queued items, target lanes, and context budgets:
fak superstream plan [--spec path/to/stream.json] [--json]
Step 1: Query Next Safe Step (fak superstream step)
Evaluate the single next transition from the pure state machine:
fak superstream step [--spec path/to/stream.json] [--holder <id>] [--json]
The decision returns one of:
ACQUIRE_LEASE: Head item is ready and lane is free.YIELD_CONTENDED: Head item lane is held; tells you whether a disjoint item is ready to skip to.EXECUTE_ITEM: Lease is held; proceed with implementation.WITNESS_AND_COMMIT: Execution finished; execute verification and commit by explicit
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл super-workstream?
Organize and progress multi-task queues under dynamic lane leases with long-turn context safety. Use when an operator or loop needs to execute a sequence of work units across lanes while preventing context degradation and trunk lock contention.
Как установить скилл super-workstream?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл super-workstream запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…