OpenCode: The Open-Source AI Coding Guide is a free, 30-page illustrated PDF from the Coursya team. It follows the OpenCode V2 terminal documentation and gives you a concrete way to scope, review, and test an AI-assisted coding change before trusting the result.
Who this ebook is for
It is for developers who want to review agent-assisted changes, and for learners comfortable reading small Python functions. The TagDesk lab runs with Python 3 and the standard library. You do not need an OpenCode installation or a model account to do the offline exercise.
What you will learn
- Use Plan to inspect and propose, and Build for an approved change. Neither mode replaces tool permissions.
- Specify a small task in a way that precise tests can check, without rewriting unrelated files or installing unnecessary dependencies.
- Read a diff against the written contract and track what a test actually proved.
- Review a local run separately from anything a model or editor integration did.
Inside the 30 pages
- Pages 1–9: cover, reading routes, version selection, practice workspace, evidence, Plan and Build, and minimum permissions.
- Pages 10–17: the TagDesk contract, first-seen versus first-repeat order, project instructions, a scoped plan, and test cases.
- Pages 18–26: diff review, repeated inputs, the CLI result, checks that did not run, V1 and V2 migration notes, and a rerunnable review packet.
- Pages 27–30: capstones, a wrong but plausible patch, the answer key and official documentation links.
Try the TagDesk review exercise
Give the demo the fictional input z,a,z,b. The correct tags result is ["z", "a", "b"]; duplicate_tags is ["z"]. Sorting the unique tags produces valid JSON but breaks the first-seen order. Write a test that compares the full list, not just its members.
The reference Python implementation passed five local tests. A live OpenCode session, model call, and IDE integration were not part of that run.
How to use the handbook
Start with the reading map on page 2. For a review-only pass, read the instructions, diff, five-test evidence, and handoff pages. For practice, work through the tag contract and the two capstones before consulting the answer key. If you use OpenCode yourself, verify your installed major version against the official documentation.
About the free PDF
Thirty illustrated pages in English, with one bookmark per page, a clickable Coursya link, and seven official source links on the final page. It is an independent Coursya study guide, not an official OpenCode publication or certification.
Related free Coursya resources
Download the companion practice files
The optional practice archive contains the project files described in this handbook.
Frequently asked questions
Which OpenCode version does this guide follow?
It follows the V2 terminal documentation. Check the version installed on your own machine before copying settings from the documentation.
Do I need a paid AI account for TagDesk?
No. The practice exercise and its reference tests run locally with Python 3. A separate live model session may have different access and pricing requirements.
What is the difference between Plan and Build?
Use Plan for inspection and proposals and Build for approved implementation. Set and review permissions independently; the mode alone does not define what tools can do.
What do the five test results cover?
They cover local Python behavior such as normalization, blanks, ordering, duplicate reporting, and JSON output. They do not verify live OpenCode or model-provider behavior.
Does the PDF include bookmarks and source links?
Yes. It has 30 bookmarks, and the final page links to six official OpenCode sources and the official Python unittest documentation.