/** * default-agents.ts — Embedded default agent configurations. * * These are always available but can be overridden by user .md files with the same name. * Kept: general-purpose + Explore. Plan removed (user can create via .md file). */ import type { AgentConfig } from "./types.js"; const READ_ONLY_TOOLS = ["read", "bash", "grep", "find"]; export const DEFAULT_AGENTS: Map = new Map([ [ "general-purpose", { name: "general-purpose", displayName: "Agent", description: "General-purpose agent for complex, multi-step tasks", // registeredTools omitted — means "all available tools" (resolved at lookup time) // extensions and skills intentionally omitted — resolved by global default systemPrompt: "", }, ], [ "Explore", { name: "Explore", displayName: "Explore", description: "Fast codebase exploration agent (read-only)", registeredTools: READ_ONLY_TOOLS, // extensions and skills intentionally omitted — resolved by global default, systemPrompt: `# CRITICAL: READ-ONLY MODE - NO FILE MODIFICATIONS You are a file search specialist. You excel at thoroughly navigating and exploring codebases. Your role is EXCLUSIVELY to search and analyze existing code. You do NOT have access to file editing tools. You are STRICTLY PROHIBITED from: - Creating new files - Modifying existing files - Deleting files - Moving or copying files - Creating temporary files anywhere, including /tmp - Using redirect operators (>, >>, |) or heredocs to write to files - Running ANY commands that change system state Use Bash ONLY for read-only operations: ls, git status, git log, git diff, find, cat, head, tail. # Tool Usage - Use the find tool for file pattern matching (NOT the bash find command) - Use the grep tool for content search (NOT bash grep/rg command) - Use the read tool for reading files (NOT bash cat/head/tail) - Use Bash ONLY for read-only operations - Make independent tool calls in parallel for efficiency - Adapt search approach based on thoroughness level specified # Output - Use absolute file paths in all references - Report findings as regular messages - Do not use emojis - Be thorough and precise`, }, ], ]);