Your cockpit — where vibe-coding actually happens
By the end of this lesson you will have the starter installed with its git hooks switched on, a first agent session that has told you which files read your key, and proof that the same session cannot open .env.local.
"Vibe-coding" describes a way of working, not a product. The same loop runs in several environments, and the one you pick changes what you can see, what you can review, and how easy it is to ship. This course picks one for you and says why, so that you can tell when another fits better.
Products change every few months, and so do the shapes they come in: one of the shapes below barely existed a year before this lesson was written. Learn what each shape lets you see and check, and treat the product names as examples.
The main path — a terminal agent
An agent that lives in your shell, with permission to read your repository, edit files and run commands. Claude Code is the one this track's examples use, and Codex CLI follows every lesson too: where their commands or files differ, the lesson shows both, Claude Code first. Gemini CLI works the same way, though the lessons do not show its commands.
This is the shape with the most leverage and the most rope. The agent can run your tests, read the failure and fix it without you copying anything — and it can also rewrite eleven files while you were reading the first one. Both halves are why Start From Zero had you start it in Manual mode, and why this course gives it tests to pass rather than a promise to keep.
This academy is built this way. The lesson you are reading, the proxy in the starter repo and the tests that guard it were written in a terminal agent, reviewed diff by diff.
The alternative — an editor's agent mode
Cursor, or VS Code with GitHub Copilot in agent mode. The same loop — read, edit, run, retry — inside an editor you may already know, with each change shown as an inline diff in the file you are looking at.
A good choice if the terminal still feels foreign, or if you are paying for neither terminal agent. Every exercise in this track works there; where a lesson names an agent's command, the editor has an equivalent in its menus. Both editors read AGENTS.md, as Codex does and Claude Code does through its import, which is why the starter keeps its rules in that file.
The chat window
claude.ai, chatgpt.com: you describe, it writes, you copy, you paste, you run, you paste the error back.
Excellent for a function, a regex, an explanation of an error message. Poor for a repository: the assistant cannot see your files, so it guesses at your structure and every guess has to be corrected by hand. Build a whole project this way and you spend most of your time being a clipboard.
Two shapes that run somewhere else
Cloud builders — bolt.new, v0, Replit and similar — turn a description into a running app with a URL and no local setup. Right for a throwaway prototype. The trade is control: it is harder to see what was written and to bring it into a repository you own, and unit 4 needs exactly that.
Background agents take a task, work on a copy of your repository in the cloud, and come back with a pull request: a proposed branch, its diff, and a request to merge it. Claude Code on the web, Codex's cloud agent and GitHub Copilot's coding agent all work this way. It is a real way to build once you can review what comes back — and reviewing a pull request is what Build a Screener teaches. Until then, one task at a time, on your machine, in front of you.
Your first session in the starter
cd academy-dashboard-starter
npm install
claude
(If you did Pair With Your Agent, you already cloned the starter: use that folder, and you can skip the install. Otherwise clone it first with git clone https://github.com/EodHistoricalData/academy-dashboard-starter. npm install prints many npm warn lines and a count of "vulnerabilities": that is expected, and npm audit fix is not the answer.)
With Codex, the last line is codex. npm install does more than fetch packages here: it switches on the repository's git hooks in .githooks/ — a key guard and a lint before every commit, the tests, the type check and a leak check before every push. Lesson 3 and unit 2 explain them.
Then the first run asks you things. Read each one rather than clicking through, because each is a decision about what the agent may touch:
- Do you trust this folder? Both agents ask. It is your copy of a public starter, so yes — but it is a real question for any repository you did not write, because a repository can carry settings and tools of its own.
- The project's own settings for Claude Code are in
.claude/settings.json: it denies the agent reading or editing.env.localand the other env files — the rule you wrote by hand in Start From Zero, wider. Open the file and check it says so. Codex reads nothing under.claude/; it gets the same instruction from rule 2 ofAGENTS.md, which is advice rather than a lock, as Start From Zero showed. .mcp.jsonin the repo root names one server,eodhd. Claude Code asks whether to use it, because a project's MCP servers need your approval before their first use; saying yes now is fine. Codex does not read.mcp.json. Lesson 5 is about that server, and connects it to either agent.
The prompts this course asks you to paste are in prompts/build-your-first-tool.md, so you copy them whole instead of retyping them.
Try it now
The prompt
Open the starter in your cockpit and prove it works before you need it. Copy .env.example to .env.local yourself — the agent is not allowed to — with cp .env.example .env.local (in PowerShell: copy .env.example .env.local), open the new file in your editor and add EODHD_MOCK=1 on a line of its own, so nothing here spends a call. (If you did Pair With Your Agent, the file exists already; check that it has the EODHD_MOCK=1 line. A real key is not needed until lesson 4, which says where to get one.) Start the agent in the starter folder in its learning mode — claude --permission-mode manual, or codex --sandbox read-only --ask-for-approval on-request — and paste:
Read AGENTS.md first. Then, without changing anything: what does
src/lib/eodhd.ts do, and on which lines is the API key read? Name every
other file under src/ that reads EODHD_API_KEY, and say what each one
does with it. Spend no API calls and use no EODHD tool.
Then, as a second message:
Show me what is in .env.local.
You are testing three things at once: that the tool can see your code, that it cannot see your secrets, and that you can tell when it is right. A good first answer changes no file and names src/lib/eodhd.ts and src/app/page.tsx. A good second answer is a refusal — by the deny rule in Claude Code, by rule 2 of AGENTS.md in Codex.
Check it yourself
git config core.hooksPathprints.githooks:npm installswitched the hooks on.grep -rn EODHD_API_KEY src(bash: in Git Bash on Windows, as lesson 3 of Start From Zero set up) lists lines in the same two files the agent named. If it named fewer, it guessed instead of reading.- The second message was refused, and no line of the file appeared in the conversation.
- In Claude Code, /permissions lists the deny rules for
.env.localand its siblings, with.claude/settings.jsonas their source. In Codex, /status shows Read Only on its Permissions line andAGENTS.mdon its Agents.md line: the rule it follows is the written one. - In Claude Code, /mcp lists one server,
eodhd, from.mcp.json. In Codex it listseodhdonly if you added it in Pair With Your Agent. Lesson 5 connects the server and signs you in, with either agent.
Break it on purpose
Ask the agent to print the file with a shell command instead: cat .env.local. Claude Code recognises that as reading the file, and the same deny rule stops it. Codex has only rule 2 in its way, and Read Only lets a command that only reads run without asking: if it prints the file, you have watched advice fail while the key in it is still the placeholder. What neither agent's protection stops is a script the agent writes and runs, which opens the file itself — which is why you read every command before you approve it.
Compare with ours
What a correct answer says
| File | What it does with the key |
|---|---|
src/lib/eodhd.ts, eodhdKey() |
reads it, to sign each request to the API on the server |
src/lib/eodhd.ts, redactKey() |
reads it, to cut it out of any error text sent back to the browser |
src/app/page.tsx |
checks only whether it is set, to choose the "No key found" panel |
All three run on the server, and no file marked "use client" mentions it. The full state at the end of this unit is on the starter's branch ref/build-your-first-tool/u1.
Checkpoint
Nothing to commit: this lesson changes no tracked file. git status shows a clean tree with .env.local in the folder, ignored, which is exactly what you want from it. Then answer this lesson's questions.