Claude Code System Prompts
<div> <div align="right"> <a href="https://piebald.ai"><img width="200" top="20" align="right" src="https://github.com/Piebald-AI/.github/raw/main/Wordmark.svg"></a> </div>
Overview
Check out Piebald
We've released Piebald, the ultimate agentic AI developer experience. \ Download it and try it out for free! https://piebald.ai/
<a href="https://piebald.ai/discord"><img src="https://img.shields.io/badge/Join%20our%20Discord-5865F2?style=flat&logo=discord&logoColor=white" alt="Join our Discord"></a> <a href="https://x.com/PiebaldAI"><img src="https://img.shields.io/badge/Follow%20%40PiebaldAI-000000?style=flat&logo=x&logoColor=white" alt="X"></a>
<sub>Scroll down for Claude Code's system prompts. :point_down:</sub>
</div> </div> <div align="left"> <a href="https://piebald.ai"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://piebald.ai/screenshot-dark.png"> <source media="(prefers-color-scheme: light)" srcset="https://piebald.ai/screenshot-light.png"> <img alt="hero" width="800" src="https://piebald.ai/screenshot-light.png"> </picture> </a> </div>Claude Code System Prompts
[!important] NEW (January 23, 2026): We've added all of Claude Code's ~40 system reminders to this list—see 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.119 (April 23rd, 2026). It also contains a CHANGELOG.md for the system prompts across 161 versions since v2.0.14. From the team behind <img src="https://github.com/Piebald-AI/piebald/raw/main/assets/logo.svg" width="15"> Piebald.
This repository is updated within minutes of each Claude Code release. See the changelog, and follow @PiebaldAI on X for a summary of the system prompt changes in each release.
[!note] ⭐ Star this repository to get notified about new Claude Code versions. For each new Claude Code version, we create a release on GitHub, which will notify all users who've starred the repository.
Why multiple "system prompts?"
Claude Code doesn't just have one single string for its system prompt.
Instead, there are:
- Large portions conditionally added depending on the environment and various configs.
- Descriptions for builtin tools like
Write,Bash, andTodoWrite, and some are fairly large. - Separate system prompts for builtin agents like Explore and Plan.
- Numerous AI-powered utility functions, such as conversation compaction,
CLAUDE.mdgeneration, session title generation, etc. featuring their own systems prompts.
The result—110+ strings that are constantly changing and moving within a very large minified JS file.
[!TIP] Want to modify a particular piece of the system prompt in your own Claude Code installation? Use tweakcc. It—
- lets you customize the the individual pieces of the system prompt as markdown files, and then
- patches your npm-based or native (binary) Claude Code installation with them, and also
- provides diffing and conflict management for when both you and Anthropic have conflicting modifications to the same prompt file.
Extraction
This repository contains the system prompts extracted using a script from the latest npm version of Claude Code. As they're extracted directly from Claude Code's compiled source code, they're guaranteed to be exactly what Claude Code uses. If you use tweakcc to customize the system prompts, it works in a similar way—it patches the exact same strings in your local installation as are extracted into this repository.
Prompts
Note that some prompts contain interpolated bits such as builtin tool name references, lists of available sub agents, and various other context-specific variables, so the actual counts in a particular Claude Code session will differ slightly—likely not beyond ±20 tokens, however.
Agent Prompts
Sub-agents and utilities.
Sub-agents
- Agent Prompt: Explore (575 tks) - System prompt for the Explore subagent.
- Agent Prompt: Plan mode (enhanced) (715 tks) - Enhanced prompt for the Plan subagent.
Creation Assistants
- Agent Prompt: Agent creation architect (1110 tks) - System prompt for creating custom AI agents with detailed specifications.
- Agent Prompt: CLAUDE.md creation (384 tks) - System prompt for analyzing codebases and creating CLAUDE.md documentation files.
- Agent Prompt: Status line setup (2120 tks) - System prompt for the statusline-setup agent that configures status line display.
Slash Commands
- Agent Prompt: /batch slash command (1106 tks) - Instructions for orchestrating a large, parallelizable change across a codebase.
- Agent Prompt: /rename auto-generate session name (80 tks) - Prompt used by /rename (no args) to auto-generate a kebab-case session name from conversation context.
- Agent Prompt: /review-pr slash command (211 tks) - System prompt for reviewing GitHub pull requests with code analysis.
- Agent Prompt: /schedule slash command (3130 tks) - Guides the user through scheduling, updating, listing, or running remote Claude Code agents on cron triggers via the Anthropic cloud API.
- Agent Prompt: /security-review slash command (2550 tks) - Comprehensive security review prompt for analyzing code changes with focus on exploitable vulnerabilities.
Utilities
- Agent Prompt: Auto mode rule reviewer (257 tks) - Reviews and critiques user-defined auto mode classifier rules for clarity, completeness, conflicts, and actionability.
- Agent Prompt: Background agent state classifier (848 tks) - Classifies the tail of a background agent transcript as working, blocked, done, or failed and returns concise state JSON.
- Agent Prompt: Bash command description writer (207 tks) - Instructions for generating clear, concise command descriptions in active voice for bash commands.
- Agent Prompt: Bash command prefix detection (823 tks) - System prompt for detecting command prefixes and command injection.
- Agent Prompt: Claude guide agent (734 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: Coding session title generator (181 tks) - Generates a title for the coding session.
- Agent Prompt: Conversation summarization (1121 tks) - System prompt for creating detailed conversation summaries.
- Agent Prompt: Determine which memory files to attach (265 tks) - Agent for determining which memory files to attach for the main agent.
- Agent Prompt: Dream memory consolidation (830 tks) - Instructs an agent to perform a multi-phase memory consolidation pass — orienting on existing memories, gathering recent signal from logs and transcripts, merging updates into topic files, and pruning the index.
- Agent Prompt: Dream memory pruning (456 tks) - Instructs an agent to perform a memory pruning pass by deleting stale or invalidated memory files and collapsing duplicates in the memory directory.
- Agent Prompt: General purpose (285 tks) - System prompt for the general-purpose subagent that searches, analyzes, and edits code across a codebase while reporting findings concisely to the caller.
- Agent Prompt: Hook condition evaluator (stop) (145 tks) - System prompt for evaluating hook conditions, specifically stop conditions, in Claude Code.
- Agent Prompt: Managed Agents onboarding flow (2525 tks) - Interactive interview script that walks users through configuring a Managed Agent from scratch — selecting tools, skills, files, environment settings — and emits setup and runtime code.
- Agent Prompt: Memory synthesis (443 tks) - Subagent that reads persistent memory files and returns a JSON synthesis of only the information relevant to each query, with cited filenames.
- Agent Prompt: Onboarding guide generator (1135 tks) - Co-authors a team onboarding guide (ONBOARDING.md) for new Claude Code users by analyzing the creator's usage data, classifying session types, and iterating on the draft collaboratively.
- Agent Prompt: Prompt Suggestion Generator v2 (296 tks) - V2 instructions for generating prompt suggestions for Claude Code.
- Agent Prompt: Quick PR creation (986 tks) - Streamlined prompt for creating a commit and pull request with pre-populated context.
- Agent Prompt: Quick git commit (574 tks) - Streamlined prompt for creating a single git commit with pre-populated context.
- Agent Prompt: Recent Message Summarization (724 tks) - Agent prompt used for summarizing recent messages.
- Agent Prompt: Security monitor for autonomous agent actions (first part) (3196 tks) - Instructs Claude to act as a security monitor that evaluates autonomous coding agent actions against block/allow rules to prevent prompt injection, scope creep, and accidental damage.
- Agent Prompt: Security monitor for autonomous agent actions (second part) (3671 tks) - Defines the environment context, block rules, and allow exceptions that govern which tool actions the agent may or may not perform.
- Agent Prompt: Session memory update instructions (756 tks) - Instructions for updating session memory files during conversations.
- Agent Prompt: Session search (158 tks) - Subagent prompt for searching past Claude Code conversation sessions by scanning .jsonl transcript files and returning matching session IDs.
- Agent Prompt: Session title and branch generation (307 tks) - Agent for generating succinct session titles and git branch names.
- Agent Prompt: Verification specialist (2885 tks) - System prompt for a verification subagent that adversarially tests implementations by running builds, test suites, linters, and adversarial probes, then issuing a PASS/FAIL/PARTIAL verdict.
- Agent Prompt: WebFetch summarizer (189 tks) - Prompt for agent that summarizes verbose output from WebFetch for the main model.
- Agent Prompt: Worker fork (258 tks) - System prompt for a forked worker sub-agent that executes a single directive from the parent agent and reports back concisely.
Data
The content of various template files embedded in Claude Code.
- Data: Anthropic CLI (2878 tks) - Reference documentation for the ant CLI covering installation, authentication, command structure, input and output shaping, managed agents workflows, and scripting patterns.
- Data: Assistant voice and values template (454 tks) - Template content for an assistant.md file describing Claude's voice, values, and communication style.
- Data: Background agent state classification examples (510 tks) - Example assistant-message tails and JSON outputs for classifying background agent state, tempo, needs, and result.
- Data: Claude API reference — C# (4341 tks) - C# SDK reference including installation, client initialization, basic requests, streaming, and tool use.
- Data: Claude API reference — Go (4294 tks) - Go SDK reference.
- Data: Claude API reference — Java (4506 tks) - Java SDK reference including installation, client initialization, basic requests, streaming, and beta tool use.
- Data: Claude API reference — PHP (3486 tks) - PHP SDK reference.
- Data: Claude API reference — Python (4391 tks) - Python SDK reference including installation, client initialization, basic requests, thinking, and multi-turn conversation.
- Data: Claude API reference — Ruby (923 tks) - Ruby SDK reference including installation, client initialization, basic requests, streaming, and beta tool runner.
- Data: Claude API reference — TypeScript (2915 tks) - TypeScript S