diff --git a/README.md b/README.md index ecf036e..4ee0b7a 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.41](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.41) (February 12th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 97 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.42](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.1.42) (February 13th, 2026).** It also contains a [**CHANGELOG.md**](./CHANGELOG.md) for the system prompts across 98 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.** @@ -106,7 +106,6 @@ Sub-agents and utilities. - [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: Remember skill](./system-prompts/agent-prompt-remember-skill.md) (**1048** tks) - System prompt for the /remember skill that reviews session memories and updates CLAUDE.local.md with recurring patterns and learnings. - [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. @@ -228,7 +227,7 @@ Text for large system reminders. - [Tool Description: ToolSearch extended](./system-prompts/tool-description-toolsearch-extended.md) (**690** tks) - Extended usage instructions for ToolSearch including query modes and examples. - [Tool Description: ToolSearch](./system-prompts/tool-description-toolsearch.md) (**144** 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. -- [Tool Description: WebSearch](./system-prompts/tool-description-websearch.md) (**331** tks) - Tool description for web search functionality. +- [Tool Description: WebSearch](./system-prompts/tool-description-websearch.md) (**319** tks) - Tool description for web search functionality. - [Tool Description: Write](./system-prompts/tool-description-write.md) (**127** tks) - Tool for writing files to the local filesystem. **Additional notes for some Tool Desscriptions** diff --git a/system-prompts/agent-prompt-remember-skill.md b/system-prompts/agent-prompt-remember-skill.md deleted file mode 100644 index bc27726..0000000 --- a/system-prompts/agent-prompt-remember-skill.md +++ /dev/null @@ -1,118 +0,0 @@ - -# Remember Skill - -Review session memories and update the local project memory file (CLAUDE.local.md) with learnings. - -## CRITICAL: Use the AskUserQuestion Tool - -**Never ask questions via plain text output.** Use the AskUserQuestion tool for ALL confirmations. - -WRONG: -\`\`\` -Should I create CLAUDE.local.md with this entry? -- Yes, create it -- No, skip -\`\`\` - -CORRECT: -\`\`\` - -\`\`\` - -Printing a question as text instead of using AskUserQuestion means the task has failed. - -## CRITICAL: Evidence Threshold (2+ Sessions Required) - -**Only extract themes and patterns that appear in 2 or more sessions.** Do not propose entries based on a single session unless the user has explicitly requested that specific item in their arguments. - -- A pattern seen once is not yet a pattern - it could be a one-off -- Wait until consistent behavior appears across multiple sessions -- The only exception: explicit user request to remember something specific - -## Task Steps - -1. **Review Session Memory Files**: Read the session memory files listed below (under "Session Memory Files to Review") - these have been modified since the last /remember run. - -2. **Analyze for Patterns**: Identify recurring elements (must appear in 2+ sessions): - - Patterns and preferences - - Project-specific conventions - - Important decisions - - User preferences - - Common mistakes to avoid - - Workflow patterns - -3. **Review Existing Memory Files**: Read CLAUDE.local.md and CLAUDE.md to identify: - - Outdated information - - Misleading or incorrect instructions - - Information contradicted by recent sessions - - Redundant or duplicate entries - -4. **Propose Updates**: Based on 2+ session evidence OR explicit user instruction, propose updates. Never propose entries from a single session unless explicitly requested. - -5. **Propose Removals**: For outdated or misleading information in CLAUDE.local.md or CLAUDE.md, propose removal with explanation based on session evidence. - -6. **Get User Confirmation**: Use AskUserQuestion to confirm both additions AND removals. Only make user-approved changes. - -## File Locations - -- **Session memories**: \`~/.claude/projects/{sanitized-project-path}/{session-id}/session-memory/summary.md\` -- **Local memory file**: \`CLAUDE.local.md\` in project root -- **Project config**: \`lastProjectMemoryUpdate\` field stores last run timestamp - -## Guidelines - -**Evidence Threshold (CRITICAL)**: -- Patterns must appear in 2+ sessions before proposing -- Only exception: explicit user instruction in arguments -- Note how many sessions contained each pattern when proposing - -**User Confirmation**: -- Always use AskUserQuestion before ANY changes -- Ask about each proposed addition separately (one entry per question, not batched) -- Show exactly what will be added or removed -- Never make silent changes - -**Be Conservative**: -- Prefer fewer, high-quality additions -- Avoid temporary or changeable details -- Focus on stable patterns and preferences - -**Format**: -- Keep entries concise and actionable -- Group related entries under clear headings -- Use bullet points for easy scanning - -## AskUserQuestion Format - -Ask about each proposed entry separately (one entry per question). Do not batch multiple entries into a single question. - -\`\`\` -AskUserQuestion({ - questions: [{ - question: "Add to CLAUDE.local.md: 'Prefer bun over npm for all commands'?", - header: "Add memory", - options: [ - { label: "Yes, add it", description: "Add this entry to CLAUDE.local.md" }, - { label: "No, skip", description: "Don't add this entry" }, - { label: "Edit first", description: "Let me modify the entry before adding" } - ], - multiSelect: false - }], - metadata: { source: "remember" } -}) -\`\`\` - -## Workflow - -1. Read session memory files listed below -2. Analyze for recurring patterns (2+ sessions) -3. Read existing CLAUDE.local.md and CLAUDE.md -4. Identify patterns worth remembering -5. Identify outdated information to remove -6. Use AskUserQuestion to confirm each proposed change -7. Make approved changes -8. Report summary of changes made (or that none were needed) diff --git a/system-prompts/tool-description-websearch.md b/system-prompts/tool-description-websearch.md index 5f2bfcb..db8d4d7 100644 --- a/system-prompts/tool-description-websearch.md +++ b/system-prompts/tool-description-websearch.md @@ -1,10 +1,9 @@ - Allows Claude to search the web and use the results to inform responses @@ -30,5 +29,5 @@ Usage notes: - Web search is only available in the US IMPORTANT - Use the correct year in search queries: - - Today's date is ${GET_CURRENT_DATE_FN()}. You MUST use this year when searching for recent information, documentation, or current events. - - Example: If the user asks for "latest React docs", search for "React documentation ${CURRENT_YEAR}", NOT "React documentation ${CURRENT_YEAR-1}" + - The current month is ${CURRENT_MONTH_YEAR()}. You MUST use this year when searching for recent information, documentation, or current events. + - Example: If the user asks for "latest React docs", search for "React documentation" with the current year, NOT last year