anomalyco/opencode
The open source coding agent.
How opencode is put together
opencode is an AI-powered development tool delivered as a large TypeScript monorepo managed by Bun workspaces and Turborepo. The product spans a SolidJS web/desktop UI (packages/app), an Electron desktop shell (packages/desktop), a CLI/TUI entrypoint (packages/cli), a core engine (packages/core), and a Cloudflare Workers API (packages/function) deployed via SST alongside an Astro docs site and static web app. A standalone GitHub Action (github/) spins up a local `opencode serve` instance on 127.0.0.1:4096 to react to issue/PR comments, drive sessions through the SDK, and push commits back to GitHub. Infrastructure is defined in infra/*.ts using SST with Cloudflare (Workers, Bucket, Durable Objects) plus AWS, Stripe, PlanetScale, and Honeycomb providers.
Languages
Frameworks
Datastores
Infrastructure
Major components
packages/core
Core engine of the tool, including its Drizzle SQLite configuration and JSON schema (schema.json).
packages/app
SolidJS single-page application served as a Cloudflare StaticSite at app.<domain>, with unit/browser/e2e test suites.
packages/cli
CLI distribution exposing the `lildax` binary that wires core, server, SDK, and OpenTUI-based TUI.
packages/desktop
Electron desktop packaging via electron-builder and electron-vite configs.
packages/function
Cloudflare Worker API handler (src/api.ts) deployed to api.<domain> with linked secrets and a Durable Object namespace.
github/
GitHub Action that responds to /opencode or /oc comments on issues and PRs, runs an opencode session, and pushes commits or opens PRs.
infra/
SST infrastructure-as-code defining stages, the API worker, docs/web apps, lake/stats pipelines, enterprise stack, monitoring, and secrets.
.opencode/
Repo-local agent/command/tool configuration (translator agents, triage tools, themes, locale glossaries) consumed by the opencode tool itself.
Billing changes dominated the week as the first-month Go discount was discontinued and quota usage visibility improved, alongside several provider routing fixes.
5 weeksWeek of 2026-08-24
Week of 2026-08-24latest
Billing changes dominated the week as the first-month Go discount was discontinued and quota usage visibility improved, alongside several provider routing fixes.
Week of 2026-08-17
A busy week centered on making streamed requests to the zen service more memory-efficient and stable, plus new Ox Alpha visibility in usage graphs.
Week of 2026-08-10
Model lineup churned with Gemini 3.7 Flash added then removed, GLM 5.3 and Muse Spark 1.2 introduced, and reasoning-effort settings fixed across several providers.
Week of 2026-08-03
Message ordering was overhauled everywhere this week so chats display chronologically, and the app gained full translation coverage plus session export.
Week of 2026-07-27
The week focused on app polish — file tree fades, duplicate attachment prevention, and tab repair — plus per-model data policy documentation and GPT 5.6 Luna content.
Over the past five weeks, the opencode team shipped a steady stream of fixes and features across the desktop app, terminal UI, console, and provider integrations, with two release trains (v1.18.14 through v1.18.23) cut along the way. A major theme was making message history reliable — sessions, messages, and shared conversations are now consistently ordered by creation time — alongside a wave of billing and pricing changes including the discontinuation of the first-month Go discount and new DeepSeek weekend pricing support. The team also expanded model coverage (Gemini 3.7 Flash, GLM 5.3, Ox Alpha usage tracking) and polished the app with translation coverage, visual fades, and export capabilities.
Week by week
2026-08-24Billing changes dominated the week as the first-month Go discount was discontinued and quota usage visibility improved, alongside several provider routing fixes.latest6 changes
Fix
First-month discount discontinued
The first-month Go discount was removed from the console after being briefly delayed and reverted.
Feature
Quota usage breakdown
The zen service now displays a detailed breakdown of how much of your quota you've used.
Fix
Cloudflare AI Gateway routing
Providers that don't natively support Cloudflare's AI Gateway are now routed through its REST API instead.
Fix
Archived sessions hidden immediately
Archived sessions now disappear from the home list right away instead of lingering until refresh.
Fix
Dialog focus restored
Fixed an issue where keyboard focus was lost when dialogs were stacked on top of each other in the UI.
Docs
Data handling clarified
Documentation was updated to explain how prompt data is handled and to prohibit abusive multi-account use.
2026-08-17A busy week centered on making streamed requests to the zen service more memory-efficient and stable, plus new Ox Alpha visibility in usage graphs.6 changes
Refactor
Streamlined zen request streaming
After several iterations, streamed request bodies to the zen service were reworked to drop modifiers and reduce memory usage.
Feature
Ox Alpha added to usage graph
Ox Alpha model usage is now tracked and shown in the Go usage graph with its model ID aligned correctly.
Fix
Vertex multi-region routing
Google Vertex AI requests spanning multiple regions are now routed through REP for reliability.
Fix
Unknown finish responses handled
The client now continues gracefully when it receives finish responses it doesn't recognize, retrying raw network errors too.
Fix
Subagent tool errors surfaced
Errors from subagent tools are now shown to users instead of failing silently, with a flaky test removed.
Feature
Workspace unblock action
Console administrators gained a one-click action to unblock a workspace.
2026-08-10Model lineup churned with Gemini 3.7 Flash added then removed, GLM 5.3 and Muse Spark 1.2 introduced, and reasoning-effort settings fixed across several providers.6 changes
Feature
GLM 5.3 added to Go
The GLM 5.3 model became available in the Go plan, while Gemini 3.7 Flash was briefly added and then pulled back out.
Fix
Reasoning effort passed through
Groq, Mistral, and xAI providers now correctly forward your chosen reasoning-effort setting to their models.
Fix
Web search enabled for Go
Go plan users can now use web search during sessions.
Fix
Database compatibility preserved
A fix ensured the v1 database format keeps working so existing local data isn't broken by upgrades.
Fix
Compaction instructions simplified
Conversation-compaction prompts were rewritten to be clearer for smaller models like DeepSeek V4 Flash.
Fix
Unicode preserved in grep previews
Search result previews no longer mangle non-English characters like accented letters or CJK text.
2026-08-03Message ordering was overhauled everywhere this week so chats display chronologically, and the app gained full translation coverage plus session export.6 changes
Fix
Messages ordered by creation time
Across the desktop app, terminal UI, web shares, and legacy loops, messages are now consistently sorted by when they were created instead of appearing out of order.
Feature
Full translation coverage
The app now supports all locales completely, keeping language names displayed in their native form (and fixing the Chinese word for 'token').
Feature
Export session as JSON
You can now download any conversation as a JSON file directly from the interface.
Fix
macOS app stays open
Closing the window on macOS no longer quits the app entirely, matching standard Mac behavior.
Fix
tmux clipboard copying
Copying from the terminal UI now works over SSH when tmux's set-clipboard option is enabled.
Feature
Right-click project menu
Right-clicking a project now opens its menu, and the project picker is populated from the home screen.
2026-07-27The week focused on app polish — file tree fades, duplicate attachment prevention, and tab repair — plus per-model data policy documentation and GPT 5.6 Luna content.6 changes
Docs
Per-model data policies documented
Documentation now spells out each model's data privacy policy, including updated DeepSeek terms.
Feature
GPT 5.6 Luna content added
Supporting content for the GPT 5.6 Luna model was added to the Go plan.
Fix
MCP reconnect loops stopped
Fixed a bug where failed MCP server connections would endlessly retry and spam errors.
Fix
Malformed tabs repaired
Saved session tabs that were corrupted or malformed are now automatically repaired on load.
Feature
Duplicate attachments blocked
You can no longer accidentally attach the same file twice to a message.
Fix
External links open in browser
Links clicked inside the desktop app now open in your system browser rather than inside the app.
Dependencies and code review
Dependency advisories
Security Watch
No known advisories across 11 scanned dependencies.
No known advisories in the scanned dependencies.
Code review
No concrete code-level issues confirmed.
Get this report every week for your repos.
GitZoid learns each repo, reports what changed, and flags what needs attention. One flat price for the whole team.
$19 a month, flat · First 10 outputs free · No card required