Worktrees are required for wu:prep, even when working solo.
# 1. Create a full spec (ID auto-generated)npx wu-create \ --title "Add dark mode" \ --lane "Experience: UI" \ --type feature \ --exposure ui \ --description "Add dark mode toggle to settings" \ --acceptance "Users can switch between light/dark modes" \ --code-paths "src/components/ThemeToggle.tsx" \ --test-paths-unit "src/components/__tests__/ThemeToggle.test.tsx" \ --plan# 2. Claim and work in the worktree (use the generated ID, example: WU-123)npx wu-claim --id WU-123 --lane "Experience: UI"cd worktrees/experience-ui-wu-123# ... make changes ...# 3. Run gates in worktree, then complete from mainnpx wu-prep --id WU-123cd /path/to/mainnpx wu-done --id WU-123
# See all WUs organized by statuscat docs/04-operations/tasks/backlog.md# Check a specific WU's statuspnpm wu:status --id WU-XXX# What did I complete this week?find .lumenflow/stamps -mtime -7 -name "*.done"# List recent WU completions from git historygit log --oneline --grep="wu:done" --since="7 days"
# .lumenflow.config.yamlagent: approval_required: false # Trust gates, skip human review auto_commit: true # Agent can commit passing code parallel_wus: 2 # Agent can work on 2 WUs at once
# 1. Create WU with full specnpx wu-create \ --title "Add user avatar upload" \ --lane main \ --type feature \ --exposure ui \ --description "Allow users to upload profile avatars" \ --acceptance "Upload button in profile settings" \ --acceptance "Images resized to 200x200" \ --acceptance "Stored in Supabase storage" \ --code-paths "src/components/AvatarUpload.tsx" \ --code-paths "src/lib/storage.ts" \ --test-paths-unit "src/components/__tests__/AvatarUpload.test.tsx" \ --plan# 2. Generate agent prompt# Use the generated ID from the output (example: WU-020)npx wu-spawn --id WU-020# 3. Give to AI agent# Agent claims, works in worktree, completes
Future you (and AI agents) will thank present you:
description: | Context: Users report slow page loads on the posts list. Problem: Loading all 1000 posts at once. Solution: Add pagination with 10 posts per page.