Over time, AI harness configurations can drift: files may be edited manually, removed by tooling, or left stale after a profile change.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/affaan-m/ECC/llms.txt
Use this file to discover all available pages before exploring further.
ecc doctor performs a read-only audit comparing your currently-installed files against the install-state record written when you last ran ecc install. ecc repair then restores any drifted or missing files by re-applying from the original source manifest. Together they form the core of ECC’s installation lifecycle management.
ecc doctor
Reads every install-state file discoverable in the current home/project context and reports whether each ECC-managed file is present and unchanged. No files are written or deleted — ecc doctor is purely diagnostic.
Usage
Flags
Limit the diagnostic to a specific harness target. Repeatable — pass
--target multiple times to check a subset of targets. When omitted, all
discoverable install-state files in the current context are checked.Emit a machine-readable JSON report instead of the human-readable summary.
What doctor checks
For each install-state file found,doctor inspects every recorded file operation and classifies each managed file as one of:
ok— file is present and matches the ECC-managed content.warning— file has been modified from the ECC-managed version (drift detected).error— file is missing entirely from the target directory.
Output format
Exit codes
| Code | Meaning |
|---|---|
0 | All checked targets are healthy |
1 | One or more warnings or errors were found |
ecc doctor does not modify any files. It is safe to run at any time,
including in read-only CI environments.ecc repair
Rebuilds ECC-managed files recorded in install-state by re-applying file operations from the original source manifest. repair is the corrective action to run after doctor reports issues.
Usage
Flags
Limit repair to a specific harness target. Repeatable. When omitted, all
discoverable install-state files in the current context are repaired.
Preview which files would be restored without writing anything. Prints the
list of planned repairs and the total count for each target.
Emit a machine-readable JSON repair result including planned or applied paths
and the summary counts.
Output format
--dry-run:
Exit codes
| Code | Meaning |
|---|---|
0 | All repairs completed without errors |
1 | One or more targets encountered an error during repair |
ecc auto-update
Pulls the latest ECC changes from the source and reinstalls all managed targets using their original install-state request. Designed for unattended use in CI and developer setup scripts.
Usage
How it works
- Reads the install-state files for the current context.
- Derives the ECC repo root from the recorded
sourcePathentries. - Runs
git pull(or equivalent) in that repo root to fetch the latest content. - Replays the original install request for each managed target with the updated source.
Flags
Limit auto-update to a specific harness target. Repeatable.
Explicitly provide the ECC repo root path instead of deriving it from the
install-state
sourcePath entries.Preview which targets would be updated and what operations would be replayed
without making any changes.
Emit a machine-readable JSON result.
Examples
ecc list-installed
Shows all ECC-managed targets discovered in the current home/project context by reading their install-state files, without performing any health checks.
Usage
Flags
Limit listing to a specific harness target. Repeatable.
Emit a machine-readable JSON array of install-state records.
Output format
Diagnostic-Repair Workflow
Check current health
Run
ecc doctor to get a full picture of all install-state health across
your context. Review the per-target issue list.Preview what repair would do
Use
ecc repair --dry-run to see exactly which files would be restored
before committing to any changes.Apply the repair
Run
ecc repair (optionally scoped to a specific --target) to restore
all drifted and missing files.CI Integration
Useecc doctor with --json and the implicit non-zero exit code to gate CI pipelines on install health: