Install decode, add one API key, run a first session. ~5 minutes.
Needs uv and git. macOS, Linux, or Windows via WSL2.
curl -LsSf https://astral.sh/uv/install.sh | sh # skip if `uv --version` works
git clone https://github.com/decodingai-magazine/building-a-coding-agent-from-scratch-course.git
cd building-a-coding-agent-from-scratch-course
make install # uv sync + git hooks
make install-cli # `decode` on your PATH, tracking this checkout✅
decode --versionprints a version.
cp .env.example .envThen set one provider in .env:
# Gemini — default provider, free key at https://aistudio.google.com/apikey
LLM_PROVIDER=gemini
GEMINI_API_KEY=your-key
# or OpenRouter — free router across tool-capable models, key at https://openrouter.ai
# LLM_PROVIDER=openrouter
# OPENROUTER_API_KEY=sk-or-...Both free tiers rate-limit (Gemini per minute, OpenRouter ~50 requests/day until you add $10). The course default is your own model on Modal: next tutorial.
Optional, 30 seconds: tracing. Key from comet.com → Settings → API Keys:
OPIK_API_KEY=your-keyEvery turn then lands in Opik as a trace, one span per model/tool call.
decode| Action | Key |
|---|---|
| Send | Enter |
| Steer a running turn | Enter while it works |
| Queue a follow-up | Alt+Enter while it works |
| Abort the turn | Esc |
| Approve / deny a tool | y / n |
| Quit | Ctrl-D or /quit |
Everything decode writes lands under <cwd>/.decode/ (gitignored): sessions/*.jsonl, MEMORY.md, logs/decode.log.
✅ Type
what files are in this directory?. The agent asks to run a read tool, streams a list, and.decode/sessions/holds a.jsonl.
decode --resume # most recent session in this directory
decode --resume <session-id> # id = the .jsonl filename stem
decode sessions # list all sessions from most recent to leastMemory: AGENTS.md is read at startup; .decode/MEMORY.md too, and decode appends a one-line summary on exit.
Demo skills live in .decode/skills/, so launch from the repo root:
decode
/demo-1-terminal-arcade # the agent builds a playable Snake game/commit and /review-diff ship in the package and work anywhere. Demos in your own project: cp -r <course-repo>/.decode/skills/. ~/my-project/.decode/skills/.
make pre-commit # format + lint + unit tests
make test # unit + integration
make ci # what CI runs
make help # all targetsProblems: 00_troubleshooting.md.
Next: 02_modal_endpoints.md — serve your own open-source model on Modal, no rate limits.


