layermap 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  [![npm downloads](https://img.shields.io/npm/dm/layermap)](https://www.npmjs.com/package/layermap)
10
10
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/coffeecoproject/layermap/blob/main/LICENSE)
11
11
 
12
- **LayerMap tells your coding agent what calls a function and what changing it affects, up to the HTTP routes, in one call.** With at most 15 requests, agents found **97.9%** of affected endpoints with LayerMap vs 58.8% without; with no limit, Claude Code cost **32% less** ([benchmark](https://github.com/coffeecoproject/layermap/blob/main/docs/benchmark.md)).
12
+ **LayerMap tells your coding agent what calls a function and what changing it affects, up to the HTTP routes, in one call.** With at most 15 requests, agents found **97.9%** of affected endpoints with LayerMap vs 58.8% without; with no limit, Claude Code cost **33% less** in the 0.1.5 re-run ([benchmark](https://github.com/coffeecoproject/layermap/blob/main/docs/benchmark.md)).
13
13
 
14
14
  **Resolved by each language's compiler or type checker, not guessed from names by tree-sitter:** calls through interfaces, base classes, templates and decorators link as the compiler links them, for TypeScript, JavaScript, Go, Python and Java.
15
15
 
@@ -66,19 +66,19 @@ projects, graded blind against truth sets cross-checked with each language's own
66
66
  | Endpoints found, at most 15 requests (`gpt-5.5`, 6 tasks × 3 runs) | **97.9%** | 58.8% |
67
67
  | Used unprompted by Claude Code / Codex (plugin installed, two rounds) | **12 of 12 / 12 of 12** | — |
68
68
  | Endpoints found, no request limit (Claude Code / Codex, 0.1.5) | 100% / 100% | 99.0% / 100% |
69
- | Claude Code cost, no request limit | **−33%** | |
69
+ | Claude Code cost, no request limit (0.1.5 re-run; first round −32%) | **−33%** | |
70
70
  | Codex input tokens, no request limit (current defaults) | +14% | |
71
71
  | Time, no request limit (Claude Code / Codex) | +25% / +20% | |
72
72
  | Failing tests the change check lists (Go / Python, functions made to fail) | **100% / 83–88%** | — |
73
- | Ripple tasks: runs leaving other features' tests passing (Codex / Claude Code, 4 tasks × 3 runs) | **11 of 12 / 7 of 12** | 3 of 12 / 4 of 12 |
73
+ | Ripple tasks: runs leaving other features' tests passing (Codex / Claude Code, 4 tasks × 6 runs with, × 3 without) | **23 of 24** / 11 of 24 | 3 of 12 / 4 of 12 |
74
74
 
75
75
  With a tight budget, the map finds far more of the affected code, at about 24% more tokens. With
76
76
  no limit, both agents find nearly everything either way. Claude Code costs a third less with the
77
77
  map. Codex's current defaults already search lean, so the map no longer saves it tokens; at
78
78
  reasoning effort max, in the first round, it saved 55%. Agents with the map explore more widely,
79
79
  which takes longer. On requests whose obvious change breaks another feature, the change check
80
- helped Codex keep to the requested feature; for Claude Code the gap could be chance, and both took
81
- longer. These are small samples on tasks written by LayerMap's authors.
80
+ helped Codex keep to the requested feature. Claude Code saw which tests of other features it had
81
+ changed but often kept the broader change on purpose, so it showed no clear difference. These are small samples on tasks written by LayerMap's authors.
82
82
  The [report](https://github.com/coffeecoproject/layermap/blob/main/docs/benchmark.md) has the
83
83
  setup, the published tasks and the limitations.
84
84
 
@@ -136,8 +136,8 @@ Claude Code asks once before each map tool runs in a project. Choose "don't ask
136
136
  **After an edit.** When the agent changes code, `project_check_changes` lists what the change
137
137
  affects: the routes, jobs and commands that reach the changed functions, what the map cannot see,
138
138
  and the existing tests related to the change. When the changed code serves several areas (packages
139
- or modules), it names each one with its tests, so a change meant for one feature does not quietly
140
- change the others. It never writes or runs tests. In Claude Code the
139
+ or modules), it names each one with its tests, and it names the existing tests the diff rewrote, so
140
+ a change meant for one feature does not quietly change the others. It never writes or runs tests. In Claude Code the
141
141
  plugin asks the agent once, before it finishes, to run this check if it edited code in the repository
142
142
  and has not checked since (changes another session makes in the same work tree do not count); set
143
143
  `LAYERMAP_STOP_CHECK=0` to turn that off. Codex and DeepSeek Harness are told to run it.