Skip to content

ccx 0.4.0 — create-or-resume + the self-saving notebook - #2

Merged
ofcRS merged 1 commit into
mainfrom
feat/create-or-resume
Jul 10, 2026
Merged

ccx 0.4.0 — create-or-resume + the self-saving notebook#2
ofcRS merged 1 commit into
mainfrom
feat/create-or-resume

Conversation

@ofcRS

@ofcRS ofcRS commented Jul 10, 2026

Copy link
Copy Markdown
Member

One command to continue a thread (/ccx:start-thread resumes instead of stopping on an existing STATE), and the notebook keeps itself fresh: the INDEX recompiles on every STATE write, and a Stop-hook guard makes a session persist its working state before it ends.

Pattern shipped + verified in the host project first (2026-07-10); port spec in docs/superpowers/plans/2026-07-11-create-or-resume-and-self-saving-notebook.md.

  • tests/run-tests.ts: 73/73 (new hook e2e sections on tmpdir fixtures)
  • claude plugin validate: pass

🤖 Generated with Claude Code

- start-thread: existing thread => resume briefing (STATE + live git/PR
  deltas), read-only on STATE, near-match resumes; no more STOP-on-exists
- auto-compile-index hook (PostToolUse Write|Edit): STATE write kicks a
  detached, .pending-debounced INDEX recompile - save-state no longer
  load-bearing for freshness
- record-session-thread hook (UserPromptExpansion): session<->thread
  association in <scratch_root>/.sessions/<sid>.json
- state-freshness-guard hook (Stop): work newer than the associated
  thread's STATE blocks the stop once (GRACE 10min, THROTTLE 30min,
  stop_hook_active-safe, SKIP_STATE_GUARD=1 escape)
- tests: 73/73 incl. hook e2e on fixtures; port spec in docs/

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ofcRS
ofcRS merged commit 76caca6 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant