general-agentic-memory

Coordinates dual-agent memory and research for iterative retrieval.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/yuyijiong/paper-to-skill --skill general-agentic-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: general-agentic-memory
Source: https://github.com/yuyijiong/paper-to-skill/tree/main/examples/general-agentic-memory
Command: npx skills add https://github.com/yuyijiong/paper-to-skill --skill general-agentic-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The GAM approach delivers Just-in-Time memory optimization and iterative retrieval for AI agents, enabling structured long-term memory and guided research at query time.

Core Features & Use Cases

  • Just-in-Time memory construction: MemoryAgent builds abstracts from documents and stores associated pages for on-demand retrieval.
  • Iterative deep research: ResearchAgent performs planning, search, integration, and reflection to answer complex, multi-hop questions.
  • Flexible retrieval: supports keyword (BM25), vector (dense), and page-index retrieval to cover diverse information needs.
  • Use cases: building agents that require deep research over stored memories, multi-hop QA, or context-rich assistants that reason over context.

Quick Start

Trigger the GAM skill with a query that requires deep research over stored memories to produce an integrated answer.

Frequently Asked Questions about general-agentic-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build long-term memory for AI agents to answer multi-hop questions?

To build long-term memory for multi-hop reasoning, you use a dual-agent architecture where a MemoryAgent constructs just-in-time abstracts from documents for iterative on-demand retrieval. This enables structured memory and guided research at query time.

What is just-in-time memory construction for AI agents?

Just-in-time memory construction is a process where a MemoryAgent builds abstracts from documents and stores associated pages. It allows AI agents to retrieve context on demand rather than loading entire documents into the context window upfront.

How does an AI agent perform iterative retrieval for complex research?

An AI agent performs iterative retrieval for complex research by executing a cycle of planning, searching, integrating, and reflecting. A ResearchAgent orchestrates this to answer multi-hop questions over stored memories.

Does this dual-agent memory framework support BM25 and dense vector retrieval?

Yes, the dual-agent memory framework supports BM25 keyword retrieval, dense vector retrieval, and page-index retrieval. This flexible retrieval mechanism covers diverse information needs during deep research.

What is the best way to handle document-driven knowledge integration for context-rich assistants?

The best way to handle document-driven knowledge integration is using a duo-agent workflow that builds abstracts and performs iterative retrieval. This targets memory-centric workflows for long-context questions and document-driven reasoning.

When should I not use a just-in-time memory optimization approach for AI agents?

You should avoid just-in-time memory optimization if your workflow does not involve multi-hop reasoning or long-context questions. It requires a dual-agent architecture, which may be unnecessary for simple, single-turn queries without stored memories.