Skip to content

memory: improving knowledge extraction, memory service integration, and RPC option handling - #3043

Merged
Hillary Mutisya (hillary-mutisya) merged 3 commits into
mainfrom
dev/hillarym/memory2
Sep 21, 2026
Merged

Hillary Mutisya (hillary-mutisya) merged 3 commits into
mainfrom
dev/hillarym/memory2

Conversation

@hillary-mutisya

Copy link
Copy Markdown
Collaborator

This pull request introduces several updates across the agent server and browser agent packages, focusing on improving knowledge extraction, memory service integration, and RPC option handling. The most significant changes include enhanced support for nested RPC option methods, a more robust memory service initialization using a new index factory, and improvements to the browser agent’s knowledge extraction handler. Additionally, various JSON state files were added to support website import tracking.

Agent RPC and Knowledge Extraction Improvements

  • Support for Nested Option Methods in RPC: The RPC client now correctly resolves and invokes deeply nested option methods with the proper this context, and throws a clear error if the callback is not a function. A new test was added to verify this behavior. [1] [2]

  • Improved Knowledge Extraction Handler: The browser agent’s extractKnowledgeFromPage handler has been refactored to support both direct HTML fragments and dynamic extraction via browser control, with sensible defaults for entity and relationship extraction. [1] [2]

Memory Service and Indexing

  • Custom Index Factory for Memory Service: The agent server now initializes the FileMemoryService with a custom index factory that creates a KnowPro corpus index using OpenAI’s GPT-5.6 Luna model and document memory settings. This enables more advanced knowledge indexing. [1] [2]

  • Memory Service RPC Facade: The browser agent now uses a memory service RPC facade instead of an in-process client, improving modularity and potentially supporting remote memory service access.

Maintenance and Cleanup

  • Removed Unused Website Index Initialization: The browser agent no longer initializes or loads the legacy website index, reflecting a shift to the new memory/indexing system. [1] [2]

Miscellaneous

  • Package Export Cleanup: The browser agent’s package.json exports were simplified, removing the indexing export.

  • Refactored Imports: Updated imports in browser agent files to reflect new module structure and remove unused dependencies. [1] [2] [3]

These changes collectively enhance the modularity, reliability, and extensibility of the agent platform, especially regarding knowledge extraction and memory management.

Migrates browser knowledge/search/indexing from the legacy website collection to the durable memory service, adding RPC-safe service facades, corpus clearing, KnowPro-backed indexing, and memory-backed graph/analytics queries. Also improves extension import progress routing and offscreen download cancellation/retry handling.
Ask-about-page now requests answer generation for the current URL, and durable web search can synthesize grounded answers from indexed page evidence. Import progress forwarding now uses the active client event helper with debug logging, and temporary browser memory acceptance artifacts were removed.
@hillary-mutisya
Hillary Mutisya (hillary-mutisya) merged commit 1ffc2d7 into main Sep 21, 2026
27 checks passed
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