Copilot SDK v0.1.33-preview.4: Fine-Grained Prompts

Copilot SDK now lets you customize individual system prompt sections without replacing the entire prompt. Use transform callbacks for dynamic mutations.

Copilot SDK v0.1.33-preview.4: Fine-Grained Prompts

TL;DR

  • New "customize" mode for system prompts — override specific sections without replacing the entire prompt
  • Ten configurable sections: identity, tone, tool_efficiency, environment_context, code_change_rules, guidelines, safety, tool_instructions, custom_instructions, last_instructions
  • Supports static actions (replace, remove, append, prepend) plus transform callbacks for dynamic mutations

New

  • Fine-grained system prompt customization"customize" mode lets you selectively override individual prompt sections instead of replacing the whole thing or just appending to the end.
  • Transform callbacks — Pass a function to read the current rendered section content and return a modified version, enabling regex mutations, conditional edits, or logging.

Details

  • Ten sections are independently configurable: identity, tone, tool_efficiency, environment_context, code_change_rules, guidelines, safety, tool_instructions, custom_instructions, last_instructions.
  • Each section supports four static actions: replace, remove, append, prepend.
  • JavaScript and C# examples provided in the release.

Update via npm install @github/copilot-sdk@0.1.33-preview.4

Source: Copilot SDK