AI Agent 的主动记忆

让记忆跨越每一次会话。

LWC 为 AI Agent 提供一套持久、来源可追溯的 Wiki,让它们在编码、研究、运维和知识工作中主动回忆、维护并持续改进记忆。

源于设计的可信

工作方式

从可靠证据到有效回忆。

LWC 把记忆变成一项持续维护的项目资产:以来源为依据,整理成 Wiki,并只在当前任务需要时载入。

  1. 01 / 加入证据

    收录真正重要的内容。

    记录页面、导入来源或转换文档,同时保留知识从何而来的证明。

  2. 02 / 维护 Wiki

    让记忆保持连贯。

    通过可审计的 CLI 工作流检索、校验、打标签、修订并连接知识。

  3. 03 / 带着上下文回忆

    从理解现状开始。

    Agent 在最有用的时刻载入有限记忆、强标签内容和图关系上下文。

能力分层

不只是一个笔记文件夹。

你可以只使用持久 Wiki;当关系探索与代码结构确有价值时,再启用对应的图能力。

核心层

持久 Wiki 记忆

来源支撑的页面、检索、上下文载入、标签、Changeset、Checkpoint 与结构化 JSON 契约共同构成持久基础。

  • 关系层

    文档知识图

    项目页面、来源、链接、来源证明与语义关系构成一个可验证的物理图。

  • 发现层

    词图网

    词项在有限范围内揭示文档之间的高信号联系,无需一次载入全部高密度词汇。

  • 可选代码层

    代码图网

    当任务涉及代码结构时,通过 LWC 探索符号、调用方、文件与变更影响。

Agent 安装

直接让你的 Agent 完成配置。

复制完整提示词。它会要求 Agent 使用 LWC 官方安装器、保留现有配置、验证每一项集成能力,并在启用项目记忆或图能力之前先征得同意。

AgentTarget 示例Claude Code、Codex、Cursor、OpenCode、Gemini CLI、Kiro、Hermes、Antigravity 与 Pi。这里仅列举示例,并非完整清单。

更希望手动安装?查看官方安装方式 →
完整配置提示词
Configure LWC completely for this user. Perform and verify the work; do not
merely describe commands for me to run.

Source of truth:
- https://github.com/JanYork/llm-wiki-cli
- https://github.com/JanYork/llm-wiki-cli/tree/main/skills/using-lwc

Requirements:
1. Read this README, `SECURITY.md`, and `skills/using-lwc/SKILL.md`. Install the
   official checksum-verified release if `lwc` is not globally callable; never
   prefix routine commands with a private binary path or `LWC_PROJECT_ROOT`.
2. Run `lwc --version`, initialize global memory once with
   `lwc --scope global init` when missing, then run `lwc agent install --yes`.
   This command detects installed supported Agents and safely installs their
   MCP, Skill, Hook and Instructions using official locations. Do not recreate
   that logic manually or install a native package for the same Agent as well.
3. Inspect `lwc agent status --target all --location global`. Restart affected
   Agents and complete their normal Hook trust review where required. Do not
   initialize a project Wiki or either graph without explicit project consent.
4. If the current runtime is not one of LWC's registered AgentTargets, use its
   official user-level conventions to install the canonical `using-lwc` Skill,
   an additive instruction block, `lwc serve --mcp`, and a bounded session Hook
   only where those surfaces are officially supported. Preserve existing
   configuration, remain idempotent, and report unsupported surfaces instead of
   inventing paths or keys.

Finish with the LWC version, detected and configured Targets, status results,
files changed, unsupported surfaces, and any restart or trust action remaining.

项目资源