Skip to main content
Glama

Brain doctor — is this brain current, wired, and in sync?

brain_doctor

Run a read-only health check of your klypix brain installation. Verify version currency, hook readiness, active sessions, and config drift in one verdict.

Instructions

Read-only self-check of the installed klypix brain, as ONE verdict: VERSION (deployed brain-core + optional npm currency), CLAUDE (existing 5-hook capture readiness), CODEX (automatic MCP presence plus optional enhanced-hook status), TOOLS (discoverable MCP verbs), SESSIONS (all active presence-adapter sessions across hosts, never recent-chat history), and HARNESS (projection drift). Use to answer "is my brain current, correctly installed, in sync, and who is actually live?" without file-spelunking. Never writes: the only side effects are read-only subprocess queries (git rev-parse / tag --list / log / merge-base with fixed argument arrays, and npm view only when check_npm is true) — it creates, edits, and deletes nothing. SCOPE: only CLAUDE and CODEX get behavioural verdicts. HARNESS classifies the projected config/rules FILES on disk — a project can read fully ok while no other host has ever actually loaded them, so do not report a clean HARNESS as "Cursor/Cline/Windsurf/Copilot is working". The MCP-callable twin of npx klypix-mcp doctor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoProject dir to audit harness + peers for. Defaults to the server's working directory.
check_npmNoAlso fetch npm latest to flag a stale brain (default false — this one does a network `npm view`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully carries the transparency burden and does so impressively: it states 'Never writes' and enumerates the exact subprocess side effects ('git rev-parse / tag --list / log / merge-base with fixed argument arrays, and `npm view` only when check_npm is true'), plus 'creates, edits, and deletes nothing'. It also discloses the HARNESS limitation, which is a behavioral trait beyond what a schema could convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and front-loaded with the core purpose, then adds a use case, safety guarantees, and a critical HARNESS caveat. There is minor redundancy (read-only stated multiple times), but no filler sentences; the length is justified by the tool's complexity and the lack of annotations/output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a no-output-schema, no-annotation tool with 2 parameters and a complex verdict, and the description covers the main gaps: what the verdict contains (six sections), key exclusions (SESSIONS is not chat history), and the HARNESS misinterpretation risk. It does not detail the exact verdict format or how the agent should act on each section, which would make it fully complete, but it provides solid actionable context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameter descriptions in the input schema already fully explain `project` and `check_npm`, including defaults and the network call. The prose description adds no additional parameter-level meaning; it merely reinforces the same semantics, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb and resource: 'Read-only self-check of the installed klypix brain, as ONE verdict', then names all six verdict sections (VERSION, CLAUDE, CODEX, TOOLS, SESSIONS, HARNESS). It distinguishes itself from related tools by stating what it is not ('never recent-chat history') and by naming its CLI twin, so an agent can identify it uniquely among siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit use case: 'Use to answer "is my brain current, correctly installed, in sync, and who is actually live?"' and forbids inferring host status from HARNESS ('do not report a clean HARNESS as "Cursor/Cline/Windsurf/Copilot is working"'). It also clarifies scope limits for CLAUDE/CODEX verdicts, but it does not explicitly name alternative tools for other situations, so it stops short of a full when-not-to-use comparison.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.