Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

release: v0.59.0 (#4705)

Raghav Chamadiyac50bff8323d7
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index ac6704565..d6ef0a9a5 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.58.0",
+ "version": "0.59.0",
"category": "productivity",
"keywords": [
"codebase",
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 68cb01c36..8fdcf5dd4 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -10,6 +10,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
---
+## [0.59.0] - 2026-10-25
+
+repowise 0.59 makes the first hour with a repository a guided one. `repowise init` ends on what stood out in your code and the exact model command for this machine, `repowise serve` opens the web UI in your browser, a three-step welcome greets a newly indexed repository, and a Setup page tracks what is set up and what is left, each row with one action and a prompt for your agent. Agents record, accept and merge architectural decisions as themselves, and a post-commit prompt asks them to record the decision a commit made.
+
+Salesforce reaches the Full tier: Apex is parsed and resolved per sfdx project, and Lightning Web Components, Aura, Visualforce, flows and object and field metadata link into the same graph, with health, dead code, Extract Method and coverage. COBOL reads like a codebase: copybooks, CICS LINK and XCTL, JCL, BMS and DB2 includes resolve, paragraphs are scored for code health, and CSD-defined programs are entry points.
+
+A folder of services gets a System Map that opens on groups of services and lets you focus one service or list every route between two, plus an estate report. Cross-repo links read many more HTTP clients and servers, gateways, brokers and gRPC shapes, and every link says how it was matched. Test reach, impacted tests and coverage say what they measured, with per-function coverage and an `untested_complexity` finding ranked by CRAP score.
+
+### Highlights
+
+- **A Setup page and a welcome for new repositories** · `repowise serve` opens your browser, a three-step welcome shows what repowise found, and Setup lists what is set up and what is left, each with one action and a prompt for your agent. → /repos/:id/settings/setup
+- **Salesforce and COBOL, mapped end to end** · Apex, Lightning, Visualforce, flows and object metadata, and COBOL with copybooks, CICS, JCL and DB2 includes, link into one graph with code health, dead code and coverage. → /repos/:id/code-health
+- **A System Map for your services** · Services grouped into systems, a focus view of who calls whom, every route between two services, and links read across many more frameworks, gateways and brokers. → /workspace/system-map
+- **Agents record and accept decisions** · Your agent records the decision a commit made, accepts candidates signed as itself, and every accepted decision carries its own text. → /repos/:id/decisions
+- **Tests and coverage that say what they measured** · Per-function coverage and an `untested_complexity` finding ranked by CRAP score, mocked modules kept apart from real reach, and impacted tests that count broadcast runs on their own line. → /repos/:id/tests
+
+### By the numbers
+
+In the 4 days since 0.58.0:
+
+- **251 pull requests** merged, from **37 contributors**, **26 of them first-time contributors**
+- **1,720 files** changed, **+117,289 / -16,849** lines
+- **110 fixes, 116 features, 13 performance changes**, 4 documentation changes
+- **552 test files** touched, **207** of them new
+- **42 issues** closed
+
+Thank you to everyone who built this release with us.
+
+### Added
+
+- **`repowise init` ends on what stood out** (#4677). The finish panel shows up to four findings (health score with its band and lowest file, unreachable files and safe-to-delete findings, the top hotspot, decision candidates), leaving out anything not measured. Documentation built from the index gets an "Add a model when you want more" block with the exact `repowise generate` command for the model source found on this machine. `--progress json` adds a `findings` object and puts the model command in `next`.
+- **`repowise serve` opens the web UI in your browser** (#4679) once it answers. `--no-open` or `REPOWISE_NO_OPEN=1` turns it off, and it opens only from a terminal, never in CI.
+- **A three-step welcome for a newly indexed repository** (#4682). It opens on the repository overview once per repository per machine (or any time with `?tour=1`): what repowise measured, the agents on this machine with Connect and "Copy setup prompt", then the model and sync choices, finishing in Setup.
+- **A Setup page and a setup pill** (#4683, #4681, #4692, #4699). `/repos/:id/settings/setup` groups what is set up into Needs attention, Essentials (index, coding agent, sync) and Optional (model, coverage, shorter command output). Each row has a status, one action, its terminal command and a "Copy prompt" button, links to the settings page that holds its control, and a "Setup N of 3" pill sits in the sidebar. The page loads in about two seconds from `repowise doctor --quick` and refreshes in the background. `GET /api/repos/{id}/setup` serves the page, and its write routes accept only a loopback, same-origin request to a keyless server.
+- **Settings on their own pages** (#4694, #4683). Global settings open as Setup, Agents, Models, Sync, Server, Display and Privacy, and a repository's as Setup, General, Agents, Models, Sync and Coverage, each with a left rail and one row pattern. Repository General saves each field as you change it, rarely used options sit under Advanced, older `#group-` links open the page they meant, and turning sync off asks first.
+- **A model in two clicks** (#4678). For a repository indexed without a model, the docs-mode badge ("Write with a model") and the chat "Add a model" state open one sheet that lists a signed-in Claude Code, Codex or OpenCode, an existing key, a local Ollama model or a pasted key, with the page count and price. "Write the docs" writes the pages as `repowise generate` does.
+- **Agents record and accept decisions as themselves** (#4672, #4688, #4658). `repowise decision add --agent SLUG [--session ID]` records a decision signed by the agent, accepted once it carries an evidence reference. `decision confirm <id> --agent <slug>` accepts a candidate on by default (`decision config agent-acceptance --off` keeps acceptance for people), `decision merge` takes `--agent` and `--session`, and the signer shows in `decision show`, the web UI and CLAUDE.md. Agent-recorded decisions rank beside session-mined ones and filter with `decision list --source agent`.
+- **A prompt to record the decision a commit made** (#4689). On by default for Claude Code, a PostToolUse entry runs only when the shell command contains `git commit`, adding about 35 ms to other shell calls on Windows and a few on Linux. `repowise decision config capture-prompt --off` turns it off per repository.
+- **Decision review an agent can drive** (#4702, #4704). `repowise decision reaffirm` (CLI and REST) re-grants an accepted decision, and staleness counts from the latest person or agent grant, so a decision just accepted or reaffirmed is not `needs_review`. `confirm` refuses a decision that is already accepted, `confirm`, `reaffirm`, `merge`, `deprecate` and `dismiss` all return `results[]` under `--format json`, retired records leave the candidate queue, and the confirm command in the generated How to work line passes `--evidence` so it runs as copied.
+- **Apex as a parsed language** (#4404, #4417, #4421, #4429). Classes, interfaces, enums, triggers, methods, properties, annotations and ApexDoc are symbols. Calls, heritage and type references resolve in each sfdx project's namespace, then through declared package dependencies or a namespace prefix, with same-arity overloads chosen on exact argument types. Cross-file class recall is 99.9% to 100% across four public Salesforce projects, and 99.9% on a repository of 192 sfdx projects.
+- **Lightning, Aura, Visualforce, flows and metadata in the graph** (#4411, #4405, #4415, #4414, #4418, #4441). LWC imports, template tags and `@salesforce/apex` imports, Aura markup, controllers and helpers, Visualforce controllers, extensions, `{!expr}` members and pages, and flows with their Apex actions, subflows and screen components all link. Object and field metadata are symbols bound from SOQL, SOSL, DML and triggers, at 100% recall on two public projects, and record-triggered flows link their object.
+- **Apex health, dead code and Extract Method** (#4419, #4416, #4425, #4442). Methods, triggers and accessors are scored for complexity, classes for size and cohesion, and governor-limit work inside loops reports as `io_in_loop`. Dead code roots triggers, `@AuraEnabled`, `@InvocableMethod`, `@RestResource`, platform interfaces and every class named by Lightning, Visualforce, flow or metadata files, and its findings are never deletion-ready. Extract Method plans render typed Apex helpers. Four advisory markers list without moving scores: `apex_soql_injection`, `apex_missing_sharing`, `apex_hardcoded_id` and `apex_see_all_data`.
+- **Apex coverage and contracts** (#4413, #4446, #4407). Coverage reads `sf apex run test --code-coverage` output, legacy `sfdx` output and deploy or validation reports, with a per-test map that lets `impacted-tests` select Apex test methods. `@RestResource` classes are HTTP providers at `/services/apexrest/...`, and literal `HttpRequest` callouts are workspace consumers keyed by their Named Credential.
+- **COBOL copybooks, CICS, JCL, BMS and DB2** (#4434, #4435, #4436, #4437, #4438, #4460, #4472). Fixed format, embedded `EXEC SQL/CICS/DLI` blocks and `COPY` statements parse without losing paragraphs, including programs whose `PROCEDURE DIVISION` header comes from a copybook. `COPY` and `EXEC SQL INCLUDE` resolve to copybooks and DB2 DCLGEN members, `EXEC CICS LINK` and `XCTL` follow literal constants to their programs, `PERFORM` stays inside its program, and JCL steps link to programs and `SEND MAP` to BMS mapsets. On a public CICS sample, program-to-copybook pairs resolve 246 of 246.
+- **COBOL code health and entry points** (#4439, #4461, #4462, #4459). Paragraphs and sections are scored for complexity, nesting and size, CICS CSD definitions are reachability roots, and an unused paragraph is reported at low confidence, never as deletion-ready. The advisory `cobol_unstructured_flow` marker lists paragraphs that jump with `GO TO` or `ALTER`, and level-88 condition names sit under the data item they test.
+- **`repowise grammars fetch`** (#4471, #4433). Stages the COBOL and Apex grammars for offline machines, and `REPOWISE_GRAMMAR_DIR` points at a pre-staged cache. Grammars load per language, a grammar that cannot load prints a warning with the file count, and `repowise doctor` adds a row per downloaded grammar.
+- **A System Map for a folder of services** (#4621, #4600, #4624, #4623, #4591, #4622). `/workspace/system-map` opens on groups of services (a `group:` tag, a shared name family, then linkage) with bands that carry link counts, and draws one level at a time with a details rail and a breadcrumb. Focus a service to see its callers and dependencies side by side, pick two services to list every route between them, search with `/` or Ctrl/Cmd+K, or read the map as a list. Gateway-routed links are labelled, and a callout says when evidence is partial. `GET /api/workspace/system-graph/links` pages every link between two services (#4598).
+- **An estate report** (#4554, #4561, #4592). `repowise report estate` reads the stored workspace and reports per-repository health and churn, the riskiest seams between services and where to start, and the same report opens at `/workspace/estate` and `GET /api/workspace/estate`.
+- **Cross-repo links across many more stacks.** HTTP calls from .NET `HttpClient`, Refit and typed clients (#4538, #4550), Spring `WebClient`, `RestClient`, Feign and `@HttpExchange` (#4540, #4531), Apache and MicroProfile clients, Node `request`, `superagent` and `needle`, AngularJS `$http` and Locust (#4545). Routes from chi, fiber, gorilla/mux and Go 1.22 method patterns (#4539), Fastify, hapi, Koa and Next.js `pages/api` (#4558), Azure Functions (#4547) and Spring context paths (#4549). Gateway routes from Spring Cloud Gateway, Zuul (#4536), nginx `proxy_pass` (#4543), Ocelot and YARP (#4548). Kafka clients by declared type (#4534), JMS (#4557), Go AMQP (#4542), C# integration events (#4544) and Azure Service Bus queues and topics (#4637). gRPC from C# `AddGrpcClient`, Java `ImplBase` and grpc-js servers, with vendored proto copies serving nothing (#4541, #4529, #4537). A Python repository links to the sibling that publishes its dependency (#4585), and JS template literals with nested templates read as URLs (#4655).
+- **Services found by host name** (#4495, #4656). A workspace builds a service-name map from compose, Kubernetes, Spring and Aspire config, `.env` files and `${VAR:-default}` defaults, so a call to `http://catalog-api/...` or `${CATALOGUE_URL}` resolves with no manual `service_bases`.
+- **Every link says how it was made** (#4486, #4587, #4588, #4580, #4551). Each contract names its origin and each link its matching strategy, shown in the web views and in `get_blast_radius`, `get_change_risk` and `get_risk`. Ribbons and `repowise workspace diagnostics` lead with the share of HTTP calls linked to another service, name dangling calls and separate a service's calls to itself, and diagnostics count messaging SDK calls with unresolved topic names (#4667).
+- **Per-function coverage and `untested_complexity`** (#4326, #4330, #4335). Functions get coverage and a CRAP score, and `untested_complexity` reports untested complex functions, high from CRAP 50 and critical from 100 on measured coverage. Measured findings appear everywhere, estimated ones with `include=["unverified"]`, and `get_health(include=["untested_complexity"])` ranks functions by CRAP. Coverage findings carry an add-tests prompt naming the nearest test file and the `health-rules.json` rule that silences them.
+- **One test-reach walk with typed states** (#4329, #4338, #4341, #4337). Every file reads `reached`, `unreached`, `new`, `no_signal`, `type_only` or `mocked_only`. A Python test that swaps a module out, or a JS or TS test with a closed `vi.mock` or `jest.mock` factory, does not count as reaching it, and files of only types are never called untested.
+- **The CI action summarises every gate** (#4313, #4642). `comment: true` posts one editable PR comment covering every gate, the job summary gets a gate table, and a `verdict` output reads `pass`, `warn` or `fail`. A failing `repowise health check --format github` ends each annotation with a one-line fix and prints the exact local command that reproduces it.
+- **An opt-in health gate on agent commits** (#4371). `repowise hook health-gate install` gates Claude Code `git commit` and `git push` on `repowise health check`, naming up to five failing findings, and fails open on a crash or a 20 s overrun.
+- **Health scores name their analyzer** (#4370). `analyzer_version` sits beside scores in `repowise health` JSON, `health check`, `--trend` rows and `get_health`.
+- **`repowise doctor` checks carry an id, a level and a fix** (#4675), in table and `--format json`, and caveats show as `warn` without failing the run. `doctor --quick` skips the MCP launch and store reconciliation and answers in about two seconds (#4699).
+- **Offline and telemetry controls** (#4440, #4687, #4706). `REPOWISE_OFFLINE`, `DO_NOT_TRACK` and `REPOWISE_TELEMETRY_DISABLED` skip the release check, the highlights fetch and every agent CLI sign-in probe, so repowise makes no network call of its own. Anonymous telemetry carries fixed reason codes on failures and a host label (`claude_code`, `codex`, `cursor`, `vscode`, `ci`, `terminal`), never message text or paths, and sends nothing under a test run. The health headline names its coverage when fewer than half the code files were analysed.
+- **Callers through an interface** (#4506). `get_context(include=["callers"])` and `repowise context --include callers` list callers that reach an implementation through its interface or base class.
+- **`get_why` and `get_context` on a directory** (#4356, #4372). `get_why` builds an origin story from the directory's git history, and `get_context` reads the files under a directory with their owners, last change and hotspot.
+- **`get_overview` says why an input is unavailable** (#4649) in `next_actions.unavailable_reasons`.
+- **Language reach.** Ansible playbook and role dependency edges (#4399), Scala dataflow and Extract Method (#3580), Ruby gem public API with Ruby visibility forms (#4526), Dart closure parameters typed from the collection call (#4528), Gradle dependencies in the package inventory (#4488), a Spring Boot main as a declared entry point ranked above filename guesses (#4487), and .NET types loaded by MassTransit, NServiceBus, Azure Functions and WCF rooted for dead code (#4562).
+
+### Changed
+
+- **Settings live in `.repowise/config.yaml`** (#4676). A repository's excluded paths and wiki style are written there by the CLI, the server and the web settings form, which all read the same value.
+- **Ink primary actions** (#4680, #4692). Primary buttons are solid ink in light and dark, focus rings are neutral, and orange stays for links, selection and the brand. Every "Copy prompt" button is one quiet control that copies at once and previews the prompt on hover.
+- **A calmer docs bar** (#4698). The bar holds the view switch, Search, a "Write N pages with AI" button while structural pages remain, and one More menu for export, present and doc freshness. A page's own write or rewrite action sits under its title, and an out-of-date page shows a warning there.
+- **What's new and the welcome share one look** (#4693), open as a full-height sheet on a phone, and list connected agents first.
+- **Impacted tests count what they ran** (#4324, #4325, #4632, #4321, #4333). Tests kept only by a conftest broadcast and tests reached through long import chains still run and are counted apart (`broadcast_total`, `import_closure_total`), so a hub change's headline reads 308 tests where the run set holds 1,865. A package `__init__.py` reaches every module under it, parametrized `getfixturevalue` is followed, cache-reset autouse fixtures select nothing, and reaching tests rank by distance before the per-target cap.
+- **Coverage is stored when it maps** (#4323, #4320, #4327, #4331, #4336, #4339). `coverage add` stores nothing from a mostly unmapped report unless `--allow-partial`, and suggests the path prefix that maps it. A `.coverage` file is explained as a per-test map with the export command for per-file numbers. `update` re-reads a report written after the last ingest (`coverage.reingest_on_update`), checking in a few milliseconds, the per-test map dedupes and cuts whole tests, and the file page skips its line tint when the file changed after measurement.
+- **One answer per figure** (#4373, #4367, #4360, #4365, #4364, #4369, #4368, #4581). One file count and one symbol count across `status`, the dashboard, workspace and `get_overview`, the index's last sync time on every surface, one severity per Do next row, a band beside every headline score (Healthy from 8, Warning from 4, Alert below), and bug-fix counts that name their 6-month window beside 90-day churn.
+- **Change risk ranks against the commits before the change** (#4503), however the change is spelled, and the checklist names that sample. Code moved between files gets no health before-and-after in the headline (#4314).
+- **`repowise health --score` matches the stored score** (#4499) on an unedited file, scoring against the index's clone partners.
+- **Honest workspace evidence** (#4500, #4654, #4586, #4657). A workspace with too little cross-service evidence reads "not determined" or "partial" with reasons, a route served by two or more repositories links to none unless a host picks one (`ambiguous_provider`), a generic path such as `/health` needs a host to link, and cycle counts past 20,000 read "at least N".
+- **A workspace command that reads one repository names it** (#4559), and `update --workspace` prints each repository's stored counts (#4555).
+- **Cross-repo dead code on every surface** (#4375, #4383, #4358). The CLI, MCP, REST, the file page and Do next share one cross-repo read, and a finding another repository may use is never deletion-ready.
+- **`repowise decision list` states its total** (#4355) with `--limit` and `--all`, and decision staleness is measured from the commit that landed the decision (#4357).
+- **Clearer MCP hints** (#4366). A wrong selector id names the right one, and an argument that needs another names it in `ignored_arguments`.
+- **File classification fits the code** (#4322, #4353, #4652, #4665, #3462, #4468). A `tests/` folder inside a JS or TS `src` tree is product code, `*.test-utils.*` is test support, `tools/` is tooling at the root or under `eng/`, `hack/`, `ci/` or `dev/`, Python `_vendor/` and Salesforce static resources are vendored, and `db/*_migrations/` are migrations.
+- **Faster workspaces and walks** (#4627, #4616, #4651, #4498, #4569, #4485, #4505, #4560, #4556, #4577, #4359). The System Map lays out 300 services in 70 ms, with layout in a worker. `/api/workspace` at 207 repositories answers in 137 ms (from 1,786 ms) and `/api/workspace/graph` in 139 ms (from 4,786 ms). A no-change `update --workspace` on 12 repositories takes 2.6 to 4.5 s (from about 11 s), one changed repository rewrites only its own store and editor files, and contract extraction runs in 6 to 8 s on 8,141 files (from about 20 s). The pruned repository walk is about four times faster on Windows, persistence imports in 17 ms, and exact symbol betweenness skips symbols with no call or heritage edges, scores unchanged (#4602).
+- **Version stamps.** `HEALTH_ANALYZER_VERSION` moved from 41 to 43, so health re-scores on the next update. `PARSER_SCHEMA_VERSION` moved from 9 to 10, so the parse cache refreshes once, automatically. `SECURITY_SCANNER_VERSION` moved from 4 to 5, so the next update rescans. `STORE_FORMAT_VERSION` is unchanged and nothing needs re-indexing.
+
+### Fixed
+
+- **MCP and search.** `search_codebase` scans literal queries that contain a slash, such as `app/widget.py`, when no file page matches (#4230). `repowise mcp` started in a directory with no index runs and every tool reports "no repowise index yet" with the `repowise init --yes --no-prose` remedy (#4670). `get_execution_flows` resolves an entry point by bare name or partial id like `get_symbol` (#4674). The server instructions name `get_architecture` and `get_blast_radius` only when they are served (#4707). Concurrent Streamable HTTP sessions share one lifespan (#4398), and `get_dead_code` returns its pooled connection (#4096).
+- **Decisions.** Mining keeps the verbatim decision sentence, and every acceptance requires decision text (#4686, #4671), with `decision confirm --decision TEXT` to supply it. A mining batch cut off at `max_tokens` counts as failed (#4424), whole titles print in `decision health` (#4389), and backslashes in decision titles stay literal in CLAUDE.md and AGENTS.md (#4530).
+- **Init, update and doctor.** `update` seeds a linked worktree whose base synced past its fork point (#4673), `init --no-editor-setup` writes only inside `.repowise/` (#4496), the real default branch and a credential-free remote url are recorded and kept (#4381, #4374, #4388), large repositories update without "too many SQL variables" (#4403), the per-file git-index timeout is 120 s and set with `REPOWISE_GIT_INDEX_TIMEOUT_S` (#1837), an invalid `REPOWISE_FULL_RESCORE_INTERVAL_DAYS` warns once (#1844), a Claude Desktop registration is not a Claude Code duplicate in `doctor` (#4318), `doctor` counts a provider key saved in `.repowise/.env` (#4708), a file parsed while its grammar was missing is not cached and re-parses once the grammar is available (#4703), `--provider mock` runs without a warning (#4287), notices from an older `init` drop out of the degraded list on the next update (#4285), and `repowise serve` rebuilds a stale local web UI even when the checkout sits inside a folder named `dist` or `node_modules` (#4085).
+- **Graph.** TypeScript path aliases resolve under solution-style `tsconfig.json` references (#4519), a JS or TS bare call binds to a same-file function or an import (#4518), Dart dotted receivers and prefixed named constructors bind (#4114), Express mounts key correctly (#4571), PL/I `.inc` members are not C++ (#4553), Apex parameters parse type-first (#4429), Apex callouts trace through wrapper methods (#4532), COBOL CSD files without definitions index cleanly (#4492), COBOL compiler-option cards that start in column 1 are skipped (#4491), and cycles list from the smallest node id (#4513).
+- **Workspace.** FastAPI routes with a comment in the decorator stack (#4583), SQLite readers linking within their own repository (#4584, #4653), NATS read only beside a NATS client (#4650), service names and gateway routes read from production deploy config only (#4648), Postgres catalog tables skipped (#4187), and components cover flat repositories and count contracts outside every component (#4552, #4494).
+- **Health and coverage.** Java switch arms with comments (#4527), `brain_method` reasons with judged CCN (#4184), `churn_percentile` matching SQL `PERCENT_RANK` (#4189), on-disk coverage stamped at the commit it measured (#3935), per-test records resolving like the aggregate (#4328), nested checkouts naming changed files correctly (#4340), the Tests tab and file page sharing one reach definition (#4334), six performance findings with readable labels (#4354), schema statements kept out of N+1 (#4363), Fix first plans complete or withheld (#4378), a fragile file's lead simplified only when worth it (#4361), short-history files marked on the health file list (#4351), and a fragile file no test reaches in the code graph reads as "confirm it is tested", while one reached only through mocks still asks for tests (#4394).
+- **Security and dead code.** Empty `public_env_secret` template values (#4037) and Salesforce merge fields and regex ranges (#4468) are not secrets, and Python lazy-loader attribute tuples count as uses (#3958).
+- **Web UI and reports.** The overview's Architectural Clusters section renders (#4463), module and component file counts cover indexed files (#4376), the conformance page shows "at least N" cycles (#4666), a merge body's issue-keyed first line becomes the change title (#4469), and the welcome's dead-code card and the Commits score open their Code Health tabs (#4695).
+
+### Documentation
+
+- The CLI, config, MCP, CI and health references have one heading per command, tool or block with flags in tables, matched to the code (#4342).
+- Salesforce at the Full tier, with an Apex row in the benchmarks: 40,907 cross-file references across seven public projects at 0.999 recall (#4447).
+- An architecture page for the multi-repo workspace layer (#4509), which names the file suffixes with a comment mask (#4615), and the dead-code confidence ladder matches the analyzer (#4362).
+
+### Dependencies
+
+- `certifi` 2026.10.19, which distrusts the compromised emSign CA (#4352).
+- Security updates (#4696): GitPython 3.2.1 or newer (submodule path advisory), Pillow 13.0.0 and filelock 4.2.4 (transitive), and for the web UI `next` 15.5.28, `vite` 7.3.7, `dompurify` 3.4.17, `undici` 7.30.1, `markdown-it` 14.3.3, `fast-uri` 3.1.9 and `serialize-javascript` 7.1.4.
+
## [0.58.0] - 2026-10-20
repowise 0.58 makes the first run read like a plan. `repowise init` opens on one plan screen with the scan, an ETA and every step it will run, shows progress as a checklist of finished steps with counts and times, and ends on one finish panel that leads with `repowise serve`. A logged-in Claude Code, Codex or OpenCode is offered with its quota, agents get `--progress json`, a folder of repositories gets the same screen with `--repos`, and init, status and update share one set of mode names, with `repowise update --full` taking a fast index to a full one.
diff --git a/package-lock.json b/package-lock.json
index 51c19a838..7dadb6ed4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19370,7 +19370,7 @@
},
"packages/vscode": {
"name": "repowise",
- "version": "0.13.0",
+ "version": "0.14.0",
"license": "AGPL-3.0-or-later",
"devDependencies": {
"@repowise-dev/api-client": "*",
diff --git a/packages/cli/src/repowise/cli/__init__.py b/packages/cli/src/repowise/cli/__init__.py
index 9f9ac9209..c467a88b4 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.58.0"
+__version__ = "0.59.0"
diff --git a/packages/core/src/repowise/core/__init__.py b/packages/core/src/repowise/core/__init__.py
index 9c2a8b216..4cf1139c4 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 o
Namespace package: repowise.core is part of the repowise namespace.
"""
-__version__ = "0.58.0"
+__version__ = "0.59.0"
diff --git a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md
index 68cb01c36..8fdcf5dd4 100644
--- a/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md
+++ b/packages/core/src/repowise/core/upgrade/_data/CHANGELOG.md
@@ -10,6 +10,111 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
---
+## [0.59.0] - 2026-10-25
+
+repowise 0.59 makes the first hour with a repository a guided one. `repowise init` ends on what stood out in your code and the exact model command for this machine, `repowise serve` opens the web UI in your browser, a three-step welcome greets a newly indexed repository, and a Setup page tracks what is set up and what is left, each row with one action and a prompt for your agent. Agents record, accept and merge architectural decisions as themselves, and a post-commit prompt asks them to record the decision a commit made.
+
+Salesforce reaches the Full tier: Apex is parsed and resolved per sfdx project, and Lightning Web Components, Aura, Visualforce, flows and object and field metadata link into the same graph, with health, dead code, Extract Method and coverage. COBOL reads like a codebase: copybooks, CICS LINK and XCTL, JCL, BMS and DB2 includes resolve, paragraphs are scored for code health, and CSD-defined programs are entry points.
+
+A folder of services gets a System Map that opens on groups of services and lets you focus one service or list every route between two, plus an estate report. Cross-repo links read many more HTTP clients and servers, gateways, brokers and gRPC shapes, and every link says how it was matched. Test reach, impacted tests and coverage say what they measured, with per-function coverage and an `untested_complexity` finding ranked by CRAP score.
+
+### Highlights
+
+- **A Setup page and a welcome for new repositories** · `repowise serve` opens your browser, a three-step welcome shows what repowise found, and Setup lists what is set up and what is left, each with one action and a prompt for your agent. → /repos/:id/settings/setup
+- **Salesforce and COBOL, mapped end to end** · Apex, Lightning, Visualforce, flows and object metadata, and COBOL with copybooks, CICS, JCL and DB2 includes, link into one graph with code health, dead code and coverage. → /repos/:id/code-health
+- **A System Map for your services** · Services grouped into systems, a focus view of who calls whom, every route between two services, and links read across many more frameworks, gateways and brokers. → /workspace/system-map
+- **Agents record and accept decisions** · Your agent records the decision a commit made, accepts candidates signed as itself, and every accepted decision carries its own text. → /repos/:id/decisions
+- **Tests and coverage that say what they measured** · Per-function coverage and an `untested_complexity` finding ranked by CRAP score, mocked modules kept apart from real reach, and impacted tests that count broadcast runs on their own line. → /repos/:id/tests
+
+### By the numbers
+
+In the 4 days since 0.58.0:
+
+- **251 pull requests** merged, from **37 contributors**, **26 of them first-time contributors**
+- **1,720 files** changed, **+117,289 / -16,849** lines
+- **110 fixes, 116 features, 13 performance changes**, 4 documentation changes
+- **552 test files** touched, **207** of them new
+- **42 issues** closed
+
+Thank you to everyone who built this release with us.
+
+### Added
+
+- **`repowise init` ends on what stood out** (#4677). The finish panel shows up to four findings (health score with its band and lowest file, unreachable files and safe-to-delete findings, the top hotspot, decision candidates), leaving out anything not measured. Documentation built from the index gets an "Add a model when you want more" block with the exact `repowise generate` command for the model source found on this machine. `--progress json` adds a `findings` object and puts the model command in `next`.
+- **`repowise serve` opens the web UI in your browser** (#4679) once it answers. `--no-open` or `REPOWISE_NO_OPEN=1` turns it off, and it opens only from a terminal, never in CI.
+- **A three-step welcome for a newly indexed repository** (#4682). It opens on the repository overview once per repository per machine (or any time with `?tour=1`): what repowise measured, the agents on this machine with Connect and "Copy setup prompt", then the model and sync choices, finishing in Setup.
+- **A Setup page and a setup pill** (#4683, #4681, #4692, #4699). `/repos/:id/settings/setup` groups what is set up into Needs attention, Essentials (index, coding agent, sync) and Optional (model, coverage, shorter command output). Each row has a status, one action, its terminal command and a "Copy prompt" button, links to the settings page that holds its control, and a "Setup N of 3" pill sits in the sidebar. The page loads in about two seconds from `repowise doctor --quick` and refreshes in the background. `GET /api/repos/{id}/setup` serves the page, and its write routes accept only a loopback, same-origin request to a keyless server.
+- **Settings on their own pages** (#4694, #4683). Global settings open as Setup, Agents, Models, Sync, Server, Display and Privacy, and a repository's as Setup, General, Agents, Models, Sync and Coverage, each with a left rail and one row pattern. Repository General saves each field as you change it, rarely used options sit under Advanced, older `#group-` links open the page they meant, and turning sync off asks first.
+- **A model in two clicks** (#4678). For a repository indexed without a model, the docs-mode badge ("Write with a model") and the chat "Add a model" state open one sheet that lists a signed-in Claude Code, Codex or OpenCode, an existing key, a local Ollama model or a pasted key, with the page count and price. "Write the docs" writes the pages as `repowise generate` does.
+- **Agents record and accept decisions as themselves** (#4672, #4688, #4658). `repowise decision add --agent SLUG [--session ID]` records a decision signed by the agent, accepted once it carries an evidence reference. `decision confirm <id> --agent <slug>` accepts a candidate on by default (`decision config agent-acceptance --off` keeps acceptance for people), `decision merge` takes `--agent` and `--session`, and the signer shows in `decision show`, the web UI and CLAUDE.md. Agent-recorded decisions rank beside session-mined ones and filter with `decision list --source agent`.
+- **A prompt to record the decision a commit made** (#4689). On by default for Claude Code, a PostToolUse entry runs only when the shell command contains `git commit`, adding about 35 ms to other shell calls on Windows and a few on Linux. `repowise decision config capture-prompt --off` turns it off per repository.
+- **Decision review an agent can drive** (#4702, #4704). `repowise decision reaffirm` (CLI and REST) re-grants an accepted decision, and staleness counts from the latest person or agent grant, so a decision just accepted or reaffirmed is not `needs_review`. `confirm` refuses a decision that is already accepted, `confirm`, `reaffirm`, `merge`, `deprecate` and `dismiss` all return `results[]` under `--format json`, retired records leave the candidate queue, and the confirm command in the generated How to work line passes `--evidence` so it runs as copied.
+- **Apex as a parsed language** (#4404, #4417, #4421, #4429). Classes, interfaces, enums, triggers, methods, properties, annotations and ApexDoc are symbols. Calls, heritage and type references resolve in each sfdx project's namespace, then through declared package dependencies or a namespace prefix, with same-arity overloads chosen on exact argument types. Cross-file class recall is 99.9% to 100% across four public Salesforce projects, and 99.9% on a repository of 192 sfdx projects.
+- **Lightning, Aura, Visualforce, flows and metadata in the graph** (#4411, #4405, #4415, #4414, #4418, #4441). LWC imports, template tags and `@salesforce/apex` imports, Aura markup, controllers and helpers, Visualforce controllers, extensions, `{!expr}` members and pages, and flows with their Apex actions, subflows and screen components all link. Object and field metadata are symbols bound from SOQL, SOSL, DML and triggers, at 100% recall on two public projects, and record-triggered flows link their object.
+- **Apex health, dead code and Extract Method** (#4419, #4416, #4425, #4442). Methods, triggers and accessors are scored for complexity, classes for size and cohesion, and governor-limit work inside loops reports as `io_in_loop`. Dead code roots triggers, `@AuraEnabled`, `@InvocableMethod`, `@RestResource`, platform interfaces and every class named by Lightning, Visualforce, flow or metadata files, and its findings are never deletion-ready. Extract Method plans render typed Apex helpers. Four advisory markers list without moving scores: `apex_soql_injection`, `apex_missing_sharing`, `apex_hardcoded_id` and `apex_see_all_data`.
+- **Apex coverage and contracts** (#4413, #4446, #4407). Coverage reads `sf apex run test --code-coverage` output, legacy `sfdx` output and deploy or validation reports, with a per-test map that lets `impacted-tests` select Apex test methods. `@RestResource` classes are HTTP providers at `/services/apexrest/...`, and literal `HttpRequest` callouts are workspace consumers keyed by their Named Credential.
+- **COBOL copybooks, CICS, JCL, BMS and DB2** (#4434, #4435, #4436, #4437, #4438, #4460, #4472). Fixed format, embedded `EXEC SQL/CICS/DLI` blocks and `COPY` statements parse without losing paragraphs, including programs whose `PROCEDURE DIVISION` header comes from a copybook. `COPY` and `EXEC SQL INCLUDE` resolve to copybooks and DB2 DCLGEN members, `EXEC CICS LINK` and `XCTL` follow literal constants to their programs, `PERFORM` stays inside its program, and JCL steps link to programs and `SEND MAP` to BMS mapsets. On a public CICS sample, program-to-copybook pairs resolve 246 of 246.
+- **COBOL code health and entry points** (#4439, #4461, #4462, #4459). Paragraphs and sections are scored for complexity, nesting and size, CICS CSD definitions are reachability roots, and an unused paragraph is reported at low confidence, never as deletion-ready. The advisory `cobol_unstructured_flow` marker lists paragraphs that jump with `GO TO` or `ALTER`, and level-88 condition names sit under the data item they test.
+- **`repowise grammars fetch`** (#4471, #4433). Stages the COBOL and Apex grammars for offline machines, and `REPOWISE_GRAMMAR_DIR` points at a pre-staged cache. Grammars load per language, a grammar that cannot load prints a warning with the file count, and `repowise doctor` adds a row per downloaded grammar.
+- **A System Map for a folder of services** (#4621, #4600, #4624, #4623, #4591, #4622). `/workspace/system-map` opens on groups of services (a `group:` tag, a shared name family, then linkage) with bands that carry link counts, and draws one level at a time with a details rail and a breadcrumb. Focus a service to see its callers and dependencies side by side, pick two services to list every route between them, search with `/` or Ctrl/Cmd+K, or read the map as a list. Gateway-routed links are labelled, and a callout says when evidence is partial. `GET /api/workspace/system-graph/links` pages every link between two services (#4598).
+- **An estate report** (#4554, #4561, #4592). `repowise report estate` reads the stored workspace and reports per-repository health and churn, the riskiest seams between services and where to start, and the same report opens at `/workspace/estate` and `GET /api/workspace/estate`.
+- **Cross-repo links across many more stacks.** HTTP calls from .NET `HttpClient`, Refit and typed clients (#4538, #4550), Spring `WebClient`, `RestClient`, Feign and `@HttpExchange` (#4540, #4531), Apache and MicroProfile clients, Node `request`, `superagent` and `needle`, AngularJS `$http` and Locust (#4545). Routes from chi, fiber, gorilla/mux and Go 1.22 method patterns (#4539), Fastify, hapi, Koa and Next.js `pages/api` (#4558), Azure Functions (#4547) and Spring context paths (#4549). Gateway routes from Spring Cloud Gateway, Zuul (#4536), nginx `proxy_pass` (#4543), Ocelot and YARP (#4548). Kafka clients by declared type (#4534), JMS (#4557), Go AMQP (#4542), C# integration events (#4544) and Azure Service Bus queues and topics (#4637). gRPC from C# `AddGrpcClient`, Java `ImplBase` and grpc-js servers, with vendored proto copies serving nothing (#4541, #4529, #4537). A Python repository links to the sibling that publishes its dependency (#4585), and JS template literals with nested templates read as URLs (#4655).
+- **Services found by host name** (#4495, #4656). A workspace builds a service-name map from compose, Kubernetes, Spring and Aspire config, `.env` files and `${VAR:-default}` defaults, so a call to `http://catalog-api/...` or `${CATALOGUE_URL}` resolves with no manual `service_bases`.
+- **Every link says how it was made** (#4486, #4587, #4588, #4580, #4551). Each contract names its origin and each link its matching strategy, shown in the web views and in `get_blast_radius`, `get_change_risk` and `get_risk`. Ribbons and `repowise workspace diagnostics` lead with the share of HTTP calls linked to another service, name dangling calls and separate a service's calls to itself, and diagnostics count messaging SDK calls with unresolved topic names (#4667).
+- **Per-function coverage and `untested_complexity`** (#4326, #4330, #4335). Functions get coverage and a CRAP score, and `untested_complexity` reports untested complex functions, high from CRAP 50 and critical from 100 on measured coverage. Measured findings appear everywhere, estimated ones with `include=["unverified"]`, and `get_health(include=["untested_complexity"])` ranks functions by CRAP. Coverage findings carry an add-tests prompt naming the nearest test file and the `health-rules.json` rule that silences them.
+- **One test-reach walk with typed states** (#4329, #4338, #4341, #4337). Every file reads `reached`, `unreached`, `new`, `no_signal`, `type_only` or `mocked_only`. A Python test that swaps a module out, or a JS or TS test with a closed `vi.mock` or `jest.mock` factory, does not count as reaching it, and files of only types are never called untested.
+- **The CI action summarises every gate** (#4313, #4642). `comment: true` posts one editable PR comment covering every gate, the job summary gets a gate table, and a `verdict` output reads `pass`, `warn` or `fail`. A failing `repowise health check --format github` ends each annotation with a one-line fix and prints the exact local command that reproduces it.
+- **An opt-in health gate on agent commits** (#4371). `repowise hook health-gate install` gates Claude Code `git commit` and `git push` on `repowise health check`, naming up to five failing findings, and fails open on a crash or a 20 s overrun.
+- **Health scores name their analyzer** (#4370). `analyzer_version` sits beside scores in `repowise health` JSON, `health check`, `--trend` rows and `get_health`.
+- **`repowise doctor` checks carry an id, a level and a fix** (#4675), in table and `--format json`, and caveats show as `warn` without failing the run. `doctor --quick` skips the MCP launch and store reconciliation and answers in about two seconds (#4699).
+- **Offline and telemetry controls** (#4440, #4687, #4706). `REPOWISE_OFFLINE`, `DO_NOT_TRACK` and `REPOWISE_TELEMETRY_DISABLED` skip the release check, the highlights fetch and every agent CLI sign-in probe, so repowise makes no network call of its own. Anonymous telemetry carries fixed reason codes on failures and a host label (`claude_code`, `codex`, `cursor`, `vscode`, `ci`, `terminal`), never message text or paths, and sends nothing under a test run. The health headline names its coverage when fewer than half the code files were analysed.
+- **Callers through an interface** (#4506). `get_context(include=["callers"])` and `repowise context --include callers` list callers that reach an implementation through its interface or base class.
+- **`get_why` and `get_context` on a directory** (#4356, #4372). `get_why` builds an origin story from the directory's git history, and `get_context` reads the files under a directory with their owners, last change and hotspot.
+- **`get_overview` says why an input is unavailable** (#4649) in `next_actions.unavailable_reasons`.
+- **Language reach.** Ansible playbook and role dependency edges (#4399), Scala dataflow and Extract Method (#3580), Ruby gem public API with Ruby visibility forms (#4526), Dart closure parameters typed from the collection call (#4528), Gradle dependencies in the package inventory (#4488), a Spring Boot main as a declared entry point ranked above filename guesses (#4487), and .NET types loaded by MassTransit, NServiceBus, Azure Functions and WCF rooted for dead code (#4562).
+
+### Changed
+
+- **Settings live in `.repowise/config.yaml`** (#4676). A repository's excluded paths and wiki style are written there by the CLI, the server and the web settings form, which all read the same value.
+- **Ink primary actions** (#4680, #4692). Primary buttons are solid ink in light and dark, focus rings are neutral, and orange stays for links, selection and the brand. Every "Copy prompt" button is one quiet control that copies at once and previews the prompt on hover.
+- **A calmer docs bar** (#4698). The bar holds the view switch, Search, a "Write N pages with AI" button while structural pages remain, and one More menu for export, present and doc freshness. A page's own write or rewrite action sits under its title, and an out-of-date page shows a warning there.
+- **What's new and the welcome share one look** (#4693), open as a full-height sheet on a phone, and list connected agents first.
+- **Impacted tests count what they ran** (#4324, #4325, #4632, #4321, #4333). Tests kept only by a conftest broadcast and tests reached through long import chains still run and are counted apart (`broadcast_total`, `import_closure_total`), so a hub change's headline reads 308 tests where the run set holds 1,865. A package `__init__.py` reaches every module under it, parametrized `getfixturevalue` is followed, cache-reset autouse fixtures select nothing, and reaching tests rank by distance before the per-target cap.
+- **Coverage is stored when it maps** (#4323, #4320, #4327, #4331, #4336, #4339). `coverage add` stores nothing from a mostly unmapped report unless `--allow-partial`, and suggests the path prefix that maps it. A `.coverage` file is explained as a per-test map with the export command for per-file numbers. `update` re-reads a report written after the last ingest (`coverage.reingest_on_update`), checking in a few milliseconds, the per-test map dedupes and cuts whole tests, and the file page skips its line tint when the file changed after measurement.
+- **One answer per figure** (#4373, #4367, #4360, #4365, #4364, #4369, #4368, #4581). One file count and one symbol count across `status`, the dashboard, workspace and `get_overview`, the index's last sync time on every surface, one severity per Do next row, a band beside every headline score (Healthy from 8, Warning from 4, Alert below), and bug-fix counts that name their 6-month window beside 90-day churn.
+- **Change risk ranks against the commits before the change** (#4503), however the change is spelled, and the checklist names that sample. Code moved between files gets no health before-and-after in the headline (#4314).
+- **`repowise health --score` matches the stored score** (#4499) on an unedited file, scoring against the index's clone partners.
+- **Honest workspace evidence** (#4500, #4654, #4586, #4657). A workspace with too little cross-service evidence reads "not determined" or "partial" with reasons, a route served by two or more repositories links to none unless a host picks one (`ambiguous_provider`), a generic path such as `/health` needs a host to link, and cycle counts past 20,000 read "at least N".
+- **A workspace command that reads one repository names it** (#4559), and `update --workspace` prints each repository's stored counts (#4555).
+- **Cross-repo dead code on every surface** (#4375, #4383, #4358). The CLI, MCP, REST, the file page and Do next share one cross-repo read, and a finding another repository may use is never deletion-ready.
+- **`repowise decision list` states its total** (#4355) with `--limit` and `--all`, and decision staleness is measured from the commit that landed the decision (#4357).
+- **Clearer MCP hints** (#4366). A wrong selector id names the right one, and an argument that needs another names it in `ignored_arguments`.
+- **File classification fits the code** (#4322, #4353, #4652, #4665, #3462, #4468). A `tests/` folder inside a JS or TS `src` tree is product code, `*.test-utils.*` is test support, `tools/` is tooling at the root or under `eng/`, `hack/`, `ci/` or `dev/`, Python `_vendor/` and Salesforce static resources are vendored, and `db/*_migrations/` are migrations.
+- **Faster workspaces and walks** (#4627, #4616, #4651, #4498, #4569, #4485, #4505, #4560, #4556, #4577, #4359). The System Map lays out 300 services in 70 ms, with layout in a worker. `/api/workspace` at 207 repositories answers in 137 ms (from 1,786 ms) and `/api/workspace/graph` in 139 ms (from 4,786 ms). A no-change `update --workspace` on 12 repositories takes 2.6 to 4.5 s (from about 11 s), one changed repository rewrites only its own store and editor files, and contract extraction runs in 6 to 8 s on 8,141 files (from about 20 s). The pruned repository walk is about four times faster on Windows, persistence imports in 17 ms, and exact symbol betweenness skips symbols with no call or heritage edges, scores unchanged (#4602).
+- **Version stamps.** `HEALTH_ANALYZER_VERSION` moved from 41 to 43, so health re-scores on the next update. `PARSER_SCHEMA_VERSION` moved from 9 to 10, so the parse cache refreshes once, automatically. `SECURITY_SCANNER_VERSION` moved from 4 to 5, so the next update rescans. `STORE_FORMAT_VERSION` is unchanged and nothing needs re-indexing.
+
+### Fixed
+
+- **MCP and search.** `search_codebase` scans literal queries that contain a slash, such as `app/widget.py`, when no file page matches (#4230). `repowise mcp` started in a directory with no index runs and every tool reports "no repowise index yet" with the `repowise init --yes --no-prose` remedy (#4670). `get_execution_flows` resolves an entry point by bare name or partial id like `get_symbol` (#4674). The server instructions name `get_architecture` and `get_blast_radius` only when they are served (#4707). Concurrent Streamable HTTP sessions share one lifespan (#4398), and `get_dead_code` returns its pooled connection (#4096).
+- **Decisions.** Mining keeps the verbatim decision sentence, and every acceptance requires decision text (#4686, #4671), with `decision confirm --decision TEXT` to supply it. A mining batch cut off at `max_tokens` counts as failed (#4424), whole titles print in `decision health` (#4389), and backslashes in decision titles stay literal in CLAUDE.md and AGENTS.md (#4530).
+- **Init, update and doctor.** `update` seeds a linked worktree whose base synced past its fork point (#4673), `init --no-editor-setup` writes only inside `.repowise/` (#4496), the real default branch and a credential-free remote url are recorded and kept (#4381, #4374, #4388), large repositories update without "too many SQL variables" (#4403), the per-file git-index timeout is 120 s and set with `REPOWISE_GIT_INDEX_TIMEOUT_S` (#1837), an invalid `REPOWISE_FULL_RESCORE_INTERVAL_DAYS` warns once (#1844), a Claude Desktop registration is not a Claude Code duplicate in `doctor` (#4318), `doctor` counts a provider key saved in `.repowise/.env` (#4708), a file parsed while its grammar was missing is not cached and re-parses once the grammar is available (#4703), `--provider mock` runs without a warning (#4287), notices from an older `init` drop out of the degraded list on the next update (#4285), and `repowise serve` rebuilds a stale local web UI even when the checkout sits inside a folder named `dist` or `node_modules` (#4085).
+- **Graph.** TypeScript path aliases resolve under solution-style `tsconfig.json` references (#4519), a JS or TS bare call binds to a same-file function or an import (#4518), Dart dotted receivers and prefixed named constructors bind (#4114), Express mounts key correctly (#4571), PL/I `.inc` members are not C++ (#4553), Apex parameters parse type-first (#4429), Apex callouts trace through wrapper methods (#4532), COBOL CSD files without definitions index cleanly (#4492), COBOL compiler-option cards that start in column 1 are skipped (#4491), and cycles list from the smallest node id (#4513).
+- **Workspace.** FastAPI routes with a comment in the decorator stack (#4583), SQLite readers linking within their own repository (#4584, #4653), NATS read only beside a NATS client (#4650), service names and gateway routes read from production deploy config only (#4648), Postgres catalog tables skipped (#4187), and components cover flat repositories and count contracts outside every component (#4552, #4494).
+- **Health and coverage.** Java switch arms with comments (#4527), `brain_method` reasons with judged CCN (#4184), `churn_percentile` matching SQL `PERCENT_RANK` (#4189), on-disk coverage stamped at the commit it measured (#3935), per-test records resolving like the aggregate (#4328), nested checkouts naming changed files correctly (#4340), the Tests tab and file page sharing one reach definition (#4334), six performance findings with readable labels (#4354), schema statements kept out of N+1 (#4363), Fix first plans complete or withheld (#4378), a fragile file's lead simplified only when worth it (#4361), short-history files marked on the health file list (#4351), and a fragile file no test reaches in the code graph reads as "confirm it is tested", while one reached only through mocks still asks for tests (#4394).
+- **Security and dead code.** Empty `public_env_secret` template values (#4037) and Salesforce merge fields and regex ranges (#4468) are not secrets, and Python lazy-loader attribute tuples count as uses (#3958).
+- **Web UI and reports.** The overview's Architectural Clusters section renders (#4463), module and component file counts cover indexed files (#4376), the conformance page shows "at least N" cycles (#4666), a merge body's issue-keyed first line becomes the change title (#4469), and the welcome's dead-code card and the Commits score open their Code Health tabs (#4695).
+
+### Documentation
+
+- The CLI, config, MCP, CI and health references have one heading per command, tool or block with flags in tables, matched to the code (#4342).
+- Salesforce at the Full tier, with an Apex row in the benchmarks: 40,907 cross-file references across seven public projects at 0.999 recall (#4447).
+- An architecture page for the multi-repo workspace layer (#4509), which names the file suffixes with a comment mask (#4615), and the dead-code confidence ladder matches the analyzer (#4362).
+
+### Dependencies
+
+- `certifi` 2026.10.19, which distrusts the compromised emSign CA (#4352).
+- Security updates (#4696): GitPython 3.2.1 or newer (submodule path advisory), Pillow 13.0.0 and filelock 4.2.4 (transitive), and for the web UI `next` 15.5.28, `vite` 7.3.7, `dompurify` 3.4.17, `undici` 7.30.1, `markdown-it` 14.3.3, `fast-uri` 3.1.9 and `serialize-javascript` 7.1.4.
+
## [0.58.0] - 2026-10-20
repowise 0.58 makes the first run read like a plan. `repowise init` opens on one plan screen with the scan, an ETA and every step it will run, shows progress as a checklist of finished steps with counts and times, and ends on one finish panel that leads with `repowise serve`. A logged-in Claude Code, Codex or OpenCode is offered with its quota, agents get `--progress json`, a folder of repositories gets the same screen with `--repos`, and init, status and update share one set of mode names, with `repowise update --full` taking a fast index to a full one.
diff --git a/packages/core/src/repowise/core/upgrade/_data/release_stats.json b/packages/core/src/repowise/core/upgrade/_data/release_stats.json
index 57a7084f0..8f6aa9634 100644
--- a/packages/core/src/repowise/core/upgrade/_data/release_stats.json
+++ b/packages/core/src/repowise/core/upgrade/_data/release_stats.json
@@ -58,5 +58,25 @@
"test_files_touched": 462,
"test_files_new": 181,
"issues_closed": 58
+ },
+ "0.59.0": {
+ "since": "0.58.0",
+ "days": 4,
+ "prs": 251,
+ "contributors": 37,
+ "first_time_contributors": 26,
+ "files_changed": 1720,
+ "lines_added": 117289,
+ "lines_removed": 16849,
+ "types": {
+ "fixes": 110,
+ "features": 116,
+ "perf": 13,
+ "refactors": 0,
+ "docs": 4
+ },
+ "test_files_touched": 552,
+ "test_files_new": 207,
+ "issues_closed": 42
}
}
diff --git a/packages/core/src/repowise/core/upgrade/version.py b/packages/core/src/repowise/core/upgrade/version.py
index 7473ca0d6..50a7ad0ab 100644
--- a/packages/core/src/repowise/core/upgrade/version.py
+++ b/packages/core/src/repowise/core/upgrade/version.py
@@ -108,6 +108,14 @@ STORE_FORMAT_VERSION: int = 2
#:
#: v10: a JavaScript-family file under a ``tests/`` folder inside a ``src`` tree
#: is not a test by that folder alone, which moves its stored ``is_test``.
+#: TypeScript path aliases resolve under solution-style ``tsconfig.json``
+#: references, and a JS or TS bare call binds to a same-file function or an
+#: import. PL/I ``.inc`` members are not parsed as C++. Apex callouts trace
+#: through wrapper methods. Dart dotted receivers, prefixed named constructors
+#: and closure parameters typed from the collection call bind. A Ruby gem's
+#: public API follows Ruby visibility forms, Ansible playbooks and roles get
+#: dependency edges, Scala gets dataflow, and Postgres catalog tables are not
+#: workspace consumers.
PARSER_SCHEMA_VERSION: int = 10
#: state.json key holding the store format version that wrote the store.
diff --git a/packages/server/src/repowise/server/__init__.py b/packages/server/src/repowise/server/__init__.py
index eee75e796..40cc10178 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.58.0"
+__version__ = "0.59.0"
diff --git a/packages/vscode/CHANGELOG.md b/packages/vscode/CHANGELOG.md
index 15c4d9dd0..47f4800f9 100644
--- a/packages/vscode/CHANGELOG.md
+++ b/packages/vscode/CHANGELOG.md
@@ -7,6 +7,32 @@ is the minimum server version it checks against.
This file starts at 0.7.0. Earlier releases are described in the repository's
release history.
+## 0.14.0
+
+Code Health findings come with the rule that silences them and an agent prompt
+ready to copy, and the graph path finder lists every route between two nodes.
+
+**Requires repowise 0.47.0 or newer.** The minimum has not moved; repowise
+0.59.0 fills every view in this release.
+
+### Code Health
+
+- Findings carry the rule that silences them and an agent prompt ready to copy.
+- Untested complexity and per-function coverage (CRAP) show when a coverage
+ report is loaded.
+- Apex and COBOL findings read with proper labels, and six performance
+ findings show readable names.
+
+### Graph
+
+- The path finder lists every route between two nodes.
+- Keyboard shortcut help is rewritten.
+
+### Overview
+
+- Dashboard figures name the window they measure: 6-month bug fixes beside
+ 90-day churn.
+
## 0.13.0
The Overview opens on what to do next, Code Health gets a zoomable folder map,
diff --git a/packages/vscode/package.json b/packages/vscode/package.json
index 974e10dba..fb9c7a03f 100644
--- a/packages/vscode/package.json
+++ b/packages/vscode/package.json
@@ -2,7 +2,7 @@
"name": "repowise",
"displayName": "Repowise",
"description": "Know what your change breaks before you push. Health signals, architecture maps, and refactoring plans in your editor, and the same intelligence for your AI agent via MCP. Local and free.",
- "version": "0.13.0",
+ "version": "0.14.0",
"publisher": "repowise-dev",
"license": "AGPL-3.0-or-later",
"homepage": "https://www.repowise.dev",
diff --git a/packages/web/messages/en.json b/packages/web/messages/en.json
index e4b5d39f4..2fb87d2a9 100644
--- a/packages/web/messages/en.json
+++ b/packages/web/messages/en.json
@@ -536,7 +536,7 @@
"coChangeNoticeTitle": "Health scores changed in this release.",
"coChangeNoticeMore": "What changed",
"coChangeNoticeLess": "Hide",
- "coChangeNoticeBody": "Some files now count as a different kind of code. A tools/ folder below the repo root is product code, so it is scored; only a root-level or engineering tools/ folder stays tooling. Python _vendor/ folders and Salesforce static-resource libraries count as vendored code, and prefixed migration folders under db/ count as migrations, so they leave the score. Repos with those folders can move either way; other repos keep their scores.",
+ "coChangeNoticeBody": "Some files now count as a different kind of code. A tools/ folder below the repo root is product code, so it is scored; only a root-level or engineering tools/ folder stays tooling. Python _vendor/ folders and Salesforce static-resource libraries count as vendored code, and prefixed migration folders under db/ count as migrations, so they leave the score. A tests/ folder inside a JavaScript or TypeScript src tree is product code, so its files are scored. Apex and COBOL files are scored, Scala gets dataflow findings, and comments inside a switch block do not count against its function. Repos with these files can move either way; other repos keep their scores.",
"tabs": {
"performance": "Performance",
"findings": "Findings",
diff --git a/packages/web/messages/zh-CN.json b/packages/web/messages/zh-CN.json
index 7efed4ee4..b660bd29c 100644
--- a/packages/web/messages/zh-CN.json
+++ b/packages/web/messages/zh-CN.json
@@ -536,7 +536,7 @@
"coChangeNoticeTitle": "本次发布中健康分数发生了变化。",
"coChangeNoticeMore": "有哪些变化",
"coChangeNoticeLess": "收起",
- "coChangeNoticeBody": "部分文件的代码类型已重新归类。仓库根目录以下的 tools/ 文件夹现在算作产品代码并参与评分;只有根目录或工程用的 tools/ 文件夹仍算作工具代码。Python 的 _vendor/ 文件夹和 Salesforce 静态资源库算作第三方代码,db/ 下带前缀的迁移文件夹算作迁移代码,因此不再参与评分。含有这些文件夹的仓库分数可能升高或降低;其他仓库分数不变。",
+ "coChangeNoticeBody": "部分文件的代码类型已重新归类。仓库根目录以下的 tools/ 文件夹现在算作产品代码并参与评分;只有根目录或工程用的 tools/ 文件夹仍算作工具代码。Python 的 _vendor/ 文件夹和 Salesforce 静态资源库算作第三方代码,db/ 下带前缀的迁移文件夹算作迁移代码,因此不再参与评分。JavaScript 或 TypeScript 的 src 目录内的 tests/ 文件夹算作产品代码,其中的文件参与评分。Apex 和 COBOL 文件参与评分,Scala 提供数据流相关的问题,switch 代码块内的注释不计入所在函数的评分。含有这些文件的仓库分数可能升高或降低;其他仓库分数不变。",
"tabs": {
"performance": "性能",
"findings": "发现",
diff --git a/plugins/claude-code/.claude-plugin/plugin.json b/plugins/claude-code/.claude-plugin/plugin.json
index 0779def5c..51a6b6150 100644
--- a/plugins/claude-code/.claude-plugin/plugin.json
+++ b/plugins/claude-code/.claude-plugin/plugin.json
@@ -2,7 +2,7 @@
"name": "repowise",
"displayName": "Repowise",
"description": "Codebase intelligence for Claude Code. Indexes your codebase into five layers (Graph, Git, Docs, Decisions, Code Health) and exposes them through 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.58.0",
+ "version": "0.59.0",
"author": {
"name": "Repowise",
"email": "[email protected]",
diff --git a/plugins/claude-code/CHANGELOG.md b/plugins/claude-code/CHANGELOG.md
index f5d76a211..0da835966 100644
--- a/plugins/claude-code/CHANGELOG.md
+++ b/plugins/claude-code/CHANGELOG.md
@@ -2,6 +2,22 @@
All notable changes to the Repowise Claude Code plugin are documented here.
+## 0.59.0
+
+### Added
+- Agents record the decision a commit made by default: a `git commit` hook
+ asks for one, and `repowise decision add --agent <slug>` records it signed
+ as the agent (#4689, #4672).
+- The architectural-decisions skill and `/repowise:decision` show how an agent
+ records and accepts decisions as itself, each acceptance carrying its
+ decision text (#4688).
+
+### Changed
+- `/repowise:health` and `/repowise:coverage` explain that a `.coverage` file
+ builds only the per-test map, with the export command for per-file numbers
+ (#4320).
+- `/repowise:coverage` reads Apex coverage reports (#4413).
+
## 0.58.0
### Changed
diff --git a/plugins/codex/.codex-plugin/plugin.json b/plugins/codex/.codex-plugin/plugin.json
index 016a9f22e..bb242a1f7 100644
--- a/plugins/codex/.codex-plugin/plugin.json
+++ b/plugins/codex/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "codex",
- "version": "0.7.0",
+ "version": "0.8.0",
"description": "Repowise codebase intelligence for Codex.",
"author": {
"name": "Repowise",
diff --git a/pyproject.toml b/pyproject.toml
index 5e5949e40..8888d92c0 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "repowise"
-version = "0.58.0"
+version = "0.59.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.json
index 4cdb91cb8..f1ccf5ee9 100644
--- a/server.json
+++ b/server.json
@@ -8,12 +8,12 @@
"source": "github"
},
"websiteUrl": "https://www.repowise.dev",
- "version": "0.58.0",
+ "version": "0.59.0",
"packages": [
{
"registryType": "pypi",
"identifier": "repowise",
- "version": "0.58.0",
+ "version": "0.59.0",
"transport": {
"type": "stdio"
},
diff --git a/uv.lock b/uv.lock
index e20e3cafa..bab3dc82f 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3161,7 +3161,7 @@ wheels = [
[[package]]
name = "repowise"
-version = "0.58.0"
+version = "0.59.0"
source = { editable = "." }
dependencies = [
{ name = "aiosqlite" },