Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.0.56 ·

SDK Init Parameters for System Prompts and Agents

Entry
JSON All of v2.0.56
EntryKind: in v2.0.56,
ChangesSection of the release

What: SDK users can now customize system prompts and define agents programmatically during initialization.

How to use:

await sdk.init({
  systemPrompt: "You are a specialized assistant...",
  appendSystemPrompt: "Additional instructions...",
  agents: {
    "coder": {
      "description": "Coding specialist",
      "prompt": "You are an expert programmer...",
      "tools": ["bash", "write"],
      "model": "claude-opus-4"
    }
  }
})

Details:

  • systemPrompt - Override the default system prompt
  • appendSystemPrompt - Add to the default system prompt
  • agents - Define agents as JSON without file-based configuration
  • Evidence: $v3() at line 521902, new parameter handling at lines 521915-521920

See this entry in the whole of v2.0.56 →

Feedback