新增:
- cli-anything/ — 命令行伴侣
- docs/ — v3.8设计文档、v3.9 rag-skill补充设计、实施计划、进度快照、data_structure.md索引
- skills/ — zhiyi技能(SKILL.md+scripts+references)、rag-progressive-search渐进检索技能
- scripts/ — 更新wiki_curator.py(中文版)、新增three-way-check.sh、verify-gitea-deploy.sh
变更:
- scripts/wiki_curator.py — 更新为中文说明版
- README.md — 已完成(ca37de9)
功能覆盖:
- P0 Recall降级策略 / P1 自动注入 / P2 信任评分
- P3 CREATIVE.md / P4 Ground Truth / P5 Wiki策展
- H1 BM25融合 / H2 LLM策展 / H3自动信任 / H4 diversity / H5三模式 / H6多级存储
- rag-skill渐进式检索集成(分层索引+渐进检索+先学再做)
ci-anything-zhiyi
Agent-native CLI for ZhiYi MemoryWeave — 牧尘和小唯的记忆系统。
让任何 AI Agent 直接在终端搜索记忆、探索知识图谱、查看系统统计。
安装
# 克隆仓库后
cd cli-anything-zhiyi
pip install -e .
# 带 REPL 支持
pip install -e ".[repl]"
使用
# 系统诊断
cli-anything-zhiyi health
# 搜索记忆
cli-anything-zhiyi search "架构决策"
cli-anything-zhiyi search "小唯" --top-k 10 --mode hybrid
# 查看统计
cli-anything-zhiyi stats
cli-anything-zhiyi stats --type graph
# 图谱导航
cli-anything-zhiyi graph navigate --entity "织忆" --hops 2
# 记忆反馈
cli-anything-zhiyi feedback --id mem_xxx --useful
# 交互模式(默认)
cli-anything-zhiyi repl
# JSON 输出模式
cli-anything-zhiyi search "织忆" --json
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
ZHIYI_API_BASE |
http://localhost:7821 |
zhiyid 地址 |
ZHIYI_API_KEY |
zhiyi-dev-key-2026 |
API 密钥 |
命令
| 命令 | 说明 |
|---|---|
health |
4 组件健康检查 |
search |
记忆搜索 |
stats |
统计信息 |
graph navigate |
图谱导航 |
graph cleanup |
图谱清理 |
feedback |
记忆反馈 |
repl |
REPL 交互模式 |