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
Command
Purpose
/login
Recommended — 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
/resume
Open the session picker to restore any previously persisted session (messages, directory, and model state)
/session
Start a fresh, clean session
/bg
Send 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)
/provider
Open the provider manager: add / edit / remove / switch
/model
Switch models within the current provider, or jump across providers
/cd
Change working directory and write it back as default_workdir. You can also just type cd /path (no slash prefix)
Tools & utilities
Command
Purpose
/undo · /undo N
Roll 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
/diff
Show the git diff of uncommitted changes in the working directory
/cost
Show output tokens for the current session. APIs without usage reporting are estimated automatically
/context
Show this turn's context budget breakdown: system prompt, tool defs, cold-zone compaction, total messages, and context-window usage
/compact
Compact history: summarise earlier messages to free up context budget
/clear
Clear the current session's messages (working directory and model are kept)
/init
Scan 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
/issue
Interactive 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
Command
Purpose
/plan
Switch 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
/build
Switch back to Build mode (the default): all tools available — read, write, execute. /plan and /build are freely interchangeable
/think on / off
Toggle 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
Command
Purpose
/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)
/memory
Show all active memories, grouped by [Global] / [Project]
On 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
/skills
Browse loaded skills (project- and user-level). Each skill also appears as a standalone slash command in the menu — trigger with /<skill-name>
/plugin
Open the interactive plugin manager — browse marketplaces, install/uninstall plugins, add/remove marketplaces from one screen
/plugin marketplace add|remove|update|list
Manage 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 list
List locally installed plugins
/plugin reload
Reload all plugins (re-scan disk, refresh skill/hook registration)
Launch 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 stop
Stop the webui server
/sync
Attach 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
Show login status, current provider, model, context budget, CodingPlan usage and reset time
/whoami
Show the username / email of the current AtomGit-logged-in user
/config
Show the path of ~/.atomcode/config.toml
/reload
Hot-reload ~/.atomcode/config.toml from disk — external edits (or changes from another terminal's /login) take effect without restarting atomcode
/language
Switch UI language: auto-detect (LC_ALL / LANG), English, or Simplified Chinese. Takes effect immediately and is written back to ~/.atomcode/config.toml
/welcome
Re-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
/logout
Clear the AtomGit OAuth token
/upgrade
Auto-upgrade to the latest version; /upgrade rollback reverts to the previous version
/guide
Built-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)
/help
List every available slash command
/keys
Show the keyboard-shortcut reference (grouped by input / history / session / modal navigation, with per-terminal compatibility notes for Shift+Enter and Alt+Enter). See Keybindings
/quit
Exit atomcode (or hit Ctrl+C twice)
Tips
Autocomplete — typing / pops up the menu immediately; use ↑↓ to navigate, Tab / Enter to confirm.
Fuzzy match — completion supports substring matching, e.g. /prov hits /provider.
Interrupt the model — while the model is streaming, press Esc to interrupt; you can then enter a new command or prompt.
Skills appear in the menu — once you add your own commands under Skills, they show up in the menu in the same format.
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
Keybindings — pair commands with keybindings to double your speed
Sessions & Undo — full behaviour of /resume, /undo, /compact