claude-code-system-prompts README

The project's README from github.com/Piebald-AI/claude-code-system-prompts. As one markdown file: README.md.

Check out Piebald

We've released Piebald, the ultimate agentic AI developer experience.
Download it and try it out for free! https://piebald.ai/

Join our Discord X

Scroll down for Claude Code's system prompts. :point_down:

hero

Claude Code System Prompts

Mentioned in Awesome Claude Code

[!tip] NEW (June 12, 2026): We've greatly expanded this list with many more of Claude Code's prompts—from 350 to 515 (+165)—our most complete coverage yet.

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.267 (September 9th, 2026). It also contains a CHANGELOG.md for the system prompts across 284 versions since v2.0.14. From the team behind 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:

The result—500+ strings that are constantly changing and moving within a very large minified JS file.

[!important] Want to modify a particular piece of the system prompt in your own Claude Code installation? Use tweakcc. It—

  • lets you customize 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

Creation Assistants

Slash Commands

Utilities

claude-code-system-prompts (Piebald-AI/claude-code-system-prompts)

Searching Database…

What is this?This is a repository that extracts and publishes every part of Claude Code's system prompt: its core instructions, 27 builtin tool descriptions, sub-agent prompts (Explore, Plan, Task), and utility prompts (CLAUDE.md generation, conversation compaction, statusline setup, WebFetch, Bash commands, security review, agent creation, and more).
Is this a tool I run, or just a reference list?It is a reference/documentation list, not an executable tool. The prompts are extracted via a script from the latest npm version of Claude Code and published as markdown files with token counts.
How do I use this?Just browse the repository's files and README to read the prompts and their token counts; there is nothing to install or run yourself.
Do I need Claude Code installed to use this?No, you don't need Claude Code installed; this repo just documents its prompts for reading or reference.
Will the prompts I see here exactly match what runs in my session?Mostly, but some prompts contain interpolated variables like tool names or sub-agent lists, so actual token counts in a session may differ by roughly ±20 tokens.
Who is this useful for?Developers and researchers who want to understand, audit, or customize how Claude Code's internal prompts work.
How is the prompt list organized?It's split into categories such as Agent Prompts (sub-agents like Explore and Plan), Creation Assistants (CLAUDE.md, statusline setup), Slash Commands (like /code-review, /security-review, /simplify), and Utilities (hooks, summarization, memory consolidation), each with a token count and short description.
How often is it updated?It's updated within minutes of each new Claude Code release, and includes a CHANGELOG.md tracking prompt changes across 284 versions since v2.0.14.
Can I customize my own Claude Code's prompts using this?Yes, the related tool 'tweakcc' lets you edit these prompts as markdown files and patch them into your own npm-based or native Claude Code installation, with diffing for conflicts.
Why are there so many separate system prompts instead of one?Claude Code assembles many conditional prompt pieces, builtin tool descriptions, sub-agent prompts, and AI-powered utility prompts (like conversation compaction and session title generation) into a large minified JS bundle, resulting in 500+ distinct, constantly changing strings.
Creator
Piebald-AI
Size
7.4 MB
Stars
12.9K
Age
10mo
Commits · 90 Days