Skip to main content

Slash commands

Type / to see all available commands with autocomplete.

Keyboard shortcuts

Multiline input

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:

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:

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. Delete auth.json to clear saved credentials and re-authenticate. You can also drop a .magnitude/ directory inside your project for project-scoped state.