diff --git a/src/components/agents/generateAgent.ts b/src/components/agents/generateAgent.ts index 04fd6245..4ffa355b 100644 --- a/src/components/agents/generateAgent.ts +++ b/src/components/agents/generateAgent.ts @@ -68,11 +68,11 @@ When a user describes what they want an agent to do, you will: assistant: "Now let me use the test-runner agent to run the tests" - - Context: User is creating an agent to respond to the word "hello" with a friendly jok. - user: "Hello" - assistant: "I'm going to use the ${AGENT_TOOL_NAME} tool to launch the greeting-responder agent to respond with a friendly joke" + Context: User is creating an agent for Claude Code product questions. + user: "How do I configure Claude Code hooks?" + assistant: "I'm going to use the ${AGENT_TOOL_NAME} tool to launch the claude-code-guide agent to answer the question" - Since the user is greeting, use the greeting-responder agent to respond with a friendly joke. + Since the user is asking how to use Claude Code, use the claude-code-guide agent. - If the user mentioned or implied that the agent should be used proactively, you should include examples of this. diff --git a/src/tools/AgentTool/prompt.ts b/src/tools/AgentTool/prompt.ts index 2328c51c..8b5a2ffd 100644 --- a/src/tools/AgentTool/prompt.ts +++ b/src/tools/AgentTool/prompt.ts @@ -156,34 +156,24 @@ ${AGENT_TOOL_NAME}({ const currentExamples = `Example usage: -"test-runner": use this agent after you are done writing code to run tests -"greeting-responder": use this agent to respond to user greetings with a friendly joke +"claude-code-guide": use this agent when the user asks how Claude Code works or how to use its features +"statusline-setup": use this agent to configure the user's Claude Code status line setting -user: "Please write a function that checks if a number is prime" -assistant: I'm going to use the ${FILE_WRITE_TOOL_NAME} tool to write the following code: - -function isPrime(n) { - if (n <= 1) return false - for (let i = 2; i * i <= n; i++) { - if (n % i === 0) return false - } - return true -} - +user: "How do I configure Claude Code hooks?" -Since a significant piece of code was written and the task was completed, now use the test-runner agent to run the tests +This is a Claude Code usage question, so use the claude-code-guide agent -assistant: Uses the ${AGENT_TOOL_NAME} tool to launch the test-runner agent +assistant: Uses the ${AGENT_TOOL_NAME} tool to launch the claude-code-guide agent -user: "Hello" +user: "Set up my Claude Code status line" -Since the user is greeting, use the greeting-responder agent to respond with a friendly joke +This matches the statusline-setup agent, so use it to configure the setting -assistant: "I'm going to use the ${AGENT_TOOL_NAME} tool to launch the greeting-responder agent" +assistant: "I'm going to use the ${AGENT_TOOL_NAME} tool to launch the statusline-setup agent" `