OpenCode: The Open-Source AI Coding Agent Explained (2026)
OpenCode is the open-source, terminal-first AI coding agent with 178K GitHub stars and 75+ model providers. What it is, how it works, and how to start.
All Tutorials
Posts and in-depth guides side by side — filter by category, type, or reading time.
701 items · Page 13 of 59
OpenCode is the open-source, terminal-first AI coding agent with 178K GitHub stars and 75+ model providers. What it is, how it works, and how to start.
Backend Development11 min
Query nested relations in Drizzle ORM with db.query and the with operator: filter and limit child rows, run many-to-many joins, plus the v1 vs v2 changes.
OpenAI's LifeSciBench grades AI on 750 expert-written life-science research tasks. Its best model, GPT-Rosalind, passes just 36.1% — here's what that means.
Frontend Development11 min
Optimistic updates in TanStack Query (React Query) with useMutation: cancelQueries, snapshot, setQueryData, and automatic rollback when a request fails.
Z.ai's GLM-5.2 is a 753B-parameter, MIT-licensed open-weight model with a usable 1M-token context. See its coding benchmarks, pricing, and how to run it.
Cloud & DevOps15 min
Migrate Terraform to OpenTofu with a clean tofu init -upgrade, then encrypt your existing state using PBKDF2 and AES-GCM. A step-by-step, runnable 2026 guide.
Cloud & DevOps10 min
Set Vitest coverage thresholds that fail CI when coverage drops. Vitest 4 nested config, per-file and glob gates, plus a runnable GitHub Actions workflow.
Microsoft launched seven in-house MAI models at Build 2026, from MAI-Thinking-1 to MAI-Code-1-Flash, all trained from scratch with no distillation from rivals.
Frontend Development8 min
Build type-safe React forms with TanStack Form v1 and Zod: form + field validation, async checks, array fields, and submit state. No adapter, all runnable.
Backend Development11 min
Build a fully type-safe tRPC v11 API in TypeScript: a standalone server, a vanilla client, Zod validation, and error handling. No framework, all runnable.
Security & Privacy10 min
Cornell Tech's WARP attack shows ~13 words in a Reddit comment can poison AI deep-research agents into naming fake products in 38–62% of exposed runs.
Cloud & DevOps17 min
Deploy a Node.js app to a VPS with Kamal 2: a from-scratch Docker setup with zero-downtime deploys, automatic Let's Encrypt SSL, and a Postgres accessory.