Claude Code
Anthropic's agentic coding tool for the terminal, IDEs, desktop and web.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
Claude Code reads your repository, runs commands, edits files and checks its own work, with you approving actions as it goes. It runs in the terminal, in VS Code and JetBrains, in a desktop app, on the web and in the Claude mobile app, and it can be extended with CLAUDE.md instructions, Agent Skills, subagents, hooks and MCP servers. An experimental Code Mode lets Claude write JavaScript that makes several tool calls in one step.
Best for
Developers who want an agent across a whole codebase, also in CI.
Skills it helps with
Learn Claude Code by doing
- Build an agent with the Claude Agent SDK
Built-in tools, a custom tool, a permission callback, a subagent and a project skill, tested before you spend tokens.
- Evaluate coding agents on your own repository
Run Claude Code and Codex headless against 10 closed issues from your repo, then score them with the real fix's tests and a blind review rubric.
- Agent memory and compaction in practice
Keep long Claude Code sessions accurate with compaction, CLAUDE.md, auto memory, subagents and a summarise-and-restart routine, and know what survives each.
- Claude Code hooks: run checks around every tool call
Write Claude Code PreToolUse and PostToolUse hooks that block destructive shell commands, format every file Claude edits and log each command for later audit.
- Permissions and sandboxing for coding agents
Set up Claude Code permission modes and rules, the Codex sandbox and approvals, and a dev container, so an agent can work without free rein.
- Connect MCP servers to Claude Code, Codex and Cursor
Add local and remote MCP servers to Claude Code, Codex and Cursor, choose the right scope, sign in with OAuth and check which tools actually loaded.
- Exploratory testing with Playwright MCP
Give a coding agent a browser through Playwright MCP, run a time-boxed exploratory charter, record findings, and turn the confirmed ones into Playwright specs.
- Run coding agents headless in CI
Run claude -p and codex exec in GitHub Actions with pinned versions, narrow permissions, scoped secrets and separate jobs for writing back to the pull request.
- Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
- Build an MCP server in Python with FastMCP
Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.
- Build an MCP server in TypeScript
Build a small MCP server with the official TypeScript SDK v2, test it from the command line and in MCP Inspector, then connect it to Claude Code or Cursor.
- Your first session with Claude Code
Install it, run it in a real repository, approve its first changes, commit a reviewed edit and learn the commands you will use daily.
- CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
- Context engineering techniques: what the model should see
What to put in a model's context at each step, what to leave out, and how instruction files, retrieval and tools fit.
- MCP explained: hosts, clients, servers and transports
What MCP is and how the Model Context Protocol connects AI apps to tools and data: hosts, clients, servers, transports and what the 2026-07-28 spec changed.
- Playwright test agents: planner, generator and healer
How Playwright's planner, generator and healer test agents work, how to set them up with Claude Code or VS Code, and how to review the tests they write for you.
- Ship a team Agent Skill end to end: build, test, share
An Agent Skill example project from idea to install: write SKILL.md, validate it against the spec, test when it fires and share it with one install command.
- Code review with Claude Code on every pull request
Write your checklist once, dry-run it locally, then review every pull request in GitHub Actions and post the findings.
- Turn a Figma design into code with an agent
Connect the Figma MCP server, map the design's variables to your tokens first, build one frame, then run a visual diff and an axe check.
- Migrate a JavaScript project to TypeScript with a coding agent
allowJs first, convert files leaves first in worktree batches, then raise strictness one flag at a time.
- Review a contract with AI before it goes to legal
Write a short playbook, check clause by clause, quote every red flag from the text, then brief your lawyer.
- Schedule a recurring task for a coding agent
Schedule Claude Code tasks and Codex runs: write a self-contained prompt, cut connectors and network to the minimum, test with Run now, and know how to stop it.
- Test-driven development with a coding agent
Agree the seams, write one failing test, lock the tests with a hook while the agent makes it pass, then prove the test can fail.
- Translate app strings with AI and keep them consistent
A glossary per language, protected placeholders, plural and length checks in code, then human review.
- Triage production errors with an agent
AI error triage with a coding agent: read errors over a read-only Sentry MCP connection, write a triage note, reproduce in a failing test, then fix behind it.
- Write a product requirements doc with AI
Turn notes and customer quotes into an evidence table, draft goals, non-goals and acceptance criteria, get grilled, then check every claim.
- Audit and upgrade risky dependencies with an agent
Audit project dependencies with Trail of Bits' supply-chain-risk-auditor skill, group upgrades by risk, update one batch on a branch and prove tests pass.
- Debug a bug with an AI agent: reproduce it, then fix it
Write the bug report, have the agent reproduce it as a failing test, find the root cause, apply a small fix and prove it.
- Write code documentation from the source with an AI agent
A cited fact sheet first, docstrings with runnable examples, then proof that only docs changed and every example runs.
- Understand an unfamiliar codebase with an AI agent
Get a read-only map where every claim cites a file and line, check the citations, trace one path and test what you learned.
- Upgrade a dependency with an AI coding agent, without surprises
Get an impact list from the migration guide, bump on a branch, let the agent fix with guardrails, then compare old and new output.
- Run an accessibility audit with an agent
Run an AI accessibility audit against WCAG 2.2 AA with Playwright, axe-core and an agent, add the manual checks scanners miss, and rank fixes by user impact.
- Give your coding agent current docs with Context7 or llms.txt
Stop your coding agent using outdated APIs: connect Context7 over MCP, point it at a library's llms.txt, or install a vendor skill, then check it worked.
- Fix a failing CI run with a coding agent
It reads the GitHub Actions logs, explains the cause and fixes it, with stop rules so it never loops or weakens tests.
- Fix flaky E2E tests with the Playwright healer, safely
Prove the flake, run Playwright's healer agent on a branch, check each change for red flags, keep a heal log and merge by hand.
- Prototype an internal tool with an app builder
Build an internal tool prototype with AI with v0, Lovable or Bolt in an afternoon, test it with real users, and list what must change before it meets real data.
- Write release notes from git history
Turn merged pull requests into notes users can read, with every line checked against the diff before publishing.
- Security-review a pull request with an agent
Run an AI security code review of one pull request with Trail of Bits' differential-review skill, then test each finding with fp-check before anyone acts on it.
- Set up guardrail hooks for your coding agent
Block dangerous commands in Claude Code with PreToolUse hooks and deny rules, so the agent cannot force-push, wipe files or edit secrets. Test them first.
- Spec-driven feature build: plan, approve, implement, verify
Written spec, approved plan, small tested tasks and a final check against the spec, not vibes.
- From business question to SQL dashboard with AI
The assistant writes the SQL, you define the metrics and check every number before anyone acts.
- Triage GitHub issues automatically with an agent
Label new issues, post a short summary, flag likely duplicates and suggest an owner, with narrow permissions.
- Draft a weekly status update from your tools
Draft an AI weekly status report from merged work, tickets and notes in your team's format, with a source for every claim and the judgement calls left to you.
- Scan a third-party Agent Skill before you install it
Read every file, grep scripts for risky patterns, run a skill scanner, then record a yes or no and pin it.
- Build an MCP server for an internal API
Two read-only tools, tested in MCP Inspector and called from Claude Code, Codex or Cursor.
- Refactor in parallel with git worktrees and two agents
Use git worktrees to run Claude Code and Codex in parallel on the same refactor from one written plan, compare tests, diff size and readability, then merge one.
- Port one Agent Skill across Claude Code, Codex and Cursor
Strip non-portable fields, make scripts path-safe and install one source folder for every agent.
- Write unit tests for legacy code with a coding agent
An agent writes characterisation tests, you check for weak assertions and prove them with mutation testing.
- Write a useful AGENTS.md: example, template and test
An AGENTS.md example and template with build and test commands, conventions and traps, plus a before-and-after task that shows whether the file actually helps.
- Claude Code cheat sheet
Claude Code slash commands, CLI flags, headless -p runs, permission modes including auto, keyboard shortcuts and config files, checked against Anthropic's docs.
- Claude Code hooks cheat sheet
PreToolUse and PostToolUse events, matcher patterns, stdin JSON payload fields, exit codes and safe config examples.
Related tools
Codex
OpenAI's coding agent across a CLI, IDE extension and cloud tasks.
Crush
Charm's terminal coding agent for many model providers.
Gemini CLI
Google's open-source terminal agent for Gemini models.
GitHub Copilot
Completions, chat and a coding agent inside GitHub and popular editors.
OpenHands
Open-source coding agent you run locally, in Docker or in the cloud.
Amp
Coding agent with a CLI, editor integrations and cloud sandboxes for long tasks.