diff --git a/demo/01-hello.png b/demo/01-hello.png new file mode 100644 index 000000000..aaf188e4b Binary files /dev/null and b/demo/01-hello.png differ diff --git a/demo/01-hello.svg b/demo/01-hello.svg new file mode 100644 index 000000000..3c1c2e34f --- /dev/null +++ b/demo/01-hello.svg @@ -0,0 +1,51 @@ + + + + + + +Hello + + + +start + + + + + +Start + + + +compose + +Compose + + + +start->compose + + + + + +exit + + + + + +Exit + + + +compose->exit + + + + + diff --git a/demo/02-tool-use.png b/demo/02-tool-use.png new file mode 100644 index 000000000..5728fce6c Binary files /dev/null and b/demo/02-tool-use.png differ diff --git a/demo/02-tool-use.svg b/demo/02-tool-use.svg new file mode 100644 index 000000000..ee12bfb92 --- /dev/null +++ b/demo/02-tool-use.svg @@ -0,0 +1,51 @@ + + + + + + +ToolUse + + + +start + + + + + +Start + + + +explore + +Explore + + + +start->explore + + + + + +exit + + + + + +Exit + + + +explore->exit + + + + + diff --git a/demo/03-subagent.png b/demo/03-subagent.png new file mode 100644 index 000000000..b784640b8 Binary files /dev/null and b/demo/03-subagent.png differ diff --git a/demo/03-subagent.svg b/demo/03-subagent.svg new file mode 100644 index 000000000..d3be0d081 --- /dev/null +++ b/demo/03-subagent.svg @@ -0,0 +1,51 @@ + + + + + + +SubAgent + + + +start + + + + + +Start + + + +research + +Research + + + +start->research + + + + + +exit + + + + + +Exit + + + +research->exit + + + + + diff --git a/demo/04-pipeline.png b/demo/04-pipeline.png new file mode 100644 index 000000000..bac00122e Binary files /dev/null and b/demo/04-pipeline.png differ diff --git a/demo/04-pipeline.svg b/demo/04-pipeline.svg new file mode 100644 index 000000000..4ead71072 --- /dev/null +++ b/demo/04-pipeline.svg @@ -0,0 +1,75 @@ + + + + + + +Pipeline + + + +start + + + + + +Start + + + +scan + +Scan Files + + + +start->scan + + + + + +exit + + + + + +Exit + + + +analyze + +Analyze + + + +scan->analyze + + + + + +suggest + +Suggest + + + +analyze->suggest + + + + + +suggest->exit + + + + + diff --git a/demo/05-branch-loop.png b/demo/05-branch-loop.png new file mode 100644 index 000000000..b2162fed3 Binary files /dev/null and b/demo/05-branch-loop.png differ diff --git a/demo/05-branch-loop.svg b/demo/05-branch-loop.svg new file mode 100644 index 000000000..5bd9ca332 --- /dev/null +++ b/demo/05-branch-loop.svg @@ -0,0 +1,95 @@ + + + + + + +BranchLoop + + + +start + + + + + +Start + + + +plan + +Plan + + + +start->plan + + + + + +exit + + + + + +Exit + + + +implement + +Implement + + + +plan->implement + + + + + +validate + +Validate + + + +implement->validate + + + + + +gate + +Tests passing? + + + +validate->gate + + + + + +gate->exit + + +Pass + + + +gate->implement + + +Fix + + + diff --git a/demo/06-parallel.png b/demo/06-parallel.png new file mode 100644 index 000000000..790106bda Binary files /dev/null and b/demo/06-parallel.png differ diff --git a/demo/06-parallel.svg b/demo/06-parallel.svg new file mode 100644 index 000000000..86cc01776 --- /dev/null +++ b/demo/06-parallel.svg @@ -0,0 +1,127 @@ + + + + + + +Parallel + + + +start + + + + + +Start + + + +fork + + + +Fork Analysis + + + +start->fork + + + + + +exit + + + + + +Exit + + + +security + +Security Audit + + + +fork->security + + + + + +architecture + +Architecture Review + + + +fork->architecture + + + + + +quality + +Code Quality + + + +fork->quality + + + + + +merge + + + +Merge Findings + + + +security->merge + + + + + +architecture->merge + + + + + +quality->merge + + + + + +report + +Final Report + + + +merge->report + + + + + +report->exit + + + + + diff --git a/demo/07-human-gate.png b/demo/07-human-gate.png new file mode 100644 index 000000000..6de549d9f Binary files /dev/null and b/demo/07-human-gate.png differ diff --git a/demo/07-human-gate.svg b/demo/07-human-gate.svg new file mode 100644 index 000000000..755ee065e --- /dev/null +++ b/demo/07-human-gate.svg @@ -0,0 +1,95 @@ + + + + + + +HumanGate + + + +start + + + + + +Start + + + +draft + +Draft Proposal + + + +start->draft + + + + + +exit + + + + + +Exit + + + +approve + +Approve Changes? + + + +draft->approve + + + + + +apply + +Apply Changes + + + +approve->apply + + +[A] Approve + + + +skip + +Skip + + + +approve->skip + + +[S] Skip + + + +apply->exit + + + + + +skip->exit + + + + + diff --git a/demo/08-multi-model.png b/demo/08-multi-model.png new file mode 100644 index 000000000..8f4baa77a Binary files /dev/null and b/demo/08-multi-model.png differ diff --git a/demo/08-multi-model.svg b/demo/08-multi-model.svg new file mode 100644 index 000000000..752d036a7 --- /dev/null +++ b/demo/08-multi-model.svg @@ -0,0 +1,87 @@ + + + + + + +MultiModel + + + +start + + + + + +Start + + + +spec + +Write Spec + + + +start->spec + + + + + +exit + + + + + +Exit + + + +implement + +Implement + + + +spec->implement + + + + + +test + +Write Tests + + + +implement->test + + + + + +review + +Code Review + + + +test->review + + + + + +review->exit + + + + + diff --git a/demo/09-simplify.dot b/demo/09-simplify.dot new file mode 100644 index 000000000..1403e562f --- /dev/null +++ b/demo/09-simplify.dot @@ -0,0 +1,11 @@ +digraph Simplify { + graph [goal="Review and simplify recent code changes"] + rankdir=LR + + start [shape=Mdiamond, label="Start"] + exit [shape=Msquare, label="Exit"] + + simplify [label="Simplify", prompt="@docs-internal/prompts/simplify.md"] + + start -> simplify -> exit +} diff --git a/demo/09-simplify.png b/demo/09-simplify.png new file mode 100644 index 000000000..23ec1f5e5 Binary files /dev/null and b/demo/09-simplify.png differ diff --git a/demo/09-simplify.svg b/demo/09-simplify.svg new file mode 100644 index 000000000..b417960df --- /dev/null +++ b/demo/09-simplify.svg @@ -0,0 +1,51 @@ + + + + + + +Simplify + + + +start + + + + + +Start + + + +simplify + +Simplify + + + +start->simplify + + + + + +exit + + + + + +Exit + + + +simplify->exit + + + + + diff --git a/demo/10-plan-implement.dot b/demo/10-plan-implement.dot new file mode 100644 index 000000000..690e9d9c8 --- /dev/null +++ b/demo/10-plan-implement.dot @@ -0,0 +1,17 @@ +digraph PlanImplement { + graph [goal="Plan, approve, implement, and simplify a change"] + rankdir=LR + + start [shape=Mdiamond, label="Start"] + exit [shape=Msquare, label="Exit"] + + plan [label="Plan", prompt="Analyze the goal and codebase. Write a clear, step-by-step implementation plan to a Markdown file called plan.md. Include what files will change and why.", reasoning_effort="high"] + approve [shape=hexagon, label="Approve Plan"] + implement [label="Implement", prompt="Read plan.md and implement every step. Make all the code changes described in the plan."] + simplify [label="Simplify", prompt="@docs-internal/prompts/simplify.md"] + + start -> plan -> approve + approve -> implement [label="[A] Approve"] + approve -> plan [label="[R] Revise"] + implement -> simplify -> exit +} diff --git a/demo/10-plan-implement.png b/demo/10-plan-implement.png new file mode 100644 index 000000000..3ac7d37f9 Binary files /dev/null and b/demo/10-plan-implement.png differ diff --git a/demo/10-plan-implement.svg b/demo/10-plan-implement.svg new file mode 100644 index 000000000..653c7f648 --- /dev/null +++ b/demo/10-plan-implement.svg @@ -0,0 +1,95 @@ + + + + + + +PlanImplement + + + +start + + + + + +Start + + + +plan + +Plan + + + +start->plan + + + + + +exit + + + + + +Exit + + + +approve + +Approve Plan + + + +plan->approve + + + + + +approve->plan + + +[R] Revise + + + +implement + +Implement + + + +approve->implement + + +[A] Approve + + + +simplify + +Simplify + + + +implement->simplify + + + + + +simplify->exit + + + + + diff --git a/demo/11-ensemble.dot b/demo/11-ensemble.dot new file mode 100644 index 000000000..af18dc83c --- /dev/null +++ b/demo/11-ensemble.dot @@ -0,0 +1,37 @@ +digraph Ensemble { + graph [ + goal="Get independent opinions from multiple providers, then synthesize", + model_stylesheet=" + #opus { llm_model: claude-opus-4-6; llm_provider: anthropic; } + #gemini { llm_model: gemini-3.1-pro-preview; llm_provider: gemini; } + #codex { llm_model: gpt-5.3-codex; llm_provider: openai; } + #mercury { llm_model: mercury-2; llm_provider: inception; } + #synth { llm_model: claude-opus-4-6; llm_provider: anthropic; reasoning_effort: high; } + " + ] + rankdir=LR + + start [shape=Mdiamond, label="Start"] + exit [shape=Msquare, label="Exit"] + + fork [label="Fan Out", shape=component, join_policy="wait_all", error_policy="continue"] + + opus [label="Opus", prompt="Analyze the goal. Provide your independent assessment, recommendations, and any code or prose needed. Be thorough.", codergen_mode="one_shot"] + gemini [label="Gemini", prompt="Analyze the goal. Provide your independent assessment, recommendations, and any code or prose needed. Be thorough.", codergen_mode="one_shot"] + codex [label="Codex", prompt="Analyze the goal. Provide your independent assessment, recommendations, and any code or prose needed. Be thorough.", codergen_mode="one_shot"] + mercury [label="Mercury", prompt="Analyze the goal. Provide your independent assessment, recommendations, and any code or prose needed. Be thorough.", codergen_mode="one_shot"] + + merge [label="Merge", shape=tripleoctagon] + synth [label="Synthesize", prompt="You have received independent analyses from four different models (Opus, Gemini, Codex, Mercury). Compare their perspectives: identify consensus, highlight disagreements, and synthesize the strongest ideas into a single coherent recommendation. Note where models agreed and where they diverged.", codergen_mode="one_shot"] + + start -> fork + fork -> opus + fork -> gemini + fork -> codex + fork -> mercury + opus -> merge + gemini -> merge + codex -> merge + mercury -> merge + merge -> synth -> exit +} diff --git a/demo/11-ensemble.png b/demo/11-ensemble.png new file mode 100644 index 000000000..4b579ffe9 Binary files /dev/null and b/demo/11-ensemble.png differ diff --git a/demo/11-ensemble.svg b/demo/11-ensemble.svg new file mode 100644 index 000000000..ee2d58560 --- /dev/null +++ b/demo/11-ensemble.svg @@ -0,0 +1,145 @@ + + + + + + +Ensemble + + + +start + + + + + +Start + + + +fork + + + +Fan Out + + + +start->fork + + + + + +exit + + + + + +Exit + + + +opus + +Opus + + + +fork->opus + + + + + +gemini + +Gemini + + + +fork->gemini + + + + + +codex + +Codex + + + +fork->codex + + + + + +mercury + +Mercury + + + +fork->mercury + + + + + +merge + + + +Merge + + + +opus->merge + + + + + +gemini->merge + + + + + +codex->merge + + + + + +mercury->merge + + + + + +synth + +Synthesize + + + +merge->synth + + + + + +synth->exit + + + + +