slm-status
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
Skill by qualixar
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/qualixar-slm-status
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/slm-status
Tools it pre-approves 4
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
slm_optimize_stats,get_status,get_brain_evidence_status,Bash(slm:*)
What's inside
- Skill name
slm-status- Description
- 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.
- License
- AGPL-3.0
- Allowed tools
- slm_optimize_stats,, get_status,, get_brain_evidence_status,, Bash(slm:*)
- Instructions
- 226 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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 the MCP stats and status tools, the `slm status` CLI, the `slm doctor` preflight, and the store-health commands.
## Primary MCP Tool: slm_optimize_stats
```
slm_optimize_stats() -> dict
```
No arguments. Returns the counters the daemon has persisted.
### 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 across restarts) |
| `tokens_saved_compress` | int | Cumulative tokens saved by compression (daemon-persisted) |
| `cache_proxy_hits` | int | Proxy-layer cache hits (daemon-persisted) |
| `cache_proxy_misses` | int | Proxy-layer cache misses (daemon-persisted) |
| `cache_kv_hits` | int | Hits on the `slm_cache_get` key-value cache (daemon-persisted) |
| `cache_kv_misses` | int | Misses on the `slm_cache_get` key-value cache (daemon-persisted) |
| `ccr_note` | str \| None | Note about CCR entry count (not tracked per-session; see daemon `/api/v1/metrics`) |
| `note` | str \| None | Scope clarification or error detail |
### Important scope distinction
All six counters are **daemon-persisted**: they survive MCP restarts and accumulate over the install's lifetime, so they are totals, not per-session figures. Only if the persisted KV counters cannot be read does the tool fall back to this process's own tally (the `note` field says so). To judge one stretch of work, call `slm_optimize_stats` before and after and subtract.
### Reading whether optimization is saving tokens
```python
stats = await slm_optimize_stats()
if stats["ok"]:
savings = stats["tokens_saved_compress"]
kv_hit_rate = (
stats["cache_kv_hits"] / max(stats["cache_kv_hits"] + stats["cache_kv_misses"], 1)
)
# savings > 0 and kv_hit_rate > 0.5 means Surface B is actively reducing costs
```
If `compress_runs` is 0 after several sessions, compression is not being triggered — check daemon config and whether `slm_compress` is being called.
If `cache_kv_hits` does not grow after repeated work, verify key naming consistency (the same key string must be used for set and get, by the same agent).
## Secondary CLI: slm status
```bash
slm status [--json] [--verbose]
```
Reports system-level state — not optimization counters. Canonical fields:
- **mode** — active operation mode (`a`, `b` or `c`)
- **provider** — the LLM provider for modes B and C, or `none`
- **profile** — current memory profile name
- **db_size_mb**, **db_path**, **base_dir** — where the store is and how big
- **fact_count**, **entity_count**, **edge_count** — counts for the active profile
- **version**, **profile_generation**, **projection_queue_depth**, and (daemon running) **saves_waiting** and **unreadable_saves**
`--verbose` / `-v` adds: the disabled marker, last booted version, and daemon port.
`--json` prints the standard envelope `{"success", "command", "version", "data": {...}}`; read the fields above from `data`. Prefer it for agent consumption:
```bash
slm status --json
```
```json
{"success":true,"command":"status","version":"...","data":{"mode":"a","provider":"none","profile":"default","db_size_mb":12.4,"fact_count":384,"entity_count":201,"edge_count":519,"profile_generation":0,"projection_queue_depth":0,"saves_waiting":0,"unreadable_saves":0}}
```
The MCP equivalent is `get_status(profile_id="")`, which returns the same fields at the top level (it is not part of the smallest `core` tool set). `saves_waiting` above zero means saved memories are durable but still being indexed (searchable within seconds). `unreadable_saves` above zero means that many saves could not be read back with this computer's key and were kept unchanged in the admission journal (the daemon log has their ids); a negative value means the journal did not answer. Status does not report a user role.
Do not rely on the human-readable format for parsing — always use `--json` when the output feeds another tool.
## Secondary CLI: slm doctor
```bash
slm doctor [--json] [--quick] [--deep] [--fix]
```
Preflight check covering dependencies, embedding worker, daemon connectivity, and Surface B health. The **"Optimize (Surface B)"** line confirms whether the compression and cache subsystem initialised correctly.
`--quick` skips the daemon and embedding probes — runs only dependency and config checks; faster but incomplete.
`--deep` reads every database page (`PRAGMA integrity_check`) instead of the structural check; slow on a large store. `--fix` repairs what it can (re-downloads missing models, installs sqlite-vec) before checking, then reports.
`--json` outputs structured results per check — use this in automated health pipelines.
A passing doctor output confirms:
- Python deps present
- Embedding worker reachable
- Daemon responding
- Surface B (Optimize) initialised
A failing "Optimize (Surface B)" line means `slm_compress`, `slm_cache_set`, and `slm_cache_get` may not function correctly — investigate daemon config before relying on those tools.
## Secondary CLI: slm optimize status
```bash
slm optimize status [--json]
```
Shows whether the Optimize module (cache + compress) is currently enabled or disabled at the daemon level. Available subcommands also include `optimize on`, `optimize off`, and `optimize savings`.
The `optimize savings` subcommand accepts:
```bash
slm optimize savings [--since <days>] [--provider anthropic|openai|gemini] [--json]
```
`--since` defaults to 7 days. `--provider` filters by the target AI provider.
`slm_optimize_stats()` via MCP is the same data as `slm optimize savings`; use whichever surface you have.From qualixar/superlocalmemory, AGPL-3.0.
More from qualixar/superlocalmemory
- 0.683score
superlocalmemory-web
qualixar
Use the user's SuperLocalMemory through Web access.
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-bot-memory
qualixar
Cross-bot memory on a shared computer (Grok Bot, Cursor plugin, any host where several agents share one machine).
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-cache
qualixar
KV cache for repeated reads — call slm_cache_get(key) first; on a miss do the expensive operation then slm_cache_set(key, value, ttl_seconds) to store it; on…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-compress
qualixar
Compress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-scope
qualixar
Controls memory visibility across profiles — personal (private, default), shared (selected profiles), or global (all profiles on this machine).
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-session
qualixar
Manage SuperLocalMemory session lifecycle — call session_init once at the start of every fresh session to load relevant project context and get a session_id…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-web-access
qualixar
Set up and troubleshoot SuperLocalMemory Web access, the optional link that lets web apps (ChatGPT, Claude on the web, Muse, Composio, other remote MCP…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-governance
qualixar
Governed-workspace behavior for SuperLocalMemory.
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-graph
qualixar
Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-loop
qualixar
Gate-verified bounded loops with SuperLocalMemory as the durable ledger.
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-media
qualixar
Save pictures and PDFs in SuperLocalMemory and find them again by describing them.
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-mesh
qualixar
Cross-session peer coordination via the SLM mesh network.
SkillAFreshness: A★ 257Claude Code +9
Signals
- Stars
- 257
- Forks
- 36
- Open issues
- 3
- Contributors
- 13
- Last commit (this folder)
- Oct 22, 2026 (6 days ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- AGPL-3.0
- Repository
- github.com/qualixar/superlocalmemory
- Website
- www.superlocalmemory.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9 - 0.356score
slm-status
qualixar
Health and optimization stats for SuperLocalMemory — call slm_optimize_stats() for live compression and cache counters (compress_runs, tokens_saved_compress…
SkillAFreshness: A★ 257Claude Code +9
More from qualixar
- 0.683score
slm-graph
qualixar
Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-cache
qualixar
KV cache for repeated reads — call slm_cache_get(key) first; on a miss do the expensive operation then slm_cache_set(key, value, ttl_seconds) to store it; on…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-compress
qualixar
Compress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode…
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-bot-memory
qualixar
Cross-bot memory on a shared computer (Grok Bot, Cursor plugin, any host where several agents share one machine).
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-governance
qualixar
Governed-workspace behavior for SuperLocalMemory.
SkillAFreshness: A★ 257Claude Code +9 - 0.683score
slm-loop
qualixar
Gate-verified bounded loops with SuperLocalMemory as the durable ledger.
SkillAFreshness: A★ 257Claude Code +9
Cite this page
slm-status skill. Agent Mart. https://agentmart.dev/skills/qualixar-slm-status (last updated 2026-10-24)