Skip to content

Add file-based memory pattern and skill injection key idea#1

Open
a692570 wants to merge 1 commit intoygwyg:mainfrom
a692570:add-memory-and-skill-patterns
Open

Add file-based memory pattern and skill injection key idea#1
a692570 wants to merge 1 commit intoygwyg:mainfrom
a692570:add-memory-and-skill-patterns

Conversation

@a692570
Copy link

@a692570 a692570 commented Mar 5, 2026

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

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