EDGEguide design
Status: draft 0.3. G0 decided by the owner on 2026-11-25 (G0 decisions); G1, the skeleton, built on 2026-11-26 (G1 as built), its hand test partly run on 2026-11-27 (a Deploy that completes is left); on the owner’s laptop on 2026-11-28 it opened views and answered a plain question unprompted. Tours (ui_tour, 0.0.2), the first part of G3, built on 2026-11-28 at the owner’s ask (Tours) and seen working on the laptop the same day, as were the past tours with Replay (0.0.3); 0.0.4 titles each past tour with the modder’s question, 0.0.5 adds Delete, and 0.0.6 knows every toolbar and … menu item and lets the modder press a step’s button in the panel (asking OK before a change); none tried yet. No release. Created on 2026-10-26 from the EDGEkit session, after EDGEchat asked for it in EDGEkit#6 and the user decided it is an extension of its own, named EDGEguide.
What EDGEguide is
An editor extension that lets Claude Code show a modder how the EDGE tools work, in the editor itself. Claude opens the right view, selects the item, points at the button with a short note, and runs the tool’s own command while the modder watches.
Example: “show me how to put my project into the game”. Claude opens REDcode’s Project view and points at Pack and Install (“this packs your project and installs it”), then runs it after the modder agrees. Next it opens EDGEdeck with the new mod selected and points at Deploy.
Today Claude does the work through the EDGE MCP servers (redcode, edgedeck, edgemat, rednode), and the modder sees only the result. They never learn where the buttons are.
| Is | A small extension with a local MCP server for the editor’s UI. It works in EDGEkit and in VS Code. It is in the EDGEkit extension pack and built into EDGEkit |
| Is not | A second way to do the work. The EDGE servers stay the way Claude reads and changes things; EDGEguide only opens, selects, points and runs the tools’ own commands. Not a VS Code agent tool (vscode.lm): Claude Code does not use those (below) |
Facts the design rests on
| Fact | Source | What it means here |
|---|---|---|
Claude Code’s VS Code extension gives the model two editor tools only, getDiagnostics and executeCode (Jupyter cells). Its MCP servers come from its own configuration (/mcp, claude mcp add, plugins). Nothing reaches tools that extensions register for VS Code’s own AI features |
Claude Code in VS Code, “The built-in IDE MCP server”, read 2026-10-26 (EDGEkit#6) | EDGEguide has to be an MCP server Claude Code connects to, added by the EDGEchat plugin |
| Claude Code signs in to a plugin’s HTTP server with OAuth | EDGEchat’s tests, “OAuth sign-in for a plugin server” | The sign-in can work as REDnode’s does |
REDnode’s server: Streamable HTTP on 127.0.0.1:41820, OAuth 2.1 with dynamic client registration and PKCE S256, Host must name the server, a browser’s Origin must be the server itself, one sign-in request at a time |
REDnode MCP docs, REDnode 0.40.1 | The pattern to copy, with the approval in an editor notification instead of the game. Not port 41820 |
Every view has a built-in <view id>.focus command (edgedeck.mods.focus, redcode.project.focus); vscode.open opens a file |
VS Code API at 1.140.0, read in upstream’s source 2026-10-26 | ui_open works from any extension |
A tree view’s reveal is on the TreeView its owner created; no command selects an item in another extension’s view |
VS Code API | ui_select needs a small command in each EDGE extension (the contract, below) |
What is visible and selected inside a view only its owner knows; open editors and tabs are public (window.tabGroups) |
VS Code API | ui_state is partly EDGEguide’s own, partly the contract |
| No extension API points at another extension’s button. A webview’s owner can mark anything inside it | VS Code API | Hints: a notification everywhere; inside a webview through its owner; in EDGEkit, an outline on any toolbar button from EDGEkit’s own code |
executeCommand runs any registered command |
VS Code API | ui_run keeps to an allow-list |
| Each editor window has its own extension host | VS Code | Only one window can listen on the port (G0 decisions) |
The tools
| Tool | Does | Asks first |
|---|---|---|
ui_open |
Opens a view or page: EDGEdeck’s Mods view or page, REDcode’s Project view, Game Assets filtered to a path, the TweakDB view on a record, EDGEmat’s Find on an item, a file | No |
ui_select |
Reveals and selects an item in a view: a mod, a project file, an asset, a record | No |
ui_tour |
A short tour, one step at a time with Back, Next and Close: each step a note of a sentence or two, with its view, file at a line, or command that changes nothing, and the button it is about. Never runs a command that changes things; the modder presses the button. Built 2026-11-28 (Tours) | No |
ui_hint |
Shows a short note at a button or menu item, such as “This is Deploy: it puts your changes into the game”. Since 2026-11-28 a tour step’s button; drawn beside the button in EDGEkit (still to build), named with its place elsewhere |
No |
ui_run |
Runs one of the EDGE extensions’ own commands, from their allow-lists | Yes, for every command that changes files or the game folder: _meta["anthropic/requiresUserInteraction"]: true, as REDnode and edgedeck-mcp do |
ui_state |
What is open and selected, so Claude knows where the modder is | No |
ui_run never takes an arbitrary VS Code command.
The contract with the EDGE extensions
Decided in G0 (2026-11-25): a key in each extension’s package.json. Each EDGE extension declares what EDGEguide may do, in its own package.json, so that it stays the owner of its views and commands:
"edgeguide": {
"views": ["edgedeck.mods"],
"reveal": "edgedeck.edgeguide.reveal",
"state": "edgedeck.edgeguide.state",
"commands": {
"edgedeck.deploy": { "changes": true, "hint": "Puts your changes into the game" },
"edgedeck.openPage": { "changes": false }
}
}
| Part | Meaning |
|---|---|
views |
The views EDGEguide may open |
reveal |
A command taking { view, id } that reveals and selects an item; returns whether it found it |
state |
A command returning what its views show and what is selected |
commands |
The allow-list for ui_run. changes: true makes the tool ask first |
EDGEguide reads it from vscode.extensions.all, which lists every installed extension’s package.json without starting it. An extension without it gets only ui_open on its views. The asks go to REDcode, EDGEdeck, EDGEmat and EDGEwave in G2, with the key’s final shape from G1.
Phases
Phases are G0 to G4, so they do not clash with the other repos’ phases.
| Phase | Builds | The test proves |
|---|---|---|
| G0 Decide | The questions below answered (done 2026-11-25) | - |
| G1 Skeleton | The extension, the MCP server and its sign-in, ui_open, ui_run with the allow-list, ui_state from public state. Built 2026-11-26 (G1 as built) |
Claude Code, signed in, opens EDGEdeck’s Mods view and runs Deploy after asking |
| G2 Select | The contract in the EDGE extensions; ui_select and the full ui_state |
“Show me my mod” selects it in EDGEdeck |
| G3 Hints | ui_hint: notifications, webview owners, and EDGEkit’s toolbar outline. Started on 2026-11-28 ahead of G2, at the owner’s ask: ui_tour with the Steps panel is built (Tours); EDGEkit’s callout and the webview owners are left |
The Pack and Install walk-through, in EDGEkit and in VS Code |
| G4 Ship | Published on Open VSX and the Marketplace, in the pack, built into EDGEkit; EDGEchat adds the server and /edge:setup checks it |
A fresh EDGEkit install, with EDGEchat set up, shows the walk-through |
G0 decisions
Proposed on 2026-10-26, with EDGEchat’s view from the plugin’s side; decided by the owner on 2026-11-25 in the EDGEchat session (EDGEguide has no session of its own yet), as proposed but for the port: 41821 has been REDnode’s since 0.57.1 (2026-11-04), for a host run from its repo or by a test (REDnode’s docs/mcp.md), so EDGEguide takes 41822, unused in the EDGE repos (checked 2026-11-25).
| Question | Decided | Why |
|---|---|---|
| The port | 41822, fixed, beside REDnode’s 41820 (the game’s) and 41821 (REDnode run from its repo or by a test, since 0.57.1). 41821 was proposed on 2026-10-26, before REDnode took it | EDGEchat’s plugin entry is then the URL alone, like rednode’s: { "type": "http", "url": "http://127.0.0.1:41822/mcp" }. EDGEchat adds it in G4 |
| Sign-in | OAuth as REDnode 0.40.1, with the approval in an editor notification. No token option | EDGEchat dropped REDnode’s token option in plugin 0.0.13 because copying tokens was the pain; Claude Code’s OAuth for a plugin HTTP server is tested |
| Which window | The focused window, else the last focused one | Every Claude Code session on the PC connects to the same URL (each window’s Claude panel, EDGEkit’s, a terminal claude), so the connection cannot name a window. A header naming the window (${VAR} in an HTTP server’s headers) is an unverified idea, and Claude Code has no per-window variable, so not relied on |
| Several windows, one port | The first window to start listens; the others connect to it over a local channel and report focus (window.state.focused). The listening window passes each call to the window chosen above |
Each window has its own extension host and only one can listen |
| The listening window closes | The others try to listen in turn; one takes over. Claude Code reconnects from /mcp without a restart |
EDGEchat’s ask |
| No editor window open | No extension host runs, so nothing listens: the connection is refused. /edge:setup reports that as “no editor open”, not as a failure |
The server cannot answer when no window runs it; EDGEchat asked for a plain answer |
ui_run’s asking |
requiresUserInteraction on every command that changes things, always. An editor notification may come on top, never instead |
The rule REDnode and edgedeck-mcp follow, and the one EDGEchat’s safety text relies on |
| The contract | The package.json key above, not each extension registering itself through an API |
EDGEguide can read every installed extension’s package.json without starting it; registering through an API needs each extension already running. The EDGE extensions’ sessions still shape the key’s fields in G2 |
| Where hints draw in EDGEkit | A command in EDGEkit’s app, edgekit.pointAt, which EDGEguide calls when it exists, and a notification otherwise. Changed 2026-11-28: EDGEguide’s Steps panel otherwise, since an extension’s notification hides after 10 s (Tours) |
EDGEkit’s side: asked of EDGEkit in G3 |
G1 as built
Built on 2026-11-26 in the EDGEkit session (the owner asked to start building), version 0.0.1, not published. 11 tests pass (npm test): the Host and Origin guards, the whole OAuth sign-in as Claude Code does it (register, authorize, the modder’s answer, token, refresh used once, denial, sign-out), the three tools through the MCP SDK’s own client, and a second window taking the port over when the first closes. The hand test in the editor (the G1 row above) ran on 2026-11-27, all but a completed Deploy (below).
| Part | File | As built |
|---|---|---|
| The server | src/server.ts |
Streamable HTTP on 127.0.0.1:41822/mcp, stateless, as REDnode’s. Every request’s Host must name it and a browser’s Origin must be it. The first window to start listens; the others try again every 10 s and take over when it closes |
| The sign-in | src/oauth.ts |
REDnode’s oauth.js (0.40.1) ported, with a modal editor notification: “client asks to use EDGEguide … Allow only if your browser shows the code ABC-1234”, Allow or Deny. Kept hashed in %APPDATA%\Edgemodders\EDGEguide\sign-ins.json, one file for every editor on the PC, so a sign-in made with EDGEkit’s window works when VS Code’s answers |
| The tools | src/tools.ts |
ui_state, ui_open, ui_run, with instructions for the assistant |
| The contract | src/contract.ts |
Read from every installed extension’s package.json (the edgeguide key), else EDGEguide’s starting contract for EDGEdeck, REDcode and EDGEwave (Defaults) |
| The editor side | src/extension.ts |
Views through <view>.focus, files through vscode.open or at a line, commands through executeCommand with no argument (answering after 20 s if the command still runs, such as one waiting for the modder’s input). A status bar item, EDGEguide: Show Status, Sign Out an Assistant… and Show Log |
Settled while building:
| Question | As built | Why |
|---|---|---|
| Asking for each command that changes things | ui_run asks for every command; commands with changes: false go through ui_open, which does not ask |
requiresUserInteraction is a tool’s _meta, the same for every call, so one tool cannot ask for some commands and not others. Two tools keep the rule: nothing that changes things runs without asking |
| An extension listing commands that are not its own | Dropped. A contract keeps only the views and commands its extension contributes in its own package.json; ui_state names what was dropped |
Any installed extension can write an edgeguide key, so without this one could put a VS Code command such as the terminal’s on the allow-list |
A command entry with no changes |
Counts as a change | A mistake then asks rather than not |
| The EDGE extensions before G2 | A starting contract inside EDGEguide, replaced whole by an extension’s own key | G1’s test needs EDGEdeck’s Deploy on the allow-list, and EDGEguide does not change the other repos. Only commands that work with no argument: a tree item’s commands take the item, so they wait for G2’s reveal |
| Which window answers | The window that listens, for now. Calls going to the focused window, through a local channel from the other windows (G0 decisions), are still to build, before G4 | One window is enough for G1’s test |
The G1 hand test: install edgeguide-0.0.1.vsix (npm run package) in EDGEkit or VS Code; claude mcp add --transport http --scope user edgeguide http://127.0.0.1:41822/mcp; in Claude Code, /mcp, edgeguide, Authenticate, compare the codes and Allow; ask Claude to show EDGEdeck’s mods, then to deploy: Claude Code asks before ui_run, and EDGEdeck deploys.
Run on 2026-11-27, partly (by script in EDGEweb’s session, at the owner’s go; EDGEkit 1.143.2 on a scratch profile, EDGEdeck 0.34.2 with a scratch library and a fake game folder, Claude Code 2.1.332, --scope local):
| Step | Seen |
|---|---|
| The status bar | “EDGEguide” with the compass; “this window answers” |
| Sign-in | /mcp needed sign-in; the browser and the editor’s modal showed the same code; Allow; “Signed in and connected to edgeguide” |
| Show EDGEdeck’s mods | ui_state, then ui_open with edgedeck.mods: the Mods view opened. Claude Code asked before both, because it ran in its manual permission mode, which asks before an MCP tool’s first call whatever the tool says. EDGEguide asks for neither. Not tried in auto mode |
| Deploy | Claude Code asked before ui_run (edgedeck.deploy), with only Yes and No. No: nothing ran. Yes: EDGEdeck’s Deploy started and stopped at its own question, because the game was running (“Quit the game first”); Cancel. After 20 s Claude said the deploy had not finished and might be waiting on the modder, as built |
| Sign-out | Sign Out an Assistant… listed Claude Code and signed it out. Its registration stays in sign-ins.json with no tokens, as built (it signs in with the same id again), and the list no longer shows it |
Left: one Deploy that completes, with the game closed. Found: Claude Code with EDGEchat also has the edgedeck server’s edgedeck_deploy, so a plain “deploy” may go there rather than through ui_run; the test named EDGEguide in each ask. Which one Claude picks (EDGEguide when the modder wants to watch it in the editor) is for G2, with EDGEchat.
On the owner’s laptop, 2026-11-28 (0.0.1, by hand): EDGEguide connected and signed in; asked to use EDGEguide, Claude opened EDGEdeck’s Mods view and said what was open. Then a plain question that did not name EDGEguide: Claude used it to walk through the steps by itself (“it works”, the owner), but its replies were long and added steps of their own, which led to Tours. The completed Deploy was not part of it.
Tours
Built on 2026-11-28 (version 0.0.2, not published), at the owner’s ask after the laptop test: Claude answered a plain “how do I” question by opening views, but its replies were long and added steps. The owner wanted a short note near the thing to look at, with a Next button that goes to the next step.
| Part | File | As built |
|---|---|---|
| The tool | src/tools.ts |
ui_tour takes 1 to 8 steps: text (up to 300 characters), at most one of view, file with line, or command (one that changes nothing, run when the step shows), and button (any listed command: pointed at, never run). It checks every step before showing any, answers at once, and tells Claude to answer in one short line. A new tour replaces the one showing |
| Where Claude learns of it | src/tools.ts, Instructions |
“When the modder asks how to do something in the EDGE tools, or where something is, show them with ui_tour instead of explaining at length: 2 to 5 steps … Then answer in one short line … The modder need not know EDGEguide’s name” |
| The buttons | src/contract.ts, buttonOf |
Each listed command’s name and place, read from its extension’s package.json: the title (not an %nls% key), the codicon ($(rocket) is “rocket”), and the first menu that has it: “the rocket button at the top of the Mods view”, “the … menu at the top of the Mods view”, else “the Command Palette”. ui_state lists them as button and where. Checked against EDGEdeck 0.34.4 and EDGEwave 0.3.0 |
| The Steps panel | src/tour.ts |
A webview view, EDGEguide: Steps, in the bottom panel: “Step 2 of 4”, the note, “Look for Deploy: the rocket button at the top of the Mods view”, and Back, Next (Done on the last) and Close. Each step opens its place after the panel opens, so the place has the focus. Claude’s text goes in with textContent only, under a strict content security policy. ui_state’s tour says the step showing, or done or closed |
| In a file | src/tour.ts |
The note also shows at the end of its line, in italics, with the line highlighted |
| Every menu item (0.0.6) | src/contract.ts, readContracts |
Until an extension has its own key, its contract also takes every command in the title bars and … menus of its listed views (view/title, which pass no argument), so a tour can point at any of them: 26 of EDGEdeck 0.34.4’s, where the default listed 7. One the default does not describe counts as a change. A command both on the bar and in the menu is pointed at on the bar. The owner’s find, 2026-11-28: Claude could only describe “Save as new loadout…” |
| Pressing a step’s button (0.0.6) | src/tour.ts, src/extension.ts (pressButton), src/contract.ts (pressAsks) |
The panel shows a copy of the step’s button, with its own name, “or press it here”. Pressing it is the same as choosing it in its menu: checked against the contracts again, then, for one that may change things, a modal “Deploy?” with its hint and OK; it runs only after OK. One whose title ends in “…” asks for more itself (a name box, Escape cancels), so it gets no second question. Claude never presses it: only the panel’s button runs it. The owner’s rule, 2026-11-28: “it’s ok for the tour step to make an actual change if it prompts the user for the change and the user clicks ok, and then sees the change in the tools” |
| Past tours (0.0.3) | src/tour.ts, src/tools.ts |
ui_tour takes a title: since 0.0.4 (the owner’s ask) the modder’s question, in their words when short, else a short summary, since only Claude sees the question. Cut at a word near 80 characters (tourTitle); no title gives the first note. While a tour shows, its title is on a line of its own above “Step 2 of 4”. The last 10 tours are kept in the extension’s global state, so every window and a restart see them. When no tour shows, the panel lists them numbered, newest first, with the step count, Replay and (0.0.5) Delete; a replay shows the tour from step 1 and leaves the list’s order as it is, and Delete takes the tour off the list at once. Both find the tour by when it was first shown, not its place, so a list another window changed meanwhile cannot lose the wrong one. The owner’s asks, 2026-11-28 |
On the owner’s laptop, 2026-11-28 (0.0.2, by hand): the tour showed in the Steps panel, a tab in the bottom panel, and went through to its last step (“looks good”, the owner). Back and Close were not reported. The owner then asked for the past tours with Replay (0.0.3), which “works well” (the same day), then for each past tour to be named by the question asked (0.0.4).
Why a panel, not a toast (read in Code - OSS 1.143.1, 2026-11-28): notificationsToasts.ts hides a toast after 10 s (Info; 12 s Warning, 15 s Error) unless the mouse is over it or it is sticky, and mainThreadMessageService.ts makes an extension’s toast sticky only for vscode.github-authentication and vscode.microsoft-authentication. A tour step’s toast would go, with its Next button, before the modder had done the step.
No command opens a view’s … menu or any toolbar menu (searched in Code - OSS 1.143.1’s workbench/browser/parts/views and actions, 2026-11-28), so in VS Code a tour cannot open the menu for the modder; the panel’s copy of the button stands in for it.
Left for G3: in EDGEkit, opening the … menu with the item marked, and the note drawn beside the button itself (edgekit.pointAt, in EDGEkit’s workbench: the button found from the step’s menu, view and title; the activity bar icon or the view’s header otherwise), with the Steps panel kept for VS Code; inside webviews, through their owners.
Releasing
There is no release yet. When there is, these steps go with it:
| Step | What |
|---|---|
| Changelog | CHANGELOG.md, a section per release headed ## <version> (<YYYY-MM-DD>) under ## Unreleased, with a <!-- nexus summary if it goes to Nexus Mods (the Edgemodders conventions, as in EDGEkit) |
| README | The status line names the version and date |
| Wiki | Right after the release, in the same piece of work, the session that released brings EDGEweb’s pages about EDGEguide up to that version (the Edgemodders convention, EDGEguide#1): a section docs/wiki/edgeguide/ once there is one, EDGEguide’s rows on the shared wiki pages, and the pages that mention it (grep -rln EDGEguide docs in ../EDGEweb). The changelog section is the list of what changed. Set each changed page’s reviewed date, follow EDGEweb’s CLAUDE.md (Wiki), pull first, commit and push to main as CyberbuildsAI. Never before the release: the wiki describes what modders can install |
| Dashboard | EDGEguide’s entry in EDGEweb’s status.js (this repo’s CLAUDE.md, Dashboard) |