Skip to content

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:

  1. Built-in commands — the registry listed below.
  2. Custom commands from ~/.lime/commands/*.md — see Custom slash commands.
  3. 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

CommandAliasesArgsResume-safeDescription
/helpShow available slash commands.
/statusSession, model, token, workspace, and provider status.
/sandboxShow sandbox isolation status.
/memoryInspect loaded agent memory and instruction files.
/versionCLI version and build info.
/logsOpen the current session’s log file.
/doctorInstallation and environment diagnostics.

Sessions

CommandAliasesArgsResume-safeDescription
/clearReset the current local REPL session.
/newStart a new managed session.
/resume[session-path | session-id | latest]Continue from a previous session.
/rename[title]Rename the current session.
/compactCompact local session history into a rolling summary.

Workspace & git

CommandAliasesArgsResume-safeDescription
/initInitialize AGENTS.md from a fresh codebase analysis.
/commitGenerate 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.
/undoUndo all file changes from the previous agent turn.

Config & runtime

CommandAliasesArgsResume-safeDescription
/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.
/logoutClear stored credentials.

Discovery & extensions

CommandAliasesArgsResume-safeDescription
/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.
/tasksShow 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:

Terminal window
lime --resume latest /diff
lime --resume latest /memory
lime --resume <session-id> /commit

Commands 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 channel
argument-hint: [pr-number]
---
Read the PR description and diff for PR #{ARGS}, then write a 3-bullet
summary 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.