Claude Code Setup and Daily Operations
Where Claude Code keeps its config files and instructions, the slash commands you use every day, and how it connects to VS Code and JetBrains. Facts checked 2026-11-08.
- Instructions live in CLAUDE.md files (managed, user, project and local), with .claude/rules/ for topic or path-scoped rules. Claude Code reads AGENTS.md when no CLAUDE.md or CLAUDE.local.md exists in the working directory or above it.
- Settings live in JSON files with fixed precedence, highest first: managed settings, command line, project local, shared project, user.
- Custom commands have been merged into skills: .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both create /deploy.
This page is a map of Claude Code setup and day-to-day operations: where config files and instructions live, which commands you use during a session, and how Claude Code connects to VS Code and JetBrains IDEs. It is a reference and a reading order, not a new tutorial. Every fact below was checked against the official docs on 2026-11-08, and the second half links to our longer guides.
We did not run any of the commands on this page for this hub. Where the docs did not state something clearly, we left it out or marked it “unverified”.
Where configuration and instructions live
Claude Code reads two kinds of files: instructions in Markdown (CLAUDE.md and friends) and settings in JSON. Skills sit beside them in .claude/.
| Mechanism | Typical location | What it is for |
|---|---|---|
| Managed CLAUDE.md | macOS /Library/Application Support/ClaudeCode/CLAUDE.md, Linux and WSL /etc/claude-code/CLAUDE.md, Windows C:\Program Files\ClaudeCode\CLAUDE.md | Organization-wide instructions managed by IT or DevOps |
| User CLAUDE.md | ~/.claude/CLAUDE.md | Your personal preferences for all projects |
| Project CLAUDE.md | ./CLAUDE.md or ./.claude/CLAUDE.md | Team-shared instructions for the project |
| Local CLAUDE.md | ./CLAUDE.local.md (add it to .gitignore) | Your private, project-specific preferences |
| AGENTS.md | AGENTS.md in the working directory or above it | Read as project instructions when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md exists in the working directory or above it |
| Rules | .claude/rules/*.md (project), ~/.claude/rules/ (personal) | One topic per file. Rules with paths frontmatter apply only to matching files |
| User settings | ~/.claude/settings.json | Your preferences in every project on the machine |
| Shared project settings | .claude/settings.json | Team permissions, hooks, plugins and environment variables; commit it |
| Project local settings | .claude/settings.local.json | Your overrides for one project; kept out of git |
| Managed settings | managed-settings.json and other managed sources | Organization security policy and compliance |
| Skills | ~/.claude/skills/<name>/SKILL.md (personal), .claude/skills/<name>/SKILL.md (project) | Instructions Claude uses when relevant, or that you invoke as /<name> |
| Legacy commands | .claude/commands/<name>.md | Still work; they create /<name> the same way a skill does |
Source: https://code.claude.com/docs/en/claude-md (checked 2026-11-08) Source: https://code.claude.com/docs/en/settings (checked 2026-11-08) Source: https://code.claude.com/docs/en/skills (checked 2026-11-08)
A few rules from the same pages matter in daily use:
- CLAUDE.md and CLAUDE.local.md files in the working directory and every directory above it load at launch. They are concatenated, not overridden. Files in subdirectories load once Claude reads, writes or edits a file there.
- Your
~/.claude/CLAUDE.md, the managed CLAUDE.md and.claude/rules/files do not count toward the AGENTS.md check, so they keep loading alongside AGENTS.md. - Settings precedence, highest first: managed settings, command line, project local, shared project, user. A key set higher overrides the same key set lower.
- Settings files are strict JSON. A
//comment or a trailing comma is a syntax error that Claude Code reports at the next start. - Claude Code also writes
~/.claude.jsonfor itself (account details, MCP server configurations, per-project state). The settings page says you don’t need to edit it.
Source: https://code.claude.com/docs/en/claude-md (checked 2026-11-08) Source: https://code.claude.com/docs/en/settings (checked 2026-11-08)
Commands you will use during a session
The commands page lists many more. These are the ones our setup guides touch.
| Command | What the docs say it does |
|---|---|
/init | Initialize the project with a CLAUDE.md guide |
/memory | Edit CLAUDE.md files, turn auto memory on or off, and view auto memory entries |
/config | Open the Settings interface (theme, model, output style and more) |
/plan [description] | Enter plan mode directly from the prompt |
/compact [instructions] | Free up context by summarizing the conversation so far |
/clear | Start a new conversation with empty context |
/resume [session] | Resume a conversation by ID or name, or open the session picker |
/context | Show current context usage as a colored grid |
/skills | List available skills |
/statusline | Configure the status line |
/ide | Manage IDE integrations and show status |
/doctor | Run a setup checkup covering installation, settings, extensions and CLAUDE.md |
Source: https://code.claude.com/docs/en/commands (checked 2026-11-08)
Outside a session, claude --continue resumes the most recent session in the current directory, and claude --resume lets you choose from a list. Plan mode is also reachable with Shift+Tab: press it mid-session until the status bar shows ⏸ plan mode on.
Source: https://code.claude.com/docs/en/common-workflows (checked 2026-11-08) Source: https://code.claude.com/docs/en/interactive-mode (checked 2026-11-08)
IDEs
- VS Code: the extension gives Claude Code a graphical panel inside the editor and needs VS Code 1.94.0 or later. It bundles its own copy of the CLI for the chat panel; to run
claudein the integrated terminal you also need the standalone CLI. It also installs in Cursor and other VS Code forks. - JetBrains: a plugin from the JetBrains Marketplace works with most JetBrains IDEs, including IntelliJ IDEA and PyCharm. From an external terminal,
/ideconnects Claude Code to the IDE.
Source: https://code.claude.com/docs/en/vs-code (checked 2026-11-08) Source: https://code.claude.com/docs/en/jetbrains (checked 2026-11-08)
How to choose where to start
These are starting points, not a ranking.
- First session: install the CLI and sign in. The quickstart lists the native installer (
curl -fsSL https://claude.ai/install.sh | bash), Homebrew and WinGet, and notes that Homebrew and WinGet installs do not auto-update. Then read our getting-started guide. - Your CLAUDE.md is getting long: move topics into
.claude/rules/and keep the main file short. See the trim and runbook guides below. - Environment variables or secrets: settings files carry project environment variables, and the shared one is committed. Read the env-vars and secrets guides before you put anything sensitive there.
- You want a plan before any edits: use
/planorShift+Tab, then read our plan mode guide. - You repeat the same prompt: turn it into a skill or a custom command.
- Long sessions:
/compactfrees context in the same conversation;/resumeand--continuebring back an earlier one. - You work in an IDE: VS Code uses an extension, JetBrains uses a plugin plus
/ide. - You run a local model: read our local LLM guide first.
Source: https://code.claude.com/docs/en/quickstart (checked 2026-11-08) Source: https://code.claude.com/docs/en/features-overview (checked 2026-11-08)
Our setup and operations guides
- Getting Started with Claude Code: install, sign-in and a first session.
- Claude Code Env Vars Not Working: why an environment variable does not take effect, and where to set it.
- Keep Secrets Away from Claude Code: keeping keys and tokens out of what Claude reads.
- How to Set Up the Claude Code Status Line: configuring the line under the prompt.
- Claude Code Plan Mode: Plan Before It Edits: getting a plan first and approving it before changes.
- How to Create Claude Code Skills (SKILL.md): writing a SKILL.md and where to put it.
- Claude Code Slash Commands: Cheat Sheet and Custom Commands: built-in commands and making your own.
- Claude Code /compact: Auto Compact and What Survives It: what compaction keeps and what it drops.
- Claude Code Resume: —continue, —resume and /resume: the three ways to return to a session.
- Trim Your CLAUDE.md: cutting an instruction file down to what Claude needs.
- CLAUDE.md as a Runbook: What to Write and Where: what belongs in CLAUDE.md and what belongs elsewhere.
- Claude Code in VS Code: Setup, Shortcuts and CLI Differences: the extension and how it differs from the CLI.
- Claude Code in JetBrains IDEs: Plugin Setup and /ide: the plugin and connecting with
/ide. - Why Claude Code Is Slow on Local LLMs: what slows Claude Code down on a local model.
Related hubs: Claude Code hooks for running commands at fixed points in a session, and AI coding tools compared for plans and prices.
Summary
- Instructions: managed, user (
~/.claude/CLAUDE.md), project (./CLAUDE.mdor./.claude/CLAUDE.md) and local (./CLAUDE.local.md) files load together;.claude/rules/splits them by topic or path. - AGENTS.md is read by default only when no CLAUDE.md,
.claude/CLAUDE.mdor CLAUDE.local.md exists in the working directory or above it. - Settings precedence, highest first: managed, command line, project local, shared project, user. Settings files are strict JSON.
- Custom commands have been merged into skills;
.claude/commands/files keep working. - Daily commands:
/init,/memory,/plan,/compact,/resume,/context,/ide,/doctor. Plan mode is also onShift+Tab. - VS Code needs 1.94.0 or later for the extension; JetBrains IDEs connect through a plugin and
/ide. - Checked against the official docs on 2026-11-08. We did not run these commands for this page.
FAQ
- Where should I put a project CLAUDE.md?
- At ./CLAUDE.md or ./.claude/CLAUDE.md. Personal preferences for every project go in ~/.claude/CLAUDE.md, and private per-project notes go in ./CLAUDE.local.md, which you add to .gitignore.
- Does Claude Code read AGENTS.md?
- Yes. By default it reads AGENTS.md only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it. The docs say reading AGENTS.md directly requires v2.1.277 or later.
- Which settings file wins when two set the same key?
- The higher level wins. The order, highest first, is managed settings, command line, project local (.claude/settings.local.json), shared project (.claude/settings.json), and user (~/.claude/settings.json).
- Are custom slash commands still supported?
- Yes. The skills page says custom commands have been merged into skills. Files in .claude/commands/ keep working, and a skill at .claude/skills/<name>/SKILL.md creates the same /<name> command.
- How do I enter plan mode?
- Type /plan, optionally with a task description, or press Shift+Tab mid-session until the status bar shows plan mode on.