Repository navigation
MCP Reference Maintenance
May-Kirihara edited this page Apr 21, 2026
·
2 revisions
記憶の整理・関係付け・メンテナンスのための 10 ツール。
ソフトアーカイブ(既定)または物理削除。
forget(node_ids: list[str], hard: bool = False)
-
hard=False→is_archived=1、recall/explore/reflect から除外、restoreで復元可 -
hard=True→ 物理削除、不可逆
ソフトアーカイブされた記憶を active に戻す。
restore(node_ids: list[str])
類似記憶を重力衝突合体。質量加算 + 運動量保存 + エッジ移譲、absorbed は archive。
merge(node_ids: list[str], keep: str | None = None)
-
keep指定なし → 最大質量がサバイバー -
keep="<id>"→ 指定 ID をサバイバーに
不可逆。reflect(aspect="duplicates") で候補を確認してから実行推奨。
TTL expire + FAISS rebuild + 任意 auto-merge + orphan-edge 掃除。
compact(
expire_ttl: bool = True,
rebuild_faiss: bool = True,
auto_merge: bool = False,
merge_threshold: float = 0.95,
merge_top_n: int = 500,
)
週次〜月次推奨。auto_merge=True は不可逆なので明示的に。
→ 詳細: Operations — Compact & Backup
確信度のタイムスタンプ更新。半減期(既定 30 日)でリセット。
revalidate(node_id: str, certainty: float | None = None, emotion: float | None = None)
typed directed edge を作成。
relate(src_id: str, dst_id: str, edge_type: str, weight: float = 1.0, metadata: dict | None = None)
主な edge_type:
-
F3 (Phase B):
supersedes/derived_from/contradicts -
Phase D:
completed/abandoned/depends_on/blocked_by/working_on/fulfills
カスタム edge_type 文字列も受け付ける(実験的)。
リレーションの削除。edge_type 省略で全種削除。
unrelate(src_id: str, dst_id: str, edge_type: str | None = None)
特定ノードのリレーション一覧。
get_relations(node_id: str, edge_type: str | None = None, direction: str = "out")
-
direction="out"(既定) — node が src -
direction="in"— node が dst -
direction="both"— 両方
予測される検索を裏で予熱。後続 recall がキャッシュ即時 hit。
prefetch(query: str, top_k: int = 5, wave_depth=None, wave_k=None)
非同期、prefetch_max_concurrent=4 でレイテンシ阻害ゼロを保証。
キャッシュ + プールの状態確認。
prefetch_status()
→ "Prefetch cache: size:.. hit_rate:.. ttl:.. ..."
reflect(aspect="duplicates", limit=5)
# → 確認後
merge(node_ids=[<cluster の ID 群>])
recall(query="...")
# → 引っかかった記憶が古いと感じたら
revalidate(node_id="<id>", certainty=0.9)
remember(content="新しい結論", source="agent")
# → 旧判断と繋ぐ
relate(src_id=<新>, dst_id=<旧>, edge_type="supersedes",
metadata={"reason": "counter-evidence found"})
compact() # TTL expire + FAISS rebuild
# ↑ ↓ どちらか定期で
compact(auto_merge=True, merge_threshold=0.95) # 重複も自動合体
→ 関連: Memory Tools, Tasks & Persona
(formerly GER-RAG)
- 1. Welcome
- 2. Install GaOTTT
- 3. Connect Your Client
- 4. First Conversation
- 5. Everyday Use
- 6. When Stuck
- As Long-Term Memory
- As Task Manager
- As Persona Base
- As Narrative Engine
- Multi-Agent Setup
- Per-Project DBs
- Multiverse (1人1宇宙)
- Ambient Recall
- Visualization
- Server Setup
- Multiverse 運用プレイブック(統合)
- Multiverse クイック健康チェック(パニック時)
- Multiverse Setup (MV3)
- Multiverse Import Universe
- Control Plane (MV4)
- Backup & DR (MV5)
- Resource Requirements (VRAM/RAM/Disk)
- Tuning
- Ingestion (files & chat history)
- Migration (upgrade)
- Compact & Backup
- Isolated Benchmark
- Performance Testing (7-tier)
- Troubleshooting
- Roadmap
- Backend Phase A/B/C
- Phase D — Persona & Tasks
- Phase G — Memory Genesis
- Phase H — Wave Seed Redesign
- Phase I — Free Star Movement
- Phase J — Persona-Anchored Retrieval
- Phase K — Stellar Supernova Cohort
- Phase L — Hybrid Retrieval
- Phase M — Mass Conservation
- Phase N candidate β — Mass Evaporation
- Phase O — TTT Observability
- Phase P — Pressure Terms (Λ + Langevin)
- Phase Q — Orbital Mechanics (Rosette Orbits)
- Phase Q2 — Gravitational Scale Matching
- Phase T — Semantic Requalification
- Phase U — Review Hardening
- Observation Apparatus Refinement
- Observation Apparatus Round 2 (dogfooding 2026-06-12 起点)
- Hardening — Concurrency & Persistence
- Ambient Recall Enrichment
- Ambient Recall Refinement (Phase A 由来)
- Ambient Recall Lateral Association (〇〇といえば〜)
- Accretion Recall (降着想起・〇〇ってなんだっけ)
- Synaptic Pruning (連想の忘却・edge decay)
- Save Candidates Hook (ambient-recall の write-side 対称)
- Lens Hygiene (ambient block の漏れ防止)
- Instruction Surface Hygiene (指示表層と hook harness)
- Query as Mass Distribution
- Multiverse Scale-Out (大規模化・1人1宇宙)
- SKILL.md Improvement
- Embedder Comparison (RURI vs RikkaBotan)