You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -423,31 +423,31 @@ For the full list of environment variables (model overrides, subagent models, tr
423
423
424
424
You can customize the spinner verbs that appear while Claude is working. Ask Claude: "In my settings, make my spinner verbs Hackers themed" — or Doom, or Star Trek, or anything else.
425
425
426
-
##Usage
426
+
# Usage
427
427
428
428
Read Anthropic's [Best practices for Claude Code](https://code.claude.com/docs/en/best-practices) before anything in this section. It's the single most important resource for getting good results. Everything below builds on it.
429
429
430
-
###Continuous Improvement
430
+
## Continuous Improvement
431
431
432
432
Most people's use of Claude Code plateaus early. You find a workflow that works, repeat it, and never discover what you're leaving on the table. The fix is a deliberate feedback loop: review what happened, adjust your setup, and let the next week benefit from what you learned.
433
433
434
434
Run `/insights` once a week. It analyzes your recent sessions and surfaces patterns -- what's working, what's failing, where you're spending time. When it tells you something useful, act on it: add a rule to your CLAUDE.md, write a hook to block a mistake you keep making, extract a repeated workflow into a skill. Each adjustment compounds. After a few weeks your setup is meaningfully different from the defaults, tuned to how you actually work.
435
435
436
-
###Project-level CLAUDE.md
436
+
## Project-level CLAUDE.md
437
437
438
438
For each project you work on, add a `CLAUDE.md` at the repo root with project-specific context. The [global CLAUDE.md](#global-claudemd) sets defaults; the project file layers on what's unique to this codebase. A good project CLAUDE.md includes architecture (directory tree, key abstractions), build and test commands (`make dev`, `make test`), codebase navigation patterns (ast-grep examples for your codebase), domain-specific APIs and gotchas, and testing conventions.
439
439
440
440
For an example of a well-structured project CLAUDE.md, see [crytic/slither's CLAUDE.md](https://github.com/crytic/slither/blob/master/CLAUDE.md). It layers slither-specific context -- SlithIR internals, detector traversal patterns, type handling pitfalls -- on top of the same global standards from this repo.
441
441
442
-
###Output Styles
442
+
## Output Styles
443
443
444
444
Enable the **Explanatory**[output style](https://code.claude.com/docs/en/output-styles) (`/output-style explanatory` or `"outputStyle": "Explanatory"` in `settings.json`) when getting familiar with a new codebase. Claude explains frameworks and code patterns as it works, adding "★ Insight" blocks with reasoning and design choices alongside its normal output. Useful when auditing unfamiliar code, reviewing a language you don't write daily, or onboarding onto a client engagement. The tradeoff is context: longer responses mean earlier compaction. Switch back to the default when you want speed. You can also [create custom styles](https://code.claude.com/docs/en/output-styles) as markdown files in `~/.claude/output-styles/`.
445
445
446
-
###Context Management
446
+
## Context Management
447
447
448
448
The context window is finite and irreplaceable mid-session. Every file read, tool call, and conversation turn consumes it. When it fills up, Claude auto-compacts -- summarizing the conversation to free space. Auto-compaction works, but it's lossy: subtle decisions, error details, and the thread of reasoning degrade each time. The best strategy is to avoid needing it.
449
449
450
-
####Keeping sessions clean
450
+
### Keeping sessions clean
451
451
452
452
**Scope work to one session.** Each feature, bug fix, or investigation should fit within a single context window. If a task is too large, break it into pieces and run each in a fresh session. This is the single most effective thing you can do for quality.
453
453
@@ -459,7 +459,7 @@ A session that stays within its context budget produces better code than one tha
459
459
460
460
**Cut your losses after two corrections.** If you've corrected Claude twice on the same issue and it's still wrong, don't keep pushing -- the context is polluted with failed approaches. Use checkpoints (`Esc Esc` or `/rewind`) to roll back to before the first wrong attempt and try again with a better prompt. If the session is too far gone even for that, `/clear` and start fresh. A clean prompt that incorporates what you learned almost always outperforms a long session with accumulated corrections.
461
461
462
-
####Tools for managing context
462
+
### Tools for managing context
463
463
464
464
**Checkpoints** (`Esc Esc` or `/rewind`) restore code and conversation to any previous prompt in the session. They're your undo system -- use them aggressively. Try risky approaches knowing you can rewind if they don't work out.
465
465
@@ -475,15 +475,15 @@ Use this deliberately: when a task requires reading a lot of documentation, expl
475
475
476
476
If you need to pass context between sessions, commit your work, write a brief plan to a file, `/clear`, and start the next session by pointing Claude at that file. You can also resume previous sessions with `claude --continue` (picks up the last session) or `claude --resume` (lets you choose from recent sessions). But a fresh session with a written handoff is usually better than resuming a stale one -- the context is cleaner and the prompt cache is warm.
477
477
478
-
###Web Browsing
478
+
## Web Browsing
479
479
480
480
Claude Code has three ways to interact with the web.
481
481
482
-
####Exa AI (MCP)
482
+
### Exa AI (MCP)
483
483
484
484
Semantic web search that returns clean, LLM-optimized text. Unlike the built-in `WebSearch` tool (which returns search result links that Claude then has to fetch and parse), Exa returns the actual content pre-extracted and formatted for LLM consumption. This saves context window and produces more relevant results. Your CLAUDE.md can instruct Claude to prefer Exa over `WebSearch`.
485
485
486
-
####agent-browser
486
+
### agent-browser
487
487
488
488
Headless browser automation via CLI. Runs its own Chromium instance -- it does **not** share your Chrome profile, cookies, or login sessions. This means it can't access authenticated pages (Google Docs, internal dashboards, etc.) without logging in from scratch. What it excels at is context efficiency: the snapshot/ref system (`@e1`, `@e2`) uses ~93% less context than sending full accessibility trees, so the agent can navigate complex multi-page workflows without exhausting its context window. Also supports video recording and parallel sessions.
You need to install the first-party skill for Claude to use agent-browser effectively -- see [agent-browser skill](#agent-browser-skill) in Configuration.
499
499
500
-
####Claude in Chrome (MCP)
500
+
### Claude in Chrome (MCP)
501
501
502
502
Browser automation via the [Claude in Chrome](https://chromewebstore.google.com/detail/claude/fcoeoabgfenejglbffodgkkbkcdhcgfn) extension. Operates inside your actual Chrome browser, so it has access to your existing login sessions, cookies, and extensions. This is the only option that can interact with authenticated pages (Gmail, Google Docs, Jira, internal tools) without re-authenticating. The tradeoff is that it uses screenshots and accessibility trees for page understanding, which consumes more context than agent-browser's ref system.
503
503
504
-
####When to use which
504
+
### When to use which
505
505
506
506
| Need | Use |
507
507
|------|-----|
@@ -511,15 +511,15 @@ Browser automation via the [Claude in Chrome](https://chromewebstore.google.com/
511
511
| Record a video of browser actions | agent-browser |
512
512
| Inspect visual layout or take screenshots for analysis | Claude in Chrome |
513
513
514
-
###Fast Mode
514
+
## Fast Mode
515
515
516
516
`/fast` toggles fast mode. Same Opus 4.6 model, ~2.5x faster output, 6x the cost per token. Leave it off by default.
517
517
518
518
The only time fast mode is worth it is **tight interactive loops** -- you're debugging live, iterating on output, and every second of latency costs you focus. If you're about to kick off an autonomous run (`/fix-issue`, a swarm, anything you walk away from), turn it off first. The agent doesn't benefit from lower latency; you're just burning money.
519
519
520
520
If you do use it, enable it at session start. Toggling it on mid-conversation reprices your entire context at fast-mode rates and invalidates prompt cache. See the [fast mode docs](https://code.claude.com/docs/en/fast-mode) for details.
521
521
522
-
###Commands
522
+
## Commands
523
523
524
524
Custom slash commands are markdown files that define reusable workflows. The two in `commands/` were extracted from manual workflows that kept showing up in `/insights` -- if you notice yourself repeating the same multi-step sequence, it's a good candidate for a command.
[`commands/review-pr.md`](commands/review-pr.md) -- Reviews a GitHub PR with parallel agents, fixes findings, and pushes. Invoke with `/review-pr 456` where `456` is the PR number.
535
535
536
-
####Fix Issue
536
+
### Fix Issue
537
537
538
538
[`commands/fix-issue.md`](commands/fix-issue.md) -- Takes a GitHub issue and fully autonomously completes it -- plans, implements, tests, creates a PR, self-reviews with parallel agents, fixes its own findings, and comments on the issue when done. Invoke with `/fix-issue 123` where `123` is the issue number.
539
539
540
540
Once a workflow is a command, it's not just faster for you -- it's something an agent can run too. You can point `/fix-issue` at 50 issues in parallel across worktrees, run `/review-pr` on every open PR in a repo, or schedule either as part of CI. Commands turn manual workflows into scalable operations.
541
541
542
-
###Recommended Skills
542
+
## Recommended Skills
543
543
544
544
Skills come from plugins you install via the Trail of Bits marketplaces and third-party marketplaces. Here are the ones worth knowing about from each.
545
545
546
-
####Trail of Bits ([trailofbits/skills](https://github.com/trailofbits/skills))
546
+
### Trail of Bits ([trailofbits/skills](https://github.com/trailofbits/skills))
547
547
548
548
Security auditing, code analysis, and development workflows. Installed automatically with the Trail of Bits marketplace.
549
549
@@ -554,7 +554,7 @@ Security auditing, code analysis, and development workflows. Installed automatic
554
554
|`audit-context-building`| Line-by-line code analysis using First Principles and 5 Whys methodology | Building deep understanding of unfamiliar code before an audit |
555
555
|`differential-review`| Security-focused review of code changes with blast radius analysis | Reviewing PRs or commits where security impact matters |
Workflow discipline -- enforces planning before coding, structured debugging, and verification before declaring victory. The skills chain together: brainstorm → plan → execute → verify.
560
560
@@ -563,7 +563,7 @@ Workflow discipline -- enforces planning before coding, structured debugging, an
563
563
|`/superpowers:brainstorm`| Refines ideas through Socratic questioning before implementation | Starting any non-trivial feature -- catches unclear requirements early |
564
564
|`/superpowers:systematic-debugging`| Structured 4-phase root cause analysis | Any bug where the cause isn't obvious -- prevents treating symptoms |
565
565
566
-
####Anthropic Official ([anthropics/claude-code/plugins](https://github.com/anthropics/claude-code/tree/main/plugins))
566
+
### Anthropic Official ([anthropics/claude-code/plugins](https://github.com/anthropics/claude-code/tree/main/plugins))
567
567
568
568
Official plugins maintained in the Claude Code repo. Install via the `claude-plugins-official` marketplace.
569
569
@@ -574,7 +574,7 @@ Official plugins maintained in the Claude Code repo. Install via the `claude-plu
574
574
575
575
The `code-simplifier` agent inside `pr-review-toolkit` can also be targeted individually with `/pr-review-toolkit:review-pr simplify` for a focused simplification pass.
@@ -583,7 +583,7 @@ Multi-agent workflows for planning and review.
583
583
|`/workflows:plan`| Turns feature descriptions into implementation plans with parallel research agents | Starting a feature that touches multiple files or components |
584
584
|`/workflows:review`| Runs 15 specialized review agents in parallel (security, performance, architecture, style) | Before merging any significant PR -- catches what solo review misses |
585
585
586
-
###Recommended MCP Servers
586
+
## Recommended MCP Servers
587
587
588
588
Beyond the core Context7 and Exa servers (see [MCP Servers](#mcp-servers)), these are worth adding for specific workflows.
0 commit comments