summaryrefslogtreecommitdiff
path: root/Omni/Agent/Prompts.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-19 16:41:01 -0500
committerBen Sima <ben@bensima.com>2025-12-19 16:41:01 -0500
commite856c766584ed933bed0b79c7ef47b6d98b0fb7e (patch)
treea630081a106678533837c8e284d04146b2593cb5 /Omni/Agent/Prompts.hs
parent37d6503342ef9e171fef88960f7baceaa4d1a641 (diff)
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 <amp@ampcode.com>
Diffstat (limited to 'Omni/Agent/Prompts.hs')
-rw-r--r--Omni/Agent/Prompts.hs2
1 files changed, 1 insertions, 1 deletions
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\