# Claude Code cheat sheet

Checked November 9, 2026. Claude Code `2.1.319`.

`claude --version` printed `2.1.319 (Claude Code)`. `claude --help` printed 313 lines, 66 options, and 18 subcommands, and exited 0. No prompt was sent. Slash commands are from the commands page that day (57,504 bytes). Settings keys are from the settings reference index (248 keys). File locations are from the settings, memory, hooks, subagents, and output styles pages. This sheet is a subset. It is not a third-party list.

The page this file belongs to: https://shipmunks.dev/blog/claude-code-cheat-sheet/

## Slash commands

The All commands table had 121 rows. 20 are marked Skill. 1, `/deep-research`, is marked Workflow. 3 say Removed: `/pr-comments`, `/ultraplan`, and `/vim`. These 20 are built-in rows from the rest. The one-line purpose is shortened from that table.

| Command | What it does |
|---|---|
| `/help` | Show help and available commands |
| `/init` | Initialize the project with a CLAUDE.md guide |
| `/memory` | Edit CLAUDE.md files, and turn auto memory on or off |
| `/skills` | List available skills |
| `/reload-skills` | Re-scan skill and command directories without restarting |
| `/config` | Open Settings. Alias `/settings` |
| `/status` | Status tab: version, model, account, connectivity |
| `/model` | Switch the model. No argument opens a picker |
| `/effort` | Set the effort level: low to xhigh, max, or auto |
| `/context` | Visualize current context usage |
| `/compact` | Summarize the conversation so far |
| `/clear` | Start a new conversation. Aliases `/reset` and `/new` |
| `/diff` | Review the working tree, including edits Claude has made |
| `/permissions` | Manage allow, ask, and deny rules |
| `/agents` | Reminder to edit `.claude/agents/` or `~/.claude/agents/` |
| `/hooks` | View hook configurations |
| `/output-style` | List styles or switch. Requires v2.1.269 or later |
| `/statusline` | Configure the status line |
| `/resume` | Resume a conversation, or open the picker |
| `/rewind` | Rewind the conversation, the code, or both |

Type `/` at the start of a message to see what this session can run. Not every command appears for every user. A session was not opened here, so the menu was not seen.

## CLI flags

12 of the 66 options in `claude --help` on 2.1.319, plus the `doctor` subcommand. Flag descriptions are shortened from that help text.

| Flag | What the help says |
|---|---|
| `-p`, `--print` | Print response and exit |
| `-c`, `--continue` | Continue the most recent conversation in the current directory |
| `-r`, `--resume` | Resume a conversation by session ID or name, or open a picker |
| `--model` | Model for this session. Alias such as fable, opus, or sonnet, or a full name |
| `--effort` | Effort level: low, medium, high, xhigh, or max |
| `--permission-mode` | acceptEdits, auto, bypassPermissions, manual, dontAsk, or plan |
| `--output-format` | With `--print`: text, json, or stream-json |
| `--allowedTools`, `--allowed-tools` | Tool names to allow |
| `--settings` | A settings JSON file, or a JSON string |
| `--add-dir` | Extra directories to allow tool access to |
| `-h`, `--help` | Display help for command |
| `-v`, `--version` | Output the version number |
| `doctor` | Subcommand. Check the installation. Reads settings without a trust prompt |

The CLI reference, checked the same day, also accepts `default` for `--permission-mode` and says `manual` is an alias for it. Help prints `manual` and does not print `default`. That page also lists `ultracode` for `--effort`. Help on this install does not.

## Settings keys

Highest precedence first: managed settings, command line (`--settings` for that session), project local, shared project, user.

| Key | What the index says |
|---|---|
| `model` | The model new sessions start with. Any file |
| `effortLevel` | Default effort when a model has no saved level. Any file |
| `language` | Respond in a language other than English. Any file |
| `outputStyle` | Role, tone, and output format. Any file |
| `permissions` | Allow, ask, and deny rules, and the default permission mode. Any file |
| `statusLine` | Your command for the line under the prompt. Any file |
| `hooks` | Your commands at points in the lifecycle. Any file |

## File locations

| What | Where |
|---|---|
| User settings | `~/.claude/settings.json` |
| Shared project settings | `.claude/settings.json` |
| Project local settings | `.claude/settings.local.json` |
| Managed settings | `managed-settings.json`, plus other managed sources |
| Claude's own file | `~/.claude.json` |
| User CLAUDE.md | `~/.claude/CLAUDE.md` |
| Project CLAUDE.md | `./CLAUDE.md` or `./.claude/CLAUDE.md` |
| Local CLAUDE.md | `./CLAUDE.local.md` |
| Managed CLAUDE.md, macOS | `/Library/Application Support/ClaudeCode/CLAUDE.md` |
| Managed CLAUDE.md, Linux and WSL | `/etc/claude-code/CLAUDE.md` |
| Managed CLAUDE.md, Windows | `C:\Program Files\ClaudeCode\CLAUDE.md` |
| Subagents | `.claude/agents/` or `~/.claude/agents/` |
| Output styles | `.claude/output-styles/` or `~/.claude/output-styles/` |
| Auto memory | `~/.claude/projects/<project>/memory/` with `MEMORY.md` |

On Windows, `~/.claude` means `%USERPROFILE%\.claude`.

## Sources

All checked November 9, 2026.

- https://code.claude.com/docs/en/commands
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/settings
- https://code.claude.com/docs/en/settings-reference
- https://code.claude.com/docs/en/memory
- https://code.claude.com/docs/en/hooks
- https://code.claude.com/docs/en/sub-agents
- https://code.claude.com/docs/en/output-styles
- https://code.claude.com/docs/en/headless
- https://code.claude.com/docs/en/skills
