Skip to content

Veyra Studio: a Claude Code panel beside the editor - #68

Merged
fcopensource merged 1 commit into
mainfrom
claude-code-panel
Nov 28, 2026
Merged

fcopensource merged 1 commit into
mainfrom
claude-code-panel

Conversation

@fcopensource

Copy link
Copy Markdown
Owner

A native Claude Code panel on the right of the editor. Open it with the sparkle in the right-hand strip, or Ctrl+Alt+C (⌥⌘C). It runs the user's own claude CLI in its documented streaming JSON mode, the same way Anthropic's Agent SDK drives it.

  • Streaming answers, with each step Claude takes shown as a line you can click.
  • Permission cards for edits and commands: Allow, Always allow, Deny.
  • Modes (Ask before edits, Edit automatically, Plan only) and a model picker.
  • Ask about the selection, or Fix with Claude.
  • Stop and Esc, changed files reloaded in the editor, history per folder with --resume.
  • Install and Sign in cards. Veyra never handles Claude credentials.

Tests: 3 Rust, 13 protocol and 6 interface tests. The full Playwright suite passes (58).

🤖 Generated with Claude Code

A native chat panel on the right (the sparkle in the right-hand strip, or Ctrl+Alt+C / ⌥⌘C) that runs the user's own Claude Code CLI in its documented streaming JSON mode, the way Anthropic's Agent SDK drives it:
claude -p --input-format stream-json --output-format stream-json --verbose --include-partial-messages --permission-prompt-tool=stdio

- Streaming Markdown answers with Copy on code blocks; each step Claude takes (read, search, run, edit) as a line you can click to open the file.
- Permission cards for edits and commands, with the diff or the command, answered through the CLI's can_use_tool control requests: Allow, Always allow / Allow all edits, Deny.
- Ask before edits / Edit automatically / Plan only (changed live with set_permission_mode); Default / Opus / Sonnet / Haiku.
- The editor's selection (or open file) is attached as a chip; "Ask Claude About This" (⌥⌘K) and "Fix with Claude" in the editor's context menu and the command palette, the latter sending the editor's problems.
- Stop (or Esc) interrupts the turn; files Claude changed are reloaded in the editor; conversations are saved per folder and continued with --resume.
- Not installed: an install card using Anthropic's official installer. Not signed in: a Sign in card that opens Claude Code in a terminal for /login. Veyra never handles Claude credentials.

Rust (src-tauri/src/claude.rs) only carries JSON lines between the CLI and the panel; every flag value from the panel is checked so it can't become another flag. Tests: 3 Rust unit tests, 13 protocol tests against recorded Agent SDK message shapes, and 6 interface tests with a stand-in CLI. The full Playwright suite passes (58).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fcopensource
fcopensource merged commit 474404d into main Nov 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants