ask
CommandAsk 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
description: Print the tests whose coverage intersects a change's changed lines — for a commit, base..head range, or staged diff. allowed-tools: Bash(repowise impacted-tests:*), Read disable-model-invocation: true
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:
stdout and `Run every test: <reason>` on stderr when the whole suite must run
must run; reasons go to stderr. `--runner pytest|go|jest|files|auto` picks the argument shape
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.
(lockfiles, build or CI config, a changed file no test reaches, an index built at neither end of the change). Run everything when you see it.
blast radius / `tests_to_run`, use `repowise risk --target <path> --changed-file <path>`.
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
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, Go cover profiles, JaCoCo, Salesforce Apex JSON, or repowise…
Report unreachable files, unused exports, and zombie packages, tiered by confidence.
Work with architectural decisions; list, check health, record, pin, or put background records in force.
Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.