Skip to main content

Slash commands

CommandAliasesDescription
/newStart a new conversation
/resumeOpen recent conversations
/exit/quit, /qExit Magnitude
/bashEnter bash mode
/initGenerate AGENTS.md for your project
/settings/sOpen settings
/usageView balance, spend, and top-up history
Type / to see all available commands with autocomplete.

Keyboard shortcuts

ShortcutContextAction
EnterChat inputSend message
Shift+EnterChat inputNew line
Ctrl+CStreamingInterrupt
Ctrl+CIdle (2x)Exit
EscRunning agentsInterrupt agents (2x to kill all)
Ctrl+RAnyToggle recent conversations

Multiline input

ShortcutAction
Ctrl+AJump to start of line
Ctrl+EJump to end of line
Ctrl+UDelete everything before cursor on current line
Ctrl+KDelete everything after cursor on current line
Ctrl+WDelete the word before cursor
Ctrl+DDelete the word after cursor
Ctrl+YPaste back the last deleted text

File mentions

Type @ in the input to mention files or directories. A picker appears with project file autocomplete. Mentioned files are included as context for the agent. You can also paste or drag images into the input. Large text pastes (over 1000 characters) are automatically collapsed into paste segments.

Workspace

Each session runs inside a workspace, referenced as $M. The workspace is per-session and ephemeral. Agents use it for scratch work, plans, and shared context between workers. Assistant messages can include clickable file links:
  • Project files: [app](cli/src/app.tsx)
  • Workspace files: [plan]($M/plan.md)
  • Heading links: [Approach]($M/plan.md#Approach)

Sessions

Magnitude saves every conversation automatically. Resume in three ways:
  • magnitude --resume resumes the most recent session immediately
  • /resume opens a picker of recent conversations
  • Ctrl+R opens the same recent conversations overlay
When a conversation gets long, Magnitude compacts context automatically using LLM-driven summarization. The session continues without interruption. Each agent compacts its context independently.

Session inspection

Inspect past sessions from the command line:
bun session list                                    # list recent sessions
bun session events <id>                             # list events for a session
bun session search <keyword> --last 5               # search across recent sessions

AGENTS.md

Run /init to generate an AGENTS.md file in your project. This is project context the agents read when working in your repo: conventions, architecture notes, what to do and what to avoid. Edit AGENTS.md like any other file. The agents will pick up your changes on the next session.

API key

Run /settings (or /s) to update your API key. You can also set it as an environment variable:
export MAGNITUDE_API_KEY=...

Bash mode

Run shell commands directly without leaving Magnitude. Enter bash mode with /bash or by starting your input with !.

The .magnitude directory

Magnitude creates ~/.magnitude/ automatically to store local state.
PathPurpose
auth.jsonStored credentials (file permissions 600)
config.jsonPreferences and global settings
sessions/Conversation history
logs/CLI and event logs
traces/Debug trace data when tracing is enabled
Delete auth.json to clear saved credentials and re-authenticate. You can also drop a .magnitude/ directory inside your project for project-scoped state.