Repository navigation
feat(vscode): run loopfinder and show its viewer inside VS Code - #1
Merged
Merged
Conversation
- vscode/: commands to set up, build, show the loops and copy the request for the AI agent. The CLI runs as a child process on the editor's own Node (ELECTRON_RUN_AS_NODE), so no Node install is needed. - Init and build are off in an untrusted workspace (building runs the workspace's scripts); showing a built graph works anywhere. - The viewer is public/ as is, served into a webview under a nonce CSP. app.js gains an optional window.loopfinderHost: the graph arrives by message, a rebuilt graph replaces it (keeping the flow and a loop of the same name), paths open in the editor, and auto theme follows the editor. In a browser nothing changes. - scripts/prepare.js copies the CLI and licenses into vscode/core/ for `vsce package`; the copies and .vsix are ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015bPmcKMG3u2dhXdAKAM4sK
This was referenced Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A VS Code extension in
vscode/: the same CLI and the same viewer, inside the editor.Commands: set up the workspace, build the graph, show the loops, copy the request for the AI agent.
No Node install needed: the CLI runs as a child process on the editor's own Node (
ELECTRON_RUN_AS_NODE); traced scripts inherit it.Workspace Trust: set up and build are off in an untrusted workspace, since building runs the workspace's scripts. The command bodies check it too (
enablementonly greys out menus). Showing a graph that is already built works anywhere.Viewer:
public/as is, in a webview with a nonce CSP.app.jsgains an optionalwindow.loopfinderHost(vscode/media/host.js):fetch('flow.json')In a browser, nothing changes.
Packaging:
npm run packageinvscode/copies the CLI and the licenses intovscode/core/and runsvsce package. The copies and the.vsixare ignored.Checked
npm test: 26 passacquireVsCodeApi: graph handoff, no CSP violations, theme follows the body class, rebuild keeps the picked loop, path click postsopenvsce package: 93 KBNot yet checked: build being off in Restricted Mode. Not published to the Marketplace / Open VSX yet.
🤖 Generated with Claude Code
https://claude.ai/code/session_015bPmcKMG3u2dhXdAKAM4sK