

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Feedback Loops
incomplete
2: Static Typing
incomplete
3: Automatic Formatting
incomplete
4: Tests
incomplete
5: AI and Test Economics
incomplete
This lesson's interactive features are locked, please to keep using them
Linters and type checks tell the agent whether the code is structurally valid. Tests tell it whether the code does the right thing. There are two types of tests, generally speaking:
If your agent keeps "fixing" one bug while creating another, that's a strong signal that your test coverage is too thin or your test loop is too slow. When the agent can run go test ./... or pytest after every change and get an immediate pass/fail, it self-corrects much more reliably.
Catch a loop bug with a test before fixing it. This SlopLang code:
ralph ❌ {
hallucinate(“never”)✨
}
should print nothing: the condition is false from the start, so the loop shouldn't run even once. But currently, it prints never!
Tell OpenCode to run and submit the CLI tests from the project root.