Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.56 Home All releases olderv2.0.55 v2.0.57newer
Claude Code v2.0.56

SDK Init Parameters for System Prompts and Agents

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 →