You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**`explain_file` MCP tool** — deep-dive tool for a single file. Given a relative path, returns three sections: `## Signatures` (from the indexed context file), `## Imports` (resolved relative dependencies from the live source file), and `## Callers` (reverse import lookup across all indexed files). Gracefully returns partial output if the file is not on disk.
13
+
-**`list_modules` MCP tool** — returns a markdown table listing all top-level module directories found in the context file, sorted by token count descending, with columns: `Module | Files | Tokens`. Helps agents pick the right `module` arg for `read_context`.
14
+
-**Strategy-aware health scorer** — `src/health/scorer.js` and `--health` display now read `gen-context.config.json` and adjust the low-reduction penalty threshold by strategy:
-`hot-cold` / `per-module`: reduction penalty disabled — intentionally small hot outputs are not penalised.
17
+
-`hot-cold` only: adds a `context-cold.md` freshness check (`strategyFreshnessDays`). If the cold context file is >1 day stale, up to 10 pts are deducted.
18
+
-**New `--health` output fields** — `strategy:` line always visible; `cold freshness:` line shown for `hot-cold` strategy.
19
+
-**`test/integration/mcp-v14.test.js`** — 13 integration tests covering `explain_file` and `list_modules`:
20
+
- 7-tool count verification
21
+
- Signature extraction from index
22
+
- Imports and Callers sections (file on disk)
23
+
- Graceful error for unknown path, missing arg, no context file
24
+
- Token count and table structure in `list_modules`
25
+
- Multi-call session combining both new tools
26
+
-**`test/integration/observability.test.js`** — 12 new unit tests for strategy-aware scorer:
27
+
-`strategy` field in all return objects
28
+
- No reduction penalty for `hot-cold` and `per-module`
29
+
- Reduction penalty still applied for `full`
30
+
-`strategyFreshnessDays` null/populated correctly
31
+
- Grade A for a fresh, untracked project
32
+
33
+
### Fixed
34
+
- Health scorer: projects with **zero tracking history** (brand-new or never run with `--track`) are no longer penalised for "0% reduction". `tokenReductionPct` is only set when `totalRuns > 0`.
35
+
36
+
### Changed
37
+
- MCP server now exposes **7 tools** (was 5 before v1.3, 5 in v1.3). `tools/list` assertion updated in `mcp-server.test.js`.
38
+
-`gen-context.js` VERSION bumped to `1.4.0`
39
+
- MCP server `SERVER_INFO.version` bumped to `1.4.0`
-**`--diff` CLI flag** — generates context only for files changed in the current git working tree (`git diff HEAD --name-only`). Useful in CI and pre-review workflows where you only want signatures for files you've touched.
0 commit comments