Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
release: v0.50.0 - one health vocabulary, findings you can triage, and chat you reach from the row (#2221)
Raghav Chamadiya25c89ab307a0
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 934bbcebb..10f1c8cde 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -14,7 +14,7 @@"name": "repowise","source": "./plugins/claude-code","description": "Codebase intelligence for Claude Code. Indexes your repo into five layers (Graph, Git, Docs, Decisions, Code Health) and gives Claude deep understanding of architecture, ownership, hotspots, decisions, and defect risk — fewer greps, fewer file reads, lower cost per query.",- "version": "0.49.0",+ "version": "0.50.0","category": "productivity","keywords": ["codebase",diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 64374e61c..5dcf633a2 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -9,6 +9,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0---+## [0.50.0] - 2026-09-11++Code health had six different vocabularies for one number, and roughly half of what it measured was change history, which rises as a file is worked on. A week of refactoring could drop the headline and print "Declining health" in error red at the person who did the work. This release rebuilds that reading end to end: one absolute band scale wherever a score appears, one figure at the top of the page, a control that says whether you are counting code shape alone or code shape plus history, and a decline that names which half moved and whether an edit can settle it. No score moves. What changes is what the product tells you a score means. Next to it, findings stop being a list you scroll and become a queue you work, with a disposition you record once and never have re-proposed at you. The other change you will notice first is chat: it is no longer a widget in a corner, it is reachable from the row you are already looking at, pointed at that row, with its first answer grounded in the page you asked from.++### Added++- **One health vocabulary, five absolute bands** (#2180). Excellent 8.5+, Good 7.0 to 8.5, Fair 5.5 to 7.0, Needs work 4.0 to 5.5, At risk below 4.0, defined once and locked by a parity test across Python and TypeScript. Absolute rather than percentile, so a score means the same thing behind a firewall as it does against a public corpus. Previously the same file could read amber on a treemap tile and green in the tooltip attached to it. 4.0 keeps its long-standing meaning, so no repository's most severe classification changes.+- **A Counts control on the health page** (#2164). Everything is the calibrated score; *Code shape only* subtracts the git-derived half (churn, co-change, ownership, prior fixes), which reports what a repository has been through rather than what its code is like. On this repo that reads 7.1 against 8.5. It is a projection over numbers already stored per file, not a second scoring pass.+- **`scope=all|production`** on the health overview, files, map, trend and work-queue routes, on `get_health`, and on `repowise health` (#2154). A narrowed response drops what it cannot honestly narrow rather than relabelling it.+- **The findings tab is one triage list that pages** (#2200). Files ranked by leverage, expandable to their findings, server-paged with search, dimension, severity, status and hotspot / untested / below-green filters. The old queue fetched 200 rows, raised that to 500 once, and had no way to reach anything past it.+- **`set_finding_status`, the write half of findings triage** (#2043, closes #1535). Record a disposition on a refactoring plan and it survives every later analysis run: `false_positive` is never re-emitted, `acknowledged` stays visible but stops counting as unheard, `resolved` closes it out. Opt-in, since it mutates.+- **Ask about this, from the row you are looking at** (#2190). One control on the file page header, symbol page, health finding rows, risk table rows, decision detail, commit detail and the documentation header. It opens the composer already scoped to that thing and sends.+- **Chat grounds its first answer in the page you asked from** (#2188). A question from a file view no longer costs a full tool round trip before the model can cite the file, and a page whose subject is a symbol, decision or commit is no longer invisible to it. The transcript shows what was read.+- **Composer suggestions built from what the page measured** (#2205). "Explain the 28 bug fixes in incremental.py" rather than "Explain this file's responsibility", the top health finding and the function it sits in, an owner and their measured share. Follow-ups read the tools the finished turn called and propose the next read worth making. No model call is involved.+- **Co-change rows say which side leads** (#2202). `get_risk` and `get_change_risk` hardcoded `"direction": "undirected"` while already holding the two numbers that decide it. A pair now reads `a_to_b` or `b_to_a` by which file seldom moves without the other, with both confidences alongside. An exact tie stays undirected rather than having a lead broken arbitrarily.+- **The post-commit hook is installed by default** (#2143), with an opt-out on the spot and `repowise hook uninstall` named in the line that reports it. Auto-sync after each commit is what keeps an index from going stale between the day you set it up and the day you ask it something. `--no-hook` skips it, and `--no-editor-setup` keeps it off the way it keeps every other out-of-`.repowise` write off. `doctor` gains a row for it.+- **Complexity coverage for F# and Objective-C** (#2152, #2225). Both reach the health complexity walker now, so their files carry real cyclomatic complexity, nesting and maintainability instead of metrics computed against an empty node set. Elixir is deliberately left uncovered: its grammar gives `defmodule`, `def`, `defp` and an ordinary call the same node, told apart only by the target's identifier text, which a map of node types cannot express, so a map there reports the module as the file's only function and hides every real one. No rows is the honest answer until the walker can take a text predicate.++### Changed++- **`HEALTH_ANALYZER_VERSION` is 11** (#2153, #2225). Markdown, JSON, YAML and TOML rows carried a mechanical 10.0 meaning "nothing looked at this", so a repository could raise its score by adding documentation; they are no longer scored, and the checks that cannot apply to a test file skip them. Every file now stores `structure_deduction` and `history_deduction`, which is what makes the split reading above a subtraction rather than a guess. Existing indexes re-score on their next update. The stamp also carries the F# and Objective-C complexity maps below, which change stored complexity for files in those languages. `STORE_FORMAT_VERSION` and `PARSER_SCHEMA_VERSION` are unchanged, so nothing needs re-indexing.+- **A health decline names its cause** (#2171). When the composite fell, history is the driver, and history is the only half that moved down, the trend says so and takes the neutral treatment history findings already have rather than error red: "Code health dropped 0.60 points (7.60 to 7.00), and code shape improved 0.30 over the same window. Change history is the only half that moved down, and no edit to these files settles it."+- **The health page leads with one score** (#2161, #2164). It previously led with Code health and Maintainability side by side, both out of ten and both largely about code shape, so the first screen answered "which number do I steer by?" twice. Maintainability moves to the ribbon beside the other cuts of the same scoring.+- **Full-text search weights the path and title columns** (#2191). `bm25()` ran with uniform weights, so a page whose path *is* the answer ranked no higher than one mentioning the word once in passing. Measured on a 4,630-page index over 14 path-naming queries with 18 held-out prose queries as a control: MRR 0.643 to 0.708, top-1 hits 7 to 8, no control query losing a good result. Query-time only, no reindex.+- **MCP responses size themselves by content class** (#2179). The budget converted characters to tokens at a flat 4 chars/token; measured against the real tokenizer over 24 recorded responses the rate runs 2.5 to 5.4 and the flat figure read low on 18 of them, which is the direction that costs a caller a read. Responses also stamp what the budget dropped.+- **Repeated searches skip the embedding provider** (#2189, #2192). Query embeddings are cached on both the MCP and HTTP paths.+- **A leaf workspace import stops loading the analysis stack** (#2178). `repowise.core.workspace/__init__` eagerly imported all nine submodules, so `import repowise.core.workspace.config`, the first thing `repowise mcp` touches and a leaf whose only dependency is yaml, was charged sqlalchemy, networkx and the ingestion graph.+- **`repowise update --full` shows live progress and persists as it goes** (#1709, #2038). It passed `progress=None` into generation, so a long run showed a dead screen, and buffered every page in memory to write once at the end, so a Ctrl-C at hour eight cost the whole run. Pages are now written the instant each completes.+- **The tree-sitter floor is 0.25**, and CI compiles every language query (#2165, #2170).++### Fixed++- **Indexing uses the provider you picked**, not a guess: the dashboard's choice reaches the indexer (#2198), and a workspace index phase keeps the provider it was launched with (#2197).+- **Two silent embedder degradations now surface** (#1370, #2107): a malformed `REPOWISE_FULL_RESCORE_INTERVAL_DAYS` warned nobody and defaulted to 7.0, and a vector-store build failure was swallowed by a bare except. Generation-phase embed failures also reach `init`'s degraded list (#1369, #2108).+- **Workspace mode stops dropping the repo you pointed at when it is a submodule** (#2196). The submodule flag governs what a scan *discovers*; the root is not a discovery, it is the path you named.+- **e2e spec files are indexed** (#1842). They were dropped from traversal, so they never got a wiki page and `get_answer` could not answer a test-infrastructure question, with no signal that a whole area was missing.+- **Credential findings gain a value gate, a placeholder filter and path awareness** (#2118, #2121), which is what separates a real secret from a placeholder in an example.+- **`repowise init --resume` skips the interactive questionnaire** (#2098, #2106).+- **`list_repos` reads index presence from the database** rather than inferring it (#2187), and the primary vector store resolves for PostgreSQL databases (#2140, #2144).+- **Blocking git inspection is offloaded** off the server's event loop (#2103), and the cost-tracker engine is disposed so a later loop does not reuse a dead connection (#2083).+- **`doctor` reports actual LLM provider availability** (#2086) rather than a config file's opinion of it.+- Boolean config values map to valid reasoning modes (#1990).+- The web app loads the active provider from the providers API instead of the health probe, and renders the provider picker from that same response rather than a hardcoded array (#2155, #2203). `codex_cli` and `openrouter` resolve on the server and could not be picked in settings.+- Heading vocabulary harvesting skips fenced code blocks (#2150).+- `git_function_blame.symbol_id` is widened to `Text` on PostgreSQL (#2169).+- `DOC_EXTENSIONS` had drifted into several copies; they are consolidated behind a drift guard (#1489, #2159).+- `regenerate` receives `repo_id`, so Write-with-AI works in workspace mode (#1809).++### Documentation++- Native VS Code Language Model tools and the `agentTools` setting are documented (#2096).+- The quickstart notes that `--no-editor-setup` covers the repo-root `.mcp.json` too (#2199).+- The health docs say what the score counts, and the agent line no longer reads inverted (#2201).++### Dependencies++- Dependabot updates are grouped, and `gitpython` is bumped (#2206).++---+## [0.49.0] - 2026-09-05The largest language release so far: Elixir, F#, Objective-C, VB.NET and GDScript all move to the Good tier with real ASTs behind them, QML arrives at the import tier, and Razor/Blazor markup enters the graph. Alongside that, the Architecture Map stops being a picture and becomes somewhere you can drill into, `update` learns to size itself by what actually changed and reports which stage took the time, and the MCP tools stop returning bare zeros: every empty answer now says what it was measured against. Workspace mode gains cross-repo test impact and consumer contracts for five more languages.diff --git a/packages/cli/src/repowise/cli/__init__.py b/packages/cli/src/repowise/cli/__init__.pyindex a19a9739c..1da3c9b3c 100644--- a/packages/cli/src/repowise/cli/__init__.py+++ b/packages/cli/src/repowise/cli/__init__.py@@ -16,4 +16,4 @@ from repowise.cli._stdio import _ensure_utf8_stdio# is already UTF-8._ensure_utf8_stdio()-__version__ = "0.49.0"+__version__ = "0.50.0"diff --git a/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-health.md b/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-health.mdindex e0b1b1d95..5880bd56e 100644--- a/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-health.md+++ b/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-health.md@@ -27,6 +27,11 @@ Handle `$ARGUMENTS`:- "refactoring" / "targets" → `repowise health --refactoring-targets` (ranked by impact/effort)- "trend" / "trends" → `repowise health --trend` (last snapshots + declining / predicted-decline alerts)- "module <name>" → `repowise health --module <name>`+- "production" / "app code" → `repowise health --scope production` (tests score+ higher than production code, so narrowing lowers every figure without a defect+ having been found; the default stays `all`)+- "code shape" / "ignore churn" → `repowise health --counts code_shape` (leaves+ out the git-derived half: churn, co-change, ownership, prior fixes)- a coverage file (e.g. `cov.lcov`, `coverage.xml`, `.coverage`) → `repowise coverage add <file>` to ingest it (folds into health markers, and builds the per-test map when the report has contexts), then `repowise health`Other flags: `--format json` for machine-readable output, `-v, --verbose` for@@ -34,6 +39,13 @@ pipeline debug logs, `--repo <alias>` / `--no-workspace` in workspace mode.## Notes+- Bands are absolute, and the same five words everywhere a score appears:+ Excellent 8.5+, Good 7.0–8.5, Fair 5.5–7.0, Needs work 4.0–5.5, At risk below+ 4.0. Use those words rather than inventing your own.+- Roughly half of a score is change history, which rises as a file is worked on.+ A decline is not automatically a regression — if the trend reports+ `history_drag`, say so: the code shape did not get worse, and no edit to those+ files settles it.- A file that is both low-health **and** a churn hotspot is the highest-prioritycleanup — cross-reference with `/prompts:repowise-risk` or `get_risk`.- If everything scores high, say so plainly rather than inventing concerns.diff --git a/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-init.md b/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-init.mdindex 1461b0951..90f156c5e 100644--- a/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-init.md+++ b/packages/cli/src/repowise/cli/agent_targets/_data/codex_prompts/repowise-init.md@@ -106,6 +106,12 @@ Editor integration:--no-editor-setup only .repowise/ is touched. There isone 'repowise' MCP entry per machine-wide config, so alater init from another repo repoints it. See Step 3b.+ --hook / --no-hook Install the post-commit hook that runs 'repowise+ update' in the background after each commit, so the+ index does not go stale between sessions. Default: on.+ --no-editor-setup keeps it off too, since a git hook+ is a write outside .repowise/. Undo any time with+ 'repowise hook uninstall'.Keys:--save-key / Save the provider key this run authenticated with todiff --git a/packages/core/src/repowise/core/__init__.py b/packages/core/src/repowise/core/__init__.pyindex 189756b7c..63e1de814 100644--- a/packages/core/src/repowise/core/__init__.py+++ b/packages/core/src/repowise/core/__init__.py@@ -6,4 +6,4 @@ generation engine. This is the heart of repowise — all other packages depend oNamespace package: repowise.core is part of the repowise namespace."""-__version__ = "0.49.0"+__version__ = "0.50.0"diff --git a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.mdindex 64374e61c..5dcf633a2 100644--- a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md+++ b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md@@ -9,6 +9,66 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0---+## [0.50.0] - 2026-09-11++Code health had six different vocabularies for one number, and roughly half of what it measured was change history, which rises as a file is worked on. A week of refactoring could drop the headline and print "Declining health" in error red at the person who did the work. This release rebuilds that reading end to end: one absolute band scale wherever a score appears, one figure at the top of the page, a control that says whether you are counting code shape alone or code shape plus history, and a decline that names which half moved and whether an edit can settle it. No score moves. What changes is what the product tells you a score means. Next to it, findings stop being a list you scroll and become a queue you work, with a disposition you record once and never have re-proposed at you. The other change you will notice first is chat: it is no longer a widget in a corner, it is reachable from the row you are already looking at, pointed at that row, with its first answer grounded in the page you asked from.++### Added++- **One health vocabulary, five absolute bands** (#2180). Excellent 8.5+, Good 7.0 to 8.5, Fair 5.5 to 7.0, Needs work 4.0 to 5.5, At risk below 4.0, defined once and locked by a parity test across Python and TypeScript. Absolute rather than percentile, so a score means the same thing behind a firewall as it does against a public corpus. Previously the same file could read amber on a treemap tile and green in the tooltip attached to it. 4.0 keeps its long-standing meaning, so no repository's most severe classification changes.+- **A Counts control on the health page** (#2164). Everything is the calibrated score; *Code shape only* subtracts the git-derived half (churn, co-change, ownership, prior fixes), which reports what a repository has been through rather than what its code is like. On this repo that reads 7.1 against 8.5. It is a projection over numbers already stored per file, not a second scoring pass.+- **`scope=all|production`** on the health overview, files, map, trend and work-queue routes, on `get_health`, and on `repowise health` (#2154). A narrowed response drops what it cannot honestly narrow rather than relabelling it.+- **The findings tab is one triage list that pages** (#2200). Files ranked by leverage, expandable to their findings, server-paged with search, dimension, severity, status and hotspot / untested / below-green filters. The old queue fetched 200 rows, raised that to 500 once, and had no way to reach anything past it.+- **`set_finding_status`, the write half of findings triage** (#2043, closes #1535). Record a disposition on a refactoring plan and it survives every later analysis run: `false_positive` is never re-emitted, `acknowledged` stays visible but stops counting as unheard, `resolved` closes it out. Opt-in, since it mutates.+- **Ask about this, from the row you are looking at** (#2190). One control on the file page header, symbol page, health finding rows, risk table rows, decision detail, commit detail and the documentation header. It opens the composer already scoped to that thing and sends.+- **Chat grounds its first answer in the page you asked from** (#2188). A question from a file view no longer costs a full tool round trip before the model can cite the file, and a page whose subject is a symbol, decision or commit is no longer invisible to it. The transcript shows what was read.+- **Composer suggestions built from what the page measured** (#2205). "Explain the 28 bug fixes in incremental.py" rather than "Explain this file's responsibility", the top health finding and the function it sits in, an owner and their measured share. Follow-ups read the tools the finished turn called and propose the next read worth making. No model call is involved.+- **Co-change rows say which side leads** (#2202). `get_risk` and `get_change_risk` hardcoded `"direction": "undirected"` while already holding the two numbers that decide it. A pair now reads `a_to_b` or `b_to_a` by which file seldom moves without the other, with both confidences alongside. An exact tie stays undirected rather than having a lead broken arbitrarily.+- **The post-commit hook is installed by default** (#2143), with an opt-out on the spot and `repowise hook uninstall` named in the line that reports it. Auto-sync after each commit is what keeps an index from going stale between the day you set it up and the day you ask it something. `--no-hook` skips it, and `--no-editor-setup` keeps it off the way it keeps every other out-of-`.repowise` write off. `doctor` gains a row for it.+- **Complexity coverage for F# and Objective-C** (#2152, #2225). Both reach the health complexity walker now, so their files carry real cyclomatic complexity, nesting and maintainability instead of metrics computed against an empty node set. Elixir is deliberately left uncovered: its grammar gives `defmodule`, `def`, `defp` and an ordinary call the same node, told apart only by the target's identifier text, which a map of node types cannot express, so a map there reports the module as the file's only function and hides every real one. No rows is the honest answer until the walker can take a text predicate.++### Changed++- **`HEALTH_ANALYZER_VERSION` is 11** (#2153, #2225). Markdown, JSON, YAML and TOML rows carried a mechanical 10.0 meaning "nothing looked at this", so a repository could raise its score by adding documentation; they are no longer scored, and the checks that cannot apply to a test file skip them. Every file now stores `structure_deduction` and `history_deduction`, which is what makes the split reading above a subtraction rather than a guess. Existing indexes re-score on their next update. The stamp also carries the F# and Objective-C complexity maps below, which change stored complexity for files in those languages. `STORE_FORMAT_VERSION` and `PARSER_SCHEMA_VERSION` are unchanged, so nothing needs re-indexing.+- **A health decline names its cause** (#2171). When the composite fell, history is the driver, and history is the only half that moved down, the trend says so and takes the neutral treatment history findings already have rather than error red: "Code health dropped 0.60 points (7.60 to 7.00), and code shape improved 0.30 over the same window. Change history is the only half that moved down, and no edit to these files settles it."+- **The health page leads with one score** (#2161, #2164). It previously led with Code health and Maintainability side by side, both out of ten and both largely about code shape, so the first screen answered "which number do I steer by?" twice. Maintainability moves to the ribbon beside the other cuts of the same scoring.+- **Full-text search weights the path and title columns** (#2191). `bm25()` ran with uniform weights, so a page whose path *is* the answer ranked no higher than one mentioning the word once in passing. Measured on a 4,630-page index over 14 path-naming queries with 18 held-out prose queries as a control: MRR 0.643 to 0.708, top-1 hits 7 to 8, no control query losing a good result. Query-time only, no reindex.+- **MCP responses size themselves by content class** (#2179). The budget converted characters to tokens at a flat 4 chars/token; measured against the real tokenizer over 24 recorded responses the rate runs 2.5 to 5.4 and the flat figure read low on 18 of them, which is the direction that costs a caller a read. Responses also stamp what the budget dropped.+- **Repeated searches skip the embedding provider** (#2189, #2192). Query embeddings are cached on both the MCP and HTTP paths.+- **A leaf workspace import stops loading the analysis stack** (#2178). `repowise.core.workspace/__init__` eagerly imported all nine submodules, so `import repowise.core.workspace.config`, the first thing `repowise mcp` touches and a leaf whose only dependency is yaml, was charged sqlalchemy, networkx and the ingestion graph.+- **`repowise update --full` shows live progress and persists as it goes** (#1709, #2038). It passed `progress=None` into generation, so a long run showed a dead screen, and buffered every page in memory to write once at the end, so a Ctrl-C at hour eight cost the whole run. Pages are now written the instant each completes.+- **The tree-sitter floor is 0.25**, and CI compiles every language query (#2165, #2170).++### Fixed++- **Indexing uses the provider you picked**, not a guess: the dashboard's choice reaches the indexer (#2198), and a workspace index phase keeps the provider it was launched with (#2197).+- **Two silent embedder degradations now surface** (#1370, #2107): a malformed `REPOWISE_FULL_RESCORE_INTERVAL_DAYS` warned nobody and defaulted to 7.0, and a vector-store build failure was swallowed by a bare except. Generation-phase embed failures also reach `init`'s degraded list (#1369, #2108).+- **Workspace mode stops dropping the repo you pointed at when it is a submodule** (#2196). The submodule flag governs what a scan *discovers*; the root is not a discovery, it is the path you named.+- **e2e spec files are indexed** (#1842). They were dropped from traversal, so they never got a wiki page and `get_answer` could not answer a test-infrastructure question, with no signal that a whole area was missing.+- **Credential findings gain a value gate, a placeholder filter and path awareness** (#2118, #2121), which is what separates a real secret from a placeholder in an example.+- **`repowise init --resume` skips the interactive questionnaire** (#2098, #2106).+- **`list_repos` reads index presence from the database** rather than inferring it (#2187), and the primary vector store resolves for PostgreSQL databases (#2140, #2144).+- **Blocking git inspection is offloaded** off the server's event loop (#2103), and the cost-tracker engine is disposed so a later loop does not reuse a dead connection (#2083).+- **`doctor` reports actual LLM provider availability** (#2086) rather than a config file's opinion of it.+- Boolean config values map to valid reasoning modes (#1990).+- The web app loads the active provider from the providers API instead of the health probe, and renders the provider picker from that same response rather than a hardcoded array (#2155, #2203). `codex_cli` and `openrouter` resolve on the server and could not be picked in settings.+- Heading vocabulary harvesting skips fenced code blocks (#2150).+- `git_function_blame.symbol_id` is widened to `Text` on PostgreSQL (#2169).+- `DOC_EXTENSIONS` had drifted into several copies; they are consolidated behind a drift guard (#1489, #2159).+- `regenerate` receives `repo_id`, so Write-with-AI works in workspace mode (#1809).++### Documentation++- Native VS Code Language Model tools and the `agentTools` setting are documented (#2096).+- The quickstart notes that `--no-editor-setup` covers the repo-root `.mcp.json` too (#2199).+- The health docs say what the score counts, and the agent line no longer reads inverted (#2201).++### Dependencies++- Dependabot updates are grouped, and `gitpython` is bumped (#2206).++---+## [0.49.0] - 2026-09-05The largest language release so far: Elixir, F#, Objective-C, VB.NET and GDScript all move to the Good tier with real ASTs behind them, QML arrives at the import tier, and Razor/Blazor markup enters the graph. Alongside that, the Architecture Map stops being a picture and becomes somewhere you can drill into, `update` learns to size itself by what actually changed and reports which stage took the time, and the MCP tools stop returning bare zeros: every empty answer now says what it was measured against. Workspace mode gains cross-repo test impact and consumer contracts for five more languages.diff --git a/packages/server/src/repowise/server/__init__.py b/packages/server/src/repowise/server/__init__.pyindex 12b4183ba..2a2f15153 100644--- a/packages/server/src/repowise/server/__init__.py+++ b/packages/server/src/repowise/server/__init__.py@@ -7,4 +7,4 @@ Provides:- Background job scheduler (APScheduler)"""-__version__ = "0.49.0"+__version__ = "0.50.0"diff --git a/plugins/claude-code/.claude-plugin/plugin.json b/plugins/claude-code/.claude-plugin/plugin.jsonindex 393468dfe..13168f374 100644--- a/plugins/claude-code/.claude-plugin/plugin.json+++ b/plugins/claude-code/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "repowise","description": "Codebase intelligence for Claude Code. Indexes your codebase into five layers (Graph, Git, Docs, Decisions, Code Health) and exposes them through ten task-shaped MCP tools — so Claude understands architecture, ownership, hotspots, why code is built the way it is, and where the defect risk lives.",- "version": "0.49.0",+ "version": "0.50.0","author": {"name": "Repowise","email": "[email protected]",diff --git a/plugins/claude-code/CHANGELOG.md b/plugins/claude-code/CHANGELOG.mdindex 870e8602b..96fabfc43 100644--- a/plugins/claude-code/CHANGELOG.md+++ b/plugins/claude-code/CHANGELOG.md@@ -2,6 +2,28 @@All notable changes to the Repowise Claude Code plugin are documented here.+## 0.50.0++### Changed+- The `health` command documents `--scope all|production` and+ `--counts everything|code_shape`, the two controls that say what a score is+ counting, and names the five absolute bands (Excellent / Good / Fair / Needs+ work / At risk) so a summary uses the product's words rather than its own. It+ also says that roughly half a score is change history, and that a+ `history_drag` decline is not a regression in the code.+- The `init` command documents `--hook / --no-hook`. The post-commit hook is+ installed by default now, and `--no-editor-setup` keeps it off along with+ every other write outside `.repowise/`.+- No hook change this cycle: `hooks.json` still mirrors `claude_config.py`, and+ every tool named in a command or skill is one the server lists.+ `set_finding_status` is live and deliberately unreferenced: it mutates, so it+ is opt-in rather than part of the default surface.++## 0.49.0++### Changed+- Version bump only. No command, skill or doc change this cycle.+## 0.48.0### Changeddiff --git a/plugins/claude-code/commands/health.md b/plugins/claude-code/commands/health.mdindex 6691ad105..54bcfe289 100644--- a/plugins/claude-code/commands/health.md+++ b/plugins/claude-code/commands/health.md@@ -28,6 +28,11 @@ Handle `$ARGUMENTS`:- "refactoring" / "targets" → `repowise health --refactoring-targets` (ranked by impact/effort)- "trend" / "trends" → `repowise health --trend` (last snapshots + declining / predicted-decline alerts)- "module <name>" → `repowise health --module <name>`+- "production" / "app code" → `repowise health --scope production` (tests score+ higher than production code, so narrowing lowers every figure without a defect+ having been found; the default stays `all`)+- "code shape" / "ignore churn" → `repowise health --counts code_shape` (leaves+ out the git-derived half: churn, co-change, ownership, prior fixes)- a coverage file (e.g. `cov.lcov`, `coverage.xml`, `.coverage`) → `repowise coverage add <file>` to ingest it (folds into health markers, and builds the per-test map when the report has contexts), then `repowise health`Other flags: `--format json` for machine-readable output, `-v, --verbose` for@@ -35,6 +40,13 @@ pipeline debug logs, `--repo <alias>` / `--no-workspace` in workspace mode.## Notes+- Bands are absolute, and the same five words everywhere a score appears:+ Excellent 8.5+, Good 7.0–8.5, Fair 5.5–7.0, Needs work 4.0–5.5, At risk below+ 4.0. Use those words rather than inventing your own.+- Roughly half of a score is change history, which rises as a file is worked on.+ A decline is not automatically a regression — if the trend reports+ `history_drag`, say so: the code shape did not get worse, and no edit to those+ files settles it.- A file that is both low-health **and** a churn hotspot is the highest-prioritycleanup — cross-reference with `/repowise:risk` or `get_risk`.- If everything scores high, say so plainly rather than inventing concerns.diff --git a/plugins/claude-code/commands/init.md b/plugins/claude-code/commands/init.mdindex c1d73e9ff..9ae9de816 100644--- a/plugins/claude-code/commands/init.md+++ b/plugins/claude-code/commands/init.md@@ -107,6 +107,12 @@ Editor integration:--no-editor-setup only .repowise/ is touched. There isone 'repowise' MCP entry per machine-wide config, so alater init from another repo repoints it. See Step 3b.+ --hook / --no-hook Install the post-commit hook that runs 'repowise+ update' in the background after each commit, so the+ index does not go stale between sessions. Default: on.+ --no-editor-setup keeps it off too, since a git hook+ is a write outside .repowise/. Undo any time with+ 'repowise hook uninstall'.Keys:--save-key / Save the provider key this run authenticated with todiff --git a/plugins/shared/commands/health.md b/plugins/shared/commands/health.mdindex 43d72282b..45be7e9e6 100644--- a/plugins/shared/commands/health.md+++ b/plugins/shared/commands/health.md@@ -29,6 +29,11 @@ Handle `$ARGUMENTS`:- "refactoring" / "targets" → `repowise health --refactoring-targets` (ranked by impact/effort)- "trend" / "trends" → `repowise health --trend` (last snapshots + declining / predicted-decline alerts)- "module <name>" → `repowise health --module <name>`+- "production" / "app code" → `repowise health --scope production` (tests score+ higher than production code, so narrowing lowers every figure without a defect+ having been found; the default stays `all`)+- "code shape" / "ignore churn" → `repowise health --counts code_shape` (leaves+ out the git-derived half: churn, co-change, ownership, prior fixes)- a coverage file (e.g. `cov.lcov`, `coverage.xml`, `.coverage`) → `repowise coverage add <file>` to ingest it (folds into health markers, and builds the per-test map when the report has contexts), then `repowise health`Other flags: `--format json` for machine-readable output, `-v, --verbose` for@@ -36,6 +41,13 @@ pipeline debug logs, `--repo <alias>` / `--no-workspace` in workspace mode.## Notes+- Bands are absolute, and the same five words everywhere a score appears:+ Excellent 8.5+, Good 7.0–8.5, Fair 5.5–7.0, Needs work 4.0–5.5, At risk below+ 4.0. Use those words rather than inventing your own.+- Roughly half of a score is change history, which rises as a file is worked on.+ A decline is not automatically a regression — if the trend reports+ `history_drag`, say so: the code shape did not get worse, and no edit to those+ files settles it.- A file that is both low-health **and** a churn hotspot is the highest-prioritycleanup — cross-reference with `{{cmd:risk}}` or `get_risk`.- If everything scores high, say so plainly rather than inventing concerns.diff --git a/plugins/shared/commands/init.md b/plugins/shared/commands/init.mdindex 1d3a8cb67..9d5df02bc 100644--- a/plugins/shared/commands/init.md+++ b/plugins/shared/commands/init.md@@ -108,6 +108,12 @@ Editor integration:--no-editor-setup only .repowise/ is touched. There isone 'repowise' MCP entry per machine-wide config, so alater init from another repo repoints it. See Step 3b.+ --hook / --no-hook Install the post-commit hook that runs 'repowise+ update' in the background after each commit, so the+ index does not go stale between sessions. Default: on.+ --no-editor-setup keeps it off too, since a git hook+ is a write outside .repowise/. Undo any time with+ 'repowise hook uninstall'.Keys:--save-key / Save the provider key this run authenticated with todiff --git a/pyproject.toml b/pyproject.tomlindex 4a23fc918..3fa671d2c 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"[project]name = "repowise"-version = "0.49.0"+version = "0.50.0"description = "The codebase intelligence layer for your AI coding agent — dependency graph, git history, dead code, decisions, and code health, exposed over MCP"readme = "README.md"requires-python = ">=3.11"diff --git a/server.json b/server.jsonindex e705a648f..1bbfa6855 100644--- a/server.json+++ b/server.json@@ -8,12 +8,12 @@"source": "github"},"websiteUrl": "https://www.repowise.dev",- "version": "0.49.0",+ "version": "0.50.0","packages": [{"registryType": "pypi","identifier": "repowise",- "version": "0.49.0",+ "version": "0.50.0","transport": {"type": "stdio"},diff --git a/uv.lock b/uv.lockindex 4b073c449..6e26fecaa 100644--- a/uv.lock+++ b/uv.lock@@ -3051,7 +3051,7 @@ wheels = [[[package]]name = "repowise"-version = "0.49.0"+version = "0.50.0"source = { editable = "." }dependencies = [{ name = "aiosqlite" },