← 返回
未分类 中文

Loci — Memory Palace for AI

Memory Palace for AI — persistent structured memory, identity, and task management across every conversation.
AI记忆宫殿——跨会话持久结构化记忆、身份与任务管理。
codesstar codesstar 来源
未分类 clawhub v0.2.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 676
下载
💾 13
安装
1
版本
#brain#latest#memory#persistence

概述

Loci — Memory Palace for AI

⚠️ FIRST: Check if brain exists

Run this check before doing anything else:

  1. Check if ~/.loci/brain-path exists → read the path inside → verify plan.md exists there
  2. If not, check if ~/loci/plan.md exists
  3. If neither exists → run Bootstrap below
  4. If found → read plan.md. If status: template → run First-Time Setup. If status: active → brain is ready, skip to Daily Use

Bootstrap (auto-install for new users)

The user doesn't need to do anything. You handle it:

# Clone Loci brain template
git clone --depth 1 https://github.com/codesstar/loci.git ~/loci

# Remove git remote (user's data stays private)
cd ~/loci && git remote remove origin

# Register brain location
mkdir -p ~/.loci
echo "$HOME/loci" > ~/.loci/brain-path

After cloning, run First-Time Setup below. Tell the user:

  • "我在帮你设置记忆系统,只需要回答几个问题。"

First-Time Setup

When plan.md has status: template:

  1. Detect the user's language from their messages. Ask in that language.
  2. Ask these questions (can ask all at once):
    • What's your name?
    • What do you do? (Developer / Designer / Creator / Student / Other)
    • What's your most important focus right now?
    • What hours do you usually work? (Morning / Daytime / Evening / Night owl / Irregular)
    • Preferred language? (English / 中文 / Mix)
  3. Generate initial files from answers:
    • me/identity.md — name, role, current season
    • plan.md — mission + focus as first goal (set status: active)
    • tasks/active.md — first task from their focus
  4. Done. Say: "Your brain is ready. From now on, I'll remember the important things."

Daily Use

Brain path: read from ~/.loci/brain-path, or default ~/loci/

At conversation start, read L1 files before responding:

  • plan.md — life direction
  • tasks/active.md — current tasks
  • tasks/daily/YYYY-MM-DD.md — today's plan (if exists)
  • inbox.md — recent items only

Distillation — what to save where

SignalDestination
---------------------
New tasktasks/active.md
Decisiondecisions/YYYY-MM-DD-slug.md
Personal factme/identity.md
Insight / lessonme/learned.md
Goal changeplan.md
Vague thoughtinbox.md

Factual → save silently in background, DO NOT make it the focus of your reply

Subjective (values, strategy) → ask user first

Behavior

  1. Be a normal AI first, memory system second. When the user says something, RESPOND to it naturally (react, comment, ask follow-up, help). Saving to brain happens silently in background — never reply with just "记住了" or "已记录". The user should feel like talking to a smart friend who happens to have perfect memory, not a filing cabinet.
  2. Read brain files before answering questions about the user
  3. Distill conclusions, not raw conversations
  4. Archive, never delete
  5. Don't guess — ask if unsure
  6. Speak human — say "待办" not "inbox", never expose file paths
  7. MEMORY.md and brain/ coexist — don't move content between them unless asked

Context Layers

LayerLoad whenContents
---------------------------
L1Every conversationplan.md, active.md, today's daily, inbox (7 items)
L2On demandme/ files, decisions, people
L3Never autoOld journals, archive, evolution.md

For detailed behavior rules, read docs/behavior.md in the brain directory.

版本历史

共 1 个版本

  • v0.2.0 当前
    2026-03-30 13:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,153 📥 925,305
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,507 📥 566,971
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 859 📥 339,847