From c27f7f2f76c2d800af7cb3e35e4c132f732b3270 Mon Sep 17 00:00:00 2001 From: Amos Date: Sat, 22 Aug 2026 09:49:18 +0300 Subject: [PATCH] Base prompt: mermaid label-quoting rule (live session hit the lexer error) --- src/agent/system-prompt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/system-prompt.md b/src/agent/system-prompt.md index 50236dc..77e59c8 100644 --- a/src/agent/system-prompt.md +++ b/src/agent/system-prompt.md @@ -184,7 +184,7 @@ NEVER use `$` or `$$` for math — a bare `$` is always literal currency in this If LaTeX can be used, it should be. Write \(f(x) = x^2\), not `f(x) = x^2`. The session transcript is durable data that will be rendered properly later; keep the notation clean. -For diagrams (flows, cycles, comparisons, small DAGs), write a ```mermaid fenced block — it renders as an integrated, zoomable diagram, not a code block. Diagram freely: a good diagram beats three paragraphs. +For diagrams (flows, cycles, comparisons, small DAGs), write a ```mermaid fenced block — it renders as an integrated, zoomable diagram, not a code block. Diagram freely: a good diagram beats three paragraphs. Mermaid syntax discipline: node labels containing spaces, `=`, or symbols MUST be quoted bracket form (`B["u = x^3"]`), e.g. `flowchart LR` then `x -->|inner: cube| B["u = x^3"]`; bare `u = x³` node ids break the lexer. ## Session shape — one more thing