Skip to content
Powered by BridgeApp

Quickstart cheat sheet

Already comfortable with coding agents? This is the cheat sheet. For the long version, start with Your first session.

Terminal window
brew tap MathAndMagic/magic-coder
brew install magic-coder

Or grab a binary from the releases page. Full options on Install.

Terminal window
coder

First run triggers a browser-based sign-in to BridgeApp. On a headless box, add --no-open-browser. Inside the TUI, /login re-signs in, /logout clears the credential.

GoalCommand
Open the TUI in the current repocoder
Send a startup prompt immediatelycoder --query "fix the failing tests"
Trust the workspace up frontcoder --trust
Allow operations in another directorycoder -w /path/to/other/root
Start in plan modecoder --plan
Resume an existing threadcoder --continue <uuid>
Pick a model for the sessioncoder --model <model-name>
Higher reasoning effortcoder --reasoning-effort high
Long-context modecoder --allow-long-context
Non-interactive runcoder --trust --automagic --query "<task>"
Print login URL instead of opening browsercoder --no-open-browser
Use a non-production BridgeAppcoder --server-url <host>

--automagic requires a startup target (--query and/or --continue), pre-saved auth, and a trusted workspace (or --trust on the same run). It auto-approves every tool call and exits when the agent finishes.

Type these in the input box during an interactive session.

CommandWhat it does
/helpOpen the keyboard shortcuts help window
/loginClear saved sign-in and start a fresh login
/logoutSign out (clear saved credential)
/modelPick a model for the current thread (with autocomplete)
/reasoning-effort (alias /thinking)Pick a reasoning effort level
/long-contextToggle long-context mode
/themeSwitch UI theme
/clear (alias /reset)Start a clean conversation in the same workspace
/exit (alias /quit)Exit Magic Coder

Any Skill configured for your account also appears as a /-command at runtime.

See Slash commands for the full reference.

KeyWhat it does
EnterSend (or, while agent is working, queue as a follow-up)
Shift+Enter / Alt+Enter / Ctrl+J / \+EnterInsert a newline
Esc Esc (within 500ms)Clear the input draft
Ctrl+CStop the agent; press again within 2s when idle to quit
TabAccept the highlighted slash suggestion
/ (input empty)Recall input history
PageUp / PageDownScroll transcript
Right-click a messageCopy that block to clipboard

none, minimal, low, medium, high, xhigh. max is accepted as an alias for xhigh. See Reasoning effort values for the table.

PathPurpose
~/.magic/config.tomlUser config: machine ID, generation defaults, UI prefs
~/.magic/known.tomlWorkspace registry (which workspaces you’ve trusted)
~/.magic/known/<key>/history.jsonlPer-workspace input history
~/.magic/skills/<name>/SKILL.mdUser-level skills
~/.magic/rules/<category>/<name>.mdUser-level Markdown rules
~/.magic/cache/, ~/.magic/locks/Cache and lock files (don’t edit)
<workspace>/.magic/skills/<name>/SKILL.mdProject-local skills (loaded only when trusted)
<workspace>/.magic/rules/<category>/<name>.mdProject-local rules (loaded only when trusted)
<workspace>/AGENTS.md (and nested)Project-specific instructions for the agent

Full details in File locations.