coverage

A command that runs the configured tests for each supported programming language and records line coverage, meaning which lines of code the tests actually execute.

In plain words
What is it for?
Use it to measure test coverage for projects in TypeScript, Python, Go, Rust, C#, Kotlin, Java, or Ruby, either for all packs or one selected language.
Why use it?
It replaces guesses based on filenames with test-coverage results and shows which language packs pass or fail, including failures when configured to continue.

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/coverage
Clone the repo
git clone --depth 1 https://github.com/vyuh-labs/dxkit
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 766 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.00766
Opus 5 $0.00000 $0.00383
Sonnet 5 $0.00000 $0.00153
Haiku 4.5 $0.00000 $0.00077

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

Security

Grade A, and why

coverage 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 2d 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/coverage.md · 78 lines

How it starts

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

vyuh-dxkit coverage

Run as: vyuh-dxkit <cmd> after npm install -g @vyuhlabs/dxkit, or npx @vyuhlabs/dxkit <cmd> for one-shot use. Examples on this page use the short form.

Run each active language pack's test command with coverage instrumentation and write the materialized coverage artifact. Used to upgrade test-gaps + health.Testing from filename-match heuristic to real line-coverage truth.

Side-effecting: this actually runs your tests. Be aware of test isolation, network calls, etc. before running on a fresh machine.

Usage

vyuh-dxkit coverage [path] [options]

Options

Option Effect
--lang <id> Restrict to one pack (typescript, python, go, rust, csharp, kotlin, java, ruby)
--timeout <seconds> Per-pack timeout (default: 600)
--no-fail-fast Continue past pack failures; report all outcomes
--verbose Per-pack stderr passthrough

What it does per pack

Each pack declares its own test command + coverage parser:

Pack Default command Artifact
TypeScript / JavaScript npm test -- --coverage Istanbul coverage-summary.json / coverage-final.json
Python coverage run -m pytest && coverage xml coverage.xml
Go go test ./... -coverprofile=coverage.out coverage.out
Rust cargo tarpaulin --out json tarpaulin-report.json
C# dotnet test --collect:"XPlat Code Coverage" Cobertura XML
Kotlin ./gradlew test jacocoTestReport JaCoCo XML
Java mvn test jacoco:report JaCoCo XML
Ruby bundle exec rspec (with SimpleCov) coverage/.last_run.json

Read the full file on GitHub · 78 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. 2d ago First seen · 78 lines · 0 tokens per session scan A e3d5efa011c6

Subscribe to this mod's changes

coverage is a command published in the GitHub repository vyuh-labs/dxkit (10 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 766 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.