opencode
opencode copied to clipboard
The open source coding agent.
Expose session state retrieval via server API and JS SDK to facilitate async state polling use-cases.
### Problem statement `opencode` does not currently provide much visibility into the underlying behavior of the system as it relates to the AI SDK & API server. [The AI SDK...
Fix issues: #2697 #1718 #408 > Similar pettern/style is already coded here #https://github.com/sst/opencode/blob/ee442975dfcbbb946d71bbade2df926edc994c7b/packages/opencode/src/session/prompt.ts#L1286
exposing LSP API
- added `update()` to config class for updating & hot reloading the config on the fly - exposed through the hono api
## Summary Adds configuration-driven allow/deny control over subagent invocation using a global `subagents` map plus per-agent `subagents` overrides. Supports wildcard patterns, precedence (longer literal prefix first, later definition wins on...
Add shell command history for when you are in shell mode `!`. Stored separate from the existing message history. Related to #2006 and #2007
We want the model to always run bash commands with a mindset that the output will be truncated if its too big.
### Question Just to confirm, OpenCode doesn't automatically clean up old session data in `~/.local/share/opencode/storage/`, right? I want to make sure I'm not missing any cleanup logic that might delete...
## Summary Fixes argument parsing for `opencode run --command` when arguments contain spaces. ## Problem When running a command like: ```bash opencode run --command testcommand val1 "val 2" val3 ```...