Guides

How to Plan Work With Claude and Build It With Claude Code

Use Claude to plan the work and write the instructions, Claude Code to build it, and per.hr to record what each piece took and bill it. Every session is on the record, so you can show clients exactly what was worked on and see what your own projects take. Here's the workflow, step by step.

7 min read · Updated November 14, 2026

The Workflow in Two Minutes

A two-minute tour: plan the work with Claude, import it into per.hr, run each item in Claude Code, and bill what it took.

Three Tools, Three Jobs

  • Claude (the desktop app or claude.ai) is where you think the work through: what to build, in what order, and how you'll know each piece is done. It writes the plan and the instructions.
  • Claude Code builds each piece in your repo, following those instructions from start to finish.
  • per.hr holds the plan, records each Claude Code session on its Plan item (your time, agent time, compute and commits), and turns finished work into an invoice.

Keeping planning and building apart pays off. The planning conversation stays in one place, with all its context. Every Claude Code session starts with complete, exact instructions. And every piece of work has a reference and an estimate before anyone starts on it, so its time lands in the right place and you can bill it the way you agreed.

Step 1: Plan the Work With Claude

Describe what you want built, the way you would to a colleague. Ask questions and settle decisions before any code is written. Then ask Claude to break the work into Plan items:

  • One item per session. Each item should be something Claude Code can finish and you can check in one sitting.
  • References in sequence, such as API-1, API-2 and API-3. Sequential references let one command cover a batch later.
  • An estimate in hours for each. Estimates decide how your time splits across items worked together, and on Agreed Hours billing they're what the client pays for.
  • Notes that say what changes and how you'll know it's done, so the item still makes sense next month.

A Claude Project keeps this context across conversations. Paste the starter prompt at the end of this guide into the project's instructions, and add the documents Claude should know about: your plan, decisions you've made, notes on the codebase.

Step 2: Import the Plan Into per.hr

Ask Claude for the items as a CSV file. per.hr matches columns by name, so this header works as is:

Ref,Title,Project,Estimate (hours),Priority,Status,Notes
API-1,Add the invoices endpoint,Halcyon App,3,High,To Do,"GET /api/invoices with paging. Done when the list test passes."
API-2,Add the clients endpoint,Halcyon App,2,Medium,To Do,"GET /api/clients. Done when the list test passes."
API-3,Document both endpoints,Halcyon App,1,Low,To Do,"README section with one example request each."

In per.hr, open Work → Plan, choose Import and upload the file. The preview shows what each row will do before anything is saved: add an item, update the item with that reference on that project, or skip the row with the reason. Priority takes High, Medium or Low; Status takes To Do, In Progress or Done. You can also add Target Date and Assignee Email columns.

Importing the same file again updates the items instead of adding copies, so a revised plan is one more import.

Step 3: Get a Prompt for Each Item

A good Claude Code prompt reads like a work order. It stands on its own, so a fresh session can run it with no memory of the planning conversation. Three sections cover it:

  • Context: the repo, the branch and commit it starts from, the Plan item, why the change is needed and which files it touches.
  • Rules: what it must never do (print secrets, touch production, deploy), how to commit, and to stop and report on any failure.
  • Steps: numbered, each with its check: confirm the starting point, make the change, run the tests, commit, report.
