OpenCode unveils Psychoscript for native plugins
OpenCode is transitioning its desktop application to a fully native architecture while preserving JavaScript plugin support via Psychoscript, a newly open-sourced resumable JavaScript virtual machine. By executing bytecode without bundling Electron or a full JavaScript engine, the lightweight interpreter enables agentic tool execution and plugin scripting across desktop and mobile devices.
Stripping Electron out of developer tools is becoming table stakes for modern AI coding clients, but dropping the JavaScript runtime usually kills extension ecosystems. OpenCode’s extraction of Psychoscript solves this dilemma by turning JavaScript into an embeddable, pauseable scripting engine rather than a heavyweight application shell.
- –Eliminating full JS runtimes and WASM layers allows OpenCode's Rust-based native UI to deliver instant startup, lower memory footprint, and 120Hz rendering without sacrificing existing community plugins.
- –Built-in pause and resume capabilities let agent workflows serialize their execution state to bytes mid-flight, making long-running multi-step tool calls resilient to process restarts and network interruptions.
- –Zero-ambient security strictly confines executed code by omitting filesystem, network, and timer primitives by default, only allowing interaction through host-defined functions.
- –Cross-platform portability enables identical agent scripting and plugin execution on mobile devices without thermal throttling or battery drain from full browser engines.
DISCOVERED
52m ago
2026-11-25
PUBLISHED
1h ago
2026-11-25
RELEVANCE
AUTHOR
thdxr