# Command Palette

The command palette is the fastest way to navigate Polyscope and perform actions. Open it with **&#8984;K**.

![Command palette](/images/docs/cmd.png)

## Searching

Start typing to fuzzy-search across all commands and workspaces. The palette searches command names, workspace names, and branch names.

## Available Commands

### Workspace Navigation

- **Switch to workspace** — Jump to any workspace across all repositories

### Current Workspace Actions

- **Merge to main** — Merge changes to the base branch
- **Create pull request** — Push and open a pull request
- **Pull latest from base** — Pull the latest changes from the base branch into the workspace
- **Start Autopilot** — Open the Autopilot dialog to define a goal and generate stories
- **Stop agent** — Interrupt the currently running agent
- **Go to file** — Fuzzy search for any file in the workspace (also available with **&#8984;P**)
- **Open in IDE** — Open the workspace directory in your editor
- **Open in terminal** — Open the workspace in your configured terminal app
- **Open in Finder** — Reveal the workspace folder in your file manager (desktop only; shows as "Open in Explorer" on Windows)
- **Create/open polyscope.json** — Edit the project configuration
- **Delete workspace** — Remove the current workspace and its clone

### Global Commands

- **New workspace** — Open the repo picker and create a new workspace
- **Create from issue** — Create a workspace linked to a GitHub issue
- **Create from PR** — Create a workspace from an existing pull request
- **Add repository** — Add a new repository to Polyscope
- **Toggle terminal** — Show or hide the terminal panel
- **Toggle sidebar** — Show or hide the repositories sidebar
- **Toggle diff panel** — Show or hide the changes panel
- **Open settings** — Open Polyscope settings

## Slash Commands

You can type slash commands directly in the prompt input to perform quick actions:

- **/clear** — Start a new conversation, clearing the agent's context. Linked workspaces are preserved so you don't lose your workspace connections.

## Keyboard Shortcuts

| Shortcut | Action |
|----------|--------|
| **&#8984;K** | Open command palette |
| **&#8984;N** | New workspace (opens repo picker) |
| **&#8984;1-9** | Switch to workspace by position |
| **&#8984;Tab** | Cycle to next workspace |
| **&#8679;&#8984;Tab** | Cycle to previous workspace |
| **&#8984;D** | Toggle diff panel |
| **&#8984;B** | Toggle sidebar |
| **&#8984;P** | Quick file opener |
| **&#8984;`** | Toggle terminal |
| **&#8679;&#8984;M** | Merge / Pull request |
| **&#8984;,** | Open settings |
| **&#8984;+** / **&#8984;-** | Zoom in / out |
| **&#8984;0** | Reset zoom |
| Hold **&#8984;** | Show shortcut overlay |
