Add file-based memory pattern and skill injection key idea#1
Open
a692570 wants to merge 1 commit intoygwyg:mainfrom
Open
Add file-based memory pattern and skill injection key idea#1a692570 wants to merge 1 commit intoygwyg:mainfrom
a692570 wants to merge 1 commit intoygwyg:mainfrom
Conversation
- Memory Patterns: Add 'File-based memory with semantic search' as a key idea and 'File-Based Memory (MEMORY.md Pattern)' as an example. This pattern is used by OpenClaw, Claude Code, and other CLI agents where plain markdown files + semantic search replace external databases. - Skills: Add 'Skill injection for delegated agents' as a key idea. In multi-agent systems, child agents don't inherit parent context, so skills must be explicitly inlined in delegation prompts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small additions based on production experience running long-lived AI agents:
Memory Patterns
New key idea: "File-based memory with semantic search"
New example: File-Based Memory (MEMORY.md Pattern) — Plain markdown files with semantic search, used by OpenClaw, Claude Code, and other CLI agents. An index file tracks core facts, daily journals capture session context, and a learnings log records mistakes and discoveries. No database required — just files, git, and embeddings.
The current examples are all dedicated memory services (Mem0, Letta, Zep). This adds the simpler file-based approach that many CLI agents and personal assistants use in practice.
Skills
New key idea: "Skill injection for delegated agents"
In multi-agent systems, child agents don't inherit parent context. When an orchestrator delegates a task to a sub-agent, any relevant skills must be explicitly inlined in the delegation prompt — referencing a file path isn't enough because the child agent may not have access. This is a common gotcha that applies across frameworks (OpenAI Agents SDK, LangGraph, CrewAI, OpenClaw).