← 返回 Skills 市场
bayhax

loci

作者 bayhax.max · GitHub ↗ · v1.1.1
cross-platform ✓ 安全检测通过
321
总下载
0
收藏
2
当前安装
3
版本数
在 OpenClaw 中安装
/install loci
功能描述
Structured memory system using domains, decay, and links to store, recall, and maintain important AI context as an organized memory palace.
使用说明 (SKILL.md)

loci — Structured Memory for AI Agents

GitHub: https://github.com/bayhax/loci | ClawHub: clawhub install loci

Quick Start

LOCI="node \x3Cskill_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 \x3Cdomain> \x3Ccontent> Add memory. Options: --tag, --link
recall \x3Cquery> 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 \x3Cid> View memory details + links
link \x3Cid1> \x3Cid2> 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:

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

安全使用建议
This skill appears to be what it claims: a local, file-backed memory palace implemented as a Node CLI. Before installing or running: (1) review any memories you store — they are persisted to ~/.openclaw/workspace/loci_palace.json (or to any path you pass) and could contain sensitive data, so avoid storing secrets; (2) ensure the file's filesystem permissions and backups meet your privacy needs; (3) the tool can load a template file you supply—only provide trusted templates to avoid reading unexpected local files; (4) running the skill executes the included Node script, so ensure Node is available and you trust the bundled code; (5) because the skill is allowed to be invoked autonomously by the agent (platform default), consider whether you want the agent to call it without prompting. Overall there are no network calls or credential requests, but treat stored content on disk as persistent data and manage accordingly.
功能分析
Type: OpenClaw Skill Name: loci Version: 1.1.1 The 'loci' skill is a structured memory management utility for AI agents that implements a 'memory palace' concept with domains, decay, and links. Analysis of 'scripts/loci.mjs' shows it is a self-contained Node.js script using only built-in modules (fs, path, os, crypto) to manage a local JSON database (~/.openclaw/workspace/loci_palace.json). There is no evidence of network activity, data exfiltration, or malicious command execution; the code strictly follows its documented purpose of providing long-term context storage and retrieval.
能力评估
Purpose & Capability
Name/description describe a structured memory system and the bundled script (scripts/loci.mjs) implements storing, recalling, walking, pruning, linking, exporting, and domain management. Required resources (Node.js, local palace file) align with the stated purpose; there are no unrelated credentials or external services requested.
Instruction Scope
SKILL.md instructs the agent to run the included Node CLI which reads/writes a palace file at ~/.openclaw/workspace/loci_palace.json by default and can load a user-supplied template file. This is consistent with the purpose. Note: the tool will read any template path the user supplies and will write the palace JSON to disk, so stored content will persist locally.
Install Mechanism
No install spec; the skill is instruction-only with a bundled script. There are no downloads, package installs, or external installers declared. Risk is low because only local code included and no remote fetches are performed.
Credentials
The skill requires no environment variables, no credentials, and no config paths beyond the single palace JSON it manages. That scope is proportional to a local memory-store utility.
Persistence & Privilege
always is false and disable-model-invocation is false (normal). The skill only writes to its own palace file (by default under the user's home) and does not modify other skills or global agent settings. Autonomous invocation is allowed by platform default but not combined with other red flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install loci
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /loci 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
Added GitHub repo link
v1.1.0
Rewritten in Node.js — zero external dependencies, only requires Node (ships with OpenClaw). Removed Python requirement.
v1.0.0
Initial release: structured memory system based on Method of Loci for AI agents. Domains, decay, links, heartbeat walks, migration from MEMORY.md.
元数据
Slug loci
版本 1.1.1
许可证
累计安装 2
当前安装数 2
历史版本数 3
常见问题

loci 是什么?

Structured memory system using domains, decay, and links to store, recall, and maintain important AI context as an organized memory palace. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 321 次。

如何安装 loci?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install loci」即可一键安装,无需额外配置。

loci 是免费的吗?

是的,loci 完全免费(开源免费),可自由下载、安装和使用。

loci 支持哪些平台?

loci 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 loci?

由 bayhax.max(@bayhax)开发并维护,当前版本 v1.1.1。

💬 留言讨论