feat: standalone CLI mode for browser-based Pixel Agents#63
Open
TimpiaAI wants to merge 1 commit intopablodelucca:mainfrom
Open
feat: standalone CLI mode for browser-based Pixel Agents#63TimpiaAI wants to merge 1 commit intopablodelucca:mainfrom
TimpiaAI wants to merge 1 commit intopablodelucca:mainfrom
Conversation
Replace the VS Code-only requirement with an optional standalone CLI that serves the pixel office in a browser and auto-detects running Claude Code sessions by scanning ~/.claude/projects/ for new JSONL files. New files: - cli/main.ts — CLI entry point (--port flag, auto-open browser, SIGINT) - cli/server.ts — HTTP static server + WebSocket on /ws - cli/cliOrchestrator.ts — replaces PixelAgentsViewProvider for CLI mode - cli/sessionScanner.ts — polls ~/.claude/projects/ every 2s for new sessions - cli/persistence.ts — JSON file storage for seats/settings - cli/vscode-stub.ts — minimal vscode shim for CLI builds Modified: - vscodeApi.ts — runtime detection: VS Code API or WebSocket bridge - BottomToolbar.tsx — shows hint instead of "+ Agent" in CLI mode - SettingsModal.tsx — browser file handling for export/import, hides "Open Sessions Folder" in CLI mode - esbuild.js — --cli flag builds cli/main.ts → dist/cli.js with vscode alias - package.json — ws dep, build:cli/start scripts, bin entry - types.ts — terminalRef now optional (CLI agents have no terminal) Usage: npm run build:cli && npm run build:webview && npm start Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
~/.claude/projects/for new JSONL files every 2sUsage
New files
cli/main.tscli/server.tscli/cliOrchestrator.tscli/sessionScanner.tscli/persistence.tscli/vscode-stub.tsModified files
webview-ui/src/vscodeApi.ts— runtime detection: VS Code API or WebSocket bridge with auto-reconnectwebview-ui/src/components/BottomToolbar.tsx— shows hint instead of "+ Agent" in CLI modewebview-ui/src/components/SettingsModal.tsx— browser file handling for export/import layoutesbuild.js—--cliflag for CLI build targetpackage.json—wsdependency,build:cli/startscripts,binentrysrc/types.ts—terminalRefnow optional (CLI agents have no terminal)Test plan
npm run build— VS Code extension still builds cleannode dist/cli.js— server starts, browser opens pixel officeclaudein a separate terminal — character appears in the office🤖 Generated with Claude Code