Skip to content

AI coding tools · by Anthropic

Claude Code

Ask Claude Code to follow a problem through your project files, explain what it finds, and make a fix you can try.

Suppose a reader clicks a story on your homepage and lands on a missing page. You know which story is broken, even if you have no idea which file controls the link. Open the project in Claude Code and describe what the reader clicked and where you expected them to land.

Ask Claude to find the link and explain the cause before editing. If the address points to an old page name, have it correct the link. Open the homepage and click the same story yourself. That gives you a simple way to judge the fix.

When to use it
If you already pay for Claude Pro or higher.
When to skip it
If you want to start for $0. Codex and Cursor each have a free way in.
What it costs
$20 a month with Claude Pro, or $17 a month paid yearly. There is no free plan. Usage limits reset every 5 hours, plus a weekly limit.

How to use Claude Code

Work with Claude Code one small change at a time. Give it a short CLAUDE.md, choose what it may do without asking, plan each change, then review and keep or undo it.

You’ll need

  • Claude Code set up on your computer. If it isn’t yet, follow Set up Claude Code on the Set up your AI tool page.
  • A folder for your product, like the my-first-build folder you made in Set up Claude Code.
  • Claude account. Claude Code needs the Pro plan or higher.

Your part

  • Choose what Claude Code may do without asking you.
  • Read each plan before you approve it.
  • Review every change it made, and try it in the browser.

Copy the prompt for these steps

All 6 steps, in one prompt
I’m following “How to use Claude Code” on BuildLadder.
What the guide says I’ll end up with: Claude Code knows how you like to work. Each change starts as a plan you approved, and you’ve reviewed every line it changed.
This comes from https://buildladder.com/tools/claude-code#working-with-an-ai-agent. If you can open web pages, read https://buildladder.com/tools/claude-code.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## Step 1 of 6: Open your product in Claude Code

This step is mine to do. Walk me through it, one action at a time:
- Open the Claude app and click the Code tab.
- Click the project folder control, next to the environment selector, and choose your product’s folder.
- Look at the row under the message box. It holds the mode selector and the model picker.

It worked when: A new session is open in your product’s folder, with the mode selector under the message box.

Before we move on, check with me:
- Is the folder shown your product’s folder, not another one?

If something goes wrong:
- You don’t see a Code tab. Claude Code needs Claude Pro or higher. Check your plan, then follow Set up Claude Code on the Set up your AI tool page.
- The folder and environment show above the message box, not under it. You have the earlier layout. Update the app: on a Mac, click Claude, then Check for Updates…. On Windows, click Help, then Check for Updates….

## Step 2 of 6: Write a short CLAUDE.md

Read the files in this folder, and PLAN.md if it’s here.

Then draft a short CLAUDE.md file for future sessions. Only include what you couldn’t work out by reading the code:
- the command that starts the product, and the one that checks it
- that I’m new to this, so explain things in plain words
- that you ask me before you install anything, delete anything, or change files outside this folder

Keep it short, in plain words. Show me the draft and wait for my yes before you save it.

It worked when: Your folder has a CLAUDE.md file that you can read in under a minute.

Before we move on, check with me:
- Do you agree with every line?
- Does it leave out things that are already obvious from your files?

If something goes wrong:
- The draft is long. Say: “Cut anything you could find by reading the code. Keep only what you’d otherwise have to ask me.”

## Step 3 of 6: Choose what it may do without asking

This step is mine to do. Walk me through it, one action at a time:
- Click the mode selector in the row under the message box. You can also press Cmd+Shift+M on a Mac, or Ctrl+Shift+M on Windows.
- Choose Manual to approve every edit and command yourself. It’s the most careful, and the slowest.
- Choose Accept edits to let it edit files and make folders, but ask before other commands.
- Choose Auto to let it work without stopping, while a safety check reviews risky steps first.
- Leave Bypass permissions off. It approves everything, and is meant for throwaway computers only.

It worked when: The mode selector shows the mode you chose.

Before we move on, check with me:
- Can you say in one sentence what Claude Code may do without asking you?

If something goes wrong:
- You don’t see Auto in the list. Auto only appears when it’s available on your account. Choose Manual or Accept edits instead.
- You picked Manual and it asks about everything. That’s how Manual works. If you start saying yes without reading, switch to Accept edits or Auto.

## Step 4 of 6: Plan before it builds

This step is mine to do. Walk me through it, one action at a time:
- Choose Plan in the mode selector.
- Describe the result you want, like “Add a contact form to the home page.” Say what done looks like.
- Read the plan. If a step is wrong or missing, say what to change.
- When the plan looks right, approve it. If you see more than one way to approve, pick the one that lets you review edits, so you can watch each one.

