Projects & coding · Tutorial 03

Build a small project from a brief to a checked result

Build a local expense summary from sample data, test normal and broken inputs, and keep a handoff another person can use.

A folded project plan passes from a research desk to a coding and test workbench for review.
Reading time
10 min
Last updated
November 2026

0 of 3 complete

Essentials · Step 3 of 3 · View the route

Last checked and updated: November 30, 2026. Editorial and official-source review; exercises below are authored practice, not reported benchmark runs.

Build the expense summary from your project brief. You need that SPEC.md and a coding agent working in the practice folder. The Claude Code setup lesson covers one option.

Your result will be a local page, a repeatable check, and instructions someone else can follow. Public deployment is a separate decision. There is no requirement to finish in a weekend or to use two agents.

Start Hermes in the practice folder

If Hermes is already installed and configured, open a terminal in the folder containing SPEC.md and run hermes to start an interactive session. This entry point is documented in the Hermes CLI guide. If you have not set it up, start with the Hermes lessons, then return here.

Before asking it to build, send:

Read SPEC.md in this practice folder. Report the working directory you can
actually access and summarize the input, output, exclusions and checks.
List the files you propose to create and how I will open the page.
Do not edit files or install dependencies yet. Flag any missing requirement.

Compare the answer with your file. If Hermes cannot read it, resolve the folder or file-access problem before proceeding; a summary inferred from the conversation is not evidence that it opened the brief. If it proposes a database or an account system, bring the plan back to a local page.

The folder request is a task instruction, not a security boundary. Use a disposable practice folder with fictional data, and inspect tool actions before allowing access outside it.

Give the build an exact input

Use this fictional data:

[
  { "category": "food", "amount": 12.50 },
  { "category": "food", "amount": 7.50 },
  { "category": "travel", "amount": 5.00 },
  { "category": "supplies", "amount": 10.00 }
]

Before the agent starts, calculate the expected result yourself: food 20.00, travel 5.00, supplies 10.00, and a grand total of 35.00. These are expected values for this fixture, not measurements from a model run.

Build the smallest usable version

Send this after reviewing the plan:

Implement the local expense summary described in SPEC.md using the sample rows.
Keep all work in this practice folder. Do not change SPEC.md to fit your code.
Do not add network calls, accounts, payments, uploads, or deployment.
Show totals by category and the grand total with two decimal places.
Keep the input easy to replace for the empty and invalid-input checks.
Run the checks from the brief, including missing amounts, blank categories
and negative amounts. Record the command and actual result.
Explain how I can open the page and repeat the checks.

Review any proposed installation before proceeding. If the agent says it cannot run a check, keep that limitation visible and run the check yourself if you can. An unexecuted test is not a passing test.

Check the result from the outside

Open the page using the supplied instructions. Work through these cases:

InputExpected behavior
The four sample rowsCategory totals 20.00, 5.00, and 10.00; grand total 35.00
Empty listA clear empty state and total 0.00
A row with amount "unknown"An explicit error identifying the invalid amount; no silently accepted total
First row has its amount field removedIdentify the affected row and missing amount; block the total
First row has category ""Identify the affected row and ask for a category; block the total
First row has amount -1Identify the affected row and explain that refunds are outside this prototype; block the total
Food rows changed to 1.25 and 2.75Food total 4.00; the remaining categories unchanged; grand total 19.00

Start each case from the original four rows, except the empty-list case. Change only the field specified, then restore the fixture before the next case. These error rules follow the preceding brief; they are choices for this exercise, not general accounting rules.

The final case helps catch a page that merely prints the expected numbers. The result must change when the input changes.

For each case, save what you supplied and what happened. Check a phone-sized window too: the category names, totals, and errors should remain readable without sideways scrolling.

If something fails, describe the observed mismatch:

With the two food amounts changed to 1.25 and 2.75, the page still shows 20.00.
The expected food total is 4.00 and the expected grand total is 19.00.
Find why the displayed totals do not follow the input, fix it,
and rerun all seven cases in the lesson against the brief.

That gives the agent evidence to investigate. It also protects you from accepting a fix that only changes the displayed number.

Keep a check record you can repeat

Save a CHECKS.md file beside the project. For each of the seven cases, record the input, expected behavior, actual behavior, and command or manual steps. Use PASS, FAIL, or NOT RUN; leave actual behavior blank until you observe it.

Ask the agent to distinguish calculation checks from page checks. A function returning an error does not prove that the page displays it or removes a previous total. After a valid run, load one invalid fixture and check that 35.00 is no longer presented as the current valid total. Restore the original rows and confirm that the error clears and 35.00 returns.

Anthropic’s coding guidance recommends giving an agent runnable checks and reviewing its work against the specification. Here, that means preserving the expected values while fixing the implementation.

If a command fails before reaching the tests, record the setup failure separately. A missing dependency is not evidence that the expense calculation failed. Resolve the reported setup issue, then rerun the original check. If the agent cannot open the page, keep the visual checks marked NOT RUN until you perform them yourself.

Use a handoff only when it helps

If you already use Hermes for planning, it can help draft or review SPEC.md. Give the same approved file to the coding agent. Avoid passing a long conversation when a short file contains the decisions the next tool needs.

Use ordinary requests such as “Read SPEC.md and list requirements that the implementation does not satisfy.” This exercise does not require special /write-spec or /verify-spec commands. Those names would need installed custom skills; do not assume they are built in. Hermes documents how skills are defined and loaded in its skills guide.

A second agent’s review is another source of findings. It does not replace opening the page or running the checks. One tool is sufficient when it can perform the task and you can inspect the evidence.

Package what you made

Ask for a short README.md containing:

  • How to open the local page.
  • Where the sample input lives and how to change it.
  • How to repeat the checks, including the changed-input case.
  • Where CHECKS.md records actual outcomes and any checks still marked NOT RUN.
  • What is intentionally absent, such as real expense import and persistence.

Then follow those instructions yourself from a fresh terminal or browser window. Correct anything that assumes hidden knowledge from your conversation.

You are finished when all seven cases and the error-recovery check pass, the page is readable, and the instructions let another person repeat the result. Save the project and its evidence. You have a small working artifact you can improve, not just a screenshot of something that looked done.

Return to the first-project path to review your work. If you want to make a project for other people next, read the niche-directory demand exercise before choosing a larger scope.

Sources and exercise scope

Official sources checked November 30, 2026:

The expense data, prompts, acceptance cases and evidence format are authored practice material. No authenticated Hermes build, browser exercise or model comparison was run for this refresh. Expected totals are arithmetic targets, not observed agent results.

Check your understanding

Q1.Food amounts change to 1.25 and 2.75; travel stays 5 and supplies stays 10. What is the total?
Q2.Why change the sample input after the first test?
Q3.The agent cannot run a check. How should it report the result?
Q4.Do you need a built-in /verify-spec command or a second agent?