Lians Agent Memory

io.github.ebeirne由 GitHub 账号 ebeirne 发布v0.5.0更新于 Oct 24, 2026

Bitemporal memory for AI agents with point-in-time recall and tamper-evident audit history.

发布方自己的服务:Memory.fit

概览

AI 生成的概览

为编码助手提供本地双时态记忆,用于恢复任务上下文、拒绝过期状态,并以实测证据把关完成条件。

可以做什么
Lians Agent Memory 将项目事实和任务检查点保存在本地 SQLite 数据库中,并通过 MCP 提供给助手,提供记忆、召回、列出、纠正和遗忘等工具。它支持按时间点召回和防篡改的审计历史,并可生成有界的项目交接摘要,而不是重放对话记录。更严格的 Guard 层将实测证据与助手自述区分开,在任务缺失、未知、失败或受阻时保持完成闸门关闭。也可选用托管或自建服务器模式。
适用场景
适合编码助手需要跨会话或跨工具恢复中断工作的情况,也适合担心需求变更后旧检查点被悄悄复用,或希望完成声明由实测证据而非助手自述支撑的场景。免费的本地恢复路径无需 Lians 账号。
运行要求
通过 stdio 在本地运行,通常使用 uvx 从 PyPI 包 lians-sdk 启动,需要 Python 和 uv。本地模式将数据存入 SQLite 文件,默认位于用户主目录下。环境变量包括用于记忆命名空间的 LIANS_AGENT_ID、用于本地租户的 LIANS_NAMESPACE、用于 SQLite 路径的 LIANS_LOCAL_DB,以及用于可选托管或自建服务器的 LIANS_URL。仅托管路径需要 LIANS_API_KEY。桌面版为 macOS 和 Windows 候选发布版本。
安装前请注意
托管路径需要 LIANS_API_KEY,其说明为具有读写权限,应按机密信息对待。记忆工具可以写入、纠正并永久删除已存记忆,删除被描述为经确认且不可恢复。存储内容可能包含项目事实和仓库状态,应避免保存机密。Guard 与证据闸门功能属于开发者预览或开发中,README 说明相关结果为有界测试结果,而非生产保证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lians Agent Memory,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Lians lotus]

Recover the task. Reject stale state. Block unsupported done.

Quickstart · Why Lians · ContinuityBench · Install · Docs · Issues

[PyPI version] [npm version] [MCP Official Registry] [Apache 2.0 license]

Lians Guard

The current-state and completion guard for AI coding agents.

Lians recovers interrupted agent work, rejects stale task state, and blocks done until the current task is ready for human review.

Your agent can forget the chat. It cannot forget what is finished, what changed, or what still has to pass.

  • Recover. Resume a bounded current task across supported Claude Code and Codex sessions.
  • Reject stale state. Bind checkpoints to current repository and task state so old evidence is not silently reused.
  • Guard completion. Separate measured evidence from an agent's own claims and keep the gate closed while work is missing, unknown, failed, or blocked.
  • Require review. READY FOR HUMAN REVIEW is a handoff to a person, never a claim that the work is correct, approved, or safe to deploy.
  • Stay local. The free recovery path needs no Lians account, AI password, or provider API key.

Lians works with your existing AI account and editor. It does not replace your model, Git, CI, repository instructions, or human review.

Two layers, one agent loop

The open-source Lians Guard layer lives inside Codex through MCP, skills, hooks, and repository state. It remembers corrections and exposes evidence without taking over the model. The optional Lians Mission Control beta is the local control layer: give it one mission, let it choose a bounded Codex route, and require a real verifier before it returns PASS.

On supported Codex versions, one Mission Control mission now uses one Codex app-server thread instead of starting a new process and replaying a summary for every stage. Codex still owns authentication, tools, sandboxes, and execution; Lians owns the durable mission, usage policy, and receipt. App-server is currently experimental, so the one-shot adapter remains available.

Inspect the Mission Control source, read the bridge boundary, or follow the external proof-gate protocol.

One clear result after every agent session

text
RECOVEREDTask: Fix OAuth callback handlingNext: Re-run the callback integration test
STALEReason: The authentication requirement changed after this checkpoint
BLOCKEDMissing: OAuth callback integration testUntrusted: "tests passed" was reported by the agent, not measured
READY FOR HUMAN REVIEWMeasured locally: callback tests passedMeasured by CI: required checks passed

The trust model is deliberately strict. measured_local, measured_ci, and human_confirmed evidence can satisfy a criterion. agent_attested and inferred_activity records remain useful context but cannot open the review gate. An agent cannot promote its own checkpoint into a trusted class. Trusted CI evidence requires an exact GitHub attestation and commit match plus an interactive check-to-criterion mapping; human evidence requires interactive confirmation. Read why Lians exists, the full Lians Guard product contract, and the current market pressure test.

Try it in two minutes

Choose the AI tool you already use:

ToolFastest setup
Codex app, CLI, or IDEOne command
Claude CodeTwo plugin commands
CursorOne-click MCP install
Other MCP clientsMinimal MCP setup

For example, after installing uv, connect Codex with:

bash
codex mcp add lians --env LIANS_MCP_ENABLED_TOOLS=remember,recall,list_memories,correct_memory,forget_memory -- uvx --from "lians-sdk[mcp]" lians-mcp

