Skip to content

Instantly share code, notes, and snippets.

@pffigueiredo
Last active October 28, 2025 09:34
Show Gist options
  • Save pffigueiredo/252bac8c731f7e8a2fc268c8a965a963 to your computer and use it in GitHub Desktop.
Save pffigueiredo/252bac8c731f7e8a2fc268c8a965a963 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

Add to Claude.MD to make messages less bloated with useless info

  • "In all interactions and commit messages, be extremely concise and sacrifice on grammar for the sake of concision."
@patrickjaja
Copy link

patrickjaja commented Oct 21, 2025

thanks for your insights to the work at neon, i really enjoy that product. And thanks for your share of that filtered CC docs.

btw i think you also need to make your CC pink 😏

https://github.com/Piebald-AI/tweakcc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment