Commands
Type / in the composer. PiCode opens its UI — it does not type into the terminal.
Each slash-menu hint opens this page at that heading.
Canonical pi reference: Sessions · Settings · Usage
/tree
Prompts on a timeline. Each card is a user prompt.
The current prompt says Now. Pick another to continue from there (new session; this one stays). Duplicate copies the timeline.
| pi TUI | PiCode | |
|---|---|---|
| View | tree of this JSONL | same (cards) |
| Click a prompt | in-place leaf jump (navigateTree) | new session from that prompt |
| Duplicate | new file | new file |
RPC has get_tree / fork / clone, not navigate_tree. Asked upstream: pi#8645. PiCode will not write a private leaf into pi's JSONL.
/fork
Same timeline as /tree, then pick a prompt to continue from.
| pi TUI | PiCode | |
|---|---|---|
| Result | new session file from that turn | same (RPC fork) |
/clone
Duplicate this timeline into a new session. This one stays.
| pi TUI | PiCode | |
|---|---|---|
| Result | new file, same branch | same (RPC clone) |
/settings
Opens Agent CLIs → Pi → Settings (#/clis/pi/settings?agentId=<id>) for the selected agent. PiCode preferences remain at #/preferences.
See Settings.
/scoped-models
Opens Settings, scrolled to scoped models (enabledModels patterns and default tools).
Canonical: pi Settings (enabledModels).
/model
Focuses the model chip in the composer.
/thinking
Focuses the thinking-level chip.
/provider
Focuses the provider chip.
/new
Starts a new session for this agent (same as the session bar).
Canonical: pi Sessions (/new).
/resume
Opens the session picker.
Canonical: pi Sessions (/resume).
/name
Renames the current session.
Canonical: pi Sessions (/name).
/compact
Compacts context (confirm first).
Canonical: pi Compaction.
/login
Opens Agent CLIs → Providers → Add provider. See Providers.
Canonical: pi Providers.
/logout
Opens Agent CLIs → Pi → Providers (#/clis/pi/providers). Sign out removes that provider. See Providers.
Canonical: pi Providers.
/copy
Copies the last assistant reply to the clipboard. Same text as the bubble copy button.
/quit
Stops this agent and closes its tab. Does not close the browser.
| pi TUI | PiCode | |
|---|---|---|
| Effect | quit the pi process | stop this agent |
/trust
Trust this agent's folder (trust.json). Needed before PiCode can write workspace .pi/settings.json.
Canonical: pi Settings (project trust).
/session
Dialog: name, file, folder, git, model, tokens, context, cost. Actions: copy path, rename, new, compact, tree.
Canonical: pi Sessions (/session).
/reload
Restarts this agent so skills and config reload. Session JSONL stays. RPC has no reload.
/export
Downloads this session as JSONL.
Canonical: pi Usage (/export).
| pi TUI | PiCode | |
|---|---|---|
| Default | HTML | JSONL download |
/import
Pick a .jsonl file and resume it as this agent's session.
Canonical: pi Usage (/import).
/share
Secret GitHub gist of this session (JSONL + HTML). Needs gh auth login. Not the phone QR.
Canonical: pi Usage (/share).
| pi TUI | PiCode | |
|---|---|---|
| Upload | gh gist create (HTML; Radius if signed in) | gh gist create (JSONL + HTML) |
/hotkeys
PiCode shortcuts (palette, composer, send). Not the TUI keymap.
/changelog
Changelog of the installed pi package. Not PiCode's CHANGELOG.
Canonical: pi repo CHANGELOG.
/llama
Opens a dialog: router URL, load/unload, Hugging Face download. Setup (install/start the server) is in llama.cpp.
Canonical: pi llama.cpp.
| pi TUI | PiCode | |
|---|---|---|
| Login | URL + optional key | same |
| Manage | /llama load/unload/download | load/unload/download HF |
Skills and templates
/skill:name and /templatename appear in the composer picker (global + trusted project). Choosing one inserts the command; Send lets pi expand it (RPC already expands skills and templates).
Canonical: Skills · Prompt templates.
/snip:slug
Your saved snippets appear in the composer picker as /snip:slug. Choosing one opens a small sheet: fill the placeholders, then Insert snippet splices the text into your draft or Send snippet sends it right away.
PiCode-only. Snippets are PiCode's own library — they expand before sending, so they also work in Agent CLI terminals and shell panes (right-click menu) and on the phone. Guide: Snippets.
/automate
Draft an automation from a sentence: /automate every weekday at 9, summarize what changed since yesterday. The open agent looks at the repository, proposes a name, a prompt, a schedule and limits, and PiCode opens the Automations editor pre-filled for you to review and create. Bare /automate asks for the description first. PiCode-only; the agent's reply stays in its session like any other turn. Guide: Automations.