@johnz4021/illuminate 0.1.0 → 0.2.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
 
@@ -93,12 +101,22 @@ can tie it to the code. Screenshots are saved under `.illuminate/screens/`.
93
101
  routes, which tables are written). Claude explores with Read/Grep/Glob only and returns the map in a fixed format.
94
102
  2. **Check every claim.** `check()` re-reads each cited line, verifies calls, requests and imports against code facts,
95
103
  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.
104
+ still unconfirmed is shown with a "?", never hidden. The check proves each part is real code; it doesn't prove the
105
+ map covers everything, and each gap shows the search behind it so you can judge that yourself.
97
106
  3. **Explore.** The viewer draws areas, steps, labeled arrows and red dashed gaps, with a walkthrough Claude wrote. Select
98
107
  anything and ask, as a conversation: replies are short and lead with the answer, and the map does the explaining (each reply
99
108
  lights up what it's about). Claude explores further when the map isn't enough; what it finds is drawn only if it
100
109
  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.
110
+ 4. **See a change before it's made.** Ask how something would change ("how would we send this right away?") and the
111
+ map shows the code as it is, checked, with the proposal on top in violet: new boxes and arrows dashed, what would
112
+ go struck through. Nothing is edited. After the change is built, reopen the map: illuminate checks the code and
113
+ marks which proposed parts are now there. Ask what someone sees or goes through, and the map is drawn as a
114
+ user flow instead: screens, actions and choices from left to right, with the code behind each one a click away.
115
+ 5. **See what a change did.** Ask "what did you just change?" or "what did the last commit do?" and the map shows
116
+ the code as it is now, with what is new in green, what is different in amber and what was deleted struck through
117
+ in red. illuminate works those out itself by comparing with a commit (the last one, unless you name another), and
118
+ 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.
119
+ 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
120
  Nothing changes until you approve. Then illuminate writes exactly that change (refusing if the files changed since),
103
121
  re-checks the map, and offers Undo.
104
122