Restart Codex, then save one safe project fact and recover it in a fresh chat. Local memory is stored in ~/.lians/mcp.db by default. This is the available free recovery path; the full Guard workflow is currently a developer preview.

Follow the complete quickstart for setup, recovery, correction, deletion, and the Guard preview boundary.

What a fresh coding agent receives

Lians can generate a bounded project handoff instead of replaying a transcript:

text
Reported complete; verify:- migrated the orders API to /v2/orders
Still open:- verify the migration against current Git state- update documentation
Decisions:- keep pytest
Changed:- /v1/orders is stale; use /v2/orders
Next:- update documentation before touching unrelated UI

The handoff is derived from current Lians state, not a manually maintained summary. Agent-reported work remains visible without being mislabeled as verified completion.

Why this is not another generic memory layer

Native memories are convenient when work stays inside one product. General memory is no longer a scarce category. Lians uses local memory for recovery, then focuses on the expensive gap: current task state and evidence-backed readiness.

The current competitive landscape pressure tests this position against native Claude Code, Codex, Cursor, GitHub Copilot, Entire, Factory, and AI review workflows.

ApproachBest fitBoundary
Native tool memoryOne AI tool, minimal setupUsually stays inside that vendor
AGENTS.md or CLAUDE.mdStable repository instructionsMust be maintained manually
Transcript replayReconstructing one conversationLarge, noisy, and may revive stale decisions
Free Lians recoveryResume current project context across supported toolsRequires a local connection to each tool
Lians GuardDetect stale state and gate readiness with typed evidenceTeam workflow is still in developer preview

Lians is not claiming that every project needs a separate memory layer. See the honest comparison and decision guide.

Project status

Lians is under active development. Available recovery features and preview Guard features are separated here so the repository does not imply a production guarantee that does not exist yet.

CapabilityStatus
Local memory through MCP and PythonAvailable
Codex, Claude Code, and Cursor local recovery setupAvailable
Inspect, correct, and confirmed permanent deletionAvailable
Bounded context and signed selection receiptsAvailable
Automatic Claude-to-Codex project handoffBeta
Typed evidence and evidence-backed task gateDeveloper preview
Local Git workspace fingerprint on checkpointsDeveloper preview
Automatic stale evidence invalidationIn development
Attested GitHub Actions evidence intakeDeveloper preview
Local Guard reportingDeveloper preview
Shared team queuePlanned
Cross-platform clean-install CIRequired by the new Guard workflow; first hosted run pending
Guided desktop installer and local control centerRelease candidate
Mission Control Protect-versus-Maximum betaCandidate; proof gate preregistered
Persistent one-mission/one-Codex-thread bridgeBeta; app-server is experimental

The macOS and Windows desktop builds remain release candidates pending platform signing and notarization. See the desktop preview boundary.

Current evidence

The included Claude-to-Codex continuity fixture recovered 10/10 expected facts, exposed 0 stale facts as current, and produced a 231-token handoff. These are bounded beta results, not a promise that every live coding session extracts perfectly. Run the experiment.

The developing ContinuityBench v0.1 publishes the proposed cross-agent, freshness, correction, erasure, provenance, and boundedness test contract. Its current Lians fixture is evidence for that fixture only; it is not presented as a completed competitor leaderboard.

A separate live test saved a synthetic project fact through Cursor, recalled it in a new Cursor chat and a fresh Claude Code session, and confirmed it was gone after deletion. Read the test method.

The Guard correctness benchmark exercises missing evidence, unknown criteria, failed constraints, blockers, stale updates, and drift signals. It is a local, deterministic test of the configured policy, not proof of semantic correctness or a production outcome. Run packages/lians-easy/benchmarks/task_contract_correctness.py to inspect the cases.

Build with Lians

Use the local Python SDK inside an application:

bash
pip install "lians-sdk[local]"
python
from datetime import datetime, timezonefrom lians import LocalLiansClient
memory = LocalLiansClient(db_path=".lians/memory.db")memory.add(    agent_id="my-agent",    content="The project uses Python 3.12 and pytest.",    event_time=datetime.now(timezone.utc),)
result = memory.recall(    agent_id="my-agent",    query="Which Python version and test runner should I use?",)

See the install guide for TypeScript, Go, Java, C, framework integrations, and self-hosting.

Running a class, club, hackathon, or campus developer group? Use the student and community kit. Contributors and package integrators can start with Supported paths and repository status.

Advanced capabilities

Lians also includes tools for project-scoped agent handoffs, signed selection and review receipts, local research and browser briefs, temporal reconstruction, lineage, information barriers, confirmed erasure, and bounded formal checks. These capabilities are useful for advanced or governed deployments but are not required for the starter memory workflow.

Development

bash
git clone https://github.com/Lians-ai/Lians.gitcd Lianspython -m pip install -e ".[dev]"python scripts/test_all.py

Read CONTRIBUTING.md before opening a pull request. Feature ideas, integration requests, and reproducible bugs are welcome in GitHub Issues.

If Lians helps your workflow, star the repository so other AI-tool users can find it.

License

Apache 2.0. See LICENSE.

来源:README.md,提交 4eb78dc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.5.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Memory 集成