diff --git a/.github/social-preview-template.txt b/.github/social-preview-template.txt
index a4e437c..cb8f07a 100644
--- a/.github/social-preview-template.txt
+++ b/.github/social-preview-template.txt
@@ -7,7 +7,7 @@
┃ ┃
┃ ┃
┃ ┌─────────────────────────────────────────┐ ┃
-┃ │ Devscope: B · Low risk · Easy │ ┃
+┃ │ Local Git context for coding agents │ ┃
┃ │ onboarding · 0.06s ⚡ │ ┃
┃ └─────────────────────────────────────────┘ ┃
┃ ┃
@@ -40,7 +40,7 @@ TEXT LAYOUT:
3. Sample Output Box
- Position: Center-bottom (480px from top)
- - Content: "Devscope: B · Low risk · Easy onboarding · 0.06s ⚡"
+ - Content: "Local Git history · private · read-only · fast"
- Font: Monospace, ~38px
- Color: #79c0ff (light blue)
- Background: Semi-transparent box (#1a1f3a with 60% opacity)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f66addf..d8ec2e6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,16 @@
# Changelog
+## 0.4.0 — 2026-12-05
+
+- Added five local, read-only MCP tools for agent access to fix history, ownership,
+ co-change facts, import blast radius and changed-file context.
+- Added portable Claude Code, Cursor and Codex MCP configuration plus an opt-in,
+ fail-open working-tree hook.
+- Removed predictive risk ranking and the legacy `file_risk` MCP tool after the
+ preregistered P3b evaluation found no improvement over ranking by file size.
+- Published the complete negative result, paired per-unit data and methodology.
+- Requires Python 3.11 or newer and tests Python 3.13 in CI.
+
## 0.3.0 — 2026-12-04
- Guided `devscope demo` with labelled synthetic data, no Git or repository required.
diff --git a/README.md b/README.md
index 3aa6597..6764c5a 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Devscope
-**Review the right files first—with evidence.**
+**Give coding agents local Git-history context.**
A local CLI and GitHub Action that help you focus a code review, understand an
unfamiliar repository, and share readable reports with your team.
@@ -9,8 +9,22 @@ unfamiliar repository, and share readable reports with your team.
[](https://pypi.org/project/devscope/)
[](https://github.com/EhsanAzish80/Devscope/blob/main/LICENSE)
+## The result, honestly
+
+We tried to beat “review the biggest file first” with Git history across 44
+repositories. We could not. In the preregistered final test, Devscope v2 differed
+from size-only file-level Recall@3 by **+0.003** on held-out repositories, with a
+95% confidence interval of **-0.037 to +0.051**. Co-change history also did not
+predict fewer later fixes when the usual partner was included.
+
+Devscope therefore makes **no predictive risk claim**. Version 0.4.0 is a free,
+open-source way to give coding agents inspectable facts: traced fix history,
+recent owners, files that often changed together and import blast radius.
+[Read the result](docs/negative-result.md) or inspect the
+[methodology and raw paired data](docs/methodology.md).
+
```bash
-pipx install devscope==0.3.0
+pipx install devscope==0.4.0
devscope demo
```
@@ -18,15 +32,13 @@ The demo needs no repository or Git. Its sample paths, history and coverage are
clearly labelled synthetic. Python 3.11+ is required; Git is needed for real PR
reviews. Already installed? Run `pipx upgrade devscope`.
-
-
## Choose your starting point
| I want to… | Start here | What you get |
| --- | --- | --- |
| Understand a repository | [Explore a repository](#explore-a-repository) | Modules, entry-point candidates, test locations and declared commands |
-| Focus a code review | [Review a PR](#review-a-pr) | Changed files ranked with size, history, co-change and optional coverage evidence |
-| Give an AI coding agent local history | [Connect an MCP client](#connect-an-mcp-client) | Six read-only tools for changes, co-change, fix facts, owners and blast radius |
+| Focus a code review | [Review a PR](#review-a-pr) | Changed files with configured findings and optional coverage evidence |
+| Give an AI coding agent local history | [Connect an MCP client](#connect-an-mcp-client) | Five read-only tools for changes, co-change facts, fix history, owners and blast radius |
| Share results with reviewers | [Add to GitHub Actions](#add-to-github-actions) | An updated PR comment and downloadable HTML/JSON/Markdown reports |
## Explore a repository
@@ -63,9 +75,7 @@ devscope demo --format html --output demo.html
Open the HTML file in your browser. It includes search, evidence and complete
report data, with no external scripts or fonts.
-
-
-[Download the standalone sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.3.0/devscope-demo.html)
+[Download the standalone sample HTML](https://github.com/EhsanAzish80/Devscope/releases/download/v0.4.0/devscope-demo.html)
· [View its structured data](https://github.com/EhsanAzish80/Devscope/blob/main/docs/assets/demo.json)
## Connect an MCP client
@@ -79,21 +89,23 @@ devscope mcp install --client claude-code --path .
```
The installer preserves existing configuration and refuses to replace an existing
-`devscope` entry. The server exposes six read-only tools: `review_changes`,
-`cochange`, `file_risk`, `fix_history`, `owners` and `blast_radius`. It reads local
+`devscope` entry. The server exposes five read-only tools: `review_changes`,
+`cochange`, `fix_history`, `owners` and `blast_radius`. It reads local
Git history without running repository code or using the network. A cold history
index builds in the background; retry the tool when it returns `index_building`.
-The `file_risk` compatibility name currently returns fix SHAs, churn and owners,
-not a risk score. Codex reads `.codex/config.toml` only after the project is trusted.
+Co-change output is historical context, not a warning or prediction. Codex reads
+`.codex/config.toml` only after the project is trusted.
For a lightweight pre-commit or agent hook, check all working-tree files without blocking by
default:
```bash
devscope check . --working-tree --format claude-stop
-devscope check . --working-tree --format claude-stop --strict # opt-in blocking mode
```
+The hook is opt-in, advisory and fail-open. Its neutral message says that two files
+often changed together and asks the agent to check whether that history is relevant.
+
## Add to GitHub Actions
Save this as `.github/workflows/devscope.yml`. This starts with **advisory** review;
@@ -113,10 +125,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- - uses: EhsanAzish80/devscope-action@v1.3.0
+ - uses: EhsanAzish80/devscope-action@v1.4.0
with:
review: 'true'
- devscope-version: '0.3.0'
+ devscope-version: '0.4.0'
```
The Action updates one bot comment and uploads HTML, JSON and Markdown artifacts.
@@ -146,7 +158,7 @@ comment is skipped. For summary-only reporting, use the [read-only CLI workflow]
[All commands](https://github.com/EhsanAzish80/Devscope/blob/main/docs/commands.md) · [Changelog](https://github.com/EhsanAzish80/Devscope/blob/main/CHANGELOG.md)
Without pipx, use a virtual environment: `python3 -m venv .venv`, activate it, then
-`python -m pip install devscope==0.3.0`. On macOS/Linux activation is
+`python -m pip install devscope==0.4.0`. On macOS/Linux activation is
`source .venv/bin/activate`; on Windows PowerShell use `.venv\Scripts\Activate.ps1`.
For development: `uv sync --all-extras`, `uv run pytest`, `uv run ruff check src/devscope tests`
diff --git a/docs/assets/demo.html b/docs/assets/demo.html
index 1afcf88..6f8e1aa 100644
--- a/docs/assets/demo.html
+++ b/docs/assets/demo.html
@@ -1,8 +1,8 @@