Free lesson · Module 1, lesson 4 of 7

Meet Campus Store and RepoMate: the project you will build

Read the Campus Store practice repository (an API, a database, a test suite, a list of tickets) file by file, and say what RepoMate gains in each module.

Lessons in this module

Lesson notes

For the student

Campus Store is a practice repository made for this course: the web API of a college store, where students and staff are the customers and the store staff take orders. RepoMate is the coding agent you build in it, one layer per module. You install nothing yet; lesson 7 sets up your laptop and module 2 makes your own copy of Campus Store.

Campus Store at the tag `course-start`

  • Python 3.12, FastAPI and SQLite; about 1,140 lines of Python in app/ and tests/; 25 commits with made-up authors
  • app/: the API (main.py, routes/products.py, routes/customers.py, routes/orders.py), models.py, db.py, schema.sql, seed.py, pricing.py, catalog.py, stock.py
  • tests/: 68 tests, run with uv run pytest -q (module 2)
  • docs/: setup.md, api.md, runbook.md
  • tickets/: 30 tickets. CS-101 to CS-110 are used in the lessons; CS-111 to CS-130 are kept for module 10's task set
  • AGENTS.md: the rules for people and programs: the four checks, the style, how to work on a ticket, what not to touch
  • README.md: what the store is, how to run it, a table of its files
  • The data is made up: every product, name, roll number and email is invented, and the emails use the .test domain

A short tour

  • tickets/CS-101.md starts # CS-101: Product search misses products when the case differs; a later line says The search is in and names app/routes/products.py
  • app/routes/products.py, line 35: def search_products(
  • docs/api.md: GET /products/search returns active products whose name contains q, ignoring case. The docs are right; the code is wrong
  • tests/test_products.py: test_search_finds_by_name
  • AGENTS.md: money is in paise, as int, never float; and Do not edit, skip or delete a test to make it pass.

What RepoMate gains, module by module

  • 2: your copy of Campus Store, running and green; 3: the model client and the ticket reader; 4: four tools (read, search, edit, run)
  • 5: the loop; RepoMate v1 fixes CS-101 by itself (the recorded run of lesson 2: 7 steps); 6: a sandbox for every command
  • 7: context for code; 8: the Model Context Protocol; 9: tests as the judge of every fix
  • 10: scored on the 20 tickets CS-111 to CS-130; 11: the capstone, your own agent
  • Every module ends with a check: uv run python -m checks.m02 and so on, one OK line per proof

Money in paise

  • print(0.10 + 0.20) prints 0.30000000000000004; print(10 + 20) prints 30
  • Whole numbers add exactly, so Campus Store keeps every amount in paise, as int

The rule

  • RepoMate works only on Campus Store and on code you own. Before module 6 it runs on recordings, or live with only pytest, ruff and pyright allowed; from module 6 every live run is inside a sandbox

Try it

  • For each tour line above, write the folder it came from and the module that will use it first
  • Check yourself: the ticket, tickets/ (module 3 reads it); search_products, app/routes/ (module 4's tools read and edit it, module 5 fixes it); the API reference, docs/ (no module changes it; RepoMate's search found it at step 2 of the run in lesson 2); the test, tests/ (module 2 runs it, module 9 makes it the judge); the rules, AGENTS.md (module 2 reads it, module 7 loads it before the first step)

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

In what order does this lesson read a repository you did not write?

Question 2 · medium

Campus Store's AGENTS.md says how money is kept. What is the rule, and why?

Question 3 · medium

For CS-101, docs/api.md says the product search ignores case, but searching in small letters finds nothing. What should change?

Question 4 · medium

In RepoMate's module map, what does module 9 add?

Question 5 · medium

Asha wants to show her lead what RepoMate can do by running it on her internship company's repository. What does the course's rule say?

Where coding agents fail, and why engineering fixes itNext: The agentic engineering job: the work, the skills, the interview