Skip to content
Letta Code Letta Code Letta Docs
Sign up

Slash commands

Control Letta Code's behavior during an interactive session with slash commands

Control Letta Code’s behavior during an interactive session with slash commands. Press Tab to autocomplete command names.

Commands are also available from autocomplete: type / in an interactive CLI session and press Tab.

CommandDescription
/agentsBrowse agents (pinned, Letta Code, all)
/modelSwitch model
/initInitialize or re-initialize your agent’s memory
/doctorAudit and refine your memory structure
/remember [text]Ask the agent to remember something from the conversation
/goal [status|pause|resume|complete|clear|disable|--replace|--token-budget N <objective>]Manage a long-running conversation goal
/memoryView your agent’s memory
/palaceOpen the Memory Palace in your browser
/search [query]Search messages across agents
/connectConnect LLM API keys and coding plans
/clearClear in-context messages
/chdir <path>Change the working directory for the current TUI session
CommandDescription
/newStart a new conversation with the current agent
/resume [id]Browse and resume past conversations, or switch directly by ID
/forkFork the current conversation
/btw <question>Fork the conversation and ask a side question in the background
/pin [-l]Pin the current agent globally, or locally with -l
/unpin [-l]Unpin the current agent globally, or locally with -l
/rename agent [name] or /rename convo [name]Rename the current agent or conversation
/description <text>Update the current agent’s description
/exportExport the current agent as an AgentFile (.af)
CommandDescription
/reflect [transcript_file]Launch a reflection agent
/sleeptimeConfigure reflection trigger settings
/compactionConfigure compaction mode settings
/compact [all|sliding_window]Summarize conversation history immediately
/memfs [enable|disable|sync|reset]Manage filesystem-backed memory
/toolsetSwitch toolset (default, codex, or gemini)
/experimentsToggle local experiments
/reloadReload settings and restart TUI effects
/systemSwitch system prompt
/personalitySwitch to a personality preset
/subagentsManage custom subagents
/mcpManage MCP servers
/secret <set|list|unset> [key] [value]Manage secrets for shell commands
/skillsBrowse available skills by source
/skill-creator [description]Enter guided skill creation mode
/memory-repository <set|unset|status|push> [url]Push the agent memory repo to an additional git remote
CommandDescription
/usageShow session usage statistics and balance
/contextShow context window usage
/recompileRecompile the current agent and conversation
/feedbackSend feedback to the Letta team
/hooksManage hook configuration
/statusline [subcommand]Configure CLI footer status lines
/titleConfigure the terminal window title
/reasoning-tab [on|off|status]Toggle the Tab shortcut for reasoning tiers
/terminal [--revert]Set up or remove terminal shortcuts such as Shift+Enter
/adeOpen the current agent in ADE in your browser
/install-github-appSet up the Letta Code GitHub Action in this repository
/planEnter plan mode
/plan-mode on|offEnable or disable plan mode
/disconnect <provider>Disconnect an existing provider account
/bgShow background shell processes
/ralph [prompt]Start Ralph Wiggum loop mode
/yolo-ralph [prompt]Start Ralph loop mode with bypass permissions
/exitExit this session
/logoutClear credentials and exit

/skill-creator replaces the older /skill shortcut in the interactive CLI.

Use /goal for long-running autonomous work. It is the recommended successor to /yolo-ralph for most use cases because it adds persistent conversation state, status commands, token/time tracking, and goal lifecycle tools.

Terminal window
/goal improve benchmark coverage

A goal is stored on the current conversation. While it is active, Letta Code reminds the agent of the objective and automatically continues the work between turns until the goal is completed, paused, cleared, disabled, or budget-limited.

Common goal commands:

CommandDescription
/goal or /goal statusShow the current goal and usage
/goal --token-budget 50000 <objective>Set a goal with a token budget
/goal --replace <objective>Replace the current goal
/goal pausePause automatic continuation
/goal resumeResume a paused goal
/goal completeManually mark the goal complete
/goal clearRemove the goal
/goal disableRemove the goal and disable goal tools for the conversation

Goal mode tracks active time and tokens used. Before the agent marks a goal complete, it is prompted to audit the objective against real evidence such as files, command output, tests, or PR state.

For a deeper comparison with /ralph and /yolo-ralph, see Goal mode.

