diff --git a/README.md b/README.md index 1f4332b..b2e8a79 100644 --- a/README.md +++ b/README.md @@ -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.24](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.24) (October 20th, 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.25](https://www.npmjs.com/package/@anthropic-ai/claude-code/v/2.0.25) (October 21st, 2025).** Why multiple "system prompts?" @@ -53,8 +53,8 @@ Sub-agents and utilities. - [Agent Prompt: Conversation summarization with additional instructions](./system-prompts/agent-prompt-conversation-summarization-with-additional-instructions.md) (**1133** tks) - Extended summarization prompt with support for custom additional instructions. - [Agent Prompt: Conversation summarization](./system-prompts/agent-prompt-conversation-summarization.md) (**1121** tks) - System prompt for creating detailed conversation summaries. - [Agent Prompt: Output style creation](./system-prompts/agent-prompt-output-style-creation.md) (**724** tks) - System prompt for the output-style-setup agent that creates custom output styles. -- [Agent Prompt: Session notes template](./system-prompts/agent-prompt-session-notes-template.md) (**195** tks) - Template structure for session notes tracking coding work and decisions. -- [Agent Prompt: Session notes update instructions](./system-prompts/agent-prompt-session-notes-update-instructions.md) (**501** tks) - Instructions for updating session notes files during conversations. +- [Agent Prompt: Session notes template](./system-prompts/agent-prompt-session-notes-template.md) (**226** tks) - Template structure for session notes tracking coding work and decisions. +- [Agent Prompt: Session notes update instructions](./system-prompts/agent-prompt-session-notes-update-instructions.md) (**730** tks) - Instructions for updating session notes files during conversations. - [Agent Prompt: Session title generation](./system-prompts/agent-prompt-session-title-generation.md) (**159** tks) - System prompt for generating succinct titles for coding sessions. - [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) (**147** tks) - Prompt for agent that summarizes verbose output from WebFetch for the main model. @@ -88,7 +88,7 @@ Text for large system reminders. ### Builtin Tool Descriptions -- [Tool Description: Bash](./system-prompts/tool-description-bash.md) (**1097** tks) - Description for the Bash tool, which allows Claude to run shell commands. +- [Tool Description: Bash](./system-prompts/tool-description-bash.md) (**1074** tks) - Description for the Bash tool, which allows Claude to run shell commands. - [Tool Description: Edit](./system-prompts/tool-description-edit.md) (**278** tks) - Tool description for performing exact string replacements in files. - [Tool Description: ExitPlanMode](./system-prompts/tool-description-exitplanmode.md) (**200** tks) - Description for the ExitPlanMode tool, which presents a plan dialog for the user to approve. - [Tool Description: Glob](./system-prompts/tool-description-glob.md) (**122** tks) - Tool description for file pattern matching and searching by name. diff --git a/system-prompts/agent-prompt-session-notes-template.md b/system-prompts/agent-prompt-session-notes-template.md index 0ede8fb..0c62400 100644 --- a/system-prompts/agent-prompt-session-notes-template.md +++ b/system-prompts/agent-prompt-session-notes-template.md @@ -1,9 +1,12 @@ +# Session Title +_A short and distinctive 5-10 word descriptive title for the session. Super info dense, no filler_ + # Task specification _What did the user ask to build? Any design decisions or other explanatory context_ diff --git a/system-prompts/agent-prompt-session-notes-update-instructions.md b/system-prompts/agent-prompt-session-notes-update-instructions.md index 87327a4..ce5aa3c 100644 --- a/system-prompts/agent-prompt-session-notes-update-instructions.md +++ b/system-prompts/agent-prompt-session-notes-update-instructions.md @@ -1,7 +1,7 @@ @@ -14,16 +14,17 @@ The file {{notesPath}} has already been read for you. Here are its current conte {{currentNotes}} -Your ONLY task is to use the Edit tool EXACTLY ONCE to update the notes file, then stop. Do not call any other tools. +Your ONLY task is to use the Edit tool to update the notes file, then stop. You can make multiple edits (update every section as needed) - make all Edit tool calls in parallel in a single message. Do not call any other tools. CRITICAL RULES FOR EDITING: - The file must maintain its exact structure with all sections, headers, and italic descriptions intact --- NEVER modify, delete, or add section headers (## Task specification, ## Worklog, etc.) --- NEVER modify or delete the italic text descriptions under each section header --- ONLY update the content BELOW the italic descriptions within each existing section +-- NEVER modify, delete, or add section headers (the lines starting with '##' like ## Task specification) +-- NEVER modify or delete the italic _section description_ lines (these are the lines in italics immediately following each header - they start and end with underscores) +-- The italic _section descriptions_ are TEMPLATE INSTRUCTIONS that must be preserved exactly as-is - they guide what content belongs in each section +-- ONLY update the actual content that appears BELOW the italic _section descriptions_ within each existing section -- Do NOT add any new sections, summaries, or information outside the existing structure - Do NOT reference this note-taking process or instructions anywhere in the notes -- It's OK to skip updating a section if there are no substantial new insights to add +- It's OK to skip updating a section if there are no substantial new insights to add. Do not add filler content like "No info yet", just leave sections blank/unedited if appropriate. - Write DETAILED, INFO-DENSE content for each section - include specifics like file paths, function names, error messages, exact commands, technical details, etc. - Do not include information that's already in the CLAUDE.md files included in the context - Keep each section under ~${MAX_SECTION_TOKENS} tokens/words - if a section is approaching this limit, condense it by cycling out less important details while preserving the most critical information @@ -32,4 +33,11 @@ CRITICAL RULES FOR EDITING: Use the Edit tool with file_path: {{notesPath}} -REMEMBER: Use Edit tool once and stop. Do not continue after the edit. Only include insights from the actual user conversation, never from these note-taking instructions. +STRUCTURE PRESERVATION REMINDER: +Each section has TWO parts that must be preserved exactly as they appear in the current file: +1. The section header (line starting with #) +2. The italic description line (the _italicized text_ immediately after the header - this is a template instruction) + +You ONLY update the actual content that comes AFTER these two preserved lines. The italic description lines starting and ending with underscores are part of the template structure, NOT content to be edited or removed. + +REMEMBER: Use the Edit tool in parallel and stop. Do not continue after the edits. Only include insights from the actual user conversation, never from these note-taking instructions. Do not delete or change section headers or italic _section descriptions_. diff --git a/system-prompts/tool-description-bash.md b/system-prompts/tool-description-bash.md index 48d0ccb..397e4b9 100644 --- a/system-prompts/tool-description-bash.md +++ b/system-prompts/tool-description-bash.md @@ -1,7 +1,7 @@