仓库 →

Slash Commands

Start an input with / in the TUI to trigger a command and get an autocomplete menu. The 30+ built-in commands are organised below; commands loaded from Skills and Plugins also appear in the menu automatically.

Core

CommandPurpose
/loginRecommended — one command runs AtomGit OAuth + claims CodingPlan free tokens + auto-configures a provider from the granted model list. The lowest-friction entry point for first-time users; re-running after you're already signed in idempotently re-syncs the model list. As of v4.25.0 /codingplan has been folded into /login; the standalone entry has been removed
/resumeOpen the session picker to restore any previously persisted session (messages, directory, and model state)
/sessionStart a fresh, clean session
/bgSend the current session to the background and open a new foreground; subcommands: /bg list, /bg <N>, /bg drop <N>, /bg help. See Background sessions
/background <task>Compatibility entry: start a one-shot task in a /bg slot (details)
/rename <new-name>Rename the current session (changes the display name in the /resume picker)
/providerOpen the provider manager: add / edit / remove / switch
/modelSwitch models within the current provider, or jump across providers
/cdChange working directory and write it back as default_workdir. You can also just type cd /path (no slash prefix)

Tools & utilities

CommandPurpose
/undo · /undo NRoll conversation memory back to before the last turn (or turn N) and restore that prompt into the input box; rewinds memory only — does not revert files on disk
/diffShow the git diff of uncommitted changes in the working directory
/costShow output tokens for the current session. APIs without usage reporting are estimated automatically
/contextShow this turn's context budget breakdown: system prompt, tool defs, cold-zone compaction, total messages, and context-window usage
/compactCompact history: summarise earlier messages to free up context budget
/clearClear the current session's messages (working directory and model are kept)
/initScan the working directory and generate / refresh the .atomcode.md project instructions file — covering build / test commands, tech-stack summary, layout, etc.; injected as system prompt on subsequent launches
/background <task>Dispatch a task to an isolated background agent (read-only-leaning tool subset) without polluting the main conversation. Useful for "go check X on the side" sort of light exploration. See Background sessions
/worktree <subcommand>Git worktree isolation: create a new branch with its own worktree, list existing worktrees, done squash worktree changes back to the main branch, cleanup remove finished worktrees
/issueInteractive wizard: file a new issue against the AtomGit repository for the current git repo (requires OAuth login; cwd must be a clone of an atomgit.com repository)

Conversation modes & thinking

CommandPurpose
/planSwitch to Plan mode: read-only exploration. The model can call read_file / grep / list_directory and other non-writing tools, but edit_file / bash are blocked. Useful for getting alignment before action
/buildSwitch back to Build mode (the default): all tools available — read, write, execute. /plan and /build are freely interchangeable
/think on / offToggle extended thinking (for supported models — Claude / DeepSeek-R1 / GLM-4.5 / …). When on, the model surfaces its reasoning at the cost of latency and tokens
/think budget <N>Cap the thinking token budget (Claude family); controls reasoning length

Persistent memory

CommandPurpose
/remember <content>Write to project-scoped memory (default scope, bound to the current working directory)
/remember --global <content>Write to global memory (shared across all projects)
/forget <keyword>Delete every entry in global + project memory matching the keyword (case-insensitive)
/memoryShow all active memories, grouped by [Global] / [Project]

Full usage and best practices at Persistent Memory.

Extension ecosystem

CommandPurpose
/setupOn first run, install the bundled atomcode-automation-recommender skill into ~/.atomcode/skills/, append .atomcode/local/ to project .gitignore, and write .atomcode/setup-state.json (signals hash + atomcode version + installed list) under a project-level lock. Then invoke the recommender skill — it scans the project (languages, frameworks, hooks already in use), searches the web, and proposes additional atomcode skills to install for this codebase. Subsequent runs skip the seed install and re-invoke the skill directly. Extra text after the command is forwarded to the skill as a steering hint, e.g. /setup focus on testing. The CLI form atomcode setup --force forces a clean reinstall of seed files even when their content hash matches
/skillsBrowse loaded skills (project- and user-level). Each skill also appears as a standalone slash command in the menu — trigger with /<skill-name>
/pluginOpen the interactive plugin manager — browse marketplaces, install/uninstall plugins, add/remove marketplaces from one screen
/plugin marketplace add|remove|update|listManage marketplace registrations (add clones a git repo, remove deletes, update pulls latest, list shows all)
/plugin install <plugin>@<marketplace>Install a plugin from the named marketplace
/plugin uninstall <plugin>@<marketplace>Uninstall an installed plugin (the marketplace registration is kept)
/plugin listList locally installed plugins
/plugin reloadReload all plugins (re-scan disk, refresh skill/hook registration)

See Skills and Plugin System for details.

MCP integration

CommandPurpose
/mcpList successfully connected MCP servers and their status (failed servers don't show here — only as red error lines in the session area)
/mcp tools <server>Async-list the remote tools actually exposed by a specific MCP server (you'll be told if it times out or fails)
/mcp reloadRe-read .mcp.json / ~/.atomcode/mcp.json and reconnect every server in the background

Full configuration and usage at MCP Integration.

Web UI & sync

CommandWhat it does
/webuiLaunch the browser interface and open it (binds 127.0.0.1:13457 by default — local only). The current TUI session is attached to live sync automatically
/webui --host <addr>Bind the server to a given address; /webui lan equals --host 0.0.0.0 (exposes it to the LAN). Pair with a 蒲公英 virtual IP for remote access — see Remote Access
/webui stopStop the webui server
/syncAttach the current TUI to a running webui session (run /webui first). Both ends sync live in both directions; multiple browsers / terminals can watch the same session
/sync offLeave sync and return to a standalone session

More in Web UI.

Config & help

CommandPurpose
/statusShow login status, current provider, model, context budget, CodingPlan usage and reset time
/whoamiShow the username / email of the current AtomGit-logged-in user
/configShow the path of ~/.atomcode/config.toml
/reloadHot-reload ~/.atomcode/config.toml from disk — external edits (or changes from another terminal's /login) take effect without restarting atomcode
/languageSwitch UI language: auto-detect (LC_ALL / LANG), English, or Simplified Chinese. Takes effect immediately and is written back to ~/.atomcode/config.toml
/welcomeRe-open the 3-step first-run wizard (welcome → language → setup). Non-empty sessions are confirmed with a y/N before clearing the screen. Both language and default onboarding path can be revisited here
/logoutClear the AtomGit OAuth token
/upgradeAuto-upgrade to the latest version; /upgrade rollback reverts to the previous version
/guideBuilt-in onboarding guide: /guide lists topics you can ask about (quickstart, switch model, MCP, Skills, memory, background tasks, context, keybindings, config); /guide <topic> explains it right in the chat (first run auto-installs the atomcode-skills plugin)
/helpList every available slash command
/keysShow the keyboard-shortcut reference (grouped by input / history / session / modal navigation, with per-terminal compatibility notes for Shift+Enter and Alt+Enter). See Keybindings
/quitExit atomcode (or hit Ctrl+C twice)

Tips

Typical workflows

First launch — one-click onboarding

> /login
  ✔ Logged in as alice (alice, alice@example.com)
  ✔ CodingPlan claimed — CodingPlan Free · expires 2026-05-22 (29d / 30d)
  ✔ 3 models registered as AtomGit-* providers
  ✔ Default provider set to AtomGit-GLM
> hello

Check cost before wrapping up

> refactor src/db to use a connection pool
... (AI works)
> /cost
Session token usage
- Total output tokens: 8342
- Current turn tokens: 2156
- Context: 42K / 128K

Rewind and re-ask when the answer goes sideways

> add JSDoc to every function
... (the reply went off the rails)
> /undo
Rolled back to turn 3 of 3.
⚠ Only conversation memory was rewound; files on disk were not restored. Revert code manually or check /diff.
(your last prompt is back in the input box — edit and resend)

Swap the model when it underperforms

> /model
> (pick claude-opus-4-6 from the popup)
> try again — this time preserve existing comments

Next steps