FlowForge is NOT a sub-agent. FlowForge is a CLI tool + workflow definition that the main agent (me) uses to control its own execution flow.
- cron triggers my main session every 30 minutes
- I run
flowforge status→ it tells me what node I'm in and what task to do - I spawn a sub-agent to execute that task (isolated token tracking)
- Sub-agent completes, reports result back to me
- I evaluate the result, decide which branch to take
- I run
flowforge next --branch N→ FlowForge moves me to next node - Repeat until cron session ends or workflow loops back
- FlowForge = the workflow state machine (what to do, in what order)
- Sub-agents = the workers (do the actual task)
- Main session (me) = the coordinator (reads workflow, spawns workers, evaluates results, advances state)
I am both the executor AND the manager, but FlowForge constrains my management decisions to the predefined workflow.
cron kicks me →
flowforge status → current node = "followup"
spawn sub-agent: "用 gogetajob sync 检查所有 PR,处理 review 反馈"
sub-agent reports: "PR #279 有新 review,已处理并 push"
I evaluate: 有处理过 review → branch 1: handle_review? 不对,已经处理完了
flowforge next --branch 2 → find_work
spawn sub-agent: "用 gogetajob scan + feed 找新活"
sub-agent reports: "找到 ClawX issue #XX"
flowforge next --branch 1 → study
spawn sub-agent: "研究 ClawX 代码和这个 issue"
...continue until cron timeout...
Nodes have:
task: natural language description (becomes sub-agent's task prompt)next: linear progressionbranches: conditional branching based on result
flowforge define <yaml>— register workflowflowforge start <workflow>— start instanceflowforge status— current node + task + branchesflowforge next [--branch N]— advanceflowforge log— historyflowforge reset— restart
- FlowForge persists state in SQLite → survives session restarts
- Each cron session reads state, continues from where last session left off
- Sub-agents do isolated work with tracked tokens
- The workflow YAML is the source of truth for what I should be doing
- I can't "forget" to check reviews because the workflow starts with followup