From e856c766584ed933bed0b79c7ef47b6d98b0fb7e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 19 Dec 2025 16:41:01 -0500 Subject: Omni/Agent: wire prompt templating system to agents - Telegram.hs: add loadTelegramSystemPrompt with fallback - Subagent.hs: add loadSystemPromptForRole with fallback - Coder.hs: add loadCoderSystemPrompt with fallback - Ava.nix: add tmpfiles rules for /home/ava/prompts/ - Prompts.hs: fix test to expect .mustache extension Templates loaded at runtime from $AVA_DATA_ROOT/prompts/. Falls back to hardcoded prompts if templates not found. Amp-Thread-ID: https://ampcode.com/threads/T-019b3878-73be-77ec-97cc-d092a28d211e Co-authored-by: Amp --- Omni/Agent/Prompts.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Omni/Agent/Prompts.hs') diff --git a/Omni/Agent/Prompts.hs b/Omni/Agent/Prompts.hs index 231df3c..70414ca 100644 --- a/Omni/Agent/Prompts.hs +++ b/Omni/Agent/Prompts.hs @@ -80,7 +80,7 @@ test = "Omni.Agent.Prompts" [ Test.unit "promptPath constructs correct path" <| do let path = promptPath "agents/telegram/system" - ("agents/telegram/system.md" `List.isSuffixOf` path) Test.@=? True, + ("agents/telegram/system.mustache" `List.isSuffixOf` path) Test.@=? True, Test.unit "parsePromptMetadata parses frontmatter" <| do let content = "---\n\ -- cgit v1.2.3