#588588th of 706 in Skills, plugins and prompts
opencode-pty
OpenCode plugin that lets the agent run and drive background terminal sessions
- Stars
- 613
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Sep 2026
- Language
- TypeScript
359 on 26 Apr 2026613 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A plugin for OpenCode that adds PTY tools (pty_spawn, pty_write, pty_read, pty_list, pty_kill) so the agent can run dev servers, watch modes and interactive programs without blocking. Output goes to a per-session ring buffer (50,000 lines by default) that can be read with pagination and regex filtering. It also ships a React web UI with WebSocket streaming, a REST API and a TUI sidebar panel.
Who it is for: OpenCode users who want the agent to run long-lived or interactive processes
Strengths
- Exit notifications via notifyOnExit remove the need for the agent to poll
- Read output with offset/limit pagination and regex filtering, buffer capped by PTY_MAX_BUFFER_LINES
- Web UI, REST API and WebSocket stream let a human watch and type into sessions
- Checks spawned commands against OpenCode's permission.bash rules
Weaknesses
- Permission 'ask' rules are treated as deny, since plugins cannot open OpenCode's prompt
- external_directory set to 'ask' is treated as allow
- Agent may run a background job with & unless the prompt calls it a 'session'
- Depends on the bun-pty library and OpenCode's plugin API, with separate V1 and V2 setups
What it needs
- no GPU
- Needs OpenCode, bun-pty
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Skills, plugins and prompts
See all 706| Rank | Project | Score |
|---|---|---|
| #586 | microsoftdocs/agent-skillsAzure documentation packaged as 193 SKILL.md skills for coding agents | 45 out of 100 |
| #587 | re_gentGit-like audit log of what coding agents changed and which prompt caused it | 45 out of 100 |
| #589 | notebooklm-skillCLI and MCP server for automating Google NotebookLM notebooks and artifacts | 45 out of 100 |
| #590 | ai-memory-skillpackSize-capped project memory skills and installer for Codex CLI | 45 out of 100 |
| #591 | pro-longLocal searchable session log memory for Codex, Claude Code, OpenCode and pi | 45 out of 100 |