Skip to content

English | Русский

Doctor — Health Check

doctor is a single command that runs eight checks across the moving parts of a TAUSIK install (venv / DB / MCP / Skills / Drift / Config / Gates / Session). It does not auto-fix — it tells you what is wrong and how to fix it.

Run It

bash
.tausik/tausik doctor

Or via MCP: tausik_doctor (no parameters). The MCP variant returns the same data as a structured object.

What It Checks

GroupCheckPass criteria
venvPython virtualenv.tausik/venv/ exists and python -V runs
venvstdlib onlyNo third-party packages leaked into venv
DBSQLite file.tausik/tausik.db exists, openable
DBSchema migrationLatest migration applied (matches backend_migrations.py)
DBFTS5 indexesAll FTS tables present and queryable
MCPProject server.claude/mcp/project/server.py exists
MCPBrain server.claude/mcp/brain/server.py exists
MCPServer can startpython server.py --probe returns success
SkillsDeploymentSkills present in .claude/skills/ (count)
SkillsCritical skillscore skills start, end, task, plan, checkpoint, commit, explore, review, test, ship, debug all present (plus /brain conditional if Notion configured)
DriftBootstrap freshnessFiles in .claude/ match generators in harness//bootstrap/. Drift = stale generated copy.
ConfigKnobssession_max_minutes, session_warn_threshold_minutes, session_idle_threshold_minutes, session_capacity_calls, verify_cache_ttl_seconds
GatesRegistered gatesStack-detected + universal gates count
SessionActive vs wallIf session is open: Xm active / Ym wall (gap-based)

Sample Output

TAUSIK doctor — health check
========================================
  OK    Python venv               .tausik/venv
  OK    Project DB                .tausik/tausik.db (3136 KB)
  OK    MCP server (project)      .claude/mcp/project/server.py
  OK    MCP server (brain)        .claude/mcp/brain/server.py
  OK    Core skills               12 core + brain conditional, 20 vendor opt-in (all critical present)
  WARN  Bootstrap drift           1 script(s) differ — restart MCP server or re-bootstrap
  OK    Config knobs              max=180m warn=150m idle=10m capacity=200 cache_ttl=600s
  OK    Quality gates             6 registered
  OK    Session                   10m active / 10m wall
========================================
WARN OK with 1 warning(s).

Status Levels

LevelMeaning
OKCheck passed
WARNNon-blocking — work continues, but fix recommended
FAILBlocking — TAUSIK won't operate correctly until fixed

The exit code reflects the worst level: 0 for OK/WARN, 1 for FAIL.

Common Fixes

SymptomFix
FAIL Python venvpython -m venv .tausik/venv (or re-run bootstrap)
FAIL Project DBRun .tausik/tausik init to create the DB
WARN Bootstrap driftpython .tausik-lib/bootstrap/bootstrap.py --refresh and restart the MCP server
FAIL MCP serverRe-run bootstrap; ensure .claude/mcp/ was generated
WARN Core skillstausik skill list; tausik skill activate <name> for missing core skills

Negative — What Doctor Does NOT Do

  • It does not auto-fix. Each line shows what's wrong; the fix command is yours to run.
  • It does not validate vendor skill correctness — only presence.
  • It does not test the brain mirror sync (use tausik brain status).
  • It does not run quality gates (use tausik gates status / tausik verify).

What's Next