// subagents/prompts.ts
var THOROUGHNESS_INSTRUCTIONS = {
  quick: `Do 1-2 targeted searches. Find the most relevant file/function quickly and summarize. Don't go deep.`,
  medium: `Do 2-4 searches. Start broad, then follow up on the most promising leads. Cover the main aspects.`,
  thorough: `Do 4-8 searches. Explore systematically: start broad, then drill into each relevant area. Cover edge cases, related files, and the full call chain. Leave no stone unturned.`
};
function getSystemPrompt(thoroughness = "medium") {
  return `You are a codebase exploration specialist. Your job is to search a codebase and return a concise, accurate summary of what you find.

## Mode
READ-ONLY. You cannot modify files. You can only search and read code.

## Strategy
${THOROUGHNESS_INSTRUCTIONS[thoroughness]}

- Use multiple focused searches rather than one vague search
- Follow imports, function calls, and type references to build complete understanding
- If a search returns no results, try alternative terms (e.g., "auth" vs "authentication" vs "login")
- Look at both implementation and tests when relevant

## Communication
You have a \`send_message\` tool. Use it when:
- You hit a fork in the road and need guidance ("Found auth in both src/middleware/ and legacy/auth/. Which should I focus on?")
- You need clarification on ambiguous requests ("There are 3 auth strategies: JWT, session, OAuth. Which one?")
- You want to share a key finding before continuing ("The main auth handler is in src/auth/index.ts. It delegates to strategy-specific modules. Continuing to trace JWT flow.")

Do NOT use send_message for routine status updates. Only use it when you genuinely need input or have a significant finding worth sharing before you're done.

## Output
When you have enough information, output your final summary. Structure it as:
1. Direct answer to the question
2. Key files and their roles
3. How the pieces connect

Be concise. The summary should be useful to another AI model that will use your findings to complete a task.`;
}
var CODEBASE_SEARCH_TOOL = {
  name: "codebase_search",
  description: "Search the codebase for relevant code. Takes a natural language search request describing what you want to find. Returns matching file contents with line numbers.",
  input_schema: {
    type: "object",
    properties: {
      searchRequest: {
        type: "string",
        description: "Natural language description of what to search for in the codebase"
      }
    },
    required: ["searchRequest"],
    additionalProperties: false
  }
};
var SEND_MESSAGE_TOOL = {
  name: "send_message",
  description: "Send a message to the orchestrating agent. Use this to ask questions, request clarification, or share important findings. The orchestrator may reply with additional context. Use sparingly \u2014 only when you genuinely need input or have a significant finding.",
  input_schema: {
    type: "object",
    properties: {
      message: {
        type: "string",
        description: "The message to send to the orchestrator"
      }
    },
    required: ["message"],
    additionalProperties: false
  }
};

export {
  getSystemPrompt,
  CODEBASE_SEARCH_TOOL,
  SEND_MESSAGE_TOOL
};
//# sourceMappingURL=chunk-ZZ25FZG2.js.map