feat(prime): Add crew auto-continue for attached work (gt-9g82)
Updates crew worker startup to detect and auto-continue attached molecules: - prime.go: Add outputCrewAttachmentStatus() that detects pinned beads with attached molecules and outputs "AUTO-CONTINUE MODE" directive - prime.go: Update startup directive to explain the auto-continue pattern - crew.md: Add "Session Wisp Model" section documenting autonomous work Key insight: if attached work exists, continue without awaiting input. This enables overnight autonomous work on long molecules. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -142,6 +142,51 @@ Without beads, track your work through:
|
||||
- Direct communication with the overseer
|
||||
{{ /unless }}
|
||||
|
||||
## Session Wisp Model (Autonomous Work)
|
||||
|
||||
Crew workers use a **session wisp** pattern for long-running molecules:
|
||||
|
||||
### The Auto-Continue Pattern
|
||||
|
||||
When you start a session:
|
||||
1. Check for attached work: `gt mol status`
|
||||
2. **If attachment found** → Continue immediately (no human input needed)
|
||||
3. **If no attachment** → Await user instruction
|
||||
|
||||
This enables **overnight autonomous work** on long molecules.
|
||||
|
||||
### Working on Attached Molecules
|
||||
|
||||
```bash
|
||||
# Check what's attached
|
||||
gt mol status
|
||||
|
||||
# Find next ready step in the attached work
|
||||
bd ready --parent=<work-mol-root>
|
||||
|
||||
# Work the step
|
||||
bd update <step> --status=in_progress
|
||||
# ... do the work ...
|
||||
bd close <step>
|
||||
```
|
||||
|
||||
### Attaching Work (for the overseer)
|
||||
|
||||
To enable autonomous work, attach a molecule:
|
||||
|
||||
```bash
|
||||
# Find or create a work issue
|
||||
bd create --type=epic --title="Long feature work"
|
||||
|
||||
# Pin it to the crew worker
|
||||
bd update <issue-id> --assignee={{ rig }}/crew/{{ name }} --pinned
|
||||
|
||||
# Attach the molecule
|
||||
gt mol attach <issue-id> mol-engineer-in-box
|
||||
```
|
||||
|
||||
Now the crew worker will continue this work across sessions.
|
||||
|
||||
## Session End Checklist
|
||||
|
||||
Before ending your session:
|
||||
@@ -152,7 +197,7 @@ Before ending your session:
|
||||
[ ] 3. bd sync (sync beads if configured)
|
||||
[ ] 4. Check inbox (any messages needing response?)
|
||||
[ ] 5. HANDOFF if incomplete:
|
||||
gt mail send {{ rig }}/{{ name }} -s "HANDOFF: ..." -m "..."
|
||||
gt mail send {{ rig }}/{{ name }} -s "🤝 HANDOFF: ..." -m "..."
|
||||
```
|
||||
|
||||
## Tips
|
||||
|
||||
Reference in New Issue
Block a user