Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

dag-recall达格回忆

Agent Skill

dag-recall 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

343

周安装

14

GitHub Stars

58

下载量

110
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dag-recall(达格回忆)
来源仓库:https://github.com/archieindian/openclaw-superpowers
仓库路径:skills/dag-recall
安装命令:
npx skills add https://github.com/archieindian/openclaw-superpowers --skill dag-recall
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/archieindian/openclaw-superpowers --skill dag-recall

简介

DAG Recall 用于高效检索过往会话中的决策细节,通过分层摘要 DAG 快速定位上下文信息。

  • 适合长对话历史中查找特定结论或讨论内容的场景,减少全文读取开销。
  • 基于 memory-dag-compactor 构建的层级摘要结构进行节点展开与引用组装。
  • 需确保记忆压缩组件已启用且目标话题在摘要覆盖范围内方可生效。
  • dag-recall 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

DAG Recall

What it does

When the agent needs to recall something from past sessions, reading raw transcripts is expensive and often exceeds context limits. DAG Recall walks the hierarchical summary DAG built by memory-dag-compactor — starting from high-level (d2/d3) nodes, expanding into detailed (d0/d1) children — and assembles a focused, cited answer.

Inspired by lossless-claw's sub-agent recall pattern, where a lightweight agent fetches and expands nodes on demand rather than loading entire conversation histories.

When to invoke

  • When the agent asks "what did we decide about X?" or "how did we implement Y?"
  • When context about a past session is needed but the transcript isn't loaded
  • When searching MEMORY.md returns only high-level summaries that need expansion
  • Before starting work that depends on decisions or patterns from earlier sessions

How to use

python3 recall.py --query "how did we handle auth migration"   # Walk DAG + assemble answer
python3 recall.py --query "deploy process" --depth 2           # Limit expansion depth
python3 recall.py --query "API keys" --top 5                   # Return top 5 matching nodes
python3 recall.py --expand s-d1-003                            # Expand a specific node
python3 recall.py --trace s-d0-012                             # Show full ancestor chain
python3 recall.py --recent --hours 48                          # Recall from recent nodes only
python3 recall.py --status                                     # Last recall summary
python3 recall.py --format json                                # Machine-readable output

Recall algorithm

  1. Search — FTS5 query across all DAG node summaries
  2. Rank — Score by relevance × recency × depth (deeper = more detailed = higher score for recall)
  3. Expand — For each top-N match, walk to children (lower depth = more detail)
  4. Assemble — Combine expanded content into a coherent answer with node citations
  5. Cache — Store the assembled answer for fast re-retrieval

Expansion strategy

Query: "auth migration"
  ↓
d3 node: "Infrastructure & Auth overhaul Q1" (score: 0.72)
  → expand d2: "Auth migration week of Feb 10" (score: 0.89)
    → expand d1: "Migrated JWT signing from HS256 to RS256" (score: 0.95)
      → expand d0: [raw operational detail — returned as-is]

Expansion stops when:

  • Target depth reached (default: expand to d0)
  • Token budget exhausted (default: 4000 tokens)
  • No children exist (leaf node)

DAG structure expected

Reads from ~/.openclaw/lcm-dag/ (same directory as memory-dag-compactor):

~/.openclaw/lcm-dag/
├── index.json          # Node metadata: id, depth, summary, children, created_at
├── nodes/
│   ├── s-d0-001.md     # Leaf node (operational detail)
│   ├── s-d1-001.md     # Condensed summary
│   ├── s-d2-001.md     # Arc summary
│   └── s-d3-001.md     # Durable summary
└── fts.db              # FTS5 index over node summaries

Procedure

Step 1 — Query the DAG

python3 recall.py --query "how did we handle the database migration"

Searches the FTS5 index, ranks results, expands top matches, and assembles a cited answer:

Recall: "how did we handle the database migration" — 3 sources

  We migrated the database schema using Alembic with a blue-green
  deployment strategy. The key decisions were:

  1. Zero-downtime migration using shadow tables [s-d1-003]
  2. Rollback script tested against staging first [s-d0-012]
  3. Data backfill ran as async job over 2 hours [s-d0-015]

  Sources:
    [s-d1-003] "Database migration — shadow table approach" (Feb 12)
    [s-d0-012] "Alembic rollback script for users table" (Feb 12)
    [s-d0-015] "Async backfill job for legacy records" (Feb 13)

Step 2 — Expand a specific node

python3 recall.py --expand s-d1-003

Shows the full content of a node and lists its children for further expansion.

Step 3 — Trace lineage

python3 recall.py --trace s-d0-012

Shows the full ancestor chain from leaf to root, revealing how detail connects to high-level themes.

Integration with other skills

  • memory-dag-compactor: Produces the DAG that this skill reads — must be run first
  • session-persistence: Alternative data source — recall can fall back to SQLite search when DAG nodes are insufficient
  • context-assembly-scorer: Recall results feed into context assembly scoring
  • memory-integrity-checker: Ensures DAG is structurally sound before recall walks it

State

Recall history and cache stored in ~/.openclaw/skill-state/dag-recall/state.yaml.

Fields: last_query, last_query_at, cache_size, total_recalls, recall_history.

Notes

  • Uses Python's built-in sqlite3 and json modules — no external dependencies
  • FTS5 used for search when available; falls back to substring matching
  • Token budget prevents runaway expansion on large DAGs
  • Cache is LRU with configurable max size (default: 50 entries)
  • If DAG doesn't exist yet, prints a helpful message pointing to memory-dag-compactor

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.17%
按下载量换算38

Claude

28.33%
按下载量换算31

Cursor

18.54%
按下载量换算20

Gemini CLI

9.29%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills