PTYrig: A terminal harness for VS CodeGive your CLI/TUI tool a dedicated place in VS Code with a few settings. Run Claude Code, Codex, lazygit, or any terminal application in dedicated editor tabs. Keep sessions running while you hide or show them. InstallAvailable as a Preview for macOS Apple Silicon, with VS Code 1.95.3 or newer. Install from the VS Code Marketplace or run:
Install the terminal tools you want to use separately. ConfigureAdd one of these examples to VS Code's Claude Code
Each New Session starts an independent Claude Code process. Tabs appear as
Choose an agent with fzfChoose between Claude Code, Codex, and Gemini CLI each time you start
a session. This example uses a POSIX shell (macOS/Linux) and requires
Select LazygitKeep one Git interface running and hide/show it as needed:
New Session reveals the existing Lazygit session instead of starting another.
Its title is simply Shortcuts
Use Control on macOS too. Change either binding in Preferences: Open Keyboard
Shortcuts by searching for Hide/Show keeps your applications running. Closing a session tab stops its process, and an application exiting closes its tab. Reloading or closing VS Code stops sessions. PTYrig uses editor tabs and leaves the bottom terminal panel alone. Commands run with your user permissions and require Workspace Trust. More information |