Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:20000419 Fauxnix Differential Diagnostics

From Leeroopedia
Knowledge Sources
Domains Diagnostics, Harness_Detection
Last Updated 2026-10-26 00:00 GMT

Overview

A diagnostics technique that probes the local environment — encoding preference, per-harness MCP config detection, launcher status, Node version, and MCP module load — and aggregates the results into a single report with a boolean ok flag.

Description

Differential Diagnostics is the principle behind fauxnix doctor. It reads each agent harness's config file and reports whether fauxnix MCP is configured, found-but-missing, or not detected, with config-specific path resolution (e.g. CLAUDE_CONFIG_DIR, CODEX_HOME, XDG_CONFIG_HOME). It reports the encoding preference (FAUXNIX_NATIVE_ENCODING), the facade launcher status (installed/stale/up-to-date), the Node version against the package engines range, and whether the MCP module dynamically imports and exposes startMcpServer. The loader is injectable for testing. The report's ok is true only when both the Node version and the MCP module load pass.

Usage

Use this principle when a tool needs a single "is everything set up correctly?" command that covers multiple integration surfaces. The injectable-loader design makes the module-load check testable without a real import side effect.

Theoretical Basis

report.lines = [
  encodingLines(env),
  field('claude', detectClaude(home, cwd, env)),
  field('codex', detectCodex(home, env)),
  field('opencode', detectOpenCode(home, env)),
  field('qwen', detectQwen(home)),
  field('facade', detectFacade(env)),
  mcpLines(nodeVersion, loadMcp)
]
report.ok = nodeOk and moduleOk

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment