Configuration

July 14, 2026 · View on GitHub

All variables are optional; defaults apply with none set.

Mindlas variables

VariableDefaultEffect
MINDLAS_HOME~/.mindlasPer-machine state root (session ledgers, statusline backup).
MINDLAS_PROJECT_ROOTcurrent dirRead-only override for the project-local .mindlas/ root. The hooks resolve the project root from the hook payload's cwd and never write this variable — set it yourself only for tests or unusual layouts.
MINDLAS_GATEshadowTrust gate at propagation boundaries (commit/push/deploy/publish): off / shadow (decide and record, never halt) / live (may block the tool call).
MINDLAS_LOOP_GUARDwarnStop-boundary retry guard at PreToolUse: off / warn (terminal notice, never blocks) / block (deny the exact stopped command signature, citing the stop id).
MINDLAS_INTERCEPT_COMPACTwarnPreCompact behavior: off / warn / blockblock currently behaves as warn; native compact is never blocked.
MINDLAS_TESTTIERon0 disables the debounced background test tier. Independent of MINDLAS_GATE.
MINDLAS_TEST_PATTERNS(unset)Comma-separated extra substrings that classify a command as a test run (appended to built-ins: pytest, npm/yarn test, jest, go test, cargo test, mvn test, unittest, rspec, phpunit, dotnet test).
MINDLAS_BARsegmentsProgress-bar glyphs for the gauges: segments (▰▱), blocks (█░), or ascii (#-). Set blocks/ascii on a legacy Windows console whose raster font renders the parallelograms as tofu boxes.

Claude-provided variables

VariableEffect
CLAUDE_CONFIG_DIRWhere the install-* commands read/write Claude Code's settings.json (default ~/.claude).
CLAUDE_PLUGIN_DATAWhen set (plugin loaded), cold-store transcript snapshots go under ${CLAUDE_PLUGIN_DATA}/.mindlas; else the project .mindlas/.
CLAUDE_SESSION_IDExpanded by the plugin slash commands into --session <uuid>; not read by the Python code directly.

Test-suite only

MINDLAS_RUN_TESTTIER=1 enables the 8 real-subprocess test-tier integration tests that the default suite skips (~3s extra; CI sets it in .github/workflows/ci.yml).