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

#
CommandDescription
/settingsOpen 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-modelsEnable or disable models for Ctrl+P cycling; Ctrl+S saves the selection as enabledModels
/login [provider]Add provider authentication
/logoutRemove provider authentication
/skillsList the skills the model can use and where each came from
/toolsList the tools the model can call, built-in and loaded
/hooksList the hooks that loaded and what they added

Sessions and context

#
CommandDescription
/newStart a new session
/resumeSwitch 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
/sessionShow current session information and statistics
/treeNavigate the session tree
/forkCreate 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
/cloneDuplicate 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

#
CommandDescription
/copyCopy 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
/shareUpload 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

#
CommandDescription
`/web [start\stop\status\restart] [port]`Start, check status, restart, or stop the browser Web UI server & daemon
/doctorInspect system health: PHP runtime, binaries, and auth tokens
/diff [--staged]Show git working tree changes
/commitReview changes and commit with a Conventional Commits message
/trustSave a project trust decision for future pig processes
/reloadReload keybindings, extensions, skills, templates, themes, and context files
/helpShow the keys and commands
/hotkeysShow active keyboard shortcuts
/changelogShow changelog entries
/quitQuit 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/:

CommandExtensionDescription
`/mcp [login\logout\reconnect ]`builtin:mcpOpen the MCP server manager, or run one action. See MCP Servers
/llamabuiltin:llama.cppManage models on the configured llama.cpp router
`/antigravity.accounts [rotate\switch email>\remove email>]`pig-antigravityList, switch, or remove linked Antigravity Google accounts
/antigravity.usagepig-antigravityQuery account quota and remaining usage
/antigravity.modelspig-antigravityList Antigravity runtime models and their remaining pool fraction
/antigravity.doctorpig-antigravityCheck the Antigravity token, project, and accounts
/antigravity.refreshpig-antigravityForce refresh and synchronize the remote model catalog
/antigravity.image <prompt>pig-antigravityGenerate images (default model gemini-3.1-flash-image) and save locally
/search <query>pig-web-searchPerform web search via DuckDuckGo
`/computer [status\screenshot\app ]`pig-computerInspect and drive the macOS desktop. See Computer Use
`/android [status\connect \screenshot]`pig-android-useInspect and drive an Android device over ADB
`/vless [start\stop\status\restart]`pig-vlessOpen, 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:name when 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.