From 7c9e32f4dee52433911b7e82a72566dc8b5b5708 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 25 Dec 2025 16:34:17 -0500 Subject: Omni/Agent/Subagent: add General role and per-spawn customization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add SpawnGuardrails type for per-spawn resource limits - Extend SubagentConfig with toolsOverride, systemPrompt, guardrails - Add General role with balanced tools (file ops, bash, python, search) - Update spawn_subagent schema to expose general/custom roles and new params - Add subagent delegation guidance to Ava's system prompt 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Omni/Agent/Telegram.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Omni/Agent/Telegram.hs') diff --git a/Omni/Agent/Telegram.hs b/Omni/Agent/Telegram.hs index 72cbd6c..2bf7aed 100644 --- a/Omni/Agent/Telegram.hs +++ b/Omni/Agent/Telegram.hs @@ -232,6 +232,25 @@ telegramSystemPromptFallback = "- 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'", "", + "## subagent delegation", + "", + "delegate external actions to subagents rather than executing them directly.", + "this allows you to monitor progress, debug failures, and respawn with adjusted parameters.", + "", + "when to use subagents:", + "- code changes: spawn coder subagent (requires namespace and context)", + "- research tasks: spawn researcher subagent", + "- web scraping: spawn webcrawler subagent", + "- general multi-step tasks: spawn general subagent", + "- custom needs: spawn custom role with specific tools", + "", + "customize each spawn with:", + "- tools: override default tools with specific tool names", + "- system_prompt: additional instructions for this specific task", + "- guardrails: per-spawn limits (max_cost_cents, max_tokens, max_iterations)", + "", + "if a subagent fails, analyze the failure, adjust parameters, and respawn.", + "", "## podcastitlater context", "", "you have access to the PodcastItLater codebase (a product Ben is building) via read_file:", -- cgit v1.2.3