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…

这是什么?这是一个仓库,提取并发布了 Claude Code 系统提示词的每个部分:核心指令、27 个内置工具描述、子代理提示词(Explore、Plan、Task),以及各类辅助提示词(生成 CLAUDE.md、对话压缩、状态栏设置、WebFetch、Bash 命令、安全审查、创建代理等等)。
这是我可以运行的工具,还是只是一份参考列表?它是参考和文档列表,而不是可执行的工具。这些提示词是通过脚本从 Claude Code 的最新 npm 版本中提取的,并以附带 token 数量的 Markdown 文件形式发布。
我该如何使用它?只需浏览仓库中的文件和 README,阅读提示词及其 token 数量即可;无需自行安装或运行任何东西。
使用这个仓库需要先安装 Claude Code 吗?不需要,你无需安装 Claude Code;这个仓库只是记录其提示词,供阅读或参考。
我在这里看到的提示词,会和我会话中实际运行的内容完全一致吗?大体一致,但有些提示词包含插值变量,比如工具名称或子代理列表,因此会话中实际的 token 数量可能会有大约 ±20 个 token 的差异。
这对谁有用?对想要理解、审查或定制 Claude Code 内部提示词工作方式的开发者和研究人员有用。
提示词列表是如何组织的?列表分为多个类别,例如:代理提示词(子代理,如 Explore 和 Plan)、创建助手(CLAUDE.md、状态栏设置)、斜杠命令(如 /code-review、/security-review、/simplify),以及实用工具(钩子、摘要、记忆整合)。每个条目都附有 token 数量和简短描述。
多久更新一次?每次 Claude Code 发布新版本后几分钟内就会更新,并包含一个 CHANGELOG.md,记录自 v2.0.14 以来 284 个版本中提示词的变化。
我能用它来定制自己的 Claude Code 提示词吗?可以。相关工具“tweakcc”允许你以 Markdown 文件的形式编辑这些提示词,并将修改打补丁到你自己的基于 npm 或原生安装的 Claude Code 中,还支持差异对比以处理冲突。
为什么有这么多独立的系统提示词,而不是只有一个?Claude Code 会把许多有条件生效的提示词片段、内置工具描述、子代理提示词,以及由 AI 驱动的辅助提示词(如对话压缩和会话标题生成),组装进一个压缩后的庞大 JS 打包文件中,因此会产生 500 多个不同且持续变化的字符串。
Creator
Piebald-AI
Size
7.4 MB
Stars
12.9K
Age
10mo
Commits · 90 Days