Slash commands
Inside the REPL, press / at an empty prompt to open the slash-command
palette. It is fuzzy matched and surfaces three sources together:
- Built-in commands — the registry listed below.
- Custom commands from
~/.lime/commands/*.md— see Custom slash commands. - Plugin-provided commands registered by enabled plugins.
Built-ins shadow collisions. The list below is verified against
crates/commands/src/lib.rs (SLASH_COMMAND_SPECS).
Session & visibility
| Command | Aliases | Args | Resume-safe | Description |
|---|---|---|---|---|
/help | — | — | ✓ | Show available slash commands. |
/status | — | — | ✓ | Session, model, token, workspace, and provider status. |
/sandbox | — | — | ✓ | Show sandbox isolation status. |
/memory | — | — | ✓ | Inspect loaded agent memory and instruction files. |
/version | — | — | ✓ | CLI version and build info. |
/logs | — | — | ✓ | Open the current session’s log file. |
/doctor | — | — | ✓ | Installation and environment diagnostics. |
Sessions
| Command | Aliases | Args | Resume-safe | Description |
|---|---|---|---|---|
/clear | — | — | ✓ | Reset the current local REPL session. |
/new | — | — | Start a new managed session. | |
/resume | — | [session-path | session-id | latest] | Continue from a previous session. | |
/rename | — | [title] | ✓ | Rename the current session. |
/compact | — | — | ✓ | Compact local session history into a rolling summary. |
Workspace & git
| Command | Aliases | Args | Resume-safe | Description |
|---|---|---|---|---|
/init | — | — | ✓ | Initialize AGENTS.md from a fresh codebase analysis. |
/commit | — | — | Generate a commit message and create a git commit. | |
/pr | — | [context] | Draft or open a pull request from the conversation. | |
/issue | — | [context] | Draft or open a GitHub issue from the conversation. | |
/review | — | [instructions] | Review staged or workspace changes. | |
/undo | — | — | Undo all file changes from the previous agent turn. |
Config & runtime
| Command | Aliases | Args | Resume-safe | Description |
|---|---|---|---|---|
/model | /models | [slug] | Show or switch active model. | |
/permissions | — | [default | plan | acceptEdits | bypassPermissions | dontAsk] | Show or switch permission mode. | |
/config | — | [env | hooks | model | plugins] | ✓ | Inspect merged config sections. |
/mcp | — | [list | status | browse | enable | disable | reconnect] [name] | ✓ | Manage MCP servers. |
/lsp | — | [list | status | install | start | stop | restart | doctor] [server] | ✓ | Manage built-in LSP servers. |
/login | — | [status] | Run login or show login status. | |
/logout | — | — | Clear stored credentials. |
Discovery & extensions
| Command | Aliases | Args | Resume-safe | Description |
|---|---|---|---|---|
/agents | — | [list | show <name> | create <name> | edit <name> | delete <name> | help] | ✓ | List configured sub-agents. |
/skills | — | [list | help] | ✓ | List available skills. |
/command | /cmd, /commands | [list | show <name> | create <name> | edit <name> | delete <name> | help] | ✓ | Manage custom slash command templates. |
/plugin | /plugins | [list | install <path> | enable <name> | disable <name> | uninstall <id> | update <id>] | Manage Lime plugins. | |
/tasks | — | — | Show live sub-agents spawned in this session. | |
/plan | — | [task] | Switch to plan mode and submit a structured planning prompt. |
Aliases
/models→ alias for/model./plugins→ alias for/plugin./cmd,/commands→ aliases for/command.
Direct CLI invocation
A subset of slash commands can be invoked non-interactively via lime --resume. For example:
lime --resume latest /difflime --resume latest /memorylime --resume <session-id> /commitCommands that require a live REPL (model picker, permission UI, plan-mode gate) print an actionable error in the non-interactive path.
Custom slash commands
Drop a Markdown file into ~/.lime/commands/<name>.md (user-scoped only).
The filename becomes the trigger; the body becomes the prompt template.
---description: Summarize a code review for the team channelargument-hint: [pr-number]---
Read the PR description and diff for PR #{ARGS}, then write a 3-bulletsummary suitable for the team Slack channel.Placeholders: {ARGS} (full argument string) and {ARG1}, {ARG2}, …
(positional). When no placeholder is present and arguments are supplied,
the arguments are appended as a new paragraph.
See Custom slash commands for the full discussion.