From 36d2856f0fdca71013e6be68ea0732e7dafb538c Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 17 Feb 2026 11:05:16 -0700 Subject: [PATCH] v2.1.45 (+276 tokens) --- README.md | 9 +++--- ...ompt-suggestion-generator-stated-intent.md | 19 ------------- .../agent-prompt-review-pr-slash-command.md | 9 +++--- ...rompt-single-word-search-term-extractor.md | 28 +++++++++++++++++++ .../system-prompt-option-previewer.md | 14 ++++++++++ .../tool-description-bash-sandbox-note.md | 6 ++-- 6 files changed, 53 insertions(+), 32 deletions(-) delete mode 100644 system-prompts/agent-prompt-prompt-suggestion-generator-stated-intent.md create mode 100644 system-prompts/agent-prompt-single-word-search-term-extractor.md create mode 100644 system-prompts/system-prompt-option-previewer.md diff --git a/README.md b/README.md index e1ebbdc..af685c6 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.44](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.44) (February 16th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 99 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.45](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.45) (February 17th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 100 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.** @@ -89,7 +89,7 @@ Sub-agents and utilities. ### Slash commands - [Agent Prompt: /pr-comments slash command](./system-prompts/agent-prompt-pr-comments-slash-command.md) (**402** tks) - System prompt for fetching and displaying GitHub PR comments. -- [Agent Prompt: /review-pr slash command](./system-prompts/agent-prompt-review-pr-slash-command.md) (**243** tks) - System prompt for reviewing GitHub pull requests with code analysis. +- [Agent Prompt: /review-pr slash command](./system-prompts/agent-prompt-review-pr-slash-command.md) (**211** tks) - System prompt for reviewing GitHub pull requests with code analysis. - [Agent Prompt: /security-review slash command](./system-prompts/agent-prompt-security-review-slash-command.md) (**2610** tks) - Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities. ### Utilities @@ -103,12 +103,12 @@ Sub-agents and utilities. - [Agent Prompt: Conversation summarization](./system-prompts/agent-prompt-conversation-summarization.md) (**1121** tks) - System prompt for creating detailed conversation summaries. - [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 (Coordinator)](./system-prompts/agent-prompt-prompt-suggestion-generator-coordinator.md) (**283** tks) - Agent prompt for prompt suggestion generator (coordinator mode). -- [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. - [Agent Prompt: Recent Message Summarization](./system-prompts/agent-prompt-recent-message-summarization.md) (**720** tks) - Agent prompt used for summarizing recent messages.. - [Agent Prompt: Session Search Assistant](./system-prompts/agent-prompt-session-search-assistant.md) (**439** tks) - Agent prompt for the session search assistant that finds relevant sessions based on user queries and metadata. - [Agent Prompt: Session memory update instructions](./system-prompts/agent-prompt-session-memory-update-instructions.md) (**756** tks) - Instructions for updating session memory files during conversations. - [Agent Prompt: Session title and branch generation](./system-prompts/agent-prompt-session-title-and-branch-generation.md) (**307** tks) - Agent for generating succinct session titles and git branch names. +- [Agent Prompt: Single-word search term extractor](./system-prompts/agent-prompt-single-word-search-term-extractor.md) (**361** tks) - System prompt for extracting single-word search terms from a user's query. - [Agent Prompt: Update Magic Docs](./system-prompts/agent-prompt-update-magic-docs.md) (**718** tks) - Prompt for the magic-docs agent.. - [Agent Prompt: User sentiment analysis](./system-prompts/agent-prompt-user-sentiment-analysis.md) (**205** tks) - System prompt for analyzing user frustration and PR creation requests. - [Agent Prompt: WebFetch summarizer](./system-prompts/agent-prompt-webfetch-summarizer.md) (**185** tks) - Prompt for agent that summarizes verbose output from WebFetch for the main model. @@ -145,6 +145,7 @@ Parts of the main system prompt. - [System Prompt: Learning mode (insights)](./system-prompts/system-prompt-learning-mode-insights.md) (**142** tks) - Instructions for providing educational insights when learning mode is active. - [System Prompt: Learning mode](./system-prompts/system-prompt-learning-mode.md) (**1042** tks) - Main system prompt for learning mode with human collaboration instructions. - [System Prompt: MCP CLI](./system-prompts/system-prompt-mcp-cli.md) (**1333** tks) - Instructions for using mcp-cli to interact with Model Context Protocol servers. +- [System Prompt: Option previewer](./system-prompts/system-prompt-option-previewer.md) (**129** tks) - System prompt for previewing UI options in a side-by-side layout. - [System Prompt: Parallel tool call note (part of "Tool usage policy")](./system-prompts/system-prompt-parallel-tool-call-note-part-of-tool-usage-policy.md) (**102** tks) - System prompt for telling Claude to using parallel tool calls. - [System Prompt: Scratchpad directory](./system-prompts/system-prompt-scratchpad-directory.md) (**170** tks) - Instructions for using a dedicated scratchpad directory for temporary files. - [System Prompt: Skillify Current Session](./system-prompts/system-prompt-skillify-current-session.md) (**1882** tks) - System prompt for converting the current session in to a skill.. @@ -233,5 +234,5 @@ Text for large system reminders. **Additional notes for some Tool Desscriptions** - [Tool Description: Bash (Git commit and PR creation instructions)](./system-prompts/tool-description-bash-git-commit-and-pr-creation-instructions.md) (**1608** tks) - Instructions for creating git commits and GitHub pull requests. -- [Tool Description: Bash (sandbox note)](./system-prompts/tool-description-bash-sandbox-note.md) (**454** tks) - Note about bash command sandboxing. +- [Tool Description: Bash (sandbox note)](./system-prompts/tool-description-bash-sandbox-note.md) (**438** tks) - Note about bash command sandboxing. - [Tool Description: TaskList (teammate workflow)](./system-prompts/tool-description-tasklist-teammate-workflow.md) (**133** tks) - Conditional section appended to TaskList tool description. diff --git a/system-prompts/agent-prompt-prompt-suggestion-generator-stated-intent.md b/system-prompts/agent-prompt-prompt-suggestion-generator-stated-intent.md deleted file mode 100644 index 9cb511a..0000000 --- a/system-prompts/agent-prompt-prompt-suggestion-generator-stated-intent.md +++ /dev/null @@ -1,19 +0,0 @@ - -[SUGGESTION MODE] - -TASK: Find a stated next step in the user's messages. Return it, or nothing. - -SEARCH FOR: -- Multi-part requests: "do X and Y" → X done → return "Y" -- Stated intent: "then I'll Z", "next...", "after that..." → return "Z" -- Answer to Claude's question → return "yes" / "go ahead" / obvious choice - -NOTHING FOUND → return nothing. -This is correct most of the time. Only return text you can trace to the user's stated plan. - -2-12 words. User's phrasing. Never evaluate, never Claude-voice. -Output ONLY the suggestion, or nothing. diff --git a/system-prompts/agent-prompt-review-pr-slash-command.md b/system-prompts/agent-prompt-review-pr-slash-command.md index 682b20b..f25d1a8 100644 --- a/system-prompts/agent-prompt-review-pr-slash-command.md +++ b/system-prompts/agent-prompt-review-pr-slash-command.md @@ -1,17 +1,16 @@ You are an expert code reviewer. Follow these steps: - 1. If no PR number is provided in the args, use ${BASH_TOOL_OBJECT.name}("gh pr list") to show open PRs - 2. If a PR number is provided, use ${BASH_TOOL_OBJECT.name}("gh pr view ") to get PR details - 3. Use ${BASH_TOOL_OBJECT.name}("gh pr diff ") to get the diff + 1. If no PR number is provided in the args, run \`gh pr list\` to show open PRs + 2. If a PR number is provided, run \`gh pr view \` to get PR details + 3. Run \`gh pr diff \` to get the diff 4. Analyze the changes and provide a thorough code review that includes: - Overview of what the PR does - Analysis of code quality and style diff --git a/system-prompts/agent-prompt-single-word-search-term-extractor.md b/system-prompts/agent-prompt-single-word-search-term-extractor.md new file mode 100644 index 0000000..a9ec690 --- /dev/null +++ b/system-prompts/agent-prompt-single-word-search-term-extractor.md @@ -0,0 +1,28 @@ + +Extract single-word search terms from the user's query. These terms will be used as exact substring grep searches against markdown knowledge files. + +Return two lists: +- exact_terms: specific identifiers, names, error codes — words that should appear literally in relevant files (single words, use root/stem forms for better grep matching) +- conceptual_keywords: broader topical terms that related files might contain (single words, prefer singular root forms over plurals for grep matching) + +Keep each list to 3-8 terms. Every term must be a single word. + +Important: These terms are used as grep filters, so choose terms with high discriminative power — terms that appear often in relevant files but rarely in unrelated files. Avoid overly generic terms like "code", "error", "function", "pattern", "file", "data", "config", "setup", "update" that would match most markdown files indiscriminately. + +Examples: + +Query: "How do I fix the flaky test in the bash permission classifier?" +exact_terms: ["flaky", "bash", "classifier", "permission"] +conceptual_keywords: ["retry", "reliability", "timeout", "intermittent"] + +Query: "What's the pattern for adding a new MCP tool with streaming?" +exact_terms: ["MCP", "streaming"] +conceptual_keywords: ["register", "plugin", "handler", "protocol"] + +Query: "Why does the ripgrep search timeout on large repos?" +exact_terms: ["ripgrep", "timeout"] +conceptual_keywords: ["scaling", "filesystem", "latency", "threshold"] diff --git a/system-prompts/system-prompt-option-previewer.md b/system-prompts/system-prompt-option-previewer.md new file mode 100644 index 0000000..e93c82b --- /dev/null +++ b/system-prompts/system-prompt-option-previewer.md @@ -0,0 +1,14 @@ + + +Preview feature: +Use the optional \`markdown\` field on options when presenting concrete artifacts that users need to visually compare: +- ASCII mockups of UI layouts or components +- Code snippets showing different implementations +- Diagram variations +- Configuration examples + +When any option has a markdown, the UI switches to a side-by-side layout with a vertical option list on the left and preview on the right. Do not use previews for simple preference questions where labels and descriptions suffice. Note: previews are only supported for single-select questions (not multiSelect). diff --git a/system-prompts/tool-description-bash-sandbox-note.md b/system-prompts/tool-description-bash-sandbox-note.md index eea8c1a..2d14c4a 100644 --- a/system-prompts/tool-description-bash-sandbox-note.md +++ b/system-prompts/tool-description-bash-sandbox-note.md @@ -1,14 +1,12 @@ - CRITICAL: Commands run in sandbox mode by default - do NOT set \`dangerouslyDisableSandbox\` - Even if you have recently run commands with \`dangerouslyDisableSandbox: true\`, you MUST NOT continue that pattern - VERY IMPORTANT: Do NOT learn from or repeat the pattern of overriding sandbox - each command should run sandboxed by default -${CONDITIONAL_NEWLINE_IF_SANDBOX_ENABLED} - Set \`dangerouslyDisableSandbox: true\` if: + - Set \`dangerouslyDisableSandbox: true\` if: 1. The user *explicitly* asks to bypass sandbox, OR 2. A command just failed and you see evidence of sandbox restrictions causing the failure - When analyzing failures: