返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
l

loci

Structured memory system with domains, decay, and links for AI agents. Replaces flat MEMORY.md with a palace of organized, weighted, interconnected memories. Use when: (1) storing important context, decisions, or learnings, (2) recalling prior knowledge before answering, (3) periodic memory maintenance (heartbeat walks), (4) migrating from flat memory files. Based on Method of Loci (memory palace) — forced structure, capacity limits, association links, and natural decay.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.1
安全检测
已通过
290
下载量
0
收藏
概述
安装方式
版本历史

loci

# loci — Structured Memory for AI Agents **GitHub:** https://github.com/bayhax/loci | **ClawHub:** `clawhub install loci` ## Quick Start ```bash LOCI="node <skill_dir>/scripts/loci.mjs" # Initialize palace (first time only) $LOCI init # Store a memory $LOCI store work "Switched to Claude Opus model per user preference" --tag model --tag preference # Recall memories $LOCI recall "what model does the user prefer" # Walk through palace (do this during heartbeats) $LOCI walk # See overview $LOCI status ``` ## Core Concepts **Domains** — Categories that organize memories (like rooms). Each has a capacity limit. Default domains: work, knowledge, people, tools, preferences, archive. **Memories** — Individual pieces of context stored in a domain. Each has: - Unique ID (e.g. `e3a7f2c1`) - Content text - Tags for categorization - Links to related memories - Weight that decays over time **Decay** — Memories lose weight exponentially based on time since last access. Formula: `weight = base_weight × e^(-decay_rate × days_since_access)` Default decay rate: 0.05 (half-life ≈ 14 days). **Links** — Bidirectional connections between related memories across any domain. ## Commands | Command | Purpose | |---------|---------| | `init` | Create new palace (once) | | `store <domain> <content>` | Add memory. Options: `--tag`, `--link` | | `recall <query>` | Search. Options: `--domain`, `--top N` | | `walk` | Traverse all memories, report health | | `prune` | Remove decayed memories. Options: `--threshold`, `--dry-run` | | `status` | Overview of all domains | | `inspect <id>` | View memory details + links | | `link <id1> <id2>` | Connect two memories | | `domains` | List/add/remove domains | | `export` | Export as markdown or JSON. Options: `--format md\|yaml` | ## Integration with Heartbeats During heartbeat walks, run: ```bash $LOCI walk --decay 0.05 ``` This reports domain health, identifies fading memories, and updates the walk timestamp. Periodically follow with `$LOCI prune --dry-run` to review candidates for removal. ## When to Store vs. When to Skip **Store:** Decisions, user preferences, environment quirks, lessons learned, important people/relationships, recurring patterns. **Skip:** Transient task details, one-off commands, things already in daily memory files. **Rule of thumb:** If future-you would benefit from knowing this in 2 weeks, store it. ## Palace File Default location: `~/.openclaw/workspace/loci_palace.json` Override with `--palace PATH` on any command. Format: JSON. Zero external dependencies — only requires Node.js (ships with OpenClaw).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 loci-1776194171 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 loci-1776194171 技能

通过命令行安装

skillhub install loci-1776194171

下载 Zip 包

⬇ 下载 loci v1.1.1

文件大小: 7.39 KB | 发布时间: 2026-4-15 14:01

v1.1.1 最新 2026-4-15 14:01
Added GitHub repo link

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部