Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/xcota/pos/dreamnpx skills add xcota/pos --skill dreamgit clone --depth 1 https://github.com/xcota/posWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xcota/pos/dream)<a href="https://agentmods.dev/skills/xcota/pos/dream"><img src="https://agentmods.dev/badge/skills/xcota/pos/dream.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00026 | $0.01940 |
| Opus 5 | $0.00013 | $0.00970 |
| Sonnet 5 | $0.00005 | $0.00388 |
| Haiku 4.5 | $0.00003 | $0.00194 |
Grade B, and why
dream scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
grep -rn "<narrow term>" ~/.claude/projects/ --include="*.jsonl" | tail -50 Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
# warm server (ms): curl -s "http://127.0.0.1:8765/search?q=QUERY&k=8" How it starts
The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/dream — Memory Consolidation
You are performing a dream — a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions can orient quickly.
Memory directories:
knowledge/— entity files (people, business, concepts, tools, projects) + MOCcontext/— priorities, anti-patterns, learned, goalsstate/— current.md, decisions, sessions
Index file: MEMORY.md (workspace root) — also knowledge/INDEX.md if present
Index limits: 200 lines AND 25KB
Daily logs: daily/YYYY-MM-DD.md
Session transcripts: Claude Code stores per-session JSONL transcripts under its projects directory (e.g. ~/.claude/projects/<slug>/*.jsonl, where <slug> is derived from the vault path). These are large — grep narrowly, never read whole files.
Sister tool: the node-level embedding index — semantic search across the whole vault. Use it in Phase 1 to fetch existing facts before synthesizing, and in Phase 2 to surface contradictions.
.memory_venv/bin/python scripts/memory_index.py search "QUERY"
# warm server (ms): curl -s "http://127.0.0.1:8765/search?q=QUERY&k=8"
Architecture: knowledge/concepts/memory-embedding-layer.md.
Phase 1 — Orient (CRITICAL — this is the fix for hallucination)
Synthesis without prior reading = hallucination factory. Before writing anything:
ls knowledge/ context/ state/to see what already exists- Read
MEMORY.mdandknowledge/INDEX.md(if it exists) to understand the current index - Read
state/current.mdfor cross-context state - Skim existing topic files in the area you're about to touch — improve them, don't create duplicates
- Review
state/sessions/for recent checkpoints - Use
memory_index.py search "{topic}"(node index) to surface related nodes before deciding what's new
If you skip Phase 1, abort the dream. Do not write to memory without knowing what's already there.
Phase 2 — Gather recent signal
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 158 lines · 26 tokens per session scan B 8ac7ecca6945
dream is a skill published in the GitHub repository xcota/pos (43 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 1,940 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
ori-memory
Persistent agent memory with learning retrieval. Knowledge graph on markdown files — capture insights, decisions, research, and learnings during work, then retrieve them weeks or months later. Use when knowledge is too valuable to lose but too much to inject into every prompt.
capture-knowledge
将对话、项目文档、调试经验或用户指定材料沉淀到 Second Brain。用于“保存知识”“提取经验”“导入文档”“记录到知识库”“capture knowledge”等请求;先保存可追溯来源,再按一个稳定主题一张卡提取或更新 canonical 页面,禁止把 README、报告、故事或整段会话直接做成一张大卡。.
second-brain-attach
把全新、重装或重置后的 AI Agent 接入用户本地 Second Brain:安装七个 Second Brain Skills,连接薄 MCP,注入通用规则与该 Agent 的独立身份,并在全新会话中验证。用户要求安装、接入、迁移、初始化、恢复 Codex、Claude、AntiGravity、Hermes 或兼容 Agent,或者希望一个新 Agent‘变成我的形状’时使用,即使用户没有说出本 Skill 名称。.
second-brain-distill
把选定的历史 AI Agent 对话完整榨取为可长期保存的规则、知识、Agent 配置、Skills、项目经验、山脉证据和晋升附件;只有恢复性与完整性门禁通过后,才删除明确 allowlist 中的原始批次。用户要求挖掘、榨取、归档、压缩、清理或删除旧 Agent 对话,同时保留其中全部有价值信息,或提到历史对话数据挖掘、SkillOpt 理念时使用。.
second-brain-doctor
诊断一个 Agent 是否正确接入用户的 Second Brain:检查权威文件、通用与 Agent 专属投影、全部七个 Second Brain Skills、薄 MCP 连通性与 allowlist、local-only 或 private-remote Git 边界、漂移、过时旧 owner 和全新会话行为。用户询问是否健康、装好、连接、同步、可迁移或正常工作,完成 Attach/Sync 后,或 Agent 行为不符合既有偏好时使用。默认只读。.
second-brain-learn
从当前 Agent 对话和工作轨迹中挖掘可长期保留的偏好、方法、Agent 角色事实、项目规则、知识与山脉进展;审计现有 owner,新增、纠错、缩限、替代、合并、迁移或退役规则,自动合并有证据的低风险变化,高风险变更先询问用户,并同步当前 Agent。用户说学习、记住、采纳或停止某种行为、修正规则、保存本次经验、从当前对话改进、运行 /learn,或要求未来 Agent 遵守某项教训时使用。.