slm-status
便于诊断性能瓶颈并评估压缩与缓存的节省效果。
读取系统状态可能泄露元数据,应限制访问权限。
查询 SLM 健康状态、压缩/缓存统计和系统运行信息。
查看 SLM 的健康和优化效果:能拿到压缩与缓存的实时统计(比如 compress_runs、tokens_saved_compress、cache_hits/misses)以及系统状态(模式、profile、DB 大小、实体计数)。用 slm_optimize_stats()、slm status 和 slm doctor 搭配,可以确认压缩/缓存是否真在省 token。适合做优化前后核对或排查资源问题时使用。
▸ 展开 SKILL.md 英文原文
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress, cache_proxy_hits, cache_proxy_misses, cache_kv_hits, cache_kv_misses); run slm status [--json] for system state (mode, profile, DB size, fact/entity/edge counts) and slm doctor [--json] for preflight including the "Optimize (Surface B)" health line; use together to confirm optimization is actually saving tokens.
帮我安装这个 skill:https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/skills/slm-status/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/skills/slm-status/SKILL.md"# slm-status — Health and Optimize Stats ## Purpose Use this skill to answer: "Is SLM healthy?", "Is compression/caching actually saving tokens?", and "What does the system look like right now?" It covers three surfaces: the MCP stats tool, the `slm status` CLI, and the `slm doctor` preflight. ## Primary MCP Tool: slm_optimize_stats ``` slm_optimize_stats() -> dict ``` No arguments. Returns counters from the current daemon and MCP process session. ### Return dict (all keys always present) | Key | Type | Meaning | |-----|------|---------| | `ok` | bool | `True` on success; `False` on internal error | | `compress_runs` | int | Total compress calls recorded by the daemon (persisted acros