# Step 8: Work in small, committed steps

> Pagebee Academy, part 2 (Build). One feature at a time, a commit after each, and the repo as the record of what's true. It's how you keep an agent's work understandable and undoable.

Time: Every session. Cost: Free.

## Why it matters

An agent can change forty files in a minute. If those forty files are one commit called "updates", you can't tell what broke, and you can't undo half of it.

Small steps fix that. Ask for one thing, check it works, commit it with a message that says why, push it. If the next step goes wrong, you throw it away and you've lost ten minutes, not a day.

The repo is the source of truth. Not the chat, not your memory, not a doc somewhere else. If a decision matters, it's in the code, the brief or `CLAUDE.md`, committed. A new session, a new agent or a new developer can pick up from there.

## Do this

1. Start each session by asking the agent to read the brief and tell you where things stand. Then pick the next feature from the brief.
2. Ask for a plan before code for anything bigger than a small change. In Claude Code, press Shift and Tab until you see plan mode, then describe the feature. Read the plan, push back, then let it build.
3. When it says it's done, try it yourself in the browser. Agents are confident; check.
4. Commit with a message that says why, then push. If it went wrong, ask the agent to throw away the uncommitted changes and try again with a clearer request.
5. For bigger features, ask for a branch and a pull request. You get a page on GitHub that shows every change, and you merge when you're happy.

```
gh pr list
gh pr view --web
```


## Paste into Claude Code

```text
Read docs/brief.md and CLAUDE.md, then look at the last ten commits. Tell me in three sentences where the product is and which feature from the brief is next. Then plan that feature as a list of small steps, each of which leaves the app working. Wait for my go-ahead before building, and commit after each step.
```

## The trap: The 400-message chat

A long session fills the agent's memory with old attempts, and its work gets worse. When a feature is done and committed, start a fresh session (type `/clear`). Everything it needs is in the repo, which is the point.

## Sources

- [Claude Code: common workflows](https://code.claude.com/docs/en/common-workflows)
- [Claude Code: best practices](https://code.claude.com/docs/en/best-practices)

Checked 24 November 2026. https://pagebee.ai/academy/small-steps
