@johnz4021/illuminate 0.1.0 → 0.3.0

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
@@ -12,12 +12,20 @@ illuminate runs as an MCP server in Claude Code: your own Claude Code session do
12
12
  sign-in, and illuminate checks every claim and draws the map. Questions you ask on the map go to that same session,
13
13
  and the answers come back to the map.
14
14
 
15
+ In Claude Code (2.1.275 or later), in any repo:
16
+
15
17
  ```
16
- npm i && npm run build # once, in this checkout
17
- claude mcp add --scope user illuminate -- node "$PWD/packages/server/bin/illuminate.mjs" channel
18
+ /plugin install illuminate --marketplace johnz4021/codemap
19
+ ```
20
+
21
+ That installs the illuminate MCP server (`npx -y @johnz4021/illuminate`, Node 20.19 or later) and the `/illuminate`
22
+ skill. Without the plugin: `claude mcp add --scope user illuminate -- npx -y @johnz4021/illuminate channel`.
18
23
 
19
- cd /path/to/your/repo
20
- claude
24
+ From a checkout of this repo instead (for working on illuminate):
25
+
26
+ ```
27
+ npm i && npm run build
28
+ claude mcp add --scope user illuminate -- node "$PWD/packages/server/bin/illuminate.mjs" channel
21
29
  ```
22
30
 
23
31
  Ask something like "how does sign-up work? Draw me a map." Claude calls `illuminate_map`, the map opens in your
@@ -26,8 +34,8 @@ after two minutes Claude Code moves it to the background and gives you your term
26
34
  it wakes the session with your question. The session has to stay open for that. Every 25 minutes or so the call
27
35
  returns and Claude quietly starts another (Claude Code drops a call that has been quiet for 30 minutes); after about
28
36
  two hours with no questions, illuminate stops listening. If a question on the map says Claude
29
- Code isn't listening, tell Claude "listen to illuminate". To skip approving each illuminate tool call, allow
30
- `mcp__illuminate__*` when Claude Code asks.
37
+ Code isn't listening, tell Claude "listen to illuminate". To skip approving each illuminate tool call, allow its
38
+ tools when Claude Code asks (`mcp__plugin_illuminate_illuminate__*` from the plugin, `mcp__illuminate__*` otherwise).
31
39
 
32
40
  Moving long tool calls to the background is on by default; if you've turned it off (`CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=0`),
33
41
  listening holds your terminal until you ask on the map. Starting Claude Code with
@@ -65,7 +73,7 @@ To put `illuminate` on your PATH: `npm link -w @illuminate/server`.
65
73
 
66
74
  ### From a coding agent
67
75
 
68
- `integrations/skills/illuminate/SKILL.md` is a skill in the standard `SKILL.md` format. Copy the `illuminate` folder into
76
+ `plugin/skills/illuminate/SKILL.md` is a skill in the standard `SKILL.md` format (the plugin installs it in Claude Code). Copy the `illuminate` folder into
69
77
  `.claude/skills/` (Claude Code), `.agents/skills/` (Codex, Gemini CLI) or `.cursor/skills/` (Cursor). Your agent then
70
78
  runs illuminate when you ask how something works, and hands you the link.
71
79
 
@@ -81,10 +89,12 @@ is sent anywhere. Useful for UI work and demos.
81
89
  ### Screens on the map
82
90
 
83
91
  When a flow starts from something you can see (a button, a form), Claude can put a picture of that screen on the box,
84
- with the button marked. It decides case by case; backend-only maps get none. If your app is already running on
85
- localhost, or the repo has an HTML file, illuminate screenshots it with the Chrome you already have, in a clean profile
86
- (pages behind a login show their login page, and Claude then falls back). Otherwise Claude can show an image file from
87
- the repo or a rough sketch of a component. illuminate never starts your app, and a screen is only shown if the checker
92
+ with the button marked. It decides case by case; backend-only maps get none. The usual picture is a wireframe of the
93
+ whole page, drawn from the code: its parts (top bar, sidebar, main area) with the one the step is about marked.
94
+ Nothing has to be running for that. illuminate checks that each part really belongs to the page and that its text is
95
+ in the code; where the parts sit is Claude's reading, so the wireframe says it is approximate. If your app is already
96
+ running on localhost, or the repo has an HTML file, illuminate can screenshot it instead with the Chrome you already
97
+ have, in a clean profile (pages behind a login show their login page, and Claude then falls back). illuminate never starts your app, and a screen is only shown if the checker
88
98
  can tie it to the code. Screenshots are saved under `.illuminate/screens/`.
89
99
 
90
100
  ## How it works
@@ -93,12 +103,22 @@ can tie it to the code. Screenshots are saved under `.illuminate/screens/`.
93
103
  routes, which tables are written). Claude explores with Read/Grep/Glob only and returns the map in a fixed format.
94
104
  2. **Check every claim.** `check()` re-reads each cited line, verifies calls, requests and imports against code facts,
95
105
  and re-runs the search behind every "nothing does X". Claude gets up to two rounds to fix what didn't hold. Anything
96
- still unconfirmed is shown with a "?", never hidden.
106
+ still unconfirmed is shown with a "?", never hidden. The check proves each part is real code; it doesn't prove the
107
+ map covers everything, and each gap shows the search behind it so you can judge that yourself.
97
108
  3. **Explore.** The viewer draws areas, steps, labeled arrows and red dashed gaps, with a walkthrough Claude wrote. Select
98
109
  anything and ask, as a conversation: replies are short and lead with the answer, and the map does the explaining (each reply
99
110
  lights up what it's about). Claude explores further when the map isn't enough; what it finds is drawn only if it
100
111
  passes the checker.
101
- 4. **Fix from the map.** Ask for a change and Claude proposes a fix, drawn as a green dashed arrow next to the exact diff.
112
+ 4. **See a change before it's made.** Ask how something would change ("how would we send this right away?") and the
113
+ map shows the code as it is, checked, with the proposal on top in violet: new boxes and arrows dashed, what would
114
+ go struck through. Nothing is edited. After the change is built, reopen the map: illuminate checks the code and
115
+ marks which proposed parts are now there. Ask what someone sees or goes through, and the map is drawn as a
116
+ user flow instead: screens, actions and choices from left to right, with the code behind each one a click away.
117
+ 5. **See what a change did.** Ask "what did you just change?" or "what did the last commit do?" and the map shows
118
+ the code as it is now, with what is new in green, what is different in amber and what was deleted struck through
119
+ in red. illuminate works those out itself by comparing with a commit (the last one, unless you name another), and
120
+ a changed box shows its lines. A switch on the map shows the before, the after (each with the other side faded to a shadow), or both. It compares with a commit, so work you hadn't committed before the task counts too.
121
+ 6. **Fix from the map.** Ask for a change and Claude proposes a fix, drawn as a green dashed arrow next to the exact diff.
102
122
  Nothing changes until you approve. Then illuminate writes exactly that change (refusing if the files changed since),
103
123
  re-checks the map, and offers Undo.
104
124