layermap 0.1.5 → 0.1.6

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
@@ -17,13 +17,15 @@
17
17
  <p align="center"><sub>A real Claude Code session on <a href="https://github.com/miniflux/v2">Miniflux</a>, replayed: one map call finds every endpoint, then the agent confirms them in source.</sub></p>
18
18
 
19
19
  A layered map of your codebase for coding agents. LayerMap gives Claude Code, Codex, DeepSeek
20
- Harness and other MCP clients three read-only tools that answer, in one call, what an agent otherwise works out with
21
- dozens of searches:
20
+ Harness and other MCP clients read-only tools that answer, in one call, what an agent otherwise works out
21
+ with dozens of searches:
22
22
 
23
23
  - **What calls this, and what does changing it affect?** Callers traced up to 8 levels, to the
24
24
  HTTP routes, handlers, jobs and commands they start from.
25
25
  - **What does it call?** Callees down to 8 levels.
26
26
  - **What is here?** Modules, each file's declarations, and every usage of a symbol.
27
+ - **What did my edit affect?** The routes, jobs and commands the uncommitted changes reach, and the
28
+ existing tests related to them.
27
29
 
28
30
  It maps **TypeScript, JavaScript, Go, Python and Java** with each language's own compiler, so calls
29
31
  through interfaces, base classes, templates and decorators resolve as the compiler resolves them,
@@ -67,6 +69,7 @@ projects, graded blind against truth sets cross-checked with each language's own
67
69
  | Claude Code cost, no request limit | **−33%** | |
68
70
  | Codex input tokens, no request limit (current defaults) | +14% | |
69
71
  | Time, no request limit (Claude Code / Codex) | +25% / +20% | |
72
+ | Failing tests the change check lists (Go / Python, functions made to fail) | **100% / 83–88%** | — |
70
73
 
71
74
  With a tight budget, the map finds far more of the affected code, at about 24% more tokens. With
72
75
  no limit, both agents find nearly everything either way. Claude Code costs a third less with the
@@ -127,6 +130,12 @@ when the map helps. On first launch, npx downloads the pinned `layermap` package
127
130
  Claude Code asks once before each map tool runs in a project. Choose "don't ask again", or run
128
131
  `npx layermap allow claude` to allow the plugin's read-only tools everywhere.
129
132
 
133
+ **After an edit.** When the agent changes code, `project_check_changes` lists what the change
134
+ 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
136
+ plugin asks the agent once, before it finishes, to run this check if it has not; set
137
+ `LAYERMAP_STOP_CHECK=0` to turn that off. Codex and DeepSeek Harness are told to run it.
138
+
130
139
  **Without plugins:** run `npx layermap setup claude` or `npx layermap setup codex`. Setup does three
131
140
  things:
132
141
 
@@ -159,6 +168,7 @@ nothing anywhere ([privacy](https://github.com/coffeecoproject/layermap/blob/mai
159
168
  | `project_explore_map` | A directory, a file, or a declaration's callers and callees (`direction` INCOMING or OUTGOING, `depth` up to 8). |
160
169
  | `project_search_map` | Find declarations by words in their names, paths or documentation. |
161
170
  | `project_find_references` | Every usage of a declaration, compiled from current source. |
171
+ | `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. |
162
172
 
163
173
  The same from the command line:
164
174
 
@@ -166,6 +176,7 @@ The same from the command line:
166
176
  npx layermap explore src/api/users.ts --name createUser --direction INCOMING --depth 8
167
177
  npx layermap search "invoice total"
168
178
  npx layermap refs src/billing/tax.ts calculateTax
179
+ npx layermap check --base main
169
180
  ```
170
181
 
171
182
  ## FAQ