ask
Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
Print the tests whose coverage intersects a change's changed lines — for a commit, base..head range, or staged diff.
> /plugin marketplace add repowise-dev/repowise > /plugin install repowise@repowise
How it fires
How this command gets triggered: by you, by Claude, or both.
/impacted-testsContext preview
What this command does when you run it.
Print the tests whose coverage intersects a change's changed lines — for a commit, base..head range, or staged diff.
description: Print the tests whose coverage intersects a change's changed lines — for a commit, base..head range, or staged diff. allowed-tools: Bash, Read
Map a change to the tests that actually exercise its changed lines, using the per-test coverage map from `repowise coverage add`. No LLM, no network — an index lookup. Useful as a pre-merge / CI gate ("run these 40, not all 4,000").
1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Resolve the target from `$ARGUMENTS`, run `repowise impacted-tests`, and present the test ids. Be honest about gaps (see Notes).
(e.g. `repowise impacted-tests main..HEAD`)
Useful flags:
repowise impacted-tests main..HEAD --format list | xargs pytest
report with contexts. If none is ingested, the command still prompts to run `/repowise:coverage` / `repowise coverage add`. It does **not** invent an empty "no tests needed" result.
headed "NOT coverage-backed", each carrying a `via` marker: `changed-test` (the changed file is itself a test), `call-graph` or `import-graph` (a test file that reaches it, no ingest needed), or `filename-pattern` (a name-shaped guess). Report them as candidates. Only `via: coverage` proves a test executed the change.
blast radius / `tests_to_run`, use the `get_risk` MCP tool.
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Repo: repowise-dev/repowise
Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).
Ingest or inspect test-coverage reports — LCOV, Cobertura/Clover, or coverage.py .coverage (builds the per-test map when contexts are present).
Report unreachable files, unused exports, and zombie packages, tiered by confidence.
Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.
Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.