actrone-memory
    Preparing search index...

    Function claudeAgentMemory

    • 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.

      Parameters

      Returns {
          appendToSystemPrompt: (
              baseSystemPrompt: string,
              query: string,
              tokenBudget?: number,
          ) => Promise<string>;
          remember: (
              userMessage: string,
              assistantMessage: string,
          ) => Promise<string>;
      }