How to start a project with Claude Code
Your first session needs a finish line short enough to test before the coffee cools. Make a counter with a “+1” button and a reset button. By the end you’ll know which files Claude changed and whether the counter actually counts.
- Before you start
- Claude Code installed and signed in, Git, Python 3 and a browser. Use a new folder for this exercise.
- How you’ll know it works
- Two clicks show 2. Reset shows 0. You can do both from the keyboard.
Start Claude in the right folder
Run these commands in the directory where you keep your projects. The new folder is the entire working area for this exercise. On first use, follow the sign-in prompt. If the CLI is missing, the official quickstart below has the installer for your system.
mkdir counter-demo
cd counter-demo
git init
claudeAsk Claude to tell you its current directory and list the files before it edits anything. An empty project is the expected answer. If it starts explaining your production monorepo, you have pulled up the wrong chair.
Give it a brief you can test
Create index.html with inline CSS and JavaScript. Show a count starting at 0 and two native buttons labelled “+1” and “Reset”. Two clicks on +1 must show 2. Reset must show 0. Reload starts at 0. Keep keyboard focus visible. Use no external packages. First tell me which file you will create and wait for my approval.Check the proposed scope. A single HTML file is enough. When it fits, reply “Implement that plan and tell me how to test it.” Read the paths and purpose of any commands Claude asks you to approve. The database migration can return to its natural habitat: someone else’s ticket.
Run the counter and try to break it
In a second terminal in the same folder, run the local server and visit http://127.0.0.1:8000. If that port is busy, use 8001 in both places.
python3 -m http.server 8000 --bind 127.0.0.1Click +1 twice, reset, then reload. Next, use Tab to focus +1 and Enter to activate it. If mouse clicks work but Enter does nothing, report that exact sequence and ask Claude to fix just the control.
Read the file that will land in Git
New files do not appear in an ordinary unstaged diff. Check the file list, stage the intended file, then inspect its full contents.
git status --short
git add -- index.html
git diff --cachedLook for the initial value, the two event handlers and any unexpected network requests. Commit once the observed behavior matches the brief. Stop the local server with Ctrl+C in its terminal.