agent/pkg/prompts/lib
Snider a1c2ed2376 refactor: move prompt templates from Go strings to embedded markdown
Extract 4 hardcoded templates from prep.go raw strings into
pkg/prompts/lib/templates/ as markdown files:
- coding.md — main coding template with closeout sequence
- conventions.md — convention audit (report only)
- security.md — security review
- verify.md — PR verification
- default.md — fallback

prep.go now calls prompts.Template("coding") instead of
maintaining 120 lines of raw Go string literals.

Backticks now work properly in templates — no more
concatenation hacks for inline code formatting.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 22:14:39 +00:00
..
personas feat: rewrite CLAUDE.md, add tests for agentic + prompts packages 2026-03-17 22:09:29 +00:00
templates refactor: move prompt templates from Go strings to embedded markdown 2026-03-17 22:14:39 +00:00