Lay out replies from an editable template file
Replies (the quick ask reply, the queued/working reply, and the research pipeline’s finished answer) are now laid out by config/replies.default.md. Your own copy goes in the gitignored config/replies.md; a template left out of it keeps the default. It’s read on every reply, so edits need no restart.
Shorthands:
{{name}}places a block (passages, steps, limits, sources…; the file lists every block per template){{#name}}…{{/name}}shows only when the block has something in it;{{^name}}…{{/name}}only when it’s empty<!-- notes -->are dropped
Code still writes every block, so quotes, evidence ids and sources are never retyped; the template only picks order, headings and what appears. An unknown name stays visible so a typo shows.
Checks: the default template reproduces the old output exactly (9,720 relay cases and 27 answer cases, including companions, compared with the old code). The run log now stores bottom_line so the session capsule no longer depends on the answer’s heading. Tests use only the tracked templates. Suite (415 + new), ruff and pyright pass.
🤖 Generated with Claude Code