Use `/help` to get an overview of all Claude commands.
Press `[ESC]` anytime to abort whatever Claude is doing.
## Global Configuration
```
~/.claude/CLAUDE.md
```
## Project Setup
Start Claude from your terminal:
```bash
claude
```
Set up Claude's memory of the codebase:
```
/init
```
This will create the CLAUDE.md file in your codebase that should go into git:
```bash
git add CLAUDE.md
git commit -m "Claude initialized."
```
`/init` also creates a `.claude` directory with `settings.local.json` that should not be checked in.
Start `claude` commands with a hash `#` to instruct Claude to commit information to memory:
```
# always use uv to manage this project, never use pip or poetry
```
Claude will ask you into which `CLAUDE.md` file to commit that information.
## Conversations
To end a conversation with Claude and start fresh use:
```
/clear
```
To keep a summary of a conversation in context, use:
```
/compact
```
Press Esc twice ([ESC][ESC]) to undo the conversation and move back to the previous checkpoint in time.
### Context references: ==@==
To point Claude to a file or folder, use the `@` sign to refer to a file or directory.
You can insert the current file or selection as a reference with [CMD][OPT][K] (Ctrl-Alt on Windows).
### Modes: ==[SHIFT][TAB]==
Press [SHIFT][TAB] to cycle between planning, auto-editing, and normal mode.
In "edit" mode, file edits are applied without requiring user confirmation.
## References
- [Handling common workflows with Claude code.](https://docs.anthropic.com/en/docs/claude-code/common-workflows): Codebase exploration, finding code, fixing bugs, refactoring code, testing code, creating PRs, edit documentation, using Claude in shell pipelines, customization
- [Best practices for agentic Claude coding.](https://www.anthropic.com/engineering/claude-code-best-practices)
-