Skip to content

feat(memory): OCG-backed agent memory with auto-summarized save + hum…#298

Open
NicholasDCole wants to merge 1 commit into
mainfrom
feature/add_memory
Open

feat(memory): OCG-backed agent memory with auto-summarized save + hum…#298
NicholasDCole wants to merge 1 commit into
mainfrom
feature/add_memory

Conversation

@NicholasDCole

Copy link
Copy Markdown
Contributor

…an feedback links

Add OCGMemoryStore (a synchronous MemoryStore HTTP adapter over the OCG BFF) and wire long-term memory into the agent runtime:

  • Pre-run: relevant agent/user-scoped memories are retrieved and injected into a copy of the agent's instructions (never mutating the shared agent).
  • Post-run: the conversation is distilled by an internal summarizer sub-agent (structured MemorySummary output; reuses the agent's model unless memory_summary_model is set) and saved as a 'conversation:' memory. Best-effort and recursion-guarded - never fails the primary run.
  • Feedback is human-only: the runtime hands a FeedbackEvent (distilled summary + signed good/bad capability URLs) to the agent's feedback_sink for out-of-band delivery (e.g. a Zendesk ticket). The URLs are never shown to the agent's LLM, so agents can only create and read memories.

Adds Agent params semantic_memory/memory_summary_model/feedback_sink, the OCGMemoryStore.feedback_links() mint call, example 118, and unit tests.

…an feedback links

Add OCGMemoryStore (a synchronous MemoryStore HTTP adapter over the OCG BFF) and
wire long-term memory into the agent runtime:

- Pre-run: relevant agent/user-scoped memories are retrieved and injected into a
  copy of the agent's instructions (never mutating the shared agent).
- Post-run: the conversation is distilled by an internal summarizer sub-agent
  (structured MemorySummary output; reuses the agent's model unless
  memory_summary_model is set) and saved as a 'conversation:<session>' memory.
  Best-effort and recursion-guarded - never fails the primary run.
- Feedback is human-only: the runtime hands a FeedbackEvent (distilled summary +
  signed good/bad capability URLs) to the agent's feedback_sink for out-of-band
  delivery (e.g. a Zendesk ticket). The URLs are never shown to the agent's LLM,
  so agents can only create and read memories.

Adds Agent params semantic_memory/memory_summary_model/feedback_sink, the
OCGMemoryStore.feedback_links() mint call, example 118, and unit tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant