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
/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

CommandAliasesArgsResume-safeDescription
/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

CommandAliasesArgsResume-safeDescription
/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

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.
/logout——Clear 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.
/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:

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.