{"repo":"shekohex/opencode-pty","free":true,"listed":false,"github":"https://github.com/shekohex/opencode-pty","clone":"git clone https://github.com/shekohex/opencode-pty.git","description":"OpenCode plugin for interactive PTY management - run background processes, send input, read output with regex filtering","language":"TypeScript","stars":555,"topics":["background-process","bun","cli","opencode","pty","terminal","typescript","opencode-plugin"],"license":"MIT","category":"cli-tools","readme_excerpt":"opencode-pty A plugin for OpenCode that provides interactive PTY (pseudo-terminal) management, enabling the AI agent to run background processes, send interactive input, and read output on demand. Why? OpenCode's built-in bash tool runs commands synchronously—the agent waits for completion. This works for quick commands, but not for: - Dev servers ( npm run dev , cargo watch ) - Watch modes ( npm test -- --watch ) - Long-running processes (database servers, tunnels) - Interactive programs (REPLs, prompts) This plugin gives the agent full control over multiple terminal sessions, like tabs in a terminal app. Features - Background Execution : Spawn processes that run independently - Multiple Sessions : Manage multiple PTYs simultaneously - Interactive Input : Send keystrokes, Ctrl+C, arrow keys, etc. - Output Buffer : Read output anytime with pagination (offset/limit) - Pattern Filtering : Search output using regex (like grep ) - Exit Notifications : Get notified when processes finish (eliminates polling) - Permission Support : Respects OpenCode's bash permission settings - Session Lifecycle : Sessions persist until explicitly killed - Auto-cleanup : PTYs are cleaned up when OpenCode sessions end - Web UI : Modern React-based interface for session management - Real-time Streaming : WebSocket-based live output updates Setup Add the plugin to your OpenCode config: That's it. OpenCode will automatically install the plugin on next run. Updating OpenCode automatically checks for and ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shekohex","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shekohex/opencode-pty/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}