mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-05-30 05:35:24 +08:00
2.0.29
This commit is contained in:
parent
91098d59b9
commit
772bca084d
@ -1,6 +1,6 @@
|
||||
# Claude Code System Prompts
|
||||
|
||||
This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of **[Claude Code v2.0.28](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.28) (October 27th, 2025).**
|
||||
This repository contains an up-to-date list of all Claude Code's various system prompts and their associated token counts as of **[Claude Code v2.0.29](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.29) (October 29th, 2025).**
|
||||
|
||||
Why multiple "system prompts?"
|
||||
|
||||
@ -97,7 +97,7 @@ Text for large system reminders.
|
||||
- [Tool Description: ReadFile](./system-prompts/tool-description-readfile.md) (**439** tks) - Tool description for reading files.
|
||||
- [Tool Description: Skill](./system-prompts/tool-description-skill.md) (**270** tks) - Tool description for executing skills in the main conversation.
|
||||
- [Tool Description: SlashCommand](./system-prompts/tool-description-slashcommand.md) (**381** tks) - Tool description for executing slash commands.
|
||||
- [Tool Description: Task](./system-prompts/tool-description-task.md) (**1044** tks) - Tool description for launching specialized sub-agents to handle complex tasks.
|
||||
- [Tool Description: Task](./system-prompts/tool-description-task.md) (**1140** tks) - Tool description for launching specialized sub-agents to handle complex tasks.
|
||||
- [Tool Description: TodoWrite](./system-prompts/tool-description-todowrite.md) (**2167** tks) - Tool description for creating and managing task lists.
|
||||
- [Tool Description: WebFetch](./system-prompts/tool-description-webfetch.md) (**278** tks) - Tool description for web fetch functionality.
|
||||
- [Tool Description: WebSearch](./system-prompts/tool-description-websearch.md) (**166** tks) - Tool description for web search functionality.
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
<!--
|
||||
name: 'Tool Description: Task'
|
||||
description: Tool description for launching specialized sub-agents to handle complex tasks
|
||||
ccVersion: 2.0.28
|
||||
ccVersion: 2.0.29
|
||||
variables:
|
||||
- AGENT_TYPE_REGISTRY
|
||||
- agentTypeEntry
|
||||
- propertiesText
|
||||
- runsInBackground
|
||||
- hasAccessToCurrentContext
|
||||
- TOOL_REGISTRY
|
||||
- READ_TOOL
|
||||
@ -16,7 +17,7 @@ variables:
|
||||
Launch a new agent to handle complex, multi-step tasks autonomously.
|
||||
|
||||
Available agent types and the tools they have access to:
|
||||
${AGENT_TYPE_REGISTRY.map((agentTypeEntry)=>{let propertiesText="";if(agentTypeEntry?.hasAccessToCurrentContext)propertiesText="Properties: "+(agentTypeEntry?.hasAccessToCurrentContext?"access to current context; ":"");return`- ${agentTypeEntry.agentType}: ${agentTypeEntry.whenToUse} (${propertiesText}Tools: ${agentTypeEntry.tools.join(", ")})`}).join(`
|
||||
${AGENT_TYPE_REGISTRY.map((agentTypeEntry)=>{let propertiesText="";if(agentTypeEntry?.runsInBackground||agentTypeEntry?.hasAccessToCurrentContext)propertiesText="Properties: "+(agentTypeEntry?.runsInBackground?"runs in background; ":"")+(agentTypeEntry?.hasAccessToCurrentContext?"access to current context; ":"");return`- ${agentTypeEntry.agentType}: ${agentTypeEntry.whenToUse} (${propertiesText}Tools: ${agentTypeEntry.tools.join(", ")})`}).join(`
|
||||
`)}
|
||||
|
||||
When using the ${TOOL_REGISTRY} tool, you must specify a subagent_type parameter to select which agent type to use.
|
||||
@ -31,6 +32,7 @@ When NOT to use the Agent tool:
|
||||
Usage notes:
|
||||
- Launch multiple agents concurrently whenever possible, to maximize performance; to do that, use a single message with multiple tool uses
|
||||
- When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.
|
||||
- For agents that run in the background, you will need to use AgentOutputTool to retrieve their results once they are done. You can continue to work while async agents run in the background - when you need their results to continue you can use AgentOutputTool in blocking mode to pause and wait for their results.
|
||||
- Each agent invocation is stateless. You will not be able to send additional messages to the agent, nor will the agent be able to communicate with you outside of its final report. Therefore, your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.
|
||||
- The agent's outputs should generally be trusted
|
||||
- Clearly tell the agent whether you expect it to write code or just to do research (search, file reads, web fetches, etc.), since it is not aware of the user's intent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user