All tags
Start here · claudeClaude Code on your own VM: MacBook for the conversation, Unraid for the work11 steps · 8 min read · Claude Code users with an Unraid serverStart the guide claude
Narrow down
Guides1
AI81
- Tip
/recap/recap tells you where you left off in a Claude Code sessionPrints a one-line summary of the current Claude Code session whenever you ask for it.3 Dec 2026 - Tip
/focus/focus hides the tool noise and shows only the answer in Claude CodeCollapses a Claude Code turn to your prompt, a one-line tool summary and the final response.3 Dec 2026 - Tip
/skill-doctor/skill-doctor shows which Claude Code skills cost context and never get usedLists what each of your skills costs in context and flags the ones nobody has invoked.3 Dec 2026 - Tip
/autocompact 500k/autocompact decides how full Claude Code lets the context get before it compactsSets how much of the context window fills up before Claude Code compacts automatically.3 Dec 2026 - Tip
claude purge ~/work/my-repo --dry-runclaude purge wipes everything Claude Code stored about one projectDeletes the transcripts, memory and history Claude Code holds for a project, after showing a plan.3 Dec 2026 - Tip
claude auth status --textclaude auth status --text tells you when your Claude Code login endsShows which login Claude Code uses and, on recent versions, when a claude.ai sign-in expires.3 Dec 2026 - Tip
claude mcp login sentryclaude mcp login signs in to an MCP server from your shell, even over SSHRuns an MCP server's OAuth sign-in from the shell and prints the URL when no browser is available.3 Dec 2026 - Tip
claude --debug='mcp,startup'claude --debug can filter by category and write its log to a file you chooseStarts Claude Code with debug logging for only the categories you name, written to a file.3 Dec 2026 - Tip
/import cursor --dry-run/import brings your Codex, Gemini CLI or Cursor setup into Claude CodeCopies instruction files, MCP servers, commands, subagents and skills from another coding tool into Claude Code.3 Dec 2026 - Tip
---disallowed-tools in a skill's frontmatter removes tools while that skill runsTakes chosen tools away from Claude while a skill is active, until your next message.3 Dec 2026 - Tip
Why does @src/auth/session.ts refresh the token twice?Type @ in Claude Code to point at a file instead of describing itAutocompletes file paths in your prompt so Claude looks at exactly the file you mean.30 Nov 2026 - Tip
/plan fix the login redirect bug when the session cookie has expired/plan fix the bug starts plan mode and the task in one goSwitches to plan mode with a task attached, so nothing gets edited before you agree.30 Nov 2026 - Tip
/config verbose=true/config key=value changes a setting in one lineSets a session setting straight from the prompt instead of through the settings panel.30 Nov 2026 - Tip
Ctrl+VPaste a screenshot into Claude Code with Ctrl+V, not Cmd+VPuts an image from the clipboard into your Claude Code prompt as a numbered chip.30 Nov 2026 - Tip
/init/init writes a first CLAUDE.md for your project in Claude CodeLets Claude scan the repository and draft the project instructions file for you.30 Nov 2026 - Tip
"permissions": {Allow WebFetch per domain so Claude Code reads your docs without askingLets Claude fetch pages from chosen sites without a prompt and keeps asking for the rest.30 Nov 2026 - Tip
/cd ../api-server/cd moves a Claude Code session to another folder and keeps the conversationSwitches the session's working directory and loads that project's settings, without starting over.30 Nov 2026 - Tip
claude --resume auth-refactor --fork-sessionclaude with fork-session resumes a Claude Code session as a copyContinues from an old conversation under a new session ID, so the original stays untouched.30 Nov 2026 - Tip
"permissions": {Set defaultMode to plan so Claude Code starts every session by reading firstMakes new Claude Code sessions open in plan mode instead of asking per edit.30 Nov 2026 - Tip
/memory/memory opens every CLAUDE.md and the auto memory Claude keepsShows which instruction files Claude Code loads and lets you edit them or switch auto memory off.30 Nov 2026 - Tip
Find the passages in the contract that say anything about ending it early.Ask Claude to quote the relevant parts first when you hand it a long documentMakes Claude pull the relevant passages out of a long text before it answers.30 Nov 2026 - Tip
"hooks": {A UserPromptSubmit hook adds fresh context to every Claude Code promptRuns a command each time you send a prompt and gives its output to Claude as context.30 Nov 2026 - Tip
"env": {The env block in Claude Code settings sets variables for every sessionPuts environment variables in settings.json so every Claude Code session and its commands get them.30 Nov 2026 - Tip
claude -p "Explain what this repository does" \Stream claude -p output as JSON and print only the text as Claude writes itShows the answer of a headless Claude Code run live instead of waiting for the end.30 Nov 2026 - Tip
echo '{"decision": "block", "reason": "The tests fail. Run npm test and fix them before you stop."}'A Stop hook keeps Claude Code working until your tests passBlocks Claude from ending its turn while the test suite fails, with a guard against loops.30 Nov 2026 - Tip
Ctrl+BCtrl+B sends a slow command in Claude Code to the backgroundMoves a long-running shell command out of the way so you and Claude can keep working.30 Nov 2026 - Tip
claude -p "Check the docs folder for broken internal links and list them" \Run claude -p in dontAsk mode so a CI job never waits on a Claude promptDenies every action that would need approval and lets only your allowed tools run.30 Nov 2026 - Tip
"language": "dutch"The language setting makes Claude Code answer in your own languageTells Claude Code to always reply in a language you choose, in every session.30 Nov 2026 - Tip
"spinnerTipsEnabled": falseTurn off Claude Code spinner tips, and learn which settings file winsHides the hints under the spinner and shows how user, project and local settings stack.30 Nov 2026 - Tip
Before you finish, verify your answer against these cases:End a Claude prompt with what to verify before it finishesAsks Claude to check its answer against criteria you name, which catches mistakes in code and math.30 Nov 2026 - Tip
claude --safe-modeclaude --safe-mode starts Claude Code without your customisationsStarts Claude Code without hooks, skills, plugins, MCP servers or CLAUDE.md, to see whether your setup causes a problem.28 Nov 2026 - Tip
claude --append-system-prompt-file ./extra-rules.txtclaude --append-system-prompt-file adds your own rules to the default promptAdds text from a file to the end of Claude Code's default system prompt for one session.28 Nov 2026 - Tip
claude --settings '{"model": "claude-opus-5-5"}'claude --settings overrides settings for one session with inline JSONOverrides Claude Code settings for a single session with a JSON file or an inline JSON string.28 Nov 2026 - Tip
claude --from-pr 123claude --from-pr 123 reopens the session that opened a pull requestOpens the Claude Code sessions that are linked to a specific pull request.28 Nov 2026 - Tip
claude --strict-mcp-config --mcp-config ./only-this.jsonclaude --strict-mcp-config --mcp-config loads only the MCP servers you nameStarts Claude Code with only the MCP servers from the file you pass, skipping all others.28 Nov 2026 - Tip
claude -p --no-session-persistence "Explain what this error means: connection refused"claude -p --no-session-persistence leaves no saved session on diskRuns a Claude Code print-mode query without saving the session to disk.28 Nov 2026 - Tip
claude agents --jsonclaude agents --json lists background sessions for your scriptsPrints your active Claude Code background sessions as a JSON array for scripts.28 Nov 2026 - Tip
"editorMode": "vim",EditorMode vim gives the Claude Code prompt Vim keys, and jj can be your EscapeTurns on Vim-style editing in the Claude Code prompt, with jj as an optional Escape.27 Nov 2026 - Tip
// .claude/settings.jsonThe attribution setting controls the Co-Authored-By line Claude Code puts in commitsChanges or removes the attribution text Claude Code adds to commits and pull requests.27 Nov 2026 - Tip
// ~/.claude/settings.jsonCleanupPeriodDays decides how long Claude Code keeps your old sessionsSets how many days Claude Code keeps transcripts and other session files before deleting them.27 Nov 2026 - Tip
New chat (outside a project) → ghost icon, upper rightAn incognito chat in Claude stays out of your history and memoryStarts a Claude chat that skips your history and memory and isn't used for training.27 Nov 2026 - Tip
/output-style concise/output-style changes how Claude Code talks to you, from concise to teachingSwitches Claude Code between built-in answer styles such as Concise, Explanatory and Learning.26 Nov 2026 - Tip
/doctor/doctor checks your Claude Code setup and only fixes things after you say yesRuns a checkup of a Claude Code install, settings and extensions, and proposes fixes.26 Nov 2026 - Tip
/export session-notes.txt/export saves a Claude Code conversation as plain textWrites the current Claude Code conversation to a text file or your clipboard.25 Nov 2026 - Tip
claude -cclaude -c picks up the last Claude Code session in this folderReopens your most recent conversation in the current directory, so you carry on where you stopped.23 Nov 2026 - Tip
Set project instructions -> "Answer in plain English. Ask a questionUse Claude Projects so you stop repeating the same contextKeeps your documents and standing instructions ready in every chat of a Claude project.21 Oct 2026 - Tip
Summarize the email below in two sentences and list any deadlines.Wrap each part of a long Claude prompt in its own XML tagSeparates instructions from pasted content in a Claude prompt so the two are not confused.19 Oct 2026 - Tip
Keep the answer under 100 words, because it goes in an SMS.Explain why you want something and Claude aims betterAdds the reason behind an instruction to a Claude prompt so the answer fits your goal better.13 Oct 2026 - Tip
"command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'"Add a Notification hook so Claude Code pings you when it waitsSends a desktop notification when Claude Code is waiting for your input or approval.5 Oct 2026 - Tip
Which clauses change the notice period? Quote them first, then explain.Put the long document first and your question last in ClaudeOrders a Claude prompt with the long text first and your question at the end.3 Oct 2026 - Tip
/model opusplan/model opusplan plans with Opus and codes with SonnetUses Opus while planning and switches to Sonnet when Claude Code starts the actual work.1 Oct 2026 - Tip
exit 2Block edits to .env with a PreToolUse hook that exits 2Blocks Claude Code from editing protected files by running a script that exits with code 2.26 Sep 2026 - Tip
"model": "opus".claude/settings.local.json overrides the team file just for youOverrides a shared Claude Code project setting for you only, without touching git.23 Sep 2026 - Tip
"command": "f=$(jq -r '.tool_input.file_path') && npx prettier --write --ignore-unknown \"$f\""Let a PostToolUse hook run Prettier after every Claude editFormats every file Claude Code edits by running Prettier from a hook.21 Sep 2026 - Tip
/statusline show model name and context percentage with a progress bar/statusline builds you a status bar with context usage in itAdds a custom status bar to Claude Code showing things like model and context usage.19 Sep 2026 - Tip
/compact keep the failing test names and the decision to use SQLiteGive /compact a focus before the context runs outSummarizes a long Claude Code conversation while keeping the parts you name.16 Sep 2026 - Tip
---A skill can run shell commands before Claude reads itRuns a shell command before a skill loads, so Claude gets fresh data in its prompt.11 Sep 2026 - Tip
---Scope instructions with paths in .claude/rulesMakes a Claude Code rule load only when Claude works on files matching a pattern.9 Sep 2026 - Tip
You are a code reviewer. Give specific, actionable feedback.Claude --agent runs your whole session as one of your subagentsStarts a Claude Code session as one of your own subagents, with its tools and model.8 Sep 2026 - Tip
echo "CLAUDE.local.md" >> .gitignorePut personal project notes in CLAUDE.local.md and gitignore itKeeps your own project notes for Claude Code out of the shared CLAUDE.md and out of git.4 Sep 2026 - Tip
/copy 2/copy 2 copies Claude's second-to-last answer, not just the lastCopies an earlier Claude Code answer, or a single code block from it, to the clipboard.23 Aug 2026 - Tip
See @README for the project overview and @package.json for npm scripts.@-import files in CLAUDE.md instead of pasting themPulls other files into Claude Code's CLAUDE.md instructions with one @path line.23 Aug 2026 - Tip
/context/context shows what is eating your Claude Code context windowShows how full the Claude Code context window is and what is taking the space.19 Aug 2026 - Tip
"permissions": {Deny Read(./.env) so Claude never opens your secretsStops Claude Code from reading your .env file by adding a deny rule to settings.14 Aug 2026 - Tip
/goal all tests in test/auth pass and the lint step is clean/goal keeps Claude working until a condition you wrote is trueKeeps Claude Code working turn after turn until a condition you describe is met.14 Aug 2026 - Tip
claude --permission-mode planPress Ctrl+G in plan mode and edit Claude's plan yourselfLets Claude Code plan first, and lets you edit that plan in your editor before it changes anything.1 Aug 2026 - Tip
claude --permission-mode acceptEditsShift+Tab cycles permission modes, and acceptEdits skips the file-edit promptsCycles Claude Code between permission modes, including one that stops asking about file edits.26 Jul 2026 - TipCtrl+O opens the transcript view where Claude's work is not hiddenShows the full detail of tool calls, hooks and models behind a Claude Code turn.18 Jul 2026
- Tip
Ctrl+Enter send the queued messages nowType while Claude works and your message is queued, not lostQueues what you type while Claude is busy, and lets you take it back with the Up arrow.15 Jul 2026 - TipCtrl+S stashes the prompt you are typing and brings it back laterParks the half-written prompt, lets you send something else, then restores it.12 Jul 2026
- Tip
claude -p "Extract the main function names from auth.py" \–json-schema makes claude -p return JSON you can trustMakes a scripted Claude Code run return validated JSON instead of free text.7 Jul 2026 - TipCtrl+R searches every prompt you ever sent to Claude CodeSearches your earlier Claude Code prompts as you type so you can reuse them.5 Jul 2026
- Tip
claude --fallback-model sonnet,haiku–fallback-model keeps a run going when the main model is overloadedSwitches Claude Code to a backup model automatically when the main one is overloaded.2 Jul 2026 - Tip
claude -n auth-refactorName your Claude Code sessions and resume them by nameStarts Claude Code sessions with a name so you can resume the right one later.1 Jul 2026 - Tip
! npm testA leading ! runs a shell command inside Claude CodeRuns a shell command from the Claude Code prompt and puts the output in the conversation.22 Jun 2026 - Tip
cat build-error.txt | claude -p 'concisely explain the root cause of this build error' > output.txtPipe a log straight into claude -p instead of pasting itSends a log or diff from the shell straight into Claude Code and prints the answer.22 Jun 2026 - Tip
claude --bare -p "Summarize README.md" --allowedTools "Read"Add --bare to claude -p so scripts run the same everywhereRuns a scripted Claude Code call without loading hooks, plugins, MCP servers or CLAUDE.md.19 Jun 2026 - Tip
/btw what was the name of that config file again?Ask Claude Code a /btw question and keep your context cleanAsks Claude Code a quick question about your session without adding it to the conversation.13 Jun 2026 - Tip
.envA .worktreeinclude file carries your .env into each Claude worktreeCopies your gitignored local files, like .env, into every new Claude Code worktree.12 Jun 2026 - Tip
claude --worktree feature-authclaude -w gives every session its own git worktreeStarts Claude Code in its own git worktree and branch so parallel sessions do not collide.7 Jun 2026 - Tip
claude --add-dir ../api-server–add-dir lets Claude see a second folder in the same sessionLets one Claude Code session read and edit files in a second project folder.4 Jun 2026
Git9
- Tip
claude -p "Now write the three biggest issues as GitHub issue text" --resume "$session_id"Save the session_id from claude -p and resume that exact Claude conversationLets a script continue one specific Claude Code conversation, even when others ran in between.30 Nov 2026 - Tip
/security-review/security-review in Claude Code checks your branch for security holesReviews the diff between your branch and the main branch for injection, auth and data leaks.30 Nov 2026 - Tip
"ask": ["Bash(git push *)"]An ask rule makes Claude Code check with you before every git pushForces a confirmation prompt for chosen commands, even in modes that would allow them.30 Nov 2026 - Tip
/diff/diff shows what Claude changed without leaving Claude CodeOpens a view of the uncommitted changes in your working tree, including Claude's edits.30 Nov 2026 - Tip
"command": "git status --short --branch && git log --oneline -5"A SessionStart hook gives Claude Code your git status before you typeFeeds your branch, changed files and last commits to Claude Code when a session starts.27 Nov 2026 - Tip
git diff --staged | claude -p "Summarize this diff in one sentence"Claude -p lets you pipe text into Claude Code from a script10 Nov 2026 - Tip
/branch try-sqlite/branch lets you try another direction without losing this conversationSplits the current Claude Code conversation so you can explore a different direction safely.28 Aug 2026 - Tip
claude -p "Look at my staged changes and create an appropriate commit" \Scope --allowedTools to single git commands, with a space before the starLets a scripted Claude Code run use only the git commands you list, without prompting.24 Jul 2026 - Tip
/rewind/rewind undoes Claude's edits without touching gitRolls the code and the conversation back to an earlier prompt in your Claude Code session.6 Jun 2026
Shell4
- Tip
claude --tools "Read,Grep"claude --tools restricts which built-in tools Claude can useLimits Claude Code to the built-in tools you list, such as read-only ones.28 Nov 2026 - Tip
/terminal-setup/terminal-setup makes Shift+Enter add a new line in Claude Code inside VS CodeAdds a Shift+Enter newline binding to terminals where Shift+Enter sends your prompt instead.27 Nov 2026 - Tip
claude -p "run the test suite" --permission-mode dontAsk --allowedTools "Bash(npm test)" "Read"–permission-mode dontAsk denies instead of waiting in unattended runsMakes an unattended Claude Code run deny anything not on your allowlist instead of waiting.5 Aug 2026 - Tip
claude -p --max-turns 3 --max-budget-usd 2 "Fix the failing test in auth.py" --allowedTools "Read,Edit,Bash"Cap a headless Claude run with --max-turns and --max-budget-usdStops a scripted Claude Code run after a set number of turns or amount of spend.15 Jul 2026
Web1
Mac1
Network1
Posts6
- PostClaude now has an Apple Watch app, and the part I care about is that it works without my iPhone2 Dec 2026
- PostAn anonymous site hands you one prompt that makes ChatGPT, Claude and Gemini gossip about you27 Nov 2026
- PostClaude Code’s “don’t ask again” saved real passwords in 1,122 public GitHub files, and I’d check my own repos8 Nov 2026
- PostClaude Code spends up to a fifth of its requests on a 3-5 word status line30 Oct 2026
- PostTorvalds let Claude Code help with the kernel, and said so in the commit26 Oct 2026
- PostSuperpowers 🦸🏻28 Aug 2026
Nothing matches.