CONTEXT (this prompt stands on its own; don't rely on earlier history):
- Repo: halcyon-app, on the dev branch, at commit 4f2a9c1 or later. git status is clean.
- Plan item: API-1 (I run /perhr:start API-1 before pasting this).
- Why: the mobile app needs a list of invoices.
- What changes: src/api/invoices.ts (new), src/api/router.ts, tests/invoices.test.ts (new).

RULES:
- Never print or commit secrets (.env and similar files).
- Don't touch production data or deploy.
- This prompt runs start to finish without stopping between steps, unless a step fails.
  On any failure or surprise, stop and report what you found.

STEPS:
1. Confirm the branch, the commit and a clean git status.
2. Add GET /api/invoices with page and limit parameters (default 25, max 100).
3. Add tests for paging and an empty list. Run the test suite; stop on any failure.
4. Commit on dev with the message: "API-1: Invoices endpoint with paging".
5. Report the commit hash, the test results and anything I should check by hand.

The first step checks the starting point, so a prompt written for one commit never runs against another. The last step asks for a report you can paste back to Claude, which then writes the next prompt from what actually happened.

Step 4: Run It in Claude Code

  1. In Claude Code, run /perhr:start API-1. The session now records to that Plan item. For a batch of consecutive items, use a range: /perhr:start API-1:3.
  2. Paste the prompt. Claude Code works through the steps and reports back.
  3. Check the result yourself: run it, read the diff, try the feature.
  4. Run /perhr:end. Claude writes a short summary of what shipped for your client (anything you type after the command becomes notes for it), and the session goes to Work → Review.
  5. Paste Claude Code's report into your planning conversation and ask for the next prompt. Then /perhr:start the next item in the same Claude Code session.

Quick Work Needs No Plan

The import is for planned work. Once a repo is connected to a project in per.hr, every Claude Code session in it is recorded, with or without /perhr:start: a quick fix, a deploy, an afternoon of exploring.

A session without a Plan item is titled from short notes Claude writes as it finishes each piece of work: a sentence or two on what changed and in which repo. They show in Review, where you can edit them before adding the session to Invoice.

Step Away and Pick Back Up

Leave a session for lunch, a meeting or the night. After 30 quiet minutes it moves to Review on its own. Come back to the same Claude Code session within 12 hours and keep going: the same record picks back up on its Plan item, and the time you were away isn't counted.

Closing Claude Code ends the session. Starting it again later begins a new record, and /perhr:start puts it on the item.

Follow-Ups and New Work

  • A fix to an open item gets a follow-up prompt for the same reference and no new CSV row. Its time adds to the same item.
  • More work on a closed item: /perhr:start with its reference and --reopen reopens it, as long as it isn't billed yet.
  • New work that comes up gets the next reference in the series and its own row before anyone starts on it, so its time never lands on the wrong item.

Step 5: Review, Then Invoice

Each session waits in Work → Review with both clocks (your time and agent time), compute, commits and its summary. Add it to Invoice and the Plan item closes with it; nothing reaches an invoice until you do.

Then bill each client the way you agreed: by your time, or by agreed hours, where each finished item bills its estimate however fast the agents built it. The guide to billing AI-assisted work covers the choice.

Habits That Keep It Reliable

  • One item, one prompt. Small prompts are easier to check, and a failure costs one step instead of an afternoon.
  • Database changes ship on their own, after a backup, before the code that uses them.
  • Answers before code. When you ask Claude a question, have it answer; build when you say so.
  • Ask for the commit hash in every report. It ties the Plan item, the session and the code together.
  • Keep secrets out of prompts. Prompts name the files that hold secrets and tell Claude Code to leave them alone.

A Starter Prompt for Claude

Copy this into a Claude Project's instructions, or paste it at the start of a planning conversation. It tells Claude how to plan with you, what the CSV needs and how to write each Claude Code prompt. Add your repo's own conventions at the end.

Starter Prompt for Claude
You're my planning partner for software work. I build with Claude Code, and the per.hr plugin records each Claude Code session (my time, agent time, compute and commits) on a Plan item in per.hr, where I review it and bill my clients. Help me plan the work and write the prompts I run in Claude Code.

HOW WE WORK
1. Answer my questions first. Write code or prompts only when I ask for them.
2. Break each piece of work into Plan items small enough for one Claude Code session. Give each a reference in sequence (API-1, API-2, API-3), an estimate in hours, a priority and a note that says what changes and how I'll know it's done.
3. Give me the items as a CSV file to import in per.hr (Work → Plan → Import), with this header:
   Ref,Title,Project,Estimate (hours),Priority,Status,Notes
   Project is the project's exact name in per.hr. Priority is High, Medium or Low. Status is To Do. Quote any value that contains a comma.
4. Write one prompt per item, to paste into Claude Code after I run /perhr:start with the item's reference.

EACH CLAUDE CODE PROMPT
- Stands on its own: a fresh session with no memory of our conversation can run it.
- Has three sections:
  CONTEXT: the repo, the branch and the commit it starts from, the Plan item, why the change is needed, and the files it touches.
  RULES: never print or commit secrets (.env and similar files); leave production data and deploys alone unless a step says otherwise; the commit message format; "This prompt runs start to finish without stopping between steps, unless a step fails"; on any failure or surprise, stop and report.
  STEPS: numbered, each with its check. The first step confirms the branch, the commit and a clean git status. Then the change, the tests (stop on any failure), the commit, and a final report with the commit hash, the test results and anything I should check by hand.
- Puts a database schema change in its own prompt, after a backup, before the code that uses it.

AS WE GO
- I'll paste Claude Code's report back to you. Write the next prompt from what actually happened.
- A fix to an item that's still open gets a follow-up prompt for the same reference and no new CSV row.
- New work that comes up gets the next reference and its own CSV row before anyone starts on it.
- Quick work (a small fix, a deploy) needs no Plan item: per.hr records every session in a connected repo and titles it from Claude Code's notes.
- When the work on an item is finished and checked, remind me to run /perhr:end in Claude Code. It writes a short summary of what shipped for the client and sends the session to Review.

Start by asking what we're building, which repo and per.hr project it belongs to, and how I bill this client: by my time, or by the work delivered (each item's estimate).

Questions

Can Claude Code Plan the Work Itself?

Yes, and for a small change that's often quickest. For larger work, planning with Claude keeps the decisions and context in one conversation, and each Claude Code session starts with a complete prompt for one item.

What If a Prompt Fails Partway Through?

A good prompt stops at the failing step and reports what it found. Paste the report back to Claude and ask for a follow-up prompt for the same item; the session's time stays on that item.

Does per.hr See My Prompts or Code?

No. The plugin sends session times, notes, the Plan item and repository and branch names. Your prompts, code and conversations stay on your computer.

Do I Need the CSV, or Can I Add Items by Hand?

Either works. Add items in Work → Plan one at a time, or import a CSV when Claude has planned several at once.