remediate

remediate is a command for coding agents from vyuh-labs/dxkit. It costs 0 tokens per session (3,992 once invoked), scanned A, original, MIT.

A command that plans and addresses project maintenance debt that routine version updates cannot fix. This can include broken builds, security warnings without direct upgrades, lint problems, missing tests, and missing documentation.

In plain words
What is it for?
Use it to plan remediation work, apply automatic fixes such as lockfile and lint updates, and send remaining scoped tasks to an agent.
Why use it?
It turns a backlog of technical problems into smaller work orders and checks whether fixes created new failures. Changes are delivered through a pull request with a verification record.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/vyuh-labs/dxkit/remediate
Clone the repo
git clone --depth 1 https://github.com/vyuh-labs/dxkit

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remediate

README.md
[![agentmods](https://agentmods.dev/badge/commands/vyuh-labs/dxkit/remediate.svg)](https://agentmods.dev/commands/vyuh-labs/dxkit/remediate)
Your own site
<a href="https://agentmods.dev/commands/vyuh-labs/dxkit/remediate"><img src="https://agentmods.dev/badge/commands/vyuh-labs/dxkit/remediate.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,992 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03992
Opus 5 $0.00000 $0.01996
Sonnet 5 $0.00000 $0.00798
Haiku 4.5 $0.00000 $0.00399

Measured 3d ago against content hash 2ba0ecf19c4b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

remediate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/remediate.md · 292 lines

How it starts

The opening of the file, as written. The whole thing — 292 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vyuh-dxkit remediate

Close the debt the deterministic lanes cannot version-bump away: the grandfathered broken build, advisories with no direct upgrade path, the lint backlog, missing tests, missing docs. Each run plans that debt as finite work orders and works them in two tiers: deterministic recipes execute first at $0 (lockfile resync, override pins, dependency declarations, lint autofix), and only the remaining orders go to a scoped agent, one order per run under a derived budget and an enforced envelope. A class that keeps failing is paused by the circuit breaker instead of re-bought every firing. Everything runs inside a verified frame, and the agent's own claim of success is never trusted: an entry correctness-floor snapshot is captured on the pristine tree before any fix, then after the run a leftover sweep, the floor attributed against that entry (only net-new failures block; pre-existing debt is disclosed, never weaponized), and the guardrail as final arbiter. Work lands only as a PR carrying the verification ledger.

Usage

vyuh-dxkit remediate plan [path] [--json] [--with-floor]  # dry-run: no key, no spend
vyuh-dxkit remediate [path] --task <id> [--land pr] [--dispatch-override] [--json]
vyuh-dxkit remediate configured [path] [--land pr] [--json]
  • plan shows, per enabled task, the task > tier > driver-native model resolution, the effective per-task budget, and the spend-ceiling-trimmed matrix the managed workflow reads. It also lists the planned WORK ORDERS (workOrders in --json): the finite units the run consumes (recipe-tier orders execute deterministically in the frame; the remaining agent-tier orders are dispatched one order per agent run, up to remediate.maxOrdersPerRun), built from the entry floor, deferred advisories inside their window (joined to the live dependency scan), and the lint backlog, each with its class, tier (recipe where a registered recipe matches, else agent), derived budget, and done criterion. Findings no class can take are listed under undispatchable with the reason. The floor is read from the baseline's recorded envelope (or the loop snapshot) so the plan stays cheap; --with-floor runs the live floor instead, and the output says which source it used (workOrderFloorSource). The scheduled matrix (matrixTasks) is derived from the OPEN orders in value order: a task with no open orders spawns no scheduled job, open-ended tasks (improve-tests, write-docs) appear only when policy lists them explicitly (disclosed as the legacy shape), and classes the circuit breaker paused are shown with the reason and the unpause conditions (pausedClasses). When the plan's evidence is degraded (an unreadable baseline, no floor evidence anywhere), the matrix falls back to the static policy task list with the reason named, so a fail-open zero can never silently turn the schedule off. A dispatch naming a task bypasses the matrix and runs exactly that task.
  • --task <id> runs one task. With --land pr a verified outcome (or a budget-exhausted one under the draft-pr salvage policy) pushes the standing branch dxkit/remediate-<task> and opens or updates its PR.
  • configured runs every policy-configured task through the same executor; this is the scheduled workflow's entry point. Tasks share one tree, so a task that leaves unlanded work stops the loop and the remaining tasks are named as skipped.

Read the full file on GitHub · 292 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 292 lines · 0 tokens per session scan A 2ba0ecf19c4b

Subscribe to this mod's changes

remediate is a command published in the GitHub repository vyuh-labs/dxkit (10 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,992 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.