Free resources · Getting started
How does Claude Code work?
How does Claude Code work? Ask it for one file edit and check the saved result in a disposable project.
What can Claude Code do in your project?
Watch what Claude does in your project during a Claude Code session. Look at which files it opens and what it changes. Notice the commands it runs, too. In a text-only chat, you'd copy a suggested change into the file yourself. Claude Code can make the change in the file.
If you need to open a project first, see how to use Claude Code.
What happens after you ask Claude Code to do something?
An agent can also use a tool to gather information.
Claude Code uses the result of each tool call to decide what to do next. A tool lets Claude search for text, for example. Other tools let it open a file or run a command. Say a search turns up two copies of the same heading. Claude can decide to open both files and see which one fits your request.
Each action gives Claude a result to work with, and the cycle repeats. When your session shows tool activity, look at which file Claude opened and what it tried to edit. If you see a test result, check whether the test covers what you asked for.
What would a small edit look like?
Say you have a two-line project README. The heading is “Getting started” and the second line says “Ask for help in the project chat.” You ask Claude to change the heading to “Quick start.”
On the first read, Claude sees the original heading. It can then replace that one line. A second read can show you whether the new heading is there and the help line is still in place. Once Claude says it's done, open the file in your editor to compare the two lines yourself. If the tracked README matched your last Git commit before the edit, compare the saved file with that commit to see exactly which line changed.
Why does it sometimes take another step?
A new result can change Claude's next step, such as finding the same heading in a second file. Say which file you mean and what it should look like when the change is done.
How can you verify your first edit?
Create an empty practice folder and save the two lines below in a file named README.md. Open Claude Code in that folder so the exercise uses only the sample.
# Getting started Ask for help in the project chat.
Paste this request into Claude Code. If it proposes an edit, confirm it targets the sample README before accepting it.
In README.md, change only the first line from "# Getting started" to "# Quick start". Leave the help sentence and all other files unchanged. After saving the file, tell me which line changed.
For your own project, choose one reversible text edit and name the sentence or setting you need left intact.
When Claude asks to make the edit, note the tool it names. Accept the edit, then type /permissions in the same session. If it lists a rule, the rule starts with the tool name, and the name tells the kind of thing it covers: Edit is a file change.
Where can you go from here?
- Your first Claude Code session, step by step, for your first project.
- CLAUDE.md best practices, on how instructions shape what Claude reads.
- Agent teams in Claude Code, for a job several sessions share.
- What to check when Claude says done, to verify the result yourself.
- Claude dangerously skip permissions, on what changes when Claude stops asking first.
Check the saved README
Reopen README.md in your editor or terminal. The heading should be # Quick start and the next line should still say Ask for help in the project chat. The tool Claude asked about should have been Edit, a file change, and README.md should be the only file touched. If the file still has the old heading, check whether Claude showed a proposal that was never applied. If both lines changed, ask Claude to restore the second line and check the file again.