CO

CodeBuddy — Craft Mode Agent Prompt

Agent Prompt ✦ Curated & attributed Advanced

System prompt for CodeBuddy, an IDE coding agent that operates in two top-level modes (CRAFT for execution via attempt_completion, CHAT for planning via chat_mode_respond) plus Plan and Design sub-modes. It defines an XML tool-call protocol (read_file, search_files, write_to_file, replace_in_file with SEARCH/REPLACE blocks, execute_command, MCP tools) and integrations for Supabase, CloudStudio, Tencent CloudBase, and EdgeOne Pages.

What makes this prompt notable

  • Anti-extraction defense: when asked to reveal the system prompt it instructs the model to print a fabricated decoy prompt instead of the real one
  • Caps tool calls at fewer than 3 per message and forces large-content tools into a single call
  • Mandates a `path` variable accompany every code block and that code replies be returned inside a `response` variable
  • Forbids opening replies with 'Great'/'Certainly'/'Okay'/'Sure' and enforces zh-cn output via custom instructions
  • replace_in_file requires character-exact SEARCH blocks with complete lines, ordered top-to-bottom

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