Lecture XI - Project Work
Programming with Python
EP 11: The Build
The shop has a new owner
MunchCorp runs the shop now. Tobi kept his job, the investor kept her spreadsheets, and her next due-diligence visit already has a date: Session XII, when your projects run in this room.
Until then, the shop rule stands: pull before you start, push when you stop, and let the commit history do the talking.
Before you build: how to make your agent stop repeating the same mistakes, and the mark that AI text now carries.
Teach Your Agent
The friction you know
- One week in, you have corrected your agent on the same things again and again: naming style, the library you prefer, “keep functions short”, “round money to two decimals”
- Every session starts from zero: the agent remembers nothing between sessions (Session X, the loop)
- Explaining the same thing five times is work you should not be doing
Package the rules once
- Put your project rules in one markdown file in the repo:
AGENTS.md - What goes in: what the project is, the tools it uses, naming and style conventions, “any AI use lands in the README disclosure”
- Mistral Vibe reads it at every session start, automatically: write the rules once, stop repeating them
Skills: instructions on demand
- A skill is the next step up: a folder with a
SKILL.md, holding a name, a description, and instructions - Rules apply always. A skill loads only when the task matches its description, so context stays lean until the moment it is needed
- Example: a
verifyskill for your project: read the diff, run it, test it on a case where you know the answer, report what you checked - In your stack:
.vibe/skills/verify/SKILL.mdin the repo. Vibe loads it in the terminal and inside Zed’s agent panel, same engine - Vibe follows an open format, so skills you write here also work in other agents that adopt it
Anatomy, briefly
---
name: verify
description: Check changed code the way this project requires. Use after any code change.
---
- Read the diff line by line before running anything
- Run the code on a case where you know the correct answer
- Report what you checked and what the result wasPlain markdown you own, at .vibe/skills/verify/SKILL.md, versioned with the project like any other file.
Write your own
- Any workflow you have explained to the agent twice deserves a skill
- Keep it short: a page of instructions, not an essay
- Prune it when the workflow changes: a stale skill misleads
- Downloading one? Vet it by reading it, not by how popular it is
What not to hand over
- The parts you must be able to defend at the demo: design choices, the statistics, why this approach
- A file can carry conventions. It cannot carry your judgment, and the demo questions come to you, not to it
The Mark
Could anyone tell?
- Your README carries an AI-disclosure section. Suppose you skipped it: could anyone prove that an AI wrote part of your work?
- Since August 2026, EU rules require providers to mark AI content machine-readably, and the major ones do
- The trick behind it is simple enough for three slides
How a watermark hides in plain text
- Before each word, the model splits its vocabulary into a green and a red half, reshuffled at every step
- It then softly prefers green words. The text still reads completely normally
- By chance, a human writes about half green words. A model writes far more
You already know the mechanism
- Session VI: the model picks a likely next token, never the next token
- A watermark is that choice, steered on purpose: green wins a little more often than chance
- Same next-token choice, one hidden thumb on the scale
Who can actually detect it
- Detection is counting: one paragraph of marked text can push chance below 1 in 10 trillion
- But you need the secret key that decided which half was green
- In practice, only the provider can run the test
What a mark proves (and does not)
- Proves: a model processed this text
- Does not prove: who did the work, or whether a human verified it
- Heavy editing can wash a mark out, and short snippets may not carry one, so an absence proves nothing
Presence without disclosure, though, looks exactly like what it is.
Disclosure is part of the work
- The rules converged everywhere: AI cannot be an author, and its use gets disclosed
- Your README section says which tool, for what, and what you verified yourself
- That is standard practice, not a confession
Definition of Done
Before you call it finished
- The repo runs from a fresh clone (cloned once more into an empty folder):
uv sync, then your script - The README says what it does, how to run it, and carries the AI disclosure section
- The commit history tells the story: small steps, messages that mean something
git statusis clean: all committed, nothing important ignored- I am invited, and the link is on Moodle before your demo
Run the fresh-clone test today, not on demo morning. It always finds something.
Demo Day Is Next
The format
- 7 minutes presenting, 3 minutes of questions, per group
- Order: drawn at random with the
randommodule from Session VI - Show the thing running, your AI disclosure, and one thing that broke
- Everyone in the group has to be there
Wrap-up
Four things to remember
- Rules in
AGENTS.mdfor the always stuff, skills for the on-demand stuff, both plain markdown you own - AI text carries a watermark now: fluent, normal-looking, detectable by the provider
- The fresh-clone test is the cheapest bug you will ever catch
- A demo is the thing running, the disclosure, and one thing that broke
Next session: Demo Day. The investor is in the audience.