summaryrefslogtreecommitdiff
path: root/Omni/Agent/Paths.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-19 16:09:20 -0500
committerBen Sima <ben@bensima.com>2025-12-19 16:09:20 -0500
commit37d6503342ef9e171fef88960f7baceaa4d1a641 (patch)
treee8e4c93f6dc5bd982e1fa6b3a2c88125844b2669 /Omni/Agent/Paths.hs
parent826f97707da555b60e210182859ec83d995b9817 (diff)
Add prompt templating system with mustache
- Add promptsDir to Paths.hs for $AVA_DATA_ROOT/prompts/ - Create Omni.Agent.Prompts module with: - Mustache template loading and rendering - Automatic partial resolution via automaticCompile - Frontmatter/metadata parsing for list command - Create omni-agent-prompt CLI for previewing prompts: - list: show all available prompts - render: render prompt with --var and --json context - Prompts use .mustache extension for automaticCompile compatibility - Partials referenced with full extension: {{> shared/memory.mustache}}
Diffstat (limited to 'Omni/Agent/Paths.hs')
-rw-r--r--Omni/Agent/Paths.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Omni/Agent/Paths.hs b/Omni/Agent/Paths.hs
index 6df6991..d8def78 100644
--- a/Omni/Agent/Paths.hs
+++ b/Omni/Agent/Paths.hs
@@ -8,6 +8,7 @@
module Omni.Agent.Paths
( avaDataRoot,
skillsDir,
+ promptsDir,
outreachDir,
userScratchRoot,
userScratchDir,
@@ -33,6 +34,9 @@ avaDataRoot =
skillsDir :: FilePath
skillsDir = avaDataRoot </> "skills"
+promptsDir :: FilePath
+promptsDir = avaDataRoot </> "prompts"
+
outreachDir :: FilePath
outreachDir = avaDataRoot </> "outreach"