lcm-doctor

lcm-doctor is a command for Claude Code from lossless-claude/lcm. It costs 26 tokens per session (253 once invoked), scanned A, original, MIT.

A health-check command for lcm that examines its background service, hooks, MCP server, and summarizer.

In plain words
What is it for?
Use it to verify whether lcm is working and to get suggested remedies when a check fails.
Why use it?
It brings installation problems into one report and identifies checks that need fixing.

Command for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the lcm plugin — 8 skills, 10 commands, 4 agents shipped together

Good fit Use it to verify whether lcm is working and to get suggested remedies when a check fails.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add lossless-claude/lcm
Claude Code
/plugin install lcm

Made for: Claude Code.

Or install lcm, the plugin that ships this one along with the rest of its 8 skills, 10 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lcm-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/lossless-claude/lcm/lcm-doctor/github.svg)](https://agentmods.dev/commands/lossless-claude/lcm/lcm-doctor)
Your own site
<a href="https://agentmods.dev/commands/lossless-claude/lcm/lcm-doctor"><img src="https://agentmods.dev/badge/commands/lossless-claude/lcm/lcm-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lcm-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/lossless-claude/lcm/lcm-doctor"><img src="https://agentmods.dev/badge/commands/lossless-claude/lcm/lcm-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00253
Opus 5 $0.00013 $0.00127
Sonnet 5 $0.00005 $0.00051
Haiku 4.5 $0.00003 $0.00025

Measured 11d ago against content hash b75f2f112331, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

lcm-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-plugin/commands/lcm-doctor.md · 24 lines

What it actually says

/lcm-doctor

Run diagnostics on the lossless-claude installation.

Instructions

When invoked, call the lcm_doctor MCP tool (no arguments).

The tool returns pre-formatted markdown with status tables per section. Display the output verbatim — it is already formatted correctly.

If any check shows a failure icon, add a Fix section listing specific remediation steps for each failure.

End with one of:

  • All checks passed — lossless-claude is healthy.
  • N check(s) need attention — see Fix section above.

If lcm_doctor is unavailable, run lcm doctor via Bash and display the output verbatim. If lcm is not on PATH (marketplace install), first try to install it by running node "${CLAUDE_PLUGIN_ROOT}/lcm.mjs" install, then retry lcm doctor. If lcm is still unavailable, run node "${CLAUDE_PLUGIN_ROOT}/lcm.mjs" doctor instead.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 24 lines · 26 tokens per session scan A b75f2f112331

Subscribe to this mod's changes

lcm-doctor is a command published in the GitHub repository lossless-claude/lcm (26 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 253 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.