layermap 0.1.7 → 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,16 +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 × 6 runs with, × 3 without) | **23 of 24** / 11 of 24 | 3 of 12 / 4 of 12 |
73
74
 
74
75
  With a tight budget, the map finds far more of the affected code, at about 24% more tokens. With
75
76
  no limit, both agents find nearly everything either way. Claude Code costs a third less with the
76
77
  map. Codex's current defaults already search lean, so the map no longer saves it tokens; at
77
78
  reasoning effort max, in the first round, it saved 55%. Agents with the map explore more widely,
78
- which takes longer. These are small samples on tasks written by LayerMap's authors.
79
+ which takes longer. On requests whose obvious change breaks another feature, the change check
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.
79
82
  The [report](https://github.com/coffeecoproject/layermap/blob/main/docs/benchmark.md) has the
80
83
  setup, the published tasks and the limitations.
81
84
 
@@ -132,7 +135,9 @@ Claude Code asks once before each map tool runs in a project. Choose "don't ask
132
135
 
133
136
  **After an edit.** When the agent changes code, `project_check_changes` lists what the change
134
137
  affects: the routes, jobs and commands that reach the changed functions, what the map cannot see,
135
- and the existing tests related to the change. It never writes or runs tests. In Claude Code the
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, 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
136
141
  plugin asks the agent once, before it finishes, to run this check if it edited code in the repository
137
142
  and has not checked since (changes another session makes in the same work tree do not count); set
138
143
  `LAYERMAP_STOP_CHECK=0` to turn that off. Codex and DeepSeek Harness are told to run it.
@@ -169,7 +174,7 @@ nothing anywhere ([privacy](https://github.com/coffeecoproject/layermap/blob/mai
169
174
  | `project_explore_map` | A directory, a file, or a declaration's callers and callees (`direction` INCOMING or OUTGOING, `depth` up to 8). |
170
175
  | `project_search_map` | Find declarations by words in their names, paths or documentation. |
171
176
  | `project_find_references` | Every usage of a declaration, compiled from current source. |
172
- | `project_check_changes` | What the uncommitted changes (or those since `base`) affect: changed and removed declarations, the routes, jobs and commands they reach, what to check by hand, and related tests. |
177
+ | `project_check_changes` | What the uncommitted changes (or those since `base`) affect: changed and removed declarations, the routes, jobs and commands they reach, the areas that share the changed code, what to check by hand, and related tests. |
173
178
 
174
179
  The same from the command line:
175
180
 
Binary file
Binary file
Binary file
Binary file