Almost what you need

Mia, a lab technician, had an AI assistant write a small script last spring. It turns the plate reader's export into the weekly summary: blank-corrected means, a check on how much the triplicates spread, one table for the lab meeting. Then she went on holiday. Jonas found the script, double-clicked it and got a wall of red text. The next week he got it running, but on an export saved with German settings: every value with a decimal comma was read as text and silently skipped. The table looked fine. Three samples were missing.

In a company it's the quality team's monthly returns report. A colleague automated it with a script that works on his laptop only: it needs an add-on nobody else has installed, and it writes over last month's file, so a failed run destroys the only copy.

The script was never the problem. Only its author could run it and check it. In this book you have OpenCode write such a script, check it against an answer you worked out by hand, and hand it over so a colleague can rerun it and trust it without you. You are at Level 2 Power user: the table goes to your team, so a silent error spreads into their work.

After this you can

  • Describe a script by its input, steps, output, what it must refuse and a known answer, before any code exists.
  • Point OpenCode at your files with @, get a plan in Plan mode, and answer its questions instead of letting it guess.
  • Run the script yourself in OpenCode's terminal, check it against your answer, and break it on purpose.
  • Give the project an AGENTS.md for the assistant and a README.md for people, and push it to your group's Gitea.
  • Keep your sessions findable, and watch a colleague rerun the script from the README alone.

Before you start