All tags
claude-code
Narrow down
AI52
- 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
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
"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
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
/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
"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
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
"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
/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
---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
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
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
"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
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 -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 - 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
/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
Git7
- 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
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
Shell3
- 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 --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
Posts2
Nothing matches.