# process-daemon v0.5.2
opencode-pty 0.5.2 (protocol 8) from packages/process-daemon, published to npm as @opencode/[email protected].
Minimal, fast AI coding CLI with a beautiful TUI. Multi-provider support, MCP servers, and headless mode for scripting.
latest
process-daemon-v0.5.2
total
30
stable
30
first tracked
Aug 28, 2026
updated
18h ago
Check if your agent is current:
$ clwatch diff opencode $ clwatch refresh opencode install
$ npm install -g opencode-ai first command
$ opencode opencode-pty 0.5.2 (protocol 8) from packages/process-daemon, published to npm as @opencode/[email protected].
⌘W now closes side panel tabs wherever focus is, ⌥⌘W or Ctrl+Alt+W always closes the session tab, and ⌘⇧T reopens the last closed tab of either kind where it was. (#62922)@opencode/ai: ImageResponse.image is removedThis affects code that imports @opencode/ai directly. Read response.images[0] instead of response.image. (#63011)
On a Location that is still loading plugins, agent.list returns the agents loaded so far, and integration.list, usage.limits, vcs.init, rpc.call and artifact. no longer wait up to 5 seconds. Entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching .updated event. Model, provider, generate., voice. and websearch.query endpoints still wait. (#62796, #63040)
read accepts a negative offset to read from the end of a file, such as -50 for the last 50 lines. An offset past the end returns the last lines and the file's line count instead of failing. (#62147)read can't find a file, it suggests close names: different capitalization, another extension, a small typo, or the matching path inside the project. (#62147)Exit code: N. Commands killed by a signal show the signal name, and timeouts say how long they waited and suggest a larger timeout. (#62141)cache.ttl by default (interval: "auto"), or every 4 minutes without a TTL. Models whose cache outlasts the warming duration are no longer pinged. (#62831)needs_auth. (#63012)background_compaction on, a background summary no longer stops a running Claude Agent session mid tool call. (#63025)opencode auth logout on a .well-known integration, its remote providers and policies stop applying until you log back in. (#62760)gatewayApiKey now send that key. (#62574)api and options.baseURL keeps options.baseURL. (#62570)"openai/gpt-5#high", keep the variant. (#62254)auth.json, and skips an invalid one with a warning instead of stopping setup. (#62568)session.generate requests, including cache warming pings, count toward the session's totals. (#63006)rm *.tmp, is passed through as bash does instead of stopping the command. (#62141)read no longer cuts an emoji in half when it shortens a long line. (#62575)description starts with a bracketed tag, like [Beta] Reviews code, now load. (#62250)node_modules. (#62571)←/→ and Tab/Shift+Tab. (#62906)/usage instead. (#62927)⌘W closes side panel tabs wherever focus is, the new Close session tab command (⌥⌘W or Ctrl+Alt+W) always closes the session tab, and ⌘⇧T reopens the last closed side panel or session tab where it was. (#62922)Ctrl+Shift+R toggles the review panel again instead of reloading the window. (#62567)Escape. (#62597)session.generate returns tokens and cost along with text. (#62835)credential.updated includes the integrationID and credentialID of the login that changed. (#62762)client.experimental.generate.decisions accept optional criteria: { true?, false? }. (#62819)opencode run -w to start the session in a new git worktree, or --worktree=<name> to name it. (#60712)--archived to opencode run to keep scripted and CI sessions out of your inbox and session lists. (#61270)pool: true. (#61185)opencode run --archived, which creates the session already archived so scripted and CI runs stay out of the inbox, home, and session lists. Archived sessions are also hidden from the TUI session list and skipped by --continue. (#61270)opencode run --worktree (-w), which starts the session in a new git worktree. Use --worktree=<name> to choose the worktree name. It cannot be combined with --continue or --session. (#60712)interval: "auto" mode based on cache TTL. (#60025, #60969)websearch.use policy action and switches for enabling all feature flags with OPENCODEFLAGS=all or experimental.allflags. (#61557, #61826)experimental.codemodevm: true or OPENCODEFLAGS=codemode_vm. (#62358)opencode run now waits for the background shell commands, subagents, and image jobs that its prompt started, then lets the model respond to their results before it exits. While it waits, it prints waiting for N background job(s) (a background_wait event with --format json). There is no time limit: a job that never exits, such as a dev server or file watcher, keeps the run open until you press Ctrl+C or send SIGTERM, so set a timeout on CI jobs. (#60699, #61911)opencode run execution so arguments, cancellation, compiled WebSocket upgrades, and service shutdown complete reliably. SIGTERM now cancels the session and its background jobs and exits with code 143. (#61911, #61721, #61518, #61564)/api/*, so a file in your project cannot run scripts on the server's origin. (#62422)fetch now reject URLs that contain credentials and ignore the #fragment when matching permission rules, and Code Mode fetch checks every redirect against your webfetch rules. (#60502, #61701, #62373)externaldirectory permission before sessionmove leaves the current project. (#62204)opencode run. Also expand ~ in local MCP working directories, handle legacy stdio servers, and send logo_uri during dynamic registration. (#60490, #61496, #61817, #59031)limit, such as only limit.context, instead of dropping the whole provider without an error. Thanks @Tarquinen. (#62240)opencode acp now removes a session that a client creates with session/new and closes without prompting, so IDE integrations no longer leave empty sessions behind. (#62189)q flags from freezing shell permission scanning. Thanks @yangguan-xue. (#60791)session.submit_scroll: "keep") to retain your reading position after submitting a prompt. (#61460)opencode mini now uses the agent colors from your config. Thanks @ferdinandyb. (#62067)/mcp list after signing in to an MCP server, with that server still selected. Thanks @Tarquinen. (#62245)/models when they come from a provider declared in config or an add-on instead of a saved connection. Thanks @Tarquinen. (#62244)@mentions in a line comment that match an existing file or folder, so a comment such as Check @here no longer fails the send. Render partial diffs in the review pane when it shows all lines, instead of a blank pane. Thanks @Tarquinen. (#62242, #62241)client.experimental.job.list() and its Effect equivalent for listing background shell, subagent, and image jobs, with session, descendant, kind, and status filters. (#60698)fetch implementation for OpenCode HTTP, model, web, and remote MCP traffic. (#61582)CodeBlock and CodeBlockAction GUI registries for custom fenced-code rendering and actions. (#61533)Theme registry. (#61485)ctx.ui.Select, settings layout components, and menu-row components for native-looking plugin interfaces. (#61527)opencode-pty 0.5.0 (protocol 8) from packages/process-daemon, published to npm as @opencode/[email protected].
⌘⌥O on macOS or Ctrl+Alt+O on Windows and Linux to choose a worktree, and ⌘⌥B or Ctrl+Alt+B to choose its base branch. ⌘⇧X or Ctrl+Shift+X now toggles shell mode in the composer. (#60713)⌘ or Ctrl in the quote popup to turn its checkmark into send, or press ⌘Enter or Ctrl+Enter, to send just that quote and comment while leaving the rest of the composer untouched. (#60640)"compaction": { "buffer": "20%" } in opencode.json to keep a share of each model's context window free, so one setting fits models with small and large windows. Token counts still work. (#60647)compaction.buffer accepts a percentage of the model's context window, such as "20%", in addition to a token count. (#60647)read misses because a folder is missing, the error names that folder and the nearest one that exists. (#60688)edit can't find oldString, the error shows the file's closest lines, or says the change is already there. (#60689)bash now run as shell instead of failing, with the same permissions. A plugin tool actually named bash still takes precedence. (#60687)⌘ or Ctrl in the quote popup to send a quote and its comment directly. (#60640)"experimental": { "artifacts": true } in opencode.json to let agents publish, update, and serve HTML or static artifacts through the built-in local provider or plugin-provided storage. (#60351)claude auth login, install Claude Code, and verify the connection before continuing to model selection. (#60603)⌘⌥. on macOS or Ctrl+Alt+. on Windows and Linux. The command is also available in the command palette and Settings › Shortcuts. (#60579)artifactcreate, artifactread, artifactupdate, and artifactdelete, including a built-in local static-file provider. (#60351)opencode serve and coordinated multiple server processes so a schedule fires only once. Schedules remain opt-in through experimental.schedules. (#60478)/login instruction with claude auth login. Thanks @Tarquinen. (#60592)⌘⌥. or Ctrl+Alt+.. (#60579)client.experimental.artifacts.providers, list, create, get, update, delete, and view. (#60351)client.experimental.persistentPty.update to rename terminals or clear a user title, and exposed userTitle plus persistent-pty.updated events. (#60329)ctx.experimental.artifact.transform(...) to Effect and Promise plugins for registering artifact providers, capabilities, prompts, and the default provider. (#60351)claude auth login, then select Claude Agent in /connect to use your Claude Code login and models. (#58782)@opencode/plugin now requires @opentui/core and @opentui/solid 0.8.0 or later. In OpenTUI 0.8, a ScrollBox's wrapper, viewport, content, and scrollbars are facade objects instead of renderables, and a custom RenderContext must implement clock and onAnimationTick. See the OpenTUI 0.8.0 release notes. (#60385)
integration.use covers integrations onlyintegration.use now controls which integration accounts can be used, and the new mcp.use, skill.use, and plugin.use actions control MCP servers, skills, and plugins. Rules with the old mcp:, skill:, and plugin: resource prefixes are converted automatically, but a bare integration.use rule no longer applies to MCP servers, skills, or plugins. (#60315)
claude auth login, and select Claude Agent in /connect; OPENCODECLAUDEPATH can override the Claude executable. Thanks @Tarquinen. (#58782)execute call rows. (#60480)experimental.media_blob is enabled. Images are downloaded only for previews, while undo, revert, fork, and prompt recall restore referenced attachments safely. (#60116)<?php tag. (#60359)# in file-search paths unless it introduces a valid line range. (#60336)PageUp and PageDown timeline paging from the composer without moving the draft cursor or focus. (#59426)@ and command-menu selection stable while results update under a stationary pointer. (#59434, #60368)404 instead of retrying or showing repeated errors. (#60459)LLMResponse output on AIError.partial when generation, object generation, or a tool loop fails. (#60477)tool(...), with optional output schemas and executable or declaration-only tools. (#60407)debug, models, plugins, provider, and user options to the Responses route. (#60044)withMediaRefs, mediaHashFromUri, and MediaRequestOptions to the Promise client for experimental stored-media references. (#60116)execute handler can throw available to the AI client. (#60431)filename alongside file_url on OpenAI Responses requests. (#60382)null values in Code Mode text encoding. Thanks @xiajiahang. (#57639)experimentalimagegenerate without additional configuration. Set its preferred model through experimental.image_generate.model. (#60258)experimentalimagegenerate by default when an image-capable provider is connected. (#60258)if and until inputs for client.experimental.schedule.create, plus schedule check results and output fields. (#60137)SessionInfo.time.busy for the latest execution’s start time.title and subtitle fields to composer notes, source-relative quote positioning, and focus options for composer integrations. (#60164)/goal <objective> in the TUI or Desktop to let the session continue until a reviewer confirms the objective is met. Use /goal pause, /goal resume, or /goal clear to control it. (#59437)experimental.imagegenerate to let agents create or edit images with the new imagegenerate tool. You can optionally set its default model with experimental.image_generate.model. (#59939, #60096)@opencode/ai provider removals and renamesThese changes affect code that imports @opencode/ai directly. They don't change the CLI, Desktop, or the HTTP API.
./providers/fal, ./providers/black-forest-labs, ./providers/replicate, and ./providers/stability entry points. (#59977)./providers/amazon-bedrock-mantle → ./providers/amazon-bedrock/mantle, and ./providers/google-vertex-chat, -interactions, -mistral, and -responses → ./providers/google-vertex/chat, /interactions, /mistral, and /responses. (#59506)configure() input type is now named Config, for example Groq.LanguageModelOptions → Groq.Config, and model() settings are optional when every setting is optional. (#59765)/goal <objective> with pause, resume, and clear controls, plus automatic progress review until the objective is met. (#59437)/schedule, agent tools, and experimental.schedules. (#59401, #59457)image_generate tool for background image creation and editing, with automatic or configured model selection. (#59939, #60096)/goal status below the prompt and provide a dialog for pausing, resuming, or clearing it. (#59437)/usage dialog. Thanks @Tarquinen. (#59918)/reload to reload configuration without restarting. (#59887)/goal state and actions in a composer pill. (#59437)client.experimental.schedule.{create,list,get,pause,resume,delete} for managing scheduled prompts. (#59457)client.experimental; previous locations remain as deprecated aliases until the next minor release. (#59072)opencode-pty 0.4.0 (protocol 7) from packages/process-daemon, published to npm as @opencode/[email protected].
opencode-pty 0.3.3 (protocol 7) from packages/process-daemon, published to npm as @opencode/[email protected].
opencode-pty 0.3.2 (protocol 7) from packages/process-daemon, published to npm as @opencode/[email protected].
@opencode/ai root is now the Promise API@opencode/ai now works like @opencode/sdk and @opencode/client: the package root exports the Promise API, and the Effect API moved to @opencode/ai/effect. @opencode/ai/promise is removed, and the wildcard subpath export is replaced with an explicit list of provider and protocol entry points. (#58847, #59183)
-import { AI } from "@opencode/ai/promise"
-import { LLM } from "@opencode/ai"
+import { AI } from "@opencode/ai"
+import { LLM } from "@opencode/ai/effect"
The OpenCode GitHub Action is no longer published. Remove it from your workflows. (#59032)
@opencode/plugin now requires @opentui/core and @opentui/solid 0.7.0, up from 0.6.8 or later. Plugins that depend on OpenTUI 0.6 fail to install until they upgrade. In OpenTUI 0.7, custom renderables read their hooks from their class at construction: assign renderBefore, renderAfter, and onLifecyclePass in the constructor instead of as class fields, call refreshHooks() after adding a hook by reflection, and replace defineNativeIntegration() with a static nativeIntegration declaration. See the OpenTUI 0.7.0 release notes. (#59295)
/api/info. (#59090)experimental.media_blob. (#58656, #58741)serverInfo. (#58950)codemode settings during migration. Thanks @tneemo. (#59126)eu and us multi-regions. (#59335)http:// or https://. (#59334)$0 and $ARGUMENTS text in custom command input. (#59198)execute permission is denied. (#59315)top_k settings and stop sending unsupported penalties. (#58868)/usage, model-picker, prompt, sidebar, warning, and error details for OpenCode Console usage limits. (#58731)opencode run --format json server connection errors as JSON. Thanks @andreivince. (#59366)--server and --standalone anywhere in supported CLI commands. (#58505)SIGUSR2 when explicitly enabled. (#58317)@ links to other sessions in messages. (#57480)fetch, and updates root certificates to NSS 3.131.1.opencode-ai latest version, so 1.x installs are never offered a 2.x build as a regular update./update or opencode upgrade --major.opencode upgrade --major to upgrade to OpenCode 2.ultrafast service tier./update to install OpenCode updates or upgrade to OpenCode 2; updates are no longer installed automatically.gpt-6false supported to disable them.thinking.blockBinding opt out via config when you need to keep the provider default. (@dkindlund)none reasoning effort.apply_patch no longer emits an empty move path in permission metadata. (@altendky)