Claude Agent SDK (@anthropic-ai/claude-agent-sdk): query({ prompt, options: { systemPrompt } })
accepts a system prompt. appendToSystemPrompt(baseSystemPrompt, query) returns the system prompt to
pass for the turn: the developer's base system prompt with governed memory context appended (or just
the memory when there is no base), and remember persists the turn after the query(...) completes.
The Claude Agent SDK has no formal memory interface, so the system-prompt path is the idiomatic Tier-1
integration (§2.1). Structural, so @anthropic-ai/claude-agent-sdk stays an optional peer dependency.
Claude Agent SDK (
@anthropic-ai/claude-agent-sdk):query({ prompt, options: { systemPrompt } })accepts a system prompt.appendToSystemPrompt(baseSystemPrompt, query)returns the system prompt to pass for the turn: the developer's base system prompt with governed memory context appended (or just the memory when there is no base), andrememberpersists the turn after thequery(...)completes. The Claude Agent SDK has no formal memory interface, so the system-prompt path is the idiomatic Tier-1 integration (§2.1). Structural, so@anthropic-ai/claude-agent-sdkstays an optional peer dependency.