From 867ff4dca8c0e6ac000290bbbc0a7147c728011d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 14 Dec 2025 23:20:23 -0500 Subject: t-265.4: Add read_file tool and PIL codebase context to Ava - Import Omni.Agent.Tools in Telegram.hs - Add readFileTool to Ava's tool list - Add podcastitlater context section to system prompt with key file paths --- Omni/Agent/Telegram.hs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs index ed25a14..f950732 100644 --- a/Omni/Agent/Telegram.hs +++ b/Omni/Agent/Telegram.hs @@ -87,6 +87,7 @@ import qualified Omni.Agent.Telegram.Media as Media import qualified Omni.Agent.Telegram.Messages as Messages import qualified Omni.Agent.Telegram.Reminders as Reminders import qualified Omni.Agent.Telegram.Types as Types +import qualified Omni.Agent.Tools as Tools import qualified Omni.Agent.Tools.Calendar as Calendar import qualified Omni.Agent.Tools.Email as Email import qualified Omni.Agent.Tools.Hledger as Hledger @@ -201,6 +202,16 @@ telegramSystemPrompt = "- use this for reminders ('remind me in 2 hours'), follow-ups, or multi-part responses", "- you can list pending messages with 'list_pending_messages' and cancel with 'cancel_message'", "", + "## podcastitlater context", + "", + "you have access to the PodcastItLater codebase (a product Ben is building) via read_file:", + "- Biz/PodcastItLater.md - product overview and README", + "- Biz/PodcastItLater/DESIGN.md - architecture overview", + "- Biz/PodcastItLater/Web.py - web interface code", + "- Biz/PodcastItLater/Core.py - core logic", + "- Biz/PodcastItLater/Billing.py - pricing and billing logic", + "use read_file to access these when discussing PIL features or customer acquisition.", + "", "## important", "", "in private chats, ALWAYS respond. in group chats, follow the rules above.", @@ -981,7 +992,8 @@ processEngagedMessage tgConfig provider engineCfg msg uid userName chatId userMe pythonTools = [Python.pythonExecTool] httpTools = Http.allHttpTools outreachTools = Outreach.allOutreachTools - tools = memoryTools <> searchTools <> webReaderTools <> pdfTools <> notesTools <> calendarTools <> todoTools <> messageTools <> hledgerTools <> emailTools <> pythonTools <> httpTools <> outreachTools + fileTools = [Tools.readFileTool] + tools = memoryTools <> searchTools <> webReaderTools <> pdfTools <> notesTools <> calendarTools <> todoTools <> messageTools <> hledgerTools <> emailTools <> pythonTools <> httpTools <> outreachTools <> fileTools let agentCfg = Engine.defaultAgentConfig -- cgit v1.2.3