xpd enhance
Survey harden, discover, untangle, and optimize together, recommend which improvement tracks have signal, and coordinate running any subset or all four without merging their gates.
All four tracks survey Python, Go, Rust, JavaScript, and TypeScript. The ledgers use native source analysis for Go, Rust, JavaScript, and TypeScript. Python also uses xpd rules.
| Track | Examples of Go and Rust evidence |
|---|---|
| Harden | Empty error branches, fixed waits and skipped tests |
| Discover | Public names defined in multiple modules |
| Untangle | Local dependency maps, cycles and copies |
| Optimize | Repeated scans in loops and collections built to read one item |
Individual ledgers accept project checks at start. Optimize can also time a workload command.
xpd enhance [OPTIONS] [PATHS]... xpd enhance <COMMAND>Subcommands
Section titled “Subcommands”| Subcommand | What it does |
|---|---|
xpd enhance start |
Start a durable enhance run, scan all four tracks, and recommend which ones to run |
xpd enhance select |
Confirm or change the selected tracks of an active enhance run |
xpd enhance advance |
Record completion or skip for the active track and move to the next selected track |
xpd enhance status |
Show the current enhance stage, track recommendations, and progress |
xpd enhance resume |
Refresh track telemetry and recover an interrupted enhance run |
xpd enhance untangle |
Refactor codebase structure, coupling, copies, and dead weight in a recorded ledger |
xpd enhance harden |
Find and fix silent failures, fixed waits, and flaky tests in a recorded ledger |
xpd enhance discover |
Improve plain-text searchability, naming, and module focus in a recorded ledger |
Arguments
Section titled “Arguments”| Argument | What it does |
|---|---|
<PATHS>... |
Files or directories to triage across harden, discover, untangle, and optimize. |
Options
Section titled “Options”| Option | Default | What it does |
|---|---|---|
--format <FORMAT> |
Output format. Default: text on a terminal, json otherwise. Values: text, json. |
Examples
Section titled “Examples”$ xpd enhance --help...Exit status
Section titled “Exit status”0 when triage or coordination completes cleanly. 2 when xpd cannot read the repository or a durable workflow fails.