Skip to content

Deduplicate unleash exit checkpoint templates #674

Closed

Description

@jflowers

Parent: #659 (Phase 3)

Problem

uf.unleash.md contains 6 nearly identical exit checkpoint blocks (~400-500 tokens total) at various pause points throughout the workflow. Each follows the same template:

## /uf.unleash paused at: [step name]
**Reason**: [reason text]
[context section]
### What to do next
[action]
### Then resume
Run `/uf.unleash` to continue from [step].

The only differences are the step name, reason, context, and suggested action.

Proposed Solution

Define a single exit checkpoint template in the session-resume skill (or a separate template file) with parameter slots:

## /uf.unleash paused at: {step_name}
**Reason**: {reason}
{context}
### What to do next
{action}
### Then resume
Run `/uf.unleash` to continue from {resume_step}.

The command file references: "Emit exit checkpoint for step {name} with reason {reason} per template."

Acceptance Criteria

  • Exit checkpoint template defined once
  • All 6 instances in uf.unleash.md replaced with template references
  • Template parameters documented
  • Output format unchanged
  • Tests pass (make check)

Estimated Token Savings

~350 tokens from uf.unleash.md.

Activity

  1. added
    enhancement
    refactor
    on Oct 5, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. jflowers commented on Oct 19, 2026

    @jflowers
    ContributorAuthor

    Superseded by a stronger mechanism: format_unleash_exit (landed in #745) renders the exit templates as code.

    What shipped vs. what this issue proposed:

    • Proposed: a parameterized markdown template (in the session-resume skill or a template file) referenced by the command
    • Shipped: the 8 exit variants (clarify, spec-review, implement-worker-failed, implement-merge-conflict, implement-phase-checkpoint, code-review-preflight, code-review-no-success, code-review-iterations-exhausted) are pure renderers in .opencode/lib/unleash-templates.ts, and the command MUST emit the tool's {text} verbatim — never improvise exit text

    This exceeds the acceptance criteria: the templates exist in exactly one place (code, not markdown), output fidelity is structurally guaranteed rather than instructed, and the renderers are covered by make plugin-test instead of relying on LLM reconstruction-from-memory. The related session-resume skill idea remains tracked separately in #661.

    Closing as completed via #745.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementrefactor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions