memory

GitHub

提供基于 Dream 管理的两层记忆系统使用说明,涵盖人格、用户画像及长期事实文件的访问规则,并指导如何通过 grep 工具高效搜索历史事件日志。

echo_longvideo/Director_Agent/nanobot/skills/memory/SKILL.md jd-opensource/JoyAI-Echo

Trigger Scenarios

需要查询或理解 Agent 的记忆结构 需要在历史对话记录中检索特定信息

Install

npx skills add jd-opensource/JoyAI-Echo --skill memory -g -y
More Options

Non-standard path

npx skills add https://github.com/jd-opensource/JoyAI-Echo/tree/main/echo_longvideo/Director_Agent/nanobot/skills/memory -g -y

Use without installing

npx skills use jd-opensource/JoyAI-Echo@memory

指定 Agent (Claude Code)

npx skills add jd-opensource/JoyAI-Echo --skill memory -a claude-code -g -y

安装 repo 全部 skill

npx skills add jd-opensource/JoyAI-Echo --all -g -y

预览 repo 内 skill

npx skills add jd-opensource/JoyAI-Echo --list

SKILL.md

Frontmatter
{
    "name": "memory",
    "always": true,
    "description": "Two-layer memory system with Dream-managed knowledge files."
}

Memory

Structure

  • SOUL.md — Bot personality and communication style. Managed by Dream. Do NOT edit.
  • USER.md — User profile and preferences. Managed by Dream. Do NOT edit.
  • memory/MEMORY.md — Long-term facts (project context, important events). Managed by Dream. Do NOT edit.
  • memory/history.jsonl — append-only JSONL, not loaded into context. Prefer the built-in grep tool to search it.

Search Past Events

memory/history.jsonl is JSONL format — each line is a JSON object with cursor, timestamp, content.

  • For broad searches, start with grep(..., path="memory", glob="*.jsonl", output_mode="count") or the default files_with_matches mode before expanding to full content
  • Use output_mode="content" plus context_before / context_after when you need the exact matching lines
  • Use fixed_strings=true for literal timestamps or JSON fragments
  • Use head_limit / offset to page through long histories
  • Use exec only as a last-resort fallback when the built-in search cannot express what you need

Examples (replace keyword):

  • grep(pattern="keyword", path="memory/history.jsonl", case_insensitive=true)
  • grep(pattern="2026-04-02 10:00", path="memory/history.jsonl", fixed_strings=true)
  • grep(pattern="keyword", path="memory", glob="*.jsonl", output_mode="count", case_insensitive=true)
  • grep(pattern="oauth|token", path="memory", glob="*.jsonl", output_mode="content", case_insensitive=true)

Important

  • Do NOT edit SOUL.md, USER.md, or MEMORY.md. They are automatically managed by Dream.
  • If you notice outdated information, it will be corrected when Dream runs next.
  • Users can view Dream's activity with the /dream-log command.

Version History

  • 75c504c Current 2026-08-28 02:22

Same Skill Collection

echo_longvideo/Director_Agent/nanobot/skills/my/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/skill-creator/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/summarize/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/tmux/SKILL.md
echo_longvideo/Director_Agent/nanobot/skills/cron/SKILL.md
echo_wm/PROMPT_SKILL.md

Metadata

Files
0
Version
75c504c
Hash
2421337a
Indexed
2026-08-28 02:22

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 07:40
浙ICP备14020137号-1 $Гость$