Commands
PersistenceAI provides a set of commands that you can use to interact with the application. Commands start with / and can be accessed via the command palette (Ctrl+P) or by typing them directly in the chat input.
Command Palette
Press Ctrl+P (or if customized) to open the command palette. This shows all available commands with descriptions.
You can also type / in the chat input to see command suggestions.
Session Commands
/initInitialize PersistenceAI for the current project. This analyzes your project and creates an AGENTS.md file in the project root.
/init
Tip: You should commit your project's AGENTS.md file to Git. This helps PersistenceAI understand the project structure and coding patterns.
/new or /clearCreate a new session.
/new
Aliases: /clear
/session, /resume, or /continueList all available sessions so you can resume one.
/session
Aliases: /resume, /continue
/shareShare the current session. This creates a link to the conversation that you can share with your team.
/share
Note: Sessions are not shared by default. You must explicitly share them.
/unshareUnshare a previously shared session.
/unshare
Only available if the session is currently shared.
/renameRename the current session.
/rename
/copyCopy the session transcript to your clipboard.
/copy
/exportExport the session transcript to a file.
/export
/timelineJump to a specific message in the session timeline.
/timeline
/undoUndo the last message and its changes.
/undo
Tip: You can run /undo multiple times to undo multiple changes.
/redoRedo the last undone message.
/redo
/thinkingToggle the visibility of AI thinking/reasoning steps.
/thinking
Provider & Model Commands
/connectConnect to an LLM provider. This opens a dialog to select a provider and enter your API key.
/connect
/modelsList all available models from configured providers.
/models
Agent Commands
/agentsList all available agents.
/agents
You can also cycle through agents using:
Tab - Next agentShift+Tab - Previous agentMCP Commands
/mcpToggle MCP (Model Context Protocol) servers.
/mcp
UI Commands
/themeSwitch between available themes.
/theme
You can also use (default: Ctrl+X T) to list themes.
/editorOpen the external editor for the current prompt.
/editor
/statusShow the current status and system information.
/status
Help Commands
/helpShow help information.
/help
/commandsShow all available commands (same as command palette).
/commands
System Commands
/exit, /quit, or /qExit the application.
/exit
Aliases: /quit, /q
Using Commands
Command Autocomplete
When you type / in the chat input, PersistenceAI will show command suggestions. You can:
Use arrow keys to navigate suggestions
Press Enter to select a command
Continue typing to filter commands
Command Arguments
Some commands accept arguments. For example:
/rename My New Session Name
Command Shortcuts
Many commands have keyboard shortcuts. See the Keybinds documentation for a complete list.
Command Reference
Command | Shortcut | Description |
|---|---|---|
/init | - | Initialize project |
/new | | New session |
/session | | List sessions |
/share | - | Share session |
/unshare | - | Unshare session |
/rename | - | Rename session |
/copy | - | Copy transcript |
/export | | Export transcript |
/timeline | | Jump to message |
/undo | | Undo message |
/redo | | Redo message |
/thinking | - | Toggle thinking |
/connect | - | Connect provider |
/models | | List models |
/agents | | List agents |
/mcp | - | Toggle MCPs |
/theme | | Switch theme |
/editor | | Open editor |
/status | | Show status |
/help | - | Show help |
/commands | Ctrl+P | Command palette |
/exit | Ctrl+C/D | Exit app |
Tips
Ctrl+P to quickly access any command without typing the full command name./ and use autocomplete to find commands quickly.↑/↓) in the chat input to navigate command history.For more information, see: