Skip to content

Commit e6b296f

Browse files
committed
docs: convert architecture diagram to mermaid
Replace the ASCII flowchart in README's Architecture section with a mermaid flowchart. Two clustered subgraphs (Code Generation Pipeline, Self-Evolution Engine) with a visible feedback arrow showing the evolved prompt flowing back into the next generation's tester. Each evolution-engine node carries its model tier inline (Haiku for the judge, Sonnet for Analyzer and Evolver). Renders natively on GitHub.
1 parent 4a3d4f2 commit e6b296f

1 file changed

Lines changed: 29 additions & 22 deletions

File tree

README.md

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,35 @@ All three projects share the same five-agent shape, but the Tester is the only a
4949

5050
## Architecture
5151

52-
```
53-
┌──────────────────────────────────────────────────────────────┐
54-
│ CODE GENERATION PIPELINE (LangGraph StateGraph) │
55-
│ │
56-
│ Orchestrator → Planner → Coder → Reviewer → Tester ──┐ │
57-
│ ▲ │ │
58-
│ └── revision loop ──────────┘ │
59-
└──────────────────────────────────┬───────────────────────────┘
60-
│ test results + metadata
61-
62-
┌──────────────────────────────────────────────────────────────┐
63-
│ SELF-EVOLUTION ENGINE (evolution/) │
64-
│ │
65-
│ Evaluator → Analyzer → Evolver → Tracker │
66-
│ │ │ │
67-
│ │ scores tests │ writes new prompt │
68-
│ │ via LLM-as-Judge │ (prompts/tester_gen_N.txt) │
69-
│ │ │ │
70-
│ └──────────────────────┘ │
71-
│ ▲ │
72-
│ │ next generation uses updated prompt │
73-
└──────────────────────────────────────────────────────────────┘
52+
```mermaid
53+
flowchart TB
54+
subgraph pipeline["**CODE GENERATION PIPELINE**  ·  LangGraph StateGraph"]
55+
direction LR
56+
O([Orchestrator]) --> P([Planner])
57+
P --> C([Coder])
58+
C --> R([Reviewer])
59+
R --> T([Tester])
60+
T -. revision loop<br/>review/test failed .-> C
61+
end
62+
63+
subgraph evolution["**SELF-EVOLUTION ENGINE** &nbsp;·&nbsp; evolution/"]
64+
direction LR
65+
EV([Evaluator<br/><i>Haiku — LLM-as-Judge</i>])
66+
AN([Analyzer<br/><i>Sonnet</i>])
67+
EVR([Evolver<br/><i>Sonnet</i>])
68+
TR([Tracker<br/><i>persist + rollback</i>])
69+
EV --> AN
70+
AN --> EVR
71+
EVR --> TR
72+
end
73+
74+
pipeline -- "test results +<br/>raw metadata" --> evolution
75+
evolution -- "prompts/tester_gen_N+1.txt<br/>next generation uses updated prompt" --> pipeline
76+
77+
classDef pipe fill:#eef4ff,stroke:#4c6fa4,stroke-width:1px,color:#1b2a4e;
78+
classDef evo fill:#fff4e6,stroke:#b8722b,stroke-width:1px,color:#4a2c07;
79+
class O,P,C,R,T pipe;
80+
class EV,AN,EVR,TR evo;
7481
```
7582

7683
### Code Generation Pipeline

0 commit comments

Comments
 (0)