claude-code-system-prompts
by
Piebald-AI

Description: 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.

View Piebald-AI/claude-code-system-prompts on GitHub ↗

Summary Information

Updated 22 minutes ago
Added to GitGenius on April 23rd, 2026
Created on November 18th, 2025
Open Issues/Pull Requests: 6 (+0)
Number of forks: 1,681
Total Stargazers: 9,407 (+0)
Total Subscribers: 110 (+0)

Issue Activity (beta feature)

Open issues: 6
New in 7 days: 1
Closed in 7 days: 1
Avg open age: 34 days
Stale 30+ days: 2
Stale 90+ days: 1

Recent activity

Opened in 7 days: 1
Closed in 7 days: 1
Comments in 7 days: 1
Events in 7 days: 4

Top labels

No label distribution available yet.

Most active issues this week

Detailed Description

The `piebald-ai/claude-code-system-prompts` repository serves as a comprehensive and up-to-date resource for the system prompts used by Claude Code, a code-focused AI assistant developed by Anthropic. Its primary purpose is to provide developers and researchers with direct access to the exact prompts that drive Claude Code's behavior, ensuring transparency and enabling customization. The repository is maintained by Piebald AI, the creators of the agentic AI developer experience, Piebald.

The repository's core function is to extract and document the various system prompts employed by Claude Code. Unlike a single, monolithic prompt, Claude Code utilizes a complex system of prompts, including those for core functionality, built-in tools, sub-agents, and utility functions. This repository meticulously captures these diverse prompts, ensuring that users have a complete understanding of how Claude Code operates. The prompts are extracted directly from the latest npm version of Claude Code, guaranteeing their accuracy and reflecting the most current implementation.

The repository's main features include a detailed listing of all system prompts, categorized by function. These categories encompass agent prompts for sub-agents like "Explore" and "Plan," prompts for various slash commands (e.g., `/batch`, `/review-pr`), and prompts for utility functions such as conversation summarization, code analysis, and session title generation. The repository also includes data files containing references for the Claude API, including SDKs for various languages (C#, Go, Java, PHP, Python, Ruby, TypeScript, and cURL), as well as references for the Files API, Managed Agents API, and Message Batches API. Each prompt is accompanied by its token count, offering insights into the computational cost associated with each function.

A key aspect of the repository is its commitment to being up-to-date. The repository is updated within minutes of each new Claude Code release, ensuring that the information provided is always current. This rapid update cycle is facilitated by a script that extracts the prompts directly from the compiled source code. The repository also includes a changelog, which tracks the evolution of the system prompts across different Claude Code versions, allowing users to understand how the prompts have changed over time.

The repository also provides resources for users who want to modify the system prompts. It recommends using `tweakcc`, a tool that allows users to customize individual prompt components and patch them into their local Claude Code installation. This enables developers to experiment with different prompt variations and tailor Claude Code's behavior to their specific needs.

In essence, the `piebald-ai/claude-code-system-prompts` repository is a valuable resource for anyone interested in understanding, customizing, or researching Claude Code. It offers a transparent view into the AI assistant's inner workings, empowering users to leverage its capabilities more effectively and contribute to its ongoing development. The repository's meticulous documentation, rapid update cycle, and integration with tools like `tweakcc` make it an essential tool for developers working with Claude Code.

claude-code-system-prompts
by
Piebald-AIPiebald-AI/claude-code-system-prompts

Repository Details

Fetching additional details & charts...