Skip to content

Instantly share code, notes, and snippets.

@weisisheng
Forked from pffigueiredo/claude-code-sheet.md
Created October 19, 2025 02:52
Show Gist options
  • Select an option

  • Save weisisheng/dbaa9fed4a95fdae0c7ed91f7a6ba713 to your computer and use it in GitHub Desktop.

Select an option

Save weisisheng/dbaa9fed4a95fdae0c7ed91f7a6ba713 to your computer and use it in GitHub Desktop.
Claude Code Sheet Sheet

Claude Code

Plan Mode

  • Shift + tab + tab
  • Use “opus” for planning and Sonnet for everything else, /model

Multi Agent Parallel Tasks

  • Run 15 task agents in parallel, give each of them a unique extreme personality and ask them to review the code from their own unique lens
  • For more complex multi-agent workloads: https://github.com/parruda/claude-swarm

Clear/Compact Existing Context

  • /clear, this will erase everything. Prefer /compact for summarizing the chat.

MCP Server

  • https://github.com/oraios/serena Enables better find and replace capabilities that work at the symbol level
  • Context7 for up-to-date docs without need for web crawling
  • Playwright for UI testing

Types First

  • Build the business model first and then the code. This can even be a DB schema or zod schemas.

Adding Tons of Text as Context

  • Don’t paste a lot of text into Claude Code terminal. Instead, create a new file, add the text there, and add it as context to Claude Code using the @ tag.

Pasting Images

  • CTRL + V

Continue to the Last Session

  • claude -c

Initializing CLAUDE.md

  • /init

Check Usage

  • npx ccusage
  • /cost

Custom Commands

  • For repeated workflows—debugging loops, log analysis, etc.—store prompt templates in Markdown files within the .claude/commands folder. These become available through the slash commands menu when you type /.. You can check these commands into git to make them available for the rest of your team.
  • Use argument-hint and description in header.

Thinking Modes

  • “Think” < “think hard” < “think harder” < “ultrathink”
  • 4k < 8k < 16k < 32k TOKENS

Claude Code Headless Mode

  • Example: npm audit —json | claude -p ‘Order the vulnerabilities by the most critical fixes needed’ > vulnerabilties.md

Check Past Sessions

  • claude —resume

StatusLine

  • Example: /statusline add Model | Git Branch | Tokens | Directory
  • Customize the line below the chat input with: Model | Git Branch | Tokens | Directory

MCP

  • Use a .mcp.json file to have MCP servers per project.

YOLO Mode

  • Open Claude with —dangerous-skip-permissions

Rewind

  • Undo last piece of work: /rewind OR ESC + ESC

Look for Text in Conversation

  • Use Ctrl + R like in any other terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment