Skip to content

Commands

Each page below lists the arguments and options of one command, with their defaults, as the installed xpd reads them. The site builds these lists from xpd's own command definitions, so they change when xpd changes. xpd -h and xpd <command> -h print the same flags in a terminal, and every command takes -h and --help. xpd -V prints the version.

Start with xpd check, which lints Python files and writes fixes. xpd 4.8.0 (052c696d) has 28 commands, and xpd animate has 11 of its own, and xpd quest has 6 of its own, and xpd present has 5 of its own, and xpd charts has 8 of its own, and xpd tables has 8 of its own, and xpd views has 8 of its own, and xpd data-prep has 7 of its own, and xpd time-series has 7 of its own, and xpd feature-engineering has 7 of its own, and xpd modeling has 7 of its own, and xpd math-opt has 7 of its own, and xpd dspy has 7 of its own, and xpd enhance has 8 of its own, and xpd optimize has 7 of its own, and xpd rules has 5 of its own.

Command Also called What it does
xpd find Find libraries and rules for a task, without importing Python
xpd api Show a public symbol's call signature, summary, members and guarding rules
xpd check xpd scan Lint Python files. Exit 0 when clean, 1 on any issue of the --fail-on severity, which is error by default, 2 if xpd can't run
xpd fix Apply Ruff, xpd and ty fixes, then format the changed Python files
xpd hook Apply safe fixes and report remaining warnings and errors after a Python edit
xpd profile Profile a data file (csv, parquet, feather, json, xlsx). Needs pandas
xpd equiv Check that two scripts produce an equal result (DataFrame or Series). Needs pandas
xpd animate Preview, inspect, and render editable ManimGX animations
xpd animate start Freeze a scene and render the first preview of a durable animation
xpd animate revise Freeze the edited scene and render a new preview, retaining the review note
xpd animate approve Approve a reviewed revision and render its frozen source at final quality
xpd animate status Show the animation stage, revision history and artifacts
xpd animate resume Recover an interrupted render or retry a failed render using its frozen inputs
xpd animate guide Show the offline animation workflow or print an editable ManimGX example
xpd animate catalog List ManimGX module families or compare every sibling primitive in one family side by side
xpd animate doctor Check the managed ManimGX Python runtime
xpd animate setup Install and verify the pinned ManimGX runtime in a managed uv virtual environment
xpd animate inspect Inspect a ManimGX scene without video: timeline, annotated storyboard, and 2D layout checks
xpd animate render Render a named ManimGX scene. Use "-" to read a JSON source bundle from stdin
xpd quest Start a guided RPG-style quest that clarifies your goal and recommends xpd workflows step by step
xpd quest guide Print the xpd-quest handbook skill
xpd quest start Start a new quest from scratch or with initial goal notes
xpd quest clarify Add clarifying answers or extra notes to refine the quest route and next step
xpd quest advance Complete or skip the current objective, re-check ledgers, and advance to the next step
xpd quest status Show the quest log, open clarifying questions, completed objectives, and next step
xpd quest resume Re-survey project state and recover an interrupted quest
xpd present Triage and coordinate data presentation workflows (charts, tables, views, animate)
xpd present start Start a durable present run, scan all four tracks, and recommend which ones to run
xpd present select Confirm or change the selected tracks of an active present run
xpd present advance Record completion or skip for the active track and move to the next selected track
xpd present status Show the current present stage, track recommendations, and progress
xpd present resume Refresh track telemetry and recover an interrupted present run
xpd charts Review single-panel statistical charts against ten visualization books (Tufte, Cleveland, Wilke, Knaflic, Few, Jenkinson, Munzner, Miller, and Aigner) as a Duroxide ledger
xpd charts start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd charts plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd charts approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd charts gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd charts drop Record that a fix was given up, after its files were restored
xpd charts status Print the run and the stage that comes next
xpd charts finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd charts create Create a new chart, table, or view from a declared spec: xpd routes the reader task to a form, scaffolds the file, renders and measures it, and asks scoped review questions
xpd charts create start Start a create run from a declared figure spec: validate it, route its reader task to a form, scaffold the figure file, then render and measure it
xpd charts create route Choose the form of a run whose reader task has more than one fitting form
xpd charts create render Render and measure the figure file again after editing it
xpd charts create answer Record answers to the scoped review questions and reasons for accepted findings
xpd charts create finish Close the run once the file matches its last render and nothing is open
xpd charts create status Print the run, what is open, and the command that comes next
xpd charts create forms Print the forms this workflow can scaffold, with their reader tasks and column roles
xpd tables Review presentation tables and data grids against tabular presentation principles as a Duroxide ledger
xpd tables start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd tables plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd tables approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd tables gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd tables drop Record that a fix was given up, after its files were restored
xpd tables status Print the run and the stage that comes next
xpd tables finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd tables create Create a new chart, table, or view from a declared spec: xpd routes the reader task to a form, scaffolds the file, renders and measures it, and asks scoped review questions
xpd tables create start Start a create run from a declared figure spec: validate it, route its reader task to a form, scaffold the figure file, then render and measure it
xpd tables create route Choose the form of a run whose reader task has more than one fitting form
xpd tables create render Render and measure the figure file again after editing it
xpd tables create answer Record answers to the scoped review questions and reasons for accepted findings
xpd tables create finish Close the run once the file matches its last render and nothing is open
xpd tables create status Print the run, what is open, and the command that comes next
xpd tables create forms Print the forms this workflow can scaffold, with their reader tasks and column roles
xpd views Review multi-panel layouts, Dash dashboards, geospatial maps, networks, hierarchies, flows, and page-level narrative presentation as a Duroxide ledger
xpd views start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd views plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd views approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd views gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd views drop Record that a fix was given up, after its files were restored
xpd views status Print the run and the stage that comes next
xpd views finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd views create Create a new chart, table, or view from a declared spec: xpd routes the reader task to a form, scaffolds the file, renders and measures it, and asks scoped review questions
xpd views create start Start a create run from a declared figure spec: validate it, route its reader task to a form, scaffold the figure file, then render and measure it
xpd views create route Choose the form of a run whose reader task has more than one fitting form
xpd views create render Render and measure the figure file again after editing it
xpd views create answer Record answers to the scoped review questions and reasons for accepted findings
xpd views create finish Close the run once the file matches its last render and nothing is open
xpd views create status Print the run, what is open, and the command that comes next
xpd views create forms Print the forms this workflow can scaffold, with their reader tasks and column roles
xpd data-prep Audit the preparation of features and targets, from raw data through scaling
xpd data-prep start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd data-prep plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd data-prep approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd data-prep gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd data-prep drop Record that a fix was given up, after its files were restored
xpd data-prep status Print the run and the stage that comes next
xpd data-prep finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd time-series Analyze time series cadence, seasonalities, breaks, and groups before forecasting
xpd time-series start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd time-series plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd time-series approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd time-series gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd time-series drop Record that a fix was given up, after its files were restored
xpd time-series status Print the run and the stage that comes next
xpd time-series finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd feature-engineering Engineer and validate features: domain mechanisms, cutoff safety, and fold lift
xpd feature-engineering start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd feature-engineering plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd feature-engineering approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd feature-engineering gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd feature-engineering drop Record that a fix was given up, after its files were restored
xpd feature-engineering status Print the run and the stage that comes next
xpd feature-engineering finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd modeling Select, validate, calibrate, and verify ML models with baseline comparisons
xpd modeling start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd modeling plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd modeling approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd modeling gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd modeling drop Record that a fix was given up, after its files were restored
xpd modeling status Print the run and the stage that comes next
xpd modeling finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd math-opt Formulate and verify numerical optimization problems (CVXPY, pymoo, skfolio)
xpd math-opt start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd math-opt plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd math-opt approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd math-opt gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd math-opt drop Record that a fix was given up, after its files were restored
xpd math-opt status Print the run and the stage that comes next
xpd math-opt finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd dspy Review DSPy 3.5 modules, typed signatures, adapters, concurrency, and optimizers
xpd dspy start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd dspy plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd dspy approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd dspy gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd dspy drop Record that a fix was given up, after its files were restored
xpd dspy status Print the run and the stage that comes next
xpd dspy finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd enhance Triage and coordinate codebase enhancement workflows (harden, discover, untangle, optimize)
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 untangle start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd enhance untangle plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd enhance untangle approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd enhance untangle gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd enhance untangle drop Record that a fix was given up, after its files were restored
xpd enhance untangle status Print the run and the stage that comes next
xpd enhance untangle finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd enhance harden Find and fix silent failures, fixed waits, and flaky tests in a recorded ledger
xpd enhance harden start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd enhance harden plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd enhance harden approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd enhance harden gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd enhance harden drop Record that a fix was given up, after its files were restored
xpd enhance harden status Print the run and the stage that comes next
xpd enhance harden finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd enhance discover Improve plain-text searchability, naming, and module focus in a recorded ledger
xpd enhance discover start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd enhance discover plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd enhance discover approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd enhance discover gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd enhance discover drop Record that a fix was given up, after its files were restored
xpd enhance discover status Print the run and the stage that comes next
xpd enhance discover finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd optimize Find work that spends CPU, memory or I/O the result does not need
xpd optimize start Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
xpd optimize plan Record the plan of a round: the fixes in order, and the findings that are right as they are
xpd optimize approve Record that the user said yes to a fix that changes what callers or users see, or that changes files outside the paths of the run
xpd optimize gate Gate a fix: run the checks, time --bench when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept
xpd optimize drop Record that a fix was given up, after its files were restored
xpd optimize status Print the run and the stage that comes next
xpd optimize finish End the run: compare findings, line count and benchmark timing with the start commit. Exit 1 while a fix is open or a new finding has no reason
xpd audit Run a unified, read-only audit across xpd check and registered static ledger workflows
xpd rules List every rule and package check, or write, test and try rules of your own
xpd rules new Create a rule project, or a rule, test case or utility in one
xpd rules new project Create sgconfig.yml, xpd.yml and the rules, rule-tests and utils folders
xpd rules new rule Create a rule from a pattern, with the Markdown that explains it beside the rule file
xpd rules new test Create an empty test case for a rule, with no valid or invalid code yet
xpd rules new util Create a global utility rule, which any rule can use with matches: <name>
xpd rules test Check rule examples and review diagnostic and fix snapshots
xpd rules run xpd rules query Search code by syntax, in any language ast-grep parses, and preview or apply a rewrite
xpd rules outline Map the files of a project: imports, definitions and their members, with line numbers
xpd rules verify-fixes Verify that rule fixes produce valid code and converge in memory
xpd doctor Compare this project with xpd's profile of Ruff, ty and pytest settings, show the edits, and apply them
xpd skill Print the agent skill (SKILL.md) for this xpd version
xpd mcp Start the MCP server
xpd lsp Start the language server, which an editor runs to show the issues as you type
xpd completions Generate completion for the installed xpd command tree

profile, equiv, charts --adapter, tables --adapter, views --adapter, data-prep --adapter, time-series --adapter, feature-engineering --adapter, modeling --adapter, math-opt --adapter, dspy --adapter and optimize --adapter run Python code, and find uses Python once to download its search model. xpd uses the first of these Pythons that it finds.

  1. The one in $VIRTUAL_ENV
  2. The one in the nearest .venv at or above the current folder
  3. python3 on PATH

Most commands exit 0 when they succeed and 2 when xpd cannot run, for example because a file cannot be read. A command that checks something, such as check, rules run, rules test and equiv, exits 1 when the check finds a problem. Each command page has the details.