Skip to main content
Glama
Zifu Memory
by tanbopiao

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ZIFU_HOMENoData directory for Zifu Memory. Defaults to ~/.zifu.~/.zifu

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
zifu_writeA

写入一条经验记忆。source: internal=体系内部动作(正本完整) / external=外部观测(采样带证据)。 scope 分级: org=人人可读(缺省) / agent=仅该agent / user=仅该user名下 / session=仅该会话。 写入前过紫府闸。返回事件与来源指针(契约1:来源指针先行)。

zifu_searchB

按关键词精确检索记忆(实体级汇总)。reader 自报身份按分级读取;缺省只读 org 级。

zifu_semanticB

文义检索:按意思找记忆(字符二元文义匹配,可插拔向量芯)。reader 自报身份按分级读取。

zifu_hybridB

混合检索:关键词命中 + 文义 top-k 合并去重。reader 自报身份按分级读取。

zifu_assertA

契约1+2:带来源指针登记事实(指针来自 zifu_write 的返回)。同 ID 重复登记是确定性错误;改口走 zifu_replace。

zifu_replaceB

契约2:改口走 replace,旧事实标记 replaced 并留痕,历史不删。

zifu_retireB

事实退役:只标记不删除(账本只追加)。

zifu_factsA

列事实账本(status: active/replaced/retired,缺省全部)。

zifu_injectC

契约3:硬预算装配上下文(字符预算,确定性结果,可复算)。query 提供时按文义相关性排序。

zifu_viewC

契约5:一致视图——该时刻状态重建 + 当时仍有效的事实。

zifu_eventsA

按时间窗顺序读事件流(正本)。reader 自报身份按分级读取;缺省只读 org 级。

zifu_handoffB

会话收尾:写交接摘要(会话边界无关,供后续会话接续)。scope 不能是 session 级。

zifu_resumeA

新会话开场:拉接续包——可见交接摘要优先+active 事实+近期可见事件,硬预算内确定性装配。 reader 自报身份(session_id/agent_id/user_id);无身份只给 org 级(fail-closed)。

zifu_stateC

当前记忆状态。

zifu_replayA

从最近快照+事件流重建指定时刻状态(可核验)。at_ts 缺省为当前时刻。

zifu_exportB

打包冷备(供后续推魔搭私有仓)。

zifu_retentionB

分层保留报告(7天细粒度/90天整点/更久只留事件册与指纹)。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 17 tools

Disambiguation3/5

The retrieval trio (zifu_search / zifu_semantic / zifu_hybrid) is clearly delineated, and the fact-ledger ops (assert/replace/retire) are well separated. However zifu_write vs zifu_assert overlap (raw experience vs pointer-bearing fact), and zifu_state ("current memory state") is vague next to zifu_facts, zifu_events and zifu_view, making misselection plausible.

Naming Consistency4/5

All 17 tools share the zifu_ prefix and snake_case, which is highly predictable. The only deviation is grammatical: some names are verbs (write, search, assert, replace, retire, inject, replay) while others are nouns (facts, events, state, retention, handoff) or adjectives (semantic, hybrid).

Tool Count4/5

17 tools is on the heavy side but each maps to a concrete lifecycle stage of a memory system (ingest, three retrieval modes, ledger mutation, context assembly, session handoff/resume, maintenance). Nothing looks redundant enough to cut outright, though the three retrieval variants could arguably be collapsed into one parameterized tool.

Completeness4/5

Coverage is broad: ingest, retrieval, fact correction via replace/retire, budgeted context assembly (inject/resume), point-in-time reconstruction (view/replay), export and retention. The notable gap is that experience memories written by zifu_write have no update or correction path — only facts can be replaced — and there is no explicit delete/purge (deliberate append-only, but agents may hit that dead end).

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues