Claude Code — Core System Prompt (Sonnet 4)

Agent Prompt ✦ Curated & attributed claude-sonnet-4-20250514 Intermediate

An earlier, leaner Claude Code system prompt (Sonnet 4, dated 2025-08-19) without the bundled tool schemas. It sets the terse CLI persona, prescribes searching the codebase before editing, following existing conventions, running lint/typecheck after tasks, and never committing unless asked. Includes a git-status snapshot block and templated <env> placeholders.

What makes this prompt notable

  • Demands answers 'with fewer than 4 lines' and 'One word answers are best', with no preamble/postamble
  • NEVER assume a library is available — instructs checking package.json/cargo.toml and neighboring files first
  • VERY IMPORTANT rule to run lint and typecheck (npm run lint / typecheck / ruff) after completing a task, and to offer writing the command to CLAUDE.md
  • Hard rule: 'DO NOT ADD ANY COMMENTS unless asked'
  • Routes Claude-Code-about-itself questions to WebFetch against an enumerated docs sub-page list

Discussion (0)

Sign in to join the discussion.
Related

More in IDE & Coding Assistants

VSCode Agent
agent prompt

VSCode Agent (GitHub Copilot) — GPT-5 Agent Prompt

The most elaborate Copilot VS Code agent prompt, for GPT-5. It combines the Copilot identity and refusals with a detailed communication-style guide, m…

role definition tool-use protocol structured diff format specification
239 5.6k 3.7k words
KI
Kiro
system prompt

Kiro — Intent Mode Classifier

A lightweight intent-classification prompt that routes a user message into chat/do/spec modes and returns a JSON object of confidence scores summing t…

classification rubric constraint setting few-shot
226 5.3k 600 words
CU
Cursor
agent prompt

Cursor — Agent Prompt v1.0 (Claude Sonnet 4)

An earlier, leaner Cursor agent prompt (Claude Sonnet 4) focused on tool-calling rules, aggressive parallel tool execution, search-and-reading bias to…

role definition tool-use protocol parallel tool-call maximization
225 7.3k 1.5k words