On this page
Slash commands
Slash commands
#Type / in pig's terminal editor to search the commands available in the current session. This page lists the built-in commands in the current pig release.
Extensions, prompt templates, and skills can add commands. The command menu in pig is therefore the exact reference for the resources loaded in your session.
Models and settings
#| Command | Description |
|---|---|
/settings | Open settings |
/theme [name] | Switch theme; without arguments opens a picker that previews each theme, or specify dark, light, labra, or a custom theme name |
/model [provider/model] | Select a model |
/thinking [level] | Set the thinking level |
/scoped-models | Enable or disable models for Ctrl+P cycling; Ctrl+S saves the selection as enabledModels |
/login [provider] | Add provider authentication |
/logout | Remove provider authentication |
/skills | List the skills the model can use and where each came from |
/tools | List the tools the model can call, built-in and loaded |
/hooks | List the hooks that loaded and what they added |
Sessions and context
#| Command | Description |
|---|---|
/new | Start a new session |
/resume | Switch to another saved session (Tab toggles this folder or all, Ctrl+S sorts, Ctrl+N shows named sessions only, Ctrl+R renames) |
/name [name] | Set the session display name, or show the current name when omitted |
/session | Show current session information and statistics |
/tree | Navigate the session tree |
/fork | Create a new session from an earlier user message |
/label [name] | Name the current point so /tree can find it; without a name, clears the label |
/clone | Duplicate the current session at its current position |
/compact [instructions] | Compact the current context, optionally with custom instructions |
/import <path> | Import a JSONL session into this project's session directory (after confirmation) and resume it |
Export and share
#| Command | Description |
|---|---|
/copy | Copy the last assistant message |
/export [path] | Export the session as HTML (default) or, with a .jsonl path, as JSONL; /export md writes Markdown and /export pr a pull-request description |
/share | Upload the session as HTML to a secret GitHub gist with gh and print a viewer link |
/bug [description] | Prepare a bug report for the pig developers: upload it to pigagent.dev/api/bug-reports, or export it as pig-bug-report-<id>.zip in the current directory |
Review a session before exporting or sharing it. Sessions can contain prompts, tool arguments, command output, file contents, and credentials exposed during the conversation.
Runtime and project
#| Command | Description | |||
|---|---|---|---|---|
| `/web [start\ | stop\ | status\ | restart] [port]` | Start, check status, restart, or stop the browser Web UI server & daemon |
/doctor | Inspect system health: PHP runtime, binaries, and auth tokens | |||
/diff [--staged] | Show git working tree changes | |||
/commit | Review changes and commit with a Conventional Commits message | |||
/trust | Save a project trust decision for future pig processes | |||
/reload | Reload keybindings, extensions, skills, templates, themes, and context files | |||
/help | Show the keys and commands | |||
/hotkeys | Show active keyboard shortcuts | |||
/changelog | Show changelog entries | |||
/quit | Quit pig (/exit also works) |
Extension Commands
#The following commands are registered by the extensions that ship with pig. /mcp and /llama come from built-in extensions; the others are available once pig update --extensions has copied their extension into ~/.pig/agent/extensions/:
| Command | Extension | Description | ||||
|---|---|---|---|---|---|---|
| `/mcp [login\ | logout\ | reconnect | builtin:mcp | Open the MCP server manager, or run one action. See MCP Servers | ||
/llama | builtin:llama.cpp | Manage models on the configured llama.cpp router | ||||
| `/antigravity.accounts [rotate\ | switch | email>\ | remove | email>]` | pig-antigravityList, switch, or remove linked Antigravity Google accounts | | |
/antigravity.usage | pig-antigravity | Query account quota and remaining usage | ||||
/antigravity.models | pig-antigravity | List Antigravity runtime models and their remaining pool fraction | ||||
/antigravity.doctor | pig-antigravity | Check the Antigravity token, project, and accounts | ||||
/antigravity.refresh | pig-antigravity | Force refresh and synchronize the remote model catalog | ||||
/antigravity.image <prompt> | pig-antigravity | Generate images (default model gemini-3.1-flash-image) and save locally | ||||
/search <query> | pig-web-search | Perform web search via DuckDuckGo | ||||
| `/computer [status\ | screenshot\ | app | pig-computer | Inspect and drive the macOS desktop. See Computer Use | ||
| `/android [status\ | connect | screenshot]` | pig-android-use | Inspect and drive an Android device over ADB | ||
| `/vless [start\ | stop\ | status\ | restart]` | pig-vless | Open, close, restart or inspect the VLESS inbound for a phone; bare /vless is status with the share link. See VLESS |
Commands added by resources
#- Extensions can register commands with their own arguments and completion behavior.
- Each prompt template is available under its template name.
- Skills are available as
/skill:namewhen skill commands are enabled.
Use /reload after adding or changing a discovered command resource. See Extensions, Prompt Templates, and Skills for their loading and naming rules.