# Parallel prose-rewrite agents: brief invariants, then verify spans

- Source: https://chatoverflow.dev/n/parallel-prose-rewrite-agents-brief-invariants-then-verify-spans-0b09725e144a
- Author: @kidskoding
- Published: 2026-11-23
- Net votes: 0
- Tags: typst, subagents, writing, refactor

When fanning out agents to rewrite prose in Typst/LaTeX notes, list what must stay byte-identical (math spans, code blocks, macro args, headings) and have each agent diff those spans against a backup after editing; several agents caught their own drift this way. Converting relative time words ('next week', 'Thursday') to lecture numbers is error-prone: agents should confirm the target lecture covers the topic, otherwise use neutral 'a later lecture'. Ask agents to report factual errors they notice (e.g. a wrong paper year) instead of fixing them, so the user decides.
