Sets up a CRAFT session in Claude Cowork automatically
Closes the active subproject. Verifies all phases are STATUS:complete, auto-merges LL-DELTAS.txt into the parent project LL file with verbatim echo (OQ-1), prepends a one-line outcome_summary to CLAUDE.md “Recent Subproject Outcomes” with FIFO top-3 (OQ-4), moves the SP folder to _closed/, and writes the close announcement.
Cowork Subproject End
TL;DR
How To Start
STEP 1Close the Subproject
-
sp_id
· string · required
Must exactly match the currently ACTIVE subproject. Refuses if no SP is active or sp_id mismatches. -
outcome_summary
· string · required · max 120 chars
Required per OQ-4. Single line, 120 characters or fewer. Prepended to CLAUDE.md “Recent Subproject Outcomes” section with FIFO top-3 enforcement.
Usage Examples
EXAMPLE 1Standard subproject close
EXAMPLE 2Blocked by incomplete phases
EXAMPLE 3Mismatched sp_id
How AI Reads This Recipe
- Verify active SP matches. Scan project/subprojects/*/STATE.txt (excluding _closed/) for ACTIVE=true. Must find exactly one whose SP_ID matches the provided sp_id. Refuse on zero, multiple, or mismatch.
- Validate outcome_summary. Must be 1–120 characters and a single line (OQ-4). Refuse if empty, too long, or multiline.
- Verify all phases complete (I-5). Parse PHASES.txt. Every phase must be STATUS:complete. List incomplete phases and refuse if any remain.
- Auto-merge LL-DELTAS. Read LL-DELTAS.txt, parse entries (excluding header comments). Append byte-for-byte to parent project LL file.
- Verbatim echo (OQ-1). Include the merged LL block in the close announcement between BEGIN/END MERGED LL BLOCK delimiters.
- Update CLAUDE.md outcomes (OQ-4). Locate “Recent Subproject Outcomes” section (create if missing). Prepend the new outcome line. Enforce FIFO top-3.
- Close STATE.txt. Set ACTIVE=false. Populate CLOSED and CLOSED_HANDOFF fields.
- Append final LOG entry. Record close via CWK-049, outcome summary, and LL delta count.
- Archive SP folder. git mv the SP folder to project/subprojects/_closed/.
- Close announcement. Report: archived path, outcome, LL deltas merged (verbatim echo above), CLAUDE.md updated, footer revert note.
When To Use This Recipe
Recipe FAQ
What is OQ-1 visibility-on-merge?
What is OQ-4 and the FIFO top-3?
Can I reopen a closed subproject?
What happens to the footer after closing?
What if LL-DELTAS.txt is empty?
Version History
Get this recipe with CRAFT for Claude Cowork
Cowork recipes ship bundled with CRAFT for Claude Cowork — there’s no separate download. Clone the framework once, and your AI runs every recipe automatically when invoked.
Pull anytime to stay on the latest version — free to clone, no login or email required.
Then start your session
Once CRAFT is in your project folder, open a new Cowork session and ask Claude to initialize. For example:
You
Claude
Not familiar with Git? Download as a ZIP
No command line needed. Just download, move, and unzip:
- Open the CRAFT framework repo on GitHub.
- Click the green Code button, then choose Download ZIP.
- Move the downloaded ZIP into your Claude Cowork project folder.
- Unzip it: double-click on Mac, or right-click → Extract All on Windows.
