contribution/compass
anomalyco/opencode

OpenCode

602 signals · 626 observation events

Open repository ↗

The open source coding agent.

197.0K stars25.3K forksTypeScriptMITkeyword: OpenCode
PROJECT NEWS

Release, roadmap, and discussion

All news →
anomalyco/opencode

OpenCode

Coding-Agent Infrastructure
Latest stable

v1.18.18

v1.18.18
  • Core
  • Bugfixes
  • Select the Kimi system prompt correctly for official Moonshot and Kimi providers
  • Fix xhigh reasoning effort for xai models
Original release notes ↗

Publicly indicated next

  • No public prerelease or open milestone found.

Prereleases and milestones indicate public plans; they are not delivery commitments.

Observation trail

  1. discoveredinitial snapshot
  2. changedupdatedAt, metrics, assignees
  3. changedupdatedAt, metrics
  4. discoveredinitial snapshot
  5. discoveredinitial snapshot
  6. discoveredinitial snapshot
  7. discoveredinitial snapshot
  8. changedtext, updatedAt
  9. discoveredinitial snapshot
  10. discoveredinitial snapshot
  11. changedupdatedAt, metrics, state
  12. discoveredinitial snapshot
  13. changedupdatedAt
  14. discoveredinitial snapshot
  15. discoveredinitial snapshot
  16. changedtitle, text, updatedAt
  17. changedmetrics
  18. changedmetrics
  19. changedmetrics
  20. changedmetrics
  21. changedmetrics
  22. changedmetrics
  23. changedmetrics
  24. changedmetrics
  25. changedmetrics
  26. changedmetrics
  27. changedmetrics
  28. changedmetrics
  29. changedmetrics
  30. changedtext, updatedAt, state
50 shown
issue

always stuck at “Preparing write...”

### Description My Prometheus always stuck at “Preparing write...”。 I am using the latest oh-my-opencode and opencode. ``` Thinking: 让我重新尝试写入工作计划文件。 ~ Preparing write... Tool execution aborted Thinking: 好的,让我重新尝试写入工作计划文件。 ~ Preparing write... Tool execution aborted Thinking: 用户让我重试写入工作计划。让我重新写入计划文件。 好的,让我重新生成工作计划: ~ Preparing write... Tool execution aborted

importance 64@yinzhou-jcOriginal evidence ↗
issue

Memory Megathread