Skills are normally loaded by the agent when relevant, but you can invoke a specific skill directly with slash syntax:

Terminal window
/<skill-name> [optional instructions]

For example:

Terminal window
/acquiring-skills find a browser testing skill

Use /skills to browse available skills by source. Direct skill invocation loads the named skill’s instructions, then continues with the rest of your request. See Skills for skill installation, scopes, and authoring.

Custom slash commands let you define frequently used prompts as Markdown files that Letta Code can execute. Commands can be project-specific (shared with your team) or personal (available across all projects).

/<command-name> [arguments]
ParameterDescription
<command-name>Name derived from the Markdown filename (without .md extension)
[arguments]Optional arguments passed to the command

Commands stored in your repository and shared with your team. These show “(project)” in /help.

Location: .commands/

Terminal window
# Create a project command
mkdir -p .commands
echo "Review this code for security vulnerabilities:" > .commands/security.md

Commands available across all your projects. These show “(user)” in /help.

Location: ~/.letta/commands/

Terminal window
# Create a personal command
mkdir -p ~/.letta/commands
echo "Explain this code in simple terms:" > ~/.letta/commands/explain.md

Pass dynamic values to commands using argument placeholders:

All arguments with $ARGUMENTS

.commands/fix-issue.md
Fix issue #$ARGUMENTS following our coding standards

Usage: /fix-issue 123 high-priority$ARGUMENTS becomes “123 high-priority”

Positional arguments with $1, $2, etc.

.commands/review-pr.md
Review PR #$1 with priority $2 and assign to $3

Usage: /review-pr 456 high alice$1=“456”, $2=“high”, $3=“alice”

Execute shell commands when the slash command runs using !`command` syntax:

Current branch: !`git branch --show-current`
Recent commits:
!`git log --oneline -5`

Shell commands are executed and replaced with their output.

Include file contents using the @ prefix:

Review the implementation in @src/utils/helpers.js
Compare @src/old-version.js with @src/new-version.js

Command files support frontmatter for metadata:

PropertyPurposeDefault
descriptionBrief description shown in /helpFirst line of prompt
argument-hintArguments expected (shown in autocomplete)None

Example:

.commands/review.md
---
description: Review code changes in the current branch
argument-hint: "[focus area]"
---
Review all uncommitted changes in this repository. Focus on:
- Code quality and best practices
- Potential bugs or edge cases
- Suggestions for improvement
$ARGUMENTS

Project commands (.commands/) take precedence over global commands (~/.letta/commands/). Custom commands appear in autocomplete alongside built-in commands.

Quick, frequently used prompts:

  • Simple prompt snippets you use often
  • Quick reminders or templates
  • Frequently used instructions that fit in one file

Examples:

  • /review → “Review this code for bugs and suggest improvements”
  • /explain → “Explain this code in simple terms”
  • /optimize → “Analyze this code for performance issues”

Comprehensive capabilities with structure:

  • Complex workflows with multiple steps
  • Capabilities requiring scripts or utilities
  • Knowledge organized across multiple files
  • Team workflows you want to standardize

Examples:

  • Code review Skill with security checklist, performance patterns, and linting scripts
  • Documentation Skill with style guides and templates
  • Deployment Skill with environment-specific configs and validation
AspectSlash CommandsSkills
ComplexitySimple promptsComplex capabilities
StructureSingle .md fileDirectory with SKILL.md + resources
ContextInjected once when invokedPinned to context when loaded
Survives compactionNoYes
DiscoveryExplicit (/command)Agent loads automatically or via /<skill-name>
ScopeProject or personalProject, agent, global, or bundled

As a slash command:

.commands/review.md
Review this code for:
- Security vulnerabilities
- Performance issues
- Code style violations

Usage: /review (one-time injection)

As a Skill:

.skills/code-review/
├── SKILL.md (overview and workflows)
├── SECURITY.md (security checklist)
├── PERFORMANCE.md (performance patterns)
└── STYLE.md (style guide reference)

Usage: Agent loads the skill automatically, or you invoke it directly with /code-review, and it has persistent access to all reference material throughout the conversation.

  • Skills - Create comprehensive capabilities with multiple files
  • Memory - Understand and manage agent memory
  • CLI reference - Command-line options and flags