Agentic Coding with OpenCode
Published by O'Reilly Media, Inc.
AI-empowered development with the fastest-growing coding agent
What you’ll learn and how you can apply it
- Learn to use OpenCode CLI for software development, maintenance, and more
- Flexibly work with different LLM providers as needed
- Practice strategies that work with coding agents, both for greenfield development and maintenance of mature applications
- Avoid the traps and pitfalls that lead to AI regret
Course description
If you’re new to agentic coding and are not sure where to begin, software engineer and trainer Aaron Maxwell will show you how to boost your AI-enhanced development skills using OpenCode, the fastest-growing AI coding agent.
In this three-hour course, you’ll learn how to use OpenCode to create new applications, add features to mature applications, work with your unit test suite (or add one if the suite is missing), and quickly understand baffling code bases, all with an emphasis on sound engineering principles and best practices. Much of what you’ll learn transfers to Claude Code, OpenAI Codex, Gemini CLI, and dozens of other tool stacks.
Instead of feeling overwhelmed by AI, you’ll gain a clear understanding of how to use coding agents in real-world production software development tasks without creating future problems or technical debt. Plus, OpenCode supports nearly every LLM provider, so you’ll likely be able to use it with your current subscription.
This live event is for you because...
- You’re a software developer, data professional, or DevOps engineer who wants to become an AI-assisted software developer.
Prerequisites
- OpenCode installed on your computer prior to the course
- Your LLM provider connected to OpenCode
- Basic Python knowledge (most of the examples will be in Python)
- Basic Git knowledge
- Comfort using the command line of your OS (MacOS, Windows PowerShell, Linux)
- A cheap subscription to any LLM provider, such as Anthropic, OpenAI, or OpenCode Go
Schedule
The time frames are only estimates and may vary according to how the class is progressing.
Introduction to agentic coding and OpenCode (30 minutes)
- Presentation: Understanding agentic coding tools and their capabilities; why OpenCode is better than other coding agents; key features and capabilities; installation and initial setup
- Hands-on exercise: Explore OpenCode-assisted understanding of a code base
Working with OpenCode (45 minutes)
- Presentation: Tracking token usage and managing your token budget; basic command structure and syntax; interface basics and operation modes; provider setup; Plan mode
- Hands-on exercise: Build “Hello World + 1”
- Q&A
- Break
Core OpenCode tasks (40 minutes)
- Presentation: Generating automated tests (unit tests, etc.); refactoring and modernizing code; prompt engineering strategies; setting up the demo code base
- Hands-on exercise: Add a feature to a mature application
- Q&A
Capturing domain knowledge with agent skills (40 minutes)
- Presentation: The agent skills system; what agent skills are good for (and what they’re not for); how to create a basic agent skill
- Hands-on exercise: Create an agent skill
- Q&A
Next steps (25 minutes)
- Presentation: The AI-assisted coding landscape; how to cut through the noise and the hype; predictions for the future
- Q&A
Your Instructor
Aaron Maxwell
Aaron Maxwell is author of the book "Powerful Python: The Most Impactful Patterns, Features, and Development Strategies Modern Python Provides." As a software engineer, he has worked in devops, test automation, and machine learning, and now divides his time between coding, writing, and teaching
Skills covered
- C++
- .NET
- Kotlin
- Native Android Development