It worked when: You approved a short plan you understand before any file changed.

Before we move on, check with me:
- Does the plan only touch what you asked for?
- Can you say each step in your own words?

If something goes wrong:
- The plan is much bigger than you expected. Say: “Make the smallest version first. We’ll add the rest later.”
- It starts editing files instead of planning. Click the stop button. Check the mode selector shows Plan, then send your message again.

## Step 5 of 6: Review what it changed

This step is mine to do. Walk me through it, one action at a time:
- When it finishes, click the line counts, like +12 -1, in the Changes card. You can also click Changes in the session’s title bar.
- Read each changed file. To ask about a line, hover over it, click the + beside its number, and type your comment.
- Type /code-review in the message box for a second look. If you agree with what it found, click Apply fixes.
- Open your product in the browser and try the change, the way a visitor would.

It worked when: You’ve seen every changed line, and the change works when you try it.

Before we move on, check with me:
- Does every changed file have to do with what you asked for?

If something goes wrong:
- It changed files you didn’t ask about. Say: “Why did you change this file? Undo anything I didn’t ask for.”

## Step 6 of 6: Stop or undo a change

This step is mine to do. Walk me through it, one action at a time:
- To stop it mid-task, click the stop button. It stops at once and keeps what it did so far.
- To undo its last change, say: “Undo the change you just made, and list the files you put back.” Then check the Changes card again.
- In a terminal session, you can also type /rewind, pick the message before the change, and choose Restore code.
- For anything bigger, go back to the last version you saved with Git.

It worked when: Your files are back the way they were before the change.

Before we move on, check with me:
- Does your product work in the browser the way it did before?

If something goes wrong:
- Undoing didn’t put a file back. Changes made by commands, not by Claude Code’s edits, aren’t tracked. Go back to the last version you saved with Git instead.

The steps

  • Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
  • Save a version after every step that works.
  • If a screen looks different from a step, ask your AI tool where the setting moved.
  • Never paste a password or secret key into the chat.
  1. Set up for your product

    Open your product in Claude Code

    You

    Claude Code works inside one folder at a time. Open the folder that holds your product, so it can read and change those files.

    1. Open the Claude app and click the Code tab.
    2. Click the project folder control, next to the environment selector, and choose your product’s folder.
    3. Look at the row under the message box. It holds the mode selector and the model picker.

    It worked when: A new session is open in your product’s folder, with the mode selector under the message box.

    Check this step
    • Is the folder shown your product’s folder, not another one?
    You don’t see a Code tab.

    Claude Code needs Claude Pro or higher. Check your plan, then follow Set up Claude Code on the Set up your AI tool page.

    The folder and environment show above the message box, not under it.

    You have the earlier layout. Update the app: on a Mac, click Claude, then Check for Updates…. On Windows, click Help, then Check for Updates….

  2. Write a short CLAUDE.md

    AI tool

    CLAUDE.md is a note in your folder that Claude Code reads at the start of every session. Keep it short. It only needs what Claude Code can’t work out from your files.

    It worked when: Your folder has a CLAUDE.md file that you can read in under a minute.

    Check this step
    • Do you agree with every line?
    • Does it leave out things that are already obvious from your files?
    The draft is long.

    Say: “Cut anything you could find by reading the code. Keep only what you’d otherwise have to ask me.”

  3. Choose what it may do without asking

    You

    A permission mode decides what Claude Code may do without asking you. Pick one you’re comfortable with. You can change it any time.

    1. Click the mode selector in the row under the message box. You can also press Cmd+Shift+M on a Mac, or Ctrl+Shift+M on Windows.
    2. Choose Manual to approve every edit and command yourself. It’s the most careful, and the slowest.
    3. Choose Accept edits to let it edit files and make folders, but ask before other commands.
    4. Choose Auto to let it work without stopping, while a safety check reviews risky steps first.
    5. Leave Bypass permissions off. It approves everything, and is meant for throwaway computers only.

    It worked when: The mode selector shows the mode you chose.

    Check this step
    • Can you say in one sentence what Claude Code may do without asking you?
    You don’t see Auto in the list.

    Auto only appears when it’s available on your account. Choose Manual or Accept edits instead.

    You picked Manual and it asks about everything.

    That’s how Manual works. If you start saying yes without reading, switch to Accept edits or Auto.

  4. A change you planned and checked

    Plan before it builds

    You

    In Plan, Claude Code reads your files and writes a plan, but changes nothing. You fix the plan in words, which is much faster than fixing code.

    1. Choose Plan in the mode selector.
    2. Describe the result you want, like “Add a contact form to the home page.” Say what done looks like.
    3. Read the plan. If a step is wrong or missing, say what to change.
    4. When the plan looks right, approve it. If you see more than one way to approve, pick the one that lets you review edits, so you can watch each one.

    It worked when: You approved a short plan you understand before any file changed.

    Check this step
    • Does the plan only touch what you asked for?
    • Can you say each step in your own words?
    The plan is much bigger than you expected.

    Say: “Make the smallest version first. We’ll add the rest later.”

    It starts editing files instead of planning.

    Click the stop button. Check the mode selector shows Plan, then send your message again.

  5. Review what it changed

    You

    “Done” means Claude Code thinks it’s done. Look at each changed line, ask for a second look, then try the change yourself.

    1. When it finishes, click the line counts, like +12 -1, in the Changes card. You can also click Changes in the session’s title bar.
    2. Read each changed file. To ask about a line, hover over it, click the + beside its number, and type your comment.
    3. Type /code-review in the message box for a second look. If you agree with what it found, click Apply fixes.
    4. Open your product in the browser and try the change, the way a visitor would.

    It worked when: You’ve seen every changed line, and the change works when you try it.

    Check this step
    • Does every changed file have to do with what you asked for?
    It changed files you didn’t ask about.

    Say: “Why did you change this file? Undo anything I didn’t ask for.”

  6. Stop or undo a change

    You

    If Claude Code heads the wrong way, stop it early. If a change is wrong, go back to how your files were before it.

    1. To stop it mid-task, click the stop button. It stops at once and keeps what it did so far.
    2. To undo its last change, say: “Undo the change you just made, and list the files you put back.” Then check the Changes card again.
    3. In a terminal session, you can also type /rewind, pick the message before the change, and choose Restore code.
    4. For anything bigger, go back to the last version you saved with Git.

    It worked when: Your files are back the way they were before the change.

    Check this step
    • Does your product work in the browser the way it did before?
    Undoing didn’t put a file back.

    Changes made by commands, not by Claude Code’s edits, aren’t tracked. Go back to the last version you saved with Git instead.

Compare Claude Code with the other options

Stuck? Try these, in order
  1. Stop asking it to “fix it”. Say exactly what’s wrong.

    Paste this into the same chat. It asks your AI tool to find the problem with you.

    Troubleshooting prompt
    I’m following “Claude Code” on BuildLadder and something isn’t working.
    This comes from https://buildladder.com/tools/claude-code. If you can open web pages, read https://buildladder.com/tools/claude-code.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.
    
    Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.

  2. Check the service isn’t down.

    If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.

  3. Go back to your last saved version.
    Troubleshooting prompt
    Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.

  4. Make the change smaller.
    Troubleshooting prompt
    Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.

  5. Ask a person.

    Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.

    Problem report
    What I'm building: (one sentence)
    What I asked my AI tool to do: (the last request)
    What I expected: (what should happen)
    What happened instead: (what you see)
    The exact error, if any: (copy it here)
    What I've tried: (each attempt, in order)
    My tools: (AI tool, website or app, hosting)

Look things up

Questions people ask

Words used on this page

Folder
A folder is a container on your computer that holds files and other folders. A product's code lives in one main folder, with everything for your site or app inside it.
AI coding tool
An AI coding tool is an app that writes and edits code when you describe what you want. Claude Code, Codex, and Cursor are well-known examples. This site calls it your AI tool.
Instructions file
An instructions file is a note in your product’s folder that your AI tool reads when a chat starts. Claude Code reads CLAUDE.md, and Codex and Cursor read AGENTS.md.
File
A file is one saved piece of work on your computer, like a photo or a page of code. Its name usually ends with a short tag that shows its type, such as .html or .jpg.
Permission mode
A permission mode decides what your AI tool may do without asking you first, like editing files or running commands. A careful mode asks before almost everything.
Prompt injection
Prompt injection is when a file, web page or message your AI tool reads holds hidden instructions, hoping it will follow them instead of you.
Plan mode
Plan mode is a setting where your AI tool reads your files and writes a plan, but changes nothing. It starts building only after you approve the plan.
Diff
A diff shows exactly what changed in a file. Lines that were added are usually green, and lines that were removed are usually red.
Checkpoint
A checkpoint is a copy of your files saved by your AI tool while it works. Restoring it undoes recent edits, but it does not replace Git.
Git
Git is a free tool on your computer that keeps a history of your product's files. It lets you save versions, compare them, and go back if something breaks.

Official pages

Updated · Anthropic