diff --git a/README.md b/README.md index 5aac376..3b00b9e 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Download it and try it out for free! **https://piebald.ai/** > [!important] > **NEW (January 23, 2026): We've added all of Claude Code's ~40 system reminders to this list—see [System Reminders](#system-reminders).** -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.1.22](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.22) (January 27th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 80 versions since v2.0.14. From the team behind [ **Piebald.**](https://piebald.ai/) +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.1.23](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.23) (January 28th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 81 versions since v2.0.14. From the team behind [ **Piebald.**](https://piebald.ai/) **This repository is updated within minutes of each Claude Code release. See the [changelog](./CHANGELOG.md), and follow [@PiebaldAI](https://x.com/PiebaldAI) on X for a summary of the system prompt changes in each release.** @@ -98,7 +98,6 @@ Sub-agents and utilities. - [Agent Prompt: Claude guide agent](./system-prompts/agent-prompt-claude-guide-agent.md) (**761** tks) - System prompt for the claude-guide agent that helps users understand and use Claude Code, the Claude Agent SDK and the Claude API effectively.. - [Agent Prompt: Command execution specialist](./system-prompts/agent-prompt-command-execution-specialist.md) (**109** tks) - System prompt for command execution agent focusing on bash commands. - [Agent Prompt: Conversation summarization](./system-prompts/agent-prompt-conversation-summarization.md) (**1121** tks) - System prompt for creating detailed conversation summaries. -- [Agent Prompt: Exit plan mode with swarm](./system-prompts/agent-prompt-exit-plan-mode-with-swarm.md) (**440** tks) - System reminder for when ExitPlanMode is called with `isSwarm` set to true.. - [Agent Prompt: Hook condition evaluator](./system-prompts/agent-prompt-hook-condition-evaluator.md) (**78** tks) - System prompt for evaluating hook conditions in Claude Code. - [Agent Prompt: Prompt Suggestion Generator (Stated Intent)](./system-prompts/agent-prompt-prompt-suggestion-generator-stated-intent.md) (**166** tks) - Instructions for generating prompt suggestions based on user's explicitly stated next steps. - [Agent Prompt: Prompt Suggestion Generator v2](./system-prompts/agent-prompt-prompt-suggestion-generator-v2.md) (**296** tks) - V2 instructions for generating prompt suggestions for Claude Code. @@ -146,6 +145,7 @@ Parts of the main system prompt. All Claude Code system reminders. +- [System Reminder: /btw side question](./system-prompts/system-reminder-btw-side-question.md) (**172** tks) - System reminder for /btw slash command side questions without tools. - [System Reminder: Agent mention](./system-prompts/system-reminder-agent-mention.md) (**45** tks) - Notification that user wants to invoke an agent. - [System Reminder: Compact file reference](./system-prompts/system-reminder-compact-file-reference.md) (**57** tks) - Reference to file read before conversation summarization. - [System Reminder: Delegate mode prompt](./system-prompts/system-reminder-delegate-mode-prompt.md) (**185** tks) - System reminder for delegate mode. @@ -201,11 +201,11 @@ All Claude Code system reminders. - [Tool Description: NotebookEdit](./system-prompts/tool-description-notebookedit.md) (**121** tks) - Tool description for editing Jupyter notebook cells. - [Tool Description: ReadFile](./system-prompts/tool-description-readfile.md) (**439** tks) - Tool description for reading files. - [Tool Description: SendMessageTool](./system-prompts/tool-description-sendmessagetool.md) (**1234** tks) - Tool for sending messages to teammates and handling protocol requests/responses in a swarm. -- [Tool Description: Skill](./system-prompts/tool-description-skill.md) (**442** tks) - Tool description for executing skills in the main conversation. +- [Tool Description: Skill](./system-prompts/tool-description-skill.md) (**326** tks) - Tool description for executing skills in the main conversation. - [Tool Description: TaskCreate](./system-prompts/tool-description-taskcreate.md) (**558** tks) - Tool description for TaskCreate tool. - [Tool Description: Task](./system-prompts/tool-description-task.md) (**1311** tks) - Tool description for launching specialized sub-agents to handle complex tasks. - [Tool Description: TeammateTool operation parameter](./system-prompts/tool-description-teammatetool-operation-parameter.md) (**72** tks) - Description of the operation parameter for the TeammateTool. -- [Tool Description: TeammateTool](./system-prompts/tool-description-teammatetool.md) (**2250** tks) - Tool for managing teams and coordinating teammates in a swarm. +- [Tool Description: TeammateTool](./system-prompts/tool-description-teammatetool.md) (**2251** tks) - Tool for managing teams and coordinating teammates in a swarm. - [Tool Description: TodoWrite](./system-prompts/tool-description-todowrite.md) (**2167** tks) - Tool description for creating and managing task lists. - [Tool Description: ToolSearch](./system-prompts/tool-description-toolsearch.md) (**792** tks) - Tool description for loading and searching deferred tools before use. - [Tool Description: WebFetch](./system-prompts/tool-description-webfetch.md) (**297** tks) - Tool description for web fetch functionality. diff --git a/system-prompts/agent-prompt-exit-plan-mode-with-swarm.md b/system-prompts/agent-prompt-exit-plan-mode-with-swarm.md deleted file mode 100644 index 03e47e7..0000000 --- a/system-prompts/agent-prompt-exit-plan-mode-with-swarm.md +++ /dev/null @@ -1,49 +0,0 @@ - -User has approved your plan AND requested a team of ${NUM_WORKERS} teammates to implement it. - -Please follow these steps to launch the swarm: - -1. **Create tasks from your plan** - Parse your plan and create tasks using TaskCreateTool for each actionable item. Each task should have a clear subject and description. - -2. **Create a team** - Use TeammateTool with operation: "spawnTeam" to create a new team: - \`\`\`json - { - "operation": "spawnTeam", - "team_name": "plan-implementation", - "description": "Team implementing the approved plan" - } - \`\`\` - -3. **Spawn ${NUM_WORKERS} teammates** - Use the Task tool with team_name and name to spawn each teammate: - \`\`\`json - { - "subagent_type": "general-purpose", - "name": "worker-1", - "prompt": "You are part of a team implementing a plan. Check your mailbox for task assignments.", - "description": "worker-1", - "team_name": "plan-implementation" - } - \`\`\` - -4. **Assign tasks to teammates** - Use TaskUpdate with owner to distribute work: - \`\`\`json - { - "taskId": "1", - "owner": "" - } - \`\`\` - -5. **Gather findings and post summary** - As the leader/coordinator, monitor your teammates' progress. When they complete their tasks and report back, gather their findings and synthesize a final summary for the user explaining what was accomplished, any issues encountered, and next steps if applicable. - -Your plan has been saved to: ${PLAN_FILE_PATH} - -## Approved Plan: -${APPROVED_PLAN} diff --git a/system-prompts/system-prompt-main-system-prompt.md b/system-prompts/system-prompt-main-system-prompt.md index 24c1825..e01b6da 100644 --- a/system-prompts/system-prompt-main-system-prompt.md +++ b/system-prompts/system-prompt-main-system-prompt.md @@ -1,7 +1,7 @@ +This is a side question from the user. You must answer this question directly in a single response. + +CRITICAL CONSTRAINTS: +- You have NO tools available - you cannot read files, run commands, search, or take any actions +- This is a one-off response - there will be no follow-up turns +- You can ONLY provide information based on what you already know from the conversation context +- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action +- If you don't know the answer, say so - do not offer to look it up or investigate + +Simply answer the question with the information you have. + +${SIDE_QUESTION} diff --git a/system-prompts/tool-description-skill.md b/system-prompts/tool-description-skill.md index d0ea837..04ef288 100644 --- a/system-prompts/tool-description-skill.md +++ b/system-prompts/tool-description-skill.md @@ -1,20 +1,15 @@ Execute a skill within the main conversation -When users ask you to perform tasks, check if any of the available skills below can help complete the task more effectively. Skills provide specialized capabilities and domain knowledge. +When users ask you to perform tasks, check if any of the available skills match. Skills provide specialized capabilities and domain knowledge. -When users ask you to run a "slash command" or reference "/" (e.g., "/commit", "/review-pr"), they are referring to a skill. Use this tool to invoke the corresponding skill. - -Example: - User: "run /commit" - Assistant: [Calls Skill tool with skill: "commit"] +When users reference a "slash command" or "/" (e.g., "/commit", "/review-pr"), they are referring to a skill. Use this tool to invoke it. How to invoke: - Use this tool with the skill name and optional arguments @@ -25,13 +20,9 @@ How to invoke: - \`skill: "ms-office-suite:pdf"\` - invoke using fully qualified name Important: -- When a skill is relevant, you must invoke this tool IMMEDIATELY as your first action -- NEVER just announce or mention a skill in your text response without actually calling this tool -- This is a BLOCKING REQUIREMENT: invoke the relevant Skill tool BEFORE generating any other response about the task -- Skills listed below are available for invocation +- Available skills are listed in system-reminder messages in the conversation +- When a skill matches the user's request, this is a BLOCKING REQUIREMENT: invoke the relevant Skill tool BEFORE generating any other response about the task +- NEVER mention a skill without actually calling this tool - Do not invoke a skill that is already running - Do not use this tool for built-in CLI commands (like /help, /clear, etc.) -- If you see a <${FORMAT_SKILLS_AS_XML_FN}> tag in the current conversation turn (e.g., <${FORMAT_SKILLS_AS_XML_FN}>/commit), the skill has ALREADY been loaded and its instructions follow in the next message. Do NOT call this tool - just follow the skill instructions directly. - -Available skills: -${LIMITED_COMMANDS} +- If you see a <${SKILL_TAG_NAME}> tag in the current conversation turn, the skill has ALREADY been loaded - follow the instructions directly instead of calling this tool again diff --git a/system-prompts/tool-description-teammatetool.md b/system-prompts/tool-description-teammatetool.md index 85c0c81..a4ce070 100644 --- a/system-prompts/tool-description-teammatetool.md +++ b/system-prompts/tool-description-teammatetool.md @@ -1,7 +1,7 @@ # TeammateTool @@ -142,7 +142,7 @@ When you spawn teammates: - They will send you messages when they complete tasks or need help - These messages appear automatically as new conversation turns (like user messages) - If you're busy (mid-turn), messages are queued and delivered when your turn ends -- The UI shows "Queued teammate messages" when messages are waiting +- The UI shows a brief notification with the sender's name when messages are waiting Messages will be delivered automatically.