PiG Documentation

Guides and references for configuring, using, and extending PiG.

Slash commands

The dispatcher is exhaustive - every command here is a parity-mirrored upstream command except where noted as [pig]. Extensions may register additional slash commands via register.commands[].

Core

Command
Description
/settingsOpen the settings menu.
/modelOpen the model selector.
/thinking [level]Set the thinking level, or open the selector without a level.
/scoped-modelsEnable/disable models for Ctrl+P cycling.
/loginConfigure provider authentication.
/logoutRemove stored provider authentication.
/newStart a new session in the same cwd.
/resumeResume a different session.
/forkFork from a previous user message.
/cloneDuplicate session at the current position.
/treeNavigate session tree.
/compactManually compact the context.
/reloadReload keybindings, extensions, skills, prompts, themes, and context files.
/reload --explainSame plus a placement/cell report. [pig]
/export [path]Export session (default HTML; specify .jsonl).
/import <path>Import and resume a JSONL session.
/shareUpload an unlisted Session share that expires after 30 days.
/bug [description]Write a bug report archive to the current directory and print a prefilled PiG issue link to attach it to. Nothing is uploaded (D62).
/copyCopy the last agent message to clipboard.
/name <text>Set the session display name.
/sessionShow session info and stats.
/changelogShow changelog entries.
/hotkeysList keyboard shortcuts.
/quitExit PiG.
/trustSet the trust decision for the current project.
/llamaManage a local llama.cpp server.

There is no /exit or /clear command. Pi has neither, and PiG matches Pi. To leave, use /quit. To clear the editor, press the app.clear key (ctrl+c by default). /hotkeys lists the current bindings.

Piglet composition

Command
Description
/pigletInspect the Piglet active in this process.

PiG Standard and other Piglets can add commands through selected extension Resources. Stock PiG does not register /runner, /pig-runner, /sprite, or other product commands.

Parity harness (only when PIG_PARITY_HARNESS=1)

/probe-* family - internal scenarios used by parity/scenarios/. Not user-facing.

Adapted from upstream Pi documentation · Upstream documentation ↗ · MIT License