| name | flow-next-opencode |
| description | Manage .flow/ tasks and epics. Triggers: 'show me my tasks', 'list epics', 'what tasks are there', 'add a task', 'create task', 'what's ready', 'task status', 'show fn-1'. NOT for /flow-next:plan or /flow-next:work. |
Flow-Next Task Management
Quick task operations in .flow/. For planning features use /flow-next:plan, for executing use /flow-next:work.
Setup
CRITICAL: flowctl is BUNDLED — NOT installed globally. which flowctl will fail (expected). Always use:
ROOT="$(git rev-parse --show-toplevel)"
OPENCODE_DIR="$ROOT/.opencode"
FLOWCTL="$OPENCODE_DIR/bin/flowctl"
Then run commands with $FLOWCTL <command>.
Discover all commands/options:
$FLOWCTL --help
$FLOWCTL <command> --help
Quick Reference
$FLOWCTL detect --json
$FLOWCTL init --json
$FLOWCTL list --json
$FLOWCTL epics --json
$FLOWCTL tasks --json
$FLOWCTL tasks --epic fn-1 --json
$FLOWCTL tasks --status todo --json
$FLOWCTL show fn-1 --json
$FLOWCTL cat fn-1
$FLOWCTL show fn-1.2 --json
$FLOWCTL cat fn-1.2
$FLOWCTL ready --epic fn-1 --json
$FLOWCTL task create --epic fn-1 --title "Fix bug X" --json
echo "Description here" > /tmp/desc.md
$FLOWCTL task set-description fn-1.2 --file /tmp/desc.md --json
echo "- [ ] Criterion 1" > /tmp/accept.md
$FLOWCTL task set-acceptance fn-1.2 --file /tmp/accept.md --json
$FLOWCTL start fn-1.2 --json
echo "What was done" > /tmp/summary.md
echo '{"commits":["abc123"],"tests":["npm test"],"prs":[]}' > /tmp/evidence.json
$FLOWCTL done fn-1.2 --summary-file /tmp/summary.md --evidence-json /tmp/evidence.json --json
$FLOWCTL validate --epic fn-1 --json
$FLOWCTL validate --all --json
Common Patterns
"Add a task for X"
-
Find relevant epic:
$FLOWCTL epics --json
$FLOWCTL show fn-1 --json
-
Create task:
$FLOWCTL task create --epic fn-N --title "Short title" --json
-
Add description:
cat > /tmp/desc.md << 'EOF'
**Bug/Feature:** Brief description
**Details:**
- Point 1
- Point 2
EOF
$FLOWCTL task set-description fn-N.M --file /tmp/desc.md --json
-
Add acceptance:
cat > /tmp/accept.md << 'EOF'
- [ ] Criterion 1
- [ ] Criterion 2
EOF
$FLOWCTL task set-acceptance fn-N.M --file /tmp/accept.md --json
"What tasks are there?"
$FLOWCTL epics --json
$FLOWCTL tasks --json
$FLOWCTL tasks --epic fn-1 --json
$FLOWCTL ready --epic fn-1 --json
"Show me task X"
$FLOWCTL show fn-1.2 --json
$FLOWCTL cat fn-1.2
Create new epic (rare - usually via /flow-next:plan)
$FLOWCTL epic create --title "Epic title" --json
ID Format
- Epic:
fn-N (e.g., fn-1, fn-42)
- Task:
fn-N.M (e.g., fn-1.1, fn-42.7)
Notes
- Run
$FLOWCTL --help to discover all commands and options
- All writes go through flowctl (don't edit JSON/MD files directly)
--json flag gives machine-readable output
- For complex planning/execution, use
/flow-next:plan and /flow-next:work