Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
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:

Claude Code System Prompts

Mentioned in Awesome Claude Code

[!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.100 (April 9th, 2026). It also contains a CHANGELOG.md for the system prompts across 146 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:

  • Large portions conditionally added depending on the environment and various configs.
  • Descriptions for builtin tools like Write, Bash, and TodoWrite, 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.md generation, 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

Creation Assistants

Slash Commands

Utilities

Data

The content of various template files embedded in Claude Code.

System Prompt

Parts of the main system prompt.

System Reminders

Text for large system reminders.

Builtin Tool Descriptions

Additional notes for some Tool Descriptions

Skills

Built-in skill prompts for specialized tasks.

  • Skill: /dream nightly schedule (441 tks) - Sets up a recurring nightly memory consolidation job by deduplicating existing schedules, creating a new cron task, confirming details to the user, and running an immediate consolidation.
  • Skill: /init CLAUDE.md and skill setup (new version) (4618 tks) - A comprehensive onboarding flow for setting up CLAUDE.md and related skills/hooks in the current repository, including codebase exploration, user interviews, and iterative proposal refinement.
  • Skill: /loop slash command (1040 tks) - Parses user input into an interval and prompt, converts the interval to a cron expression, and schedules a recurring task.
  • Skill: /stuck slash command (964 tks) - Diagnozse frozen or slow Claude Code sessions.
  • Skill: Agent Design Patterns (1974 tks) - Reference guide covering decision heuristics for building agents on the Claude API, including tool surface design, context management, caching strategies, and composing tool calls.
  • Skill: Build Claude API and SDK apps (181 tks) - Trigger rules for activating guidance when users are building applications with the Claude API, Anthropic SDKs, or Managed Agents.
  • Skill: Build with Claude API (reference guide) (584 tks) - Template for presenting language-specific reference documentation with quick task navigation.
  • Skill: Building LLM-powered applications with Claude (7556 tks) - Guides Claude in building LLM-powered applications using the Anthropic SDK, covering language detection, API surface selection (Claude API vs Managed Agents), model defaults, thinking/effort configuration, and language-specific documentation reading.
  • Skill: Computer Use MCP (1206 tks) - Instructions for using computer-use MCP tools including tool selection tiers, app access tiers, link safety, and financial action restrictions.
  • Skill: Create verifier skills (2625 tks) - Prompt for creating verifier skills for the Verify agent to automatically verify code changes.
  • Skill: Debugging (412 tks) - Instructions for debugging an issue that the user is encountering in the Claude Code session.
  • Skill: Simplify (877 tks) - Instructions for simplifying code.
  • Skill: Team onboarding guide (521 tks) - Template for onboarding a new teammate to a team's Claude Code setup, walking them through usage stats, setup checklists, MCP servers, skills, and team tips in a warm conversational style.
  • Skill: Update Claude Code Config (1255 tks) - Skill for modifying Claude Code configuration file (settings.json).
  • Skill: Verify CLI changes (example for Verify skill) (565 tks) - Example workflow for verifying a CLI change, as part of the Verify skill.
  • Skill: Verify server/API changes (example for Verify skill) (612 tks) - Example workflow for verifying a server/API change, as part of the Verify skill.
  • Skill: Verify skill (2694 tks) - Skill for opinionated verification workflow for validating code changes.
  • Skill: update-config (7-step verification flow) (1160 tks) - A skill that guides Claude through a 7-step process to construct and verify hooks for Claude Code, ensuring they work correctly in the user's specific project environment.

关于 About

All parts of Claude Code's system prompt, 24 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs, WebFetch, Bash cmd, security review, agent creation). Updated for each Claude Code version.
claude-codeclaude-code-system-promptssystem-prompts

语言 Languages

JavaScript100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
319
Total Commits
峰值: 39次/周
Less
More

核心贡献者 Contributors