We have scattered reports of memory issues so we are going to tackle them all in a central place. PLEASE DO NOT RUN YOUR LLM AND SUGGEST SOLUTIONS IT IS ALWAYS WRONG What we need help with is collecting heap snapshots. There are two ways to do that. Manual snapshot flow - run opencode (terminal not desktop) - use it until memory has grown (we don't need craz

importance 64@thdxropenOriginal evidence ↗
pull request

feat(opencode): add Kiro provider

### Issue for this PR Closes #9165, #26680 ### Type of change - [ ] Bug fix - [X] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? Adds Kiro (AWS) as a provider to opencode through bundled plugin ([opencode-kiro](https://www.npmjs.com/package/opencode-kiro)). It uses the AI SDK compatible package [kiro-acp-ai-provid

importance 60@NachoFLizauropencontributorOriginal evidence ↗
issue

[FEATURE]: Native Model Fallback / Failover Support

## Problem OpenCode supports: - Provider fallback **only** when the model ID is the same - Static agent-level model overrides There is **no way to define fallback between different models**, e.g.: > “If model A errors or rate-limits → automatically retry with model B” This causes long-running agent workflows to fail on transient provider/model issues and for

importance 59@arisgroutopenOriginal evidence ↗
issue

DeepSeek V4 Flash on suddenly requires "Enable models hosted in China" for OpenCode Go subscription

### Description Mid-session suddenly OpenCode stopped working and claims that `The latest version of this model is only available hosted in China and requires explicit opt in: https://opencode.ai/workspace/wrk_01KT2AY9J4V90A83HFP3M9CEYW/go` ### Plugins none ### OpenCode version 1.15.13 ### Steps to reproduce 1. Be signed into OpenCode Go 2. Have "Enable mode

importance 55@capiopenOriginal evidence ↗
issue

[FEATURE]: Add ability to unqueue messages

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Right now If I queue message there is no way to "unqueue" it. Sometimes I overcorrect the agent and It invents the fix simualteniously with me so I end up wasting its attention by par

importance 55@MishkunopenOriginal evidence ↗
issue

[FEATURE]:Pay Go with crypto

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Please add crypto support for payment of opencode go.

importance 53@suse-coderopenOriginal evidence ↗
issue

[FEATURE]: slash command for reload

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request A `/reload` that reloads config files like `opencode.jsonc` of global and project level and also `.opencode/` this way without having to close and open the tui just able to reload eas

importance 52@wojonsopenOriginal evidence ↗
issue

[FEATURE]: Support more DBMS' for OpenCode state storage

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Migration to Drizzle for session storage/state has opened the door to enabling support for other DBMS' (e.g. postgres). We run opencode on temporary infrastructure, this would enable

importance 51@matthewijordanopenOriginal evidence ↗
issue

[FEATURE]: Mermaid rendering in chat

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Is there any interest in getting mermaid diagrams to render in the Chat UI?? I've found it to be really useful to ask opencode to diagram code flows or documented processes for me to

importance 49@wreed4closeddiscussionOriginal evidence ↗
issue

[BUG]: Gemini 3 Pro function calling fails - missing `thoughtSignature` support

# [BUG]: Gemini 3 Pro function calling fails - missing `thoughtSignature` support ## Description When using Gemini 3 Pro models (`gemini-3-pro-preview`) with function calling/tool use, requests fail with error: ``` Unable to submit request because function call `default_api:webfetch` in the 4. content block is missing a `thought_signature`. ``` ## Root Cause

importance 49@linhlban150612closedOriginal evidence ↗
issue

[FEATURE]: Add command palette action to reload configuration without restart

## Feature Description Add a command to the command palette that reloads/restarts OpenCode to reflect configuration changes without having to manually exit and start again. ## Use Case When making changes to OpenCode configuration files (e.g., `opencode.json`, `AGENTS.md`, etc.), users currently need to: 1. Exit OpenCode completely 2. Restart OpenCode manual

importance 48@leeweisernclosedOriginal evidence ↗
issue

[FEATURE]: Support inline skill invocation using $skill-name

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Support inline skill invocation using $skill-name syntax anywhere in a prompt (not just at the start). Currently, OpenCode requires skills to be invoked via slash commands at the begi

importance 46@marioaltvateropenOriginal evidence ↗
issue

[FEATURE]: Support Multiple Skills in a Single Prompt — Critical for Multi-Framework Workflows

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## Description Currently, OpenCode does not support specifying multiple skills simultaneously in a single prompt. When I input multiple skill commands such as `/vue3 /vue-router-v4`,

importance 43@penglnopenOriginal evidence ↗
issue

Windows ARM64 native: OpenTUI fails to initialize with bun:ffi dlopen TinyCC error

### Description On Windows 11 ARM64, the native ARM64 OpenCode binary works for non-interactive commands, but the TUI fails to initialize. The native binary successfully runs commands like: - `opencode.exe --version` - `opencode.exe --help` - `opencode.exe debug --help` - `opencode.exe debug paths` However, starting the interactive TUI does not start correct

importance 36@CarliquissopenOriginal evidence ↗
issue

Feature request: Start and continue a session with opencode run -s (modify flag behavior)

Hi guys, Hope you are well. I would like to make a feature request, I think this would be a wise and efficient design choice, even somewhat popular: Modify the behavior of the opencode run --session flag. Current behavior: Input: opencode run --session ses-abc (or abc) hello Output: "Resource not found" (if ses-abc) or "Invalid string - must start with ses"

importance 36@621625closedOriginal evidence ↗
issue

permission required cannot select

### Description When I clicked "Allow once", I couldn't click it. When I clicked "Allow always", it kept repeatedly jumping to "Always allow", and when I clicked "Reject", I couldn't submit the content in "Tell Opencode what to do differently", causing the session to get stuck here. Moreover, even after I directly closed the VSCode Opencode plugin, it still

importance 35@1122414closedOriginal evidence ↗
issue

TypeScript LSP server is not used if package.json is in a sub-directory

### Description Hello. I've a Go+React TypeScript project. The front-end code in TypeScript is located in a `/web` subdir of a repo. If I run opencode in a root dir of the repo, it doesn't use TypeScript language as `package.json` and `node_modules` are located in the `web` sub directory. At the moment, the only way to workaround this is to start `opencode`

importance 33@x1unixopenOriginal evidence ↗
issue

Web UI not showing my sessions

### Description For about 3 weeks the web UI stopped recording my sessions in it only my old sessions and projects. all new projects and sessions are not showing. ### Plugins opencode-anthropic-auth ### OpenCode version 1.1.35 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System macOs taho ### Terminal _No

importance 32@Altamimi-DevclosedOriginal evidence ↗
issue

[FEATURE]: Support Agent-Authored PRs in Permission Checks

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## 🚀 Feature Request: Support Agent-Authored PRs in Permission Checks ### Summary I’m building a **fully agentic development workflow** using OpenCode, where agents autonomously triag

importance 32@krish-59openOriginal evidence ↗
release

v1.18.17

## Core ### Bugfixes - Made session compaction keep complete recent turns and produce clearer summaries for smaller models. - Added MERGE Gateway reasoning variants so those model options work correctly. (@MatthewFeroz) - Capped automatic session retries and added jitter to reduce repeated retry storms. - Enabled PDF attachments for GitHub Copilot models tha

importance 30@opencode-agent[bot]Original evidence ↗
release

v1.18.18

## Core ### Bugfixes - Select the Kimi system prompt correctly for official Moonshot and Kimi providers - Fix xhigh reasoning effort for xai models

importance 30@opencode-agent[bot]Original evidence ↗
release

v1.18.17

## Core ### Bugfixes - Made session compaction keep complete recent turns and produce clearer summaries for smaller models. - Added MERGE Gateway reasoning variants so those model options work correctly. (@MatthewFeroz) - Capped automatic session retries and added jitter to reduce repeated retry storms. - Enabled PDF attachments for GitHub Copilot models tha

importance 30@opencode-agent[bot]Original evidence ↗
release

v1.18.18

## Core ### Bugfixes - Select the Kimi system prompt correctly for official Moonshot and Kimi providers - Fix xhigh reasoning effort for xai models

importance 30@opencode-agent[bot]Original evidence ↗
issue

[FEATURE]: Zen dashboard - usage totals, per-model breakdown, and invoices

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request The Zen usage history at `opencode.ai/workspace/...` currently shows individual API requests with their model, token counts, and cost. This is useful but missing some basics: - **Usag

importance 27@hrdkbhatnagaropenOriginal evidence ↗
issue

[FEATURE]: Add native TUI support to configure OpenRouter Fusion presets for openrouter/fusion

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request **Problem** OpenCode has no built-in way to configure the `openrouter/fusion` model. It always runs with OpenRouter’s default Quality preset (Claude Opus + GPT + Gemini), which is exp

importance 27@tifuckclosedOriginal evidence ↗
issue

[bug] Free usage exceeded. Add creddits (when using Zen free models)

### Description When using Kimi K2.5 or MiniMax2.5 (free opencode versions) i encountered this error: "Free usage exceeded. Add credits https://opencode.ai/zen" Also i have $3 balance in Opencode Zen. So its not a balance issue, i guess. ### Plugins _No response_ ### OpenCode version 1.2.6 ### Steps to reproduce 1. Start opencode 2. Choose Kimi K2.5 or Minim

importance 26@joaomjclosedbugzenOriginal evidence ↗
pull request

fix(console): emit complete Responses-API SSE lifecycle for converted streams

### Issue for this PR Closes #40171 ### Type of change - [x] Bug fix - [ ] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? Two gateway fixes for the Zen/Go `/v1/responses` endpoint when the upstream speaks chat completions (`oa-compat`): 1. **Complete Responses-API SSE lifecycle.** The stream converter only emitted

importance 26@Yuxin-QiaoopenOriginal evidence ↗
issue

[Zen] AuthError: "Request blocked by upstream provider" — all Zen models broken, account recreated

### Description All OpenCode Zen models return `AuthError: Request blocked by upstream provider.` — **every single model**, both paid and free. This is NOT a client-side issue. Direct provider API keys (DeepSeek, Anthropic) work perfectly. Steps to reproduce 1. Connect OpenCode Zen via `/connect` with a valid API key 2. Run any Zen model: opencode run "hola"

importance 23@juanmah98openOriginal evidence ↗
pull request

feat(opencode): local LAN provider discovery + auto-discover models

### Issue for this PR Closes #6231 Closes #27553 ### Type of change - [x] Bug fix - [x] New feature - [ ] Refactor / code improvement - [ ] Documentation ### What does this PR do? - Adds `Local (LAN)` discovery in `/connect` for local OpenAI-compatible servers. - Combines mDNS, localhost probing, and bounded LAN probing to find reachable local instances. - L

importance 23@androidandopenOriginal evidence ↗
issue

Unbounded growth of the `event` table: opencode.db reaches 13GB+, mostly `message.updated.1` snapshots (no retention/compaction)

## Summary The local SQLite store (`~/.local/share/opencode/opencode.db`) grows **unbounded** on long-lived instances because the event-sourcing `event` table is never pruned, capped, or compacted. On two of our long-running instances it reached **~13 GB each**, filling a 22 GB volume to 97–99% and eventually producing `sqlite3.OperationalError: database or

importance 22@rustyaosopen2.0Original evidence ↗
issue

Feature: opencode CLI uses fixed input + scrollable output pane, breaks Neovim-style scrolling

### Description Opencode has a scroll-able output area that scrolls within, but this style is a bit annoying if you are using this inside Neovim where scrolling up in normal mode does nothing whereas claude-code would show the entire history. ### Plugins _No response_ ### OpenCode version 1.1.6 ### Steps to reproduce _No response_ ### Screenshot and/or share

importance 22@s1n7axclosedbugopentuiOriginal evidence ↗
pull request

fix (core): Multiple clones of same repo are different projects

### Issue for this PR Closes #17940 #19348 #29869 #29871 #29962 #29936 #29977 #30302 #31593 #31686 #31890 #32785 #32801 #33313 #33615 #42040 ### Type of change - [X] Bug fix - [ ] New feature - [X] Refactor / code improvement - [ ] Documentation ### What does this PR do? This PR changes `.git/opencode` from the hash of the repo name to json; with a version a

importance 22@belisofulopenOriginal evidence ↗
issue

[FEATURE]: add Ads integration

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request For context https://x.com/andrewmccalip/status/2065049432652189933?s=20 Currently with kickback brands face a disadvantage that even after 10k impressions they get 0 conversions since

importance 21@Sahil-Gupta584closedOriginal evidence ↗
issue

[FEATURE]: Search mesages history tool.

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Would be great to have a tool that can search conversation history. This would effectively create an instant memory ability. Also once you switch to a new chat its hard to get old con

importance 20@DunaSpiceclosedOriginal evidence ↗
issue

Plugin @latest cache can stay pinned to stale npm version

### What happened? A plugin configured as `oh-my-openagent@latest` stayed pinned to an older npm package version in OpenCode's plugin package cache, even though npm latest had advanced. This caused OpenCode to keep loading old plugin behavior until I manually removed the cached package directory and pinned the plugin to the current version. ### Evidence My O

importance 19@sm18lr88closedOriginal evidence ↗
issue

[Web UI] "Auto-accept permissions" button is disabled when "New layout and design" is enabled.

### Description <img width="2112" height="1247" alt="Image" src="https://github.com/user-attachments/assets/7687cefd-2438-488c-b846-5a0fa49a01cc" /> "Auto-accept permissions" button is disabled when "New layout and design" is enabled. The button works perfectly fine in the default (classic) layout. <img width="2085" height="1242" alt="Image" src="https://git

importance 18@BillyismopenOriginal evidence ↗
issue

[FEATURE]: Include ripgrep in binary builds (windows, win-x64) for offline environments

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request When using OpenCode for Windows (Desktop or EXE) in an offline environment you get the error ```Transport error get (GET https://github.com/BurntSushi/ripgrep/releases/download/15.1.0

importance 18@TheMasterFXopenOriginal evidence ↗
issue

[FEATURE]: Protect .env files in grep/glob results, not just direct read

### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## Problem Permission rules for `grep` and `glob` match the search pattern, not the matched file path. So this config: ```json "grep": { "*.env": "ask" }, "glob": { "*.env": "ask" },

importance 17@raymelonopenOriginal evidence ↗
issue

[FEATURE]: Make local file paths clickable in terminal output

## Problem When opencode generates files (reports, documents, images, etc.), the file paths displayed in the terminal are not clickable. Users have to manually copy the path and run `open <path>` to view the files. ## Current Behavior File paths appear as plain text in the terminal, requiring manual copy-paste to open. ## Expected Behavior File paths should

importance 17@Xi0ng8openOriginal evidence ↗
issue

[server exited unexpectedly] when running Open Code within tmux session

### Description Description A critical error occurs when attempting to use the Open Code interface (Gemini 3 Pro Preview) inside a tmux session. The server crashes immediately or shortly after initialization, displaying the following status message: [server exited unexpectedly] Environment Information OS: MacOS M1 Taho26.2 Terminal Emulator: iTerm2 / Alacrit

importance 17@rodrigocnascimentoclosedOriginal evidence ↗
issue

OpenCode Go, the model does not support FIM

### Description [https://github.com/zed-industries/zed/issues/56379](https://github.com/zed-industries/zed/issues/56379) - The above is the problem I'm encountering when using the OpenCode Go API with the `edit_predictions` feature of the Zed Editor. - Could you please help me review the last comment and resolve it? ### Plugins _No response_ ### OpenCode ver

importance 17@kanagawa6closedOriginal evidence ↗
issue

Free Usage Limit Exceeded on First Request (DeepSeek V4 Flash Free / OpenCode Zen)

### Description # Issue: Free Usage Limit Exceeded on First Request (DeepSeek V4 Flash Free / OpenCode Zen) ## Summary The model `DeepSeek V4 Flash Free` (provider: OpenCode Zen) returns a "Free usage exceeded" error immediately, despite no prior requests having been made under this account/session. ## Environment - **Client:** OpenCode (terminal-based AI co

importance 17@RiflxzclosedOriginal evidence ↗
issue

Too many requests on Xiaomi MimoV2.5

### Description I keep getting ```bash ⚠️ API call failed (attempt 1/3): RateLimitError [HTTP 429] 🔌 Provider: opencode-go Model: mimo-v2.5 🌐 Endpoint: https://opencode.ai/zen/go/v1 📝 Error: HTTP 429: Error from provider (Xiaomi): Too many requests 📋 Details: {'code': '429', 'message': 'Error from provider (Xiaomi): Too many requests', 'type': 'limitation'}

importance 16@dave-niqeraclosedOriginal evidence ↗
issue

error: Free usage exceeded, subscribe to Go

### Description The day before yesterday, I started using the OpenCode DeepSeek V4 Flash Free model via OpenCode Zen. At first, everything worked. At about 3 a.m., I went to bed. Today I decided to try it and it doesn't work for me now. The error is given by Free usage exceeded, subscribe to Go. I thought I had a problem with my account, so I changed my acco

importance 16@Top1Nuk1openOriginal evidence ↗
issue

bug: mouse escape sequences garbled after TUI exit

## Description After exiting the opencode TUI (via quit, Ctrl+C, or process stop), mouse escape sequences appear as garbled text in the terminal: ``` 35;89;19M35;84;20M35;76;22M35;71;23M35;67;23M35;67;24M35;67;25M35... ``` This is a separate issue from in-session mouse garbling (#3199 / PR #19520). The in-session bug is about fragmented SGR sequences leaking

importance 15@agutmanstein-scaleopenOriginal evidence ↗
issue

GitHub Action replies in the PR conversation instead of the triggering comment in review thread

### Description In GitHub, when opencode is triggered (by `/oc` or `/opencode`) from an inline review comment (`pull_request_review_comment`), the "👀" reaction is correctly placed on that **inline comment**, but the reply is posted to the **PR Conversation** as a separate top-level comment. The review thread itself (the inline comment) gets no reply. related

importance 15@chAwateropenOriginal evidence ↗
issue

V2 TUI: add native Mermaid and LaTeX rendering

## Summary Add first-class Mermaid diagram and LaTeX math rendering to the OpenCode V2 TUI. Mermaid should be the initial priority. LaTeX support should cover both display math and inline math embedded within surrounding prose. ## Scope - Render fenced Mermaid blocks as diagrams in session content. - Render display LaTeX expressions. - Render inline LaTeX wi

importance 15@opencode-agent[bot]open2.0Original evidence ↗