Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph Engineering Sample Prompts

English | 繁體中文

Copy-paste prompts that turn your AI agents from a waiting line into a graph that fires in parallel — then flip the graph around and attack your own conclusions.

Five templates plus a five-minute demo, five diagrams. Every file is self-contained: copy the whole block, paste it to your agent, type your topic at the bottom, send.

Template What it does When to use it
00 Your First Graph One claim you believe, three isolated skeptics, one vote — the diamond's kill layer alone Feeling the method in five minutes, before learning it
01 False-Edge Audit Lays out your existing workflow and finds which "and then"s are fake You suspect your agents are waiting in a line they don't need
02 Diamond Research Split into angles → parallel search → adversarial verification → report with confidence labels Researching an unknown territory (market, competitors, regulation)
03 Adversarial Review Feeds your finished conclusions to isolated attackers A document that matters, that you've revised many times, that you believe is complete
04 Consultant Roundtable Two-round Delphi: isolated consultants take positions → anonymous aggregate → revise or hold → consensus map with dissent kept A decision with no right answer in public data (pricing, timing, build vs buy)
05 Issue Tree MECE decomposition into a dispatchable tree — and then actually dispatches it: fact leaves to 02, judgment leaves to 04 A big fuzzy problem, before any research is dispatched

Want proof before pasting anything? A real run of 00 — the README's own example claim, three isolated skeptics, killed 3–0 in ninety seconds.

The diagrams

Diagram 0: You already run a graph

graph LR
    A[Agent] -->|repeat| A
    A -.-> S[state]

    style A fill:#1e56c4,color:#fff
    style S fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
Loading

A single agent loop is already a graph: one node, one edge pointing back at itself, state riding around the cycle. That reframe kills a false choice — graphs don't replace loops, they connect and govern them. Every node in the diagrams below is a loop that kept its job and lost its monopoly. If you have a working loop today, you are not starting over; you are adding edges.

Diagram 1: The waiting line (where most people are)

graph TD
    Q[Research question] -->|5 angles| A1[Search angle 1]
    A1 -. and then? .-> A2[Search angle 2]
    A2 -. and then? .-> A3[Search angle 3]
    A3 -->|all claims| V[Verify]
    V -->|surviving claims| R[Write report]

    style A1 fill:#1e56c4,color:#fff
    style A2 fill:#1e56c4,color:#fff
    style A3 fill:#1e56c4,color:#fff
    style V fill:#0c7a5e,color:#fff
    linkStyle 1 stroke:#cc3a3a,stroke-width:2px
    linkStyle 2 stroke:#cc3a3a,stroke-width:2px
Loading

The red dashed lines are false edges: the next step never reads the previous step's output — the order exists only because that's how you typed it. The only test that matters: if you can name the variable flowing along the arrow, the edge is real. If you can't, the two steps are independent and can run at the same time.

Diagram 2: The diamond (the same work, drawn as a graph)

graph TD
    Q[Scope: split the problem] -->|angle 1, each with its own context| A1[Search agent]
    Q -->|angle 2| A2[Search agent]
    Q -->|angle 3| A3[Search agent]
    Q -->|angle 4| A4[Search agent]
    Q -->|angle 5| A5[Search agent]

    A1 -->|sources + falsifiable claims| M[Merge & dedupe: one line of code, no agent]
    A2 --> M
    A3 --> M
    A4 --> M
    A5 --> M

    M -->|top 25 claims, one by one| V[Verifiers × N — their only job: refute]
    V -->|survivors + confidence labels| S[Synthesize: write the report]

    style Q fill:#1e56c4,color:#fff
    style A1 fill:#1e56c4,color:#fff
    style A2 fill:#1e56c4,color:#fff
    style A3 fill:#1e56c4,color:#fff
    style A4 fill:#1e56c4,color:#fff
    style A5 fill:#1e56c4,color:#fff
    style V fill:#0c7a5e,color:#fff
    style S fill:#1e56c4,color:#fff
    style M fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
Loading

No edges between the search nodes, so they run simultaneously. The gray node is deterministic code, not an agent — merging and deduping is a one-liner. The green verification layer gets fresh context and has exactly one job: refute.

Two design rules hide in that green layer, and they are the difference between review and theater. First: the node that produced a claim never judges it — three siblings sharing one model and one context agreeing with each other is not verification, it is the same blind spot counted three times. Second: a verdict must anchor to something outside the graph — a primary-source quote with a link and a date, a test that actually ran, a number recomputed by hand — because internal agreement is the one thing a graph can always manufacture on demand.

Diagram 3: Flip it around (attack your own conclusions)

graph TD
    P[A plan you believe is complete: frozen conclusions] -->|split by domain + de-identify| G1[Attacker 1: sees only its slice]
    P -->|conclusion list| G2[Attacker 2]
    P -->|conclusion list| G3[Attacker 3]
    P -->|...eight in total| G8[Attacker 8]

    G1 -->|per-item verdicts + open questions| J[Main loop: arbitrate disagreements]
    G2 --> J
    G3 --> J
    G8 --> J

    J -->|conclusions overturned or revised| R[Review report + decision graph]

    style P fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
    style G1 fill:#cc3a3a,color:#fff
    style G2 fill:#cc3a3a,color:#fff
    style G3 fill:#cc3a3a,color:#fff
    style G8 fill:#cc3a3a,color:#fff
    style J fill:#1e56c4,color:#fff
    style R fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
Loading

Same skeleton, opposite direction: the input is not a question but your conclusions, and the middle nodes don't discover — they kill. Field result: a plan hand-revised three times lost roughly one fifth of its conclusions in a single overnight round.

Diagram 4: The roundtable (judgment, not facts)

graph TD
    D[Decision: framed and gated] -->|lens 1, isolated| C1[Consultant]
    D -->|lens 2| C2[Consultant]
    D -->|lens 3| C3[Consultant]
    D -->|...4 to 6 lenses| C4[Consultant]

    C1 -->|position + reasons + change-my-mind evidence| AG[Anonymize & tally: no agent]
    C2 --> AG
    C3 --> AG
    C4 --> AG

    AG -->|anonymous spread, back to the same consultants| R2[Round two: revise or hold]
    R2 -->|consensus + dissent + deciding facts| S[Convergence report]
    S -.->|deciding facts become search angles| Q2[Next: a Diamond round]

    style D fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
    style C1 fill:#7c3aed,color:#fff
    style C2 fill:#7c3aed,color:#fff
    style C3 fill:#7c3aed,color:#fff
    style C4 fill:#7c3aed,color:#fff
    style R2 fill:#7c3aed,color:#fff
    style AG fill:#e5e7eb,stroke:#9ca3af,color:#1f2937
    style S fill:#1e56c4,color:#fff
Loading

Same diamond skeleton, but the middle layer outputs judgment, not facts — and opinions can't be refuted the way claims can, so the fan-in isn't a verification layer. It's a deterministic anonymizer followed by a second pass through the same nodes: consultants see that someone disagrees and why, never who, so revising costs no face. Exactly two rounds — a third manufactures conformity. The dashed edge is the escape hatch back to facts: whatever evidence would settle a disagreement becomes a search angle for a Diamond round.

Quick start

Route by what you're holding, not what you want — the shape of your input picks the template deterministically:

Chained end to end they cover a whole project: 05 decomposes, 02 researches the fact leaves while 04 convenes on the judgment leaves, and 03 attacks whatever you conclude — with every round's "Rejected" and "Open questions" ledgers fed to the next round's orchestrator.

(For AI agents reading this repo: the routing list above is the index. Load only the file it points to — every template is self-contained, and the user's input arrives at the very end of the pasted block, after a labeled marker like "My topic:".)

  1. Pick a template, open the file, copy everything below the "Copy this block" line
  2. Paste it to your agent
  3. Type your topic / workflow / claim at the bottom and send — every block ends with a labeled slot, examples included, so there is nothing to hunt for and replace

(03 is the exception: it dispatches in parts — follow its own how-to.)

Harnesses that can spawn subagents (Claude Code and similar): dispatch in parallel exactly as written — this is where the method shines.

Plain chat interfaces (ChatGPT, Claude.ai, Gemini): two fallbacks — (a) open a fresh conversation per role and play the orchestrator yourself, or (b) simulate roles sequentially in one conversation, declaring at each switch "forget the previous role's output; use only your own materials." Isolation degrades, but the method still holds.

Model assignment

If your harness lets you pick a model per agent, tier by role — this is where quality-per-dollar is won:

Graph role Tier Why Examples (2026-07 — names age, tiers don't)
Search & fetch nodes Cheapest fast tier Repetitive lookup; no judgment needed Haiku-class / mini-class models
Verifiers / attackers Strong reasoning, mixed families Refutation is judgment work; at least one verifier from a different model family breaks shared blind spots Opus 5, GPT-5.5 Terra — plus one from another family
Consultants (roundtable) Strong reasoning, panel spans ≥2 families Positions are pure judgment; a panel from one family is one opinion in several tones Same tier as verifiers, deliberately mixed
Synthesis / arbitration The strongest model you have One context holds everything; an error here survives to the final report Fable 5, 5.6 Sol, or equivalent

Field note: running all 313 agents on the top-tier model was expensive tuition — search and fetch never needed it. If you can't pick models per agent (plain chat interfaces), skip this table; the method still works, you just pay more.

Five honest warnings

  • The token bill is real. One diamond round can cost tens of single-conversation budgets. Run search and fetch nodes on cheap models; save the judgment for verification and synthesis
  • Multiple copies of the same model share the same blind spots (Knight & Leveson, 1986, on N-version programming) — and so does a panel sharing one context: approval from three agents reading the same brief is one opinion with three signatures. Break both: a different model family as counter-examiner, fresh context for every reviewer, and verdicts anchored to evidence outside the graph, never to each other
  • The graph buys breadth, not judgment. A question with zero surviving claims after two rounds has no answer in public data — a hundred more agents won't change that. Go talk to people
  • A persona is a lens, not a credential. Putting a CFO hat on a model adds zero facts — it changes which risks get looked at first. A consultant panel's value is that its lenses are mutually exclusive, never that its titles sound senior; don't cite a roundtable verdict as if an expert said it
  • A hole in the brief costs every output, not one. Before fanning out more than three agents onto the same brief, canary it: dispatch one, with a single instruction — list every fact you'd need that this brief doesn't give you — patch, then send the rest. This is what parallelism charges you: a gap gets copied N times and stays invisible until all N are back

This method is older than LLMs

Every trick here has a name, and every name predates LLMs by decades: isolated skeptics is the Delphi method (RAND, 1950s) — template 04 runs its two-round anonymous-feedback form in full; designated attack is Devil's Advocacy (management science, 1970s); the open question is the Premortem (Gary Klein, HBR 2007); the rejection ledger is Analysis of Competing Hypotheses (Heuer, CIA); the issue tree and MECE are Barbara Minto's Pyramid Principle discipline (McKinsey, 1960s–70s), which template 05 turns into dispatchable graphs. The method is old. What's new is the price: convening eight experts who never meet went from weeks to an hour.

The full story with field numbers (313 agents, three research rounds, 16–40% rejection rates) is in the companion article — in English as The Art of Making Your Agents Fight Each Other (also on LinkedIn), or the Traditional Chinese original: Graph Engineering 的 Agent 左右互搏之術.

License & Star

MIT. Take it, change it, use it. If these templates saved you a round of rework, a ⭐ helps others find them.

About

Copy-paste prompts that turn your AI agents from a waiting line into a graph: a 5-min demo, false-edge audit, diamond research, adversarial review, consultant roundtable, and an issue tree that dispatches itself. EN + 繁中.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors