Sidekick
by abaz1d
README.md
<div align="center">
<img src="assets/logo.svg" alt="Sidekick logo" width="84" height="84" />
<h1>Sidekick</h1>
<p>Lightweight Antigravity IDE-style right-sidebar developer workbench running directly inside Antigravity Desktop's side panel as an MCP App.</p>
<p>
<img src="docs/screenshots/09_welcome_workspaces.webp" alt="Sidekick — Startup Welcome & Multi-Workspace Launcher in Antigravity Desktop" />
</p>
</div>
## Screenshots
<table>
<tr>
<td width="50%" valign="top">
<strong>Source Control & Commit Graph</strong><br />
<img src="docs/screenshots/13_source_control_git.webp" alt="Source Control, Diff Editor, and Commit Graph" />
</td>
<td width="50%" valign="top">
<strong>Database Monitor & SQL Grid</strong><br />
<img src="docs/screenshots/04_database_sql.webp" alt="Database Monitor with PostgreSQL query runner and editable grid" />
</td>
</tr>
<tr>
<td width="50%" valign="top">
<strong>API Client (<code>.bru</code> Collections)</strong><br />
<img src="docs/screenshots/10_api_client.webp" alt="Postman-style API Client backed by Bruno .bru files" />
</td>
<td width="50%" valign="top">
<strong>Services, Listening Ports & Docker</strong><br />
<img src="docs/screenshots/03_services_ports.webp" alt="Tasks, Listening TCP Ports, and Docker Containers" />
</td>
</tr>
<tr>
<td width="50%" valign="top">
<strong>SSH Hosts, Snippets & Terminal</strong><br />
<img src="docs/screenshots/06_ssh_privacy_off.webp" alt="SSH Hosts, Command Snippets, and SSH Terminal" />
</td>
<td width="50%" valign="top">
<strong>WireGuard VPN Manager (macOS)</strong><br />
<img src="docs/screenshots/07_vpn_privacy_off.webp" alt="WireGuard VPN tunnel manager" />
</td>
</tr>
</table>
<details>
<summary>More screenshots: Explorer & Editor, Search, Terminal Drawer, Privacy Mode & macOS Menu Bar VPN</summary>
| View | Preview |
| :--- | :--- |
| **Explorer & Editor** — File tree, Monaco editor & GitLens blame |  |
| **Search** — Streaming ripgrep across workspace |  |
| **Terminal Drawer** — Split PTY terminal with Explorer |  |
| **Privacy Mode (SSH)** — Share-screen masking for hosts & snippets |  |
| **Privacy Mode (VPN)** — Share-screen masking for keys & endpoints |  |
| **macOS Menu Bar VPN** — Native menu bar status & quick toggle |  |
</details>
## Features
- **Right-aligned Sidebar + Activity Bar** matching Antigravity IDE's Dark and Light themes (`Explorer`, `Search`, `Source Control`, `SSH Hosts & SFTP`, `WireGuard VPN`, `API Client`, `Database Monitor`, `Services & Tasks`, and `Folder Switcher`).
- **File Explorer, Code Editor & Rich Preview**: Lazy multi-root directory tree, git status indicators, Quick Open (`Cmd/Ctrl+P`), in-pane code editing in Monaco — the editor inside VS Code / Antigravity IDE — colored by the IDE's own TextMate grammars and Dark/Light Modern themes (unpacked on the first file open, so startup stays light), with GitLens line blame, and built-in Rich Preview (`Cmd/Ctrl+Shift+V`) for **Markdown**, **Mermaid** (`flowchart`/`graph` & `sequenceDiagram`), **SVG** (sanitized), and **Images** (zoom & background switcher).
- **Explorer (VS Code parity)**: multi-select (`Cmd/Ctrl` / `Shift`-click), full keyboard navigation, type-to-find with filter, inline New/Rename boxes with validation, Cut/Copy/Paste, drag & drop to move (`Alt/Option` to copy) with folder auto-expand, drop or paste files from your file manager, drag files out to your desktop/file manager, Delete to Trash with Undo/Redo (and permanent delete), compact folders, file nesting, dimmed gitignored files, `files.exclude`, sticky scroll, active indent guides, auto reveal, Open Editors, Outline (lightweight, regex-based), Timeline (git history per file), Select for Compare / Compare with Saved, and syntax-error decorations for JS/TS/JSX/CSS/JSON/Svelte/Vue (esbuild, no language server).
- **Search (VS Code parity)**: streaming ripgrep (the copy bundled with Antigravity/VS Code, or one on PATH; a built-in engine otherwise), Match Case (`Aa`), Whole Word (`ab`), Regex (`.*` / PCRE2), Preserve Case (`AB`), multi-line queries, query and replace history (`↑`/`↓`), files to include/exclude, Search Only in Open Editors, Use Exclude Settings and Ignore Files, Toggle Search Details, list or tree view, virtualized results, keyboard navigation, F4/Shift+F4 through results, matches highlighted in the editor, Replace / Replace All (`Cmd/Ctrl+Shift+H`) with inline diff preview and Undo, Search Editor, and a result-count badge.
- **Source Control (VS Code + GitLens, light)**: side-by-side / inline diff editor with syntax highlighting and Stage / Unstage / Revert per block, quick-diff gutter bars, merge-conflict highlights with Accept Current / Incoming / Both CodeLens, multi-select changes with a context menu, commit box with `Cmd/Ctrl+Enter` commit & split menu (`Commit`, `Commit & Push`, `Commit & Sync`, `Commit (Amend)`), Undo Last Commit, commit graph with lanes, outgoing markers, paging, search and inline file lists, graph actions (checkout, branch/tag here, cherry-pick, revert, copy), stashes, merge / rebase / rename / delete branch, commit message history (`↑`/`↓`) and length hint, ahead/behind in the status bar, blame hover card, and Open on Remote / Copy Remote URL (GitLab, GitHub, Bitbucket). ✨ writes the message locally from the diff and never touches the chat (if you ask the agent for one yourself, it can use `sidekick_commit_context` → `sidekick_set_commit_message`); secrets files are never sent, unusual files (patches, `.DS_Store`, build output, >1 MB) are flagged, the language follows the repo history, and an issue reference is taken from the branch name.
- **SSH Hosts, SFTP & Integrated Terminal**: Manage `~/.ssh/config` and saved hosts (stored in the OS credential store: macOS Keychain, Linux `secret-tool`, Windows DPAPI), dual-pane SFTP file browser, command snippets, and split PTY Terminal Drawer (`Ctrl+\``).
- Hosts: tags, Recent list, jump host (ProxyJump, also for SFTP), keepalive, agent forwarding, startup command, session logs, automatic reconnect, and SSH, Mosh, Telnet or serial (GNU `screen`) sessions.
- Port forwarding: local, remote and dynamic (SOCKS) rules per host, started and stopped from the sidebar (`ssh -N`).
- Known hosts page (fingerprints, remove a key with a backup), SSH key generation and import into `~/.ssh`.
- SFTP: edit remote text files in the editor (refuses to overwrite a file changed on the server), permissions (chmod), and cancellable transfers.
- Import from SSH config, JSON, CSV, PuTTY `.reg` and MobaXterm `.mxtsessions`; export to JSON, CSV or SSH config (passwords are never exported).
- **WireGuard VPN Manager** *(macOS only)*: Import/edit `.conf`/`.zip` tunnels (stored in macOS Keychain), toggle connections, and control macOS Menu Bar VPN status.
- **API Client**: Postman-style UI backed by workspace Bruno (`.bru`) collections, Postman v2.1 & cURL import/export, `.env` variable interpolation, and secret masking.
- **Database Monitor**: Auto-detects workspace `.env` and SQLite files, supports **PostgreSQL**, **MySQL / MariaDB**, **Redis**, and **SQLite**, with table/key explorer, schema viewer, sortable paginated preview, pgAdmin-style data editing (inline cell edit, row form for insert/edit/duplicate, multi-row delete with confirmation — all keyed by primary key), column filters, CSV/JSON export, and query runner.
- **Services, Ports, Docker & Tasks** (`Cmd/Ctrl+Shift+Y`): Run `package.json`, `Makefile`, and `mise.toml` scripts straight in the Terminal Drawer, inspect/filter/terminate listening TCP ports (`lsof` / `ss` / `netstat`), and monitor/start/stop/restart/tail logs for Docker containers.
- **Agent MCP Tools & Skills**: Exposes `open_sidekick`, `sidekick_db_inspect` (read-only), `sidekick_api_client`, `sidekick_vpn_status`, and `sidekick_ssh_list`, paired with `/sk`, `sidekick`, `sidekick-db`, `sidekick-api`, and `sidekick-ops` skills.
## Installation
1. Ensure **Node.js 26+** is installed (or use [`mise`](https://mise.jdx.dev/) with the included `mise.toml`).
2. Install from **anywhere** on macOS, Linux, or Windows:
- **Clone anywhere and run the one-command setup** (installs production dependencies, builds `dist/app.html`, and links Sidekick into Antigravity automatically — uses a directory junction on Windows without requiring admin rights):
```bash
git clone https://github.com/abaz1d/antigravity-sidekick.git /any/path/to/sidekick
cd /any/path/to/sidekick
node scripts/install.mjs # or: npm run setup
```
- **One-line remote install** (clones into `~/.local/share/sidekick` or `%LOCALAPPDATA%\sidekick` by default; override `SIDEKICK_DIR` to install into any custom folder):
```bash
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/abaz1d/antigravity-sidekick/main/install.sh | bash
```
```powershell
# Windows (PowerShell)
irm https://raw.githubusercontent.com/abaz1d/antigravity-sidekick/main/install.ps1 | iex
```
- **Project-only install** (registers inside `<workspace>/.agents/plugins/sidekick` instead of global):
```bash
node scripts/install.mjs --project /path/to/workspace
```
- **Or via Antigravity CLI / Plugin Manager**: `agy plugin install /any/path/to/sidekick` (or one-click via Antigravity Desktop's Plugin Manager once published to the Marketplace).
3. Even without running setup manually, `bin/sidekick-server.mjs` resolves its location dynamically (`${PLUGIN_ROOT}`) and automatically runs `npm install --omit=dev` and builds `dist/app.html` on first launch.
- On **macOS**, the optional WireGuard Menu Bar helper (`src/macos/sidekick-vpn-menubar.swift`) is compiled automatically via `/usr/bin/swiftc` the first time you enable it (`xcode-select --install` required if `swiftc` is not installed).
- On **Linux**, `node-pty` compiles natively during `npm install` (requires `python3`, `make`, and a C/C++ compiler).
## Platform Support
Requires **Node.js 26+**.
- **macOS (Apple Silicon & Intel)**: Full support (including Keychain and WireGuard VPN / Menu Bar helper; `xcode-select --install` only needed if rebuilding the Swift menu bar binary).
- **Linux**: (`node-pty` ships no Linux prebuilds, so `npm install` compiles it: needs `python3`, `make`, and a C/C++ compiler.) Explorer, Search, Git, SSH/SFTP, Terminal, API Client, Database Monitor, and Services/Ports (`ss`/`lsof`). Saved passwords use `secret-tool` (`libsecret-tools`). WireGuard VPN UI is macOS-only.
- **Windows**: Explorer, Search, Git, SSH/SFTP, Terminal (`pwsh`/`powershell`/`cmd`), API Client, Database Monitor, and Services/Ports (`netstat`). Saved passwords use Windows DPAPI. WireGuard VPN UI is macOS-only.
Platform requirements found in the code:
- **SQLite** uses the `sqlite3` command-line tool (macOS `/usr/bin/sqlite3`; on Linux and Windows it must be on `PATH`).
- **Linux**: the folder picker needs `zenity`, "Open / Reveal" needs `xdg-open`, and file watching is not recursive, so edits in deep subfolders may show up only after up to 30 s or when the panel regains focus.
- **Docker** panel needs the `docker` CLI on `PATH` (all platforms).
Platform behavior is covered by unit tests that mock `darwin`/`linux`/`win32`.
## Security Notes
- **Agent tools are scoped.** Only `open_sidekick`, `sidekick_db_inspect`, `sidekick_api_client`, `sidekick_vpn_status`, and `sidekick_ssh_list` are visible to the model; every other tool is UI-only.
- **`sidekick_db_inspect` is read-only at the database level**, not just by keyword check: PostgreSQL and MySQL queries run inside a `READ ONLY` transaction that is always rolled back, SQLite opens a separate read-only handle, and functions that act outside a transaction (`pg_terminate_backend`, `dblink`, `GET_LOCK`, `SLEEP`, ...) as well as `SELECT ... INTO` and row locks are refused.
- **API secrets stay on known hosts.** When the agent sends a request with `sidekick_api_client`, secret variables (all `.env` values and `vars:secret` from Bruno environments) are only filled in if the target host already appears in the workspace's `.bru` requests or environment URLs (plus loopback), and redirects are not followed. Requests you send from the API Client UI are not restricted.
- **SSH host keys.** The terminal uses your `ssh` binary with `StrictHostKeyChecking=accept-new`. SFTP checks the same `~/.ssh/known_hosts` before sending any password or key: unknown hosts are trusted on first use and recorded, and a changed key is refused.
- **SVG preview** is rendered as an `<img>`, so scripts and event handlers inside an SVG never run.
- **WireGuard root helper (macOS).** The first time you activate a WireGuard tunnel, Sidekick asks for your administrator password once and installs `/usr/local/libexec/sidekick-wg-root` plus a sudoers rule `/etc/sudoers.d/sidekick-wireguard` (`%admin ALL=(root) NOPASSWD:` that helper only). After that, tunnels toggle without a prompt. The helper only runs `wg-quick up|down` on a copied config and rejects `PreUp`/`PostUp`/`PreDown`/`PostDown`/`SaveConfig` and any unknown directive, but any process running as an admin user can use it to bring a validated tunnel up or down. Remove it with **Remove helper** in a WireGuard profile, or manually:
```bash
sudo rm -f /etc/sudoers.d/sidekick-wireguard /usr/local/libexec/sidekick-wg-root
```
## Development
```bash
npm install
npm run build
npm test
```
`npm test` keeps secrets in memory (`test/setup.mjs`), so it never writes to your OS credential store and runs the same on macOS, Linux, and Windows CI. Set `SIDEKICK_TEST_REAL_KEYCHAIN=1` to test against the real OS credential store.
The server rebuilds `dist/app.html` on startup whenever it is missing or older than `src/ui/` (for example after `git pull`).
## Credits
The UI mirrors VS Code / Antigravity IDE (Default Dark Modern / Light Modern) and bundles VS Code's own icon fonts, regenerated with `scripts/gen-icon-fonts.py` and `scripts/gen-file-icons.mjs`:
- [Codicons](https://github.com/microsoft/vscode-codicons) — © Microsoft Corporation, CC BY 4.0 (subset to the glyphs Sidekick uses).
- [Symbols](https://github.com/miguelsolorio/vscode-symbols) file & folder icons — © Miguel Solorio, MIT, the file icon theme bundled with Antigravity IDE (regenerate with `scripts/gen-file-icons.mjs`).
## Contributing & License
- See [`CONTRIBUTING.md`](CONTRIBUTING.md) for development setup and pull request guidelines.
- See [`SECURITY.md`](SECURITY.md) for reporting security vulnerabilities and reviewing Sidekick's security boundaries.
- Licensed under the [MIT License](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues