npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

opentmux

v1.5.7

Published

OpenCode tmux integration: automatically opens subagent panes and renders real-time agent execution with smart layouts

Readme

OpenTmux

npm version npm downloads License: MIT

An OpenCode plugin that provides smart tmux integration for viewing agent execution in real-time. Automatically spawns panes, streams output, and manages your terminal workspace.

  • Agent-Agnostic: Works with oh-my-opencode, omoc-slim, or vanilla OpenCode.
  • Cross-Platform: Full support for macOS, Linux, and Windows (via PowerShell or WSL).

Opencode Agent Tmux Demo Note: The demo shows the "sisyphus" agent from oh-my-opencode, but this plugin supports ALL OpenCode subagents.

Installation

🤖 Let an LLM do it (Recommended)

Paste this into any LLM agent (OpenCode, Claude Code, Cursor, etc.):

Install the opentmux plugin by following: https://raw.githubusercontent.com/AnganSamadder/opentmux/main/README.md

To install this plugin, please perform the following steps for the user:

  1. Install the NPM package globally:

    npm install -g opentmux

    Note: This installer automatically configures the user's shell (Bash/Zsh/Fish/PowerShell) to use the smart wrapper.

  2. Configure OpenCode: Add "opentmux" to the plugin array in the user's config file (usually ~/.config/opencode/opencode.json).

    {
      "plugin": [
        "opentmux"
      ]
    }
  3. Verify & Finalize:

    • Check if tmux is installed on the system. If not, advise the user to install it (e.g., brew install tmux, sudo apt install tmux, or winget install tmux).
    • Tell the user: "Installation complete! Please restart your terminal and run opencode to see the tmux integration in action."

👤 For Humans (Manual)

  1. Install via NPM:

    npm install -g opentmux

    The installer automatically configures your shell to use the smart wrapper.

  2. Enable the Plugin: Add "opentmux" to your ~/.config/opencode/opencode.json:

    {
      "plugin": [
        "opentmux"
      ]
    }
  3. Run OpenCode: Restart your terminal and type opencode. The plugin handles the rest!

🛠️ Development

For contributors working on this plugin locally, see LOCAL_DEVELOPMENT.md for setup instructions.

✨ Features

  • Automatic Tmux Pane Spawning: When any agent starts, automatically spawns a tmux pane
  • Live Streaming: Each pane runs opencode attach to show real-time agent output
  • Auto-Cleanup: Panes automatically close when agents complete
  • Configurable Layout: Support multiple tmux layouts (main-vertical, tiled, etc.)
  • Multi-Port Support: Automatically finds available ports (4096-4106) when running multiple instances
  • Smart Wrapper: Automatically detects if you are in tmux; if not, launches a session for you.

⚙️ Configuration

You can customize behavior by creating ~/.config/opencode/opentmux.json:

{
  "enabled": true,
  "port": 4096,
  "layout": "main-vertical",
  "main_pane_size": 60,
  "auto_close": true
}

| Option | Type | Default | Description | |--------|------|---------|-------------| | enabled | boolean | true | Enable/disable the plugin | | port | number | 4096 | OpenCode server port | | layout | string | "main-vertical" | Tmux layout: main-horizontal, main-vertical, tiled, etc. | | main_pane_size | number | 60 | Size of main pane (20-80%) | | auto_close | boolean | true | Auto-close panes when sessions complete |

❓ Troubleshooting

Panes Not Spawning

  1. Verify you're inside tmux: echo $TMUX
  2. Check tmux is installed: which tmux (or where tmux on Windows)
  3. Check logs: cat /tmp/opentmux.log

Server Not Found

Make sure OpenCode is started with the --port flag matching your config (the wrapper does this automatically).

🗺️ Roadmap

The following features are planned for future releases:

  • Glow Integration: Support for Glow to render markdown beautifully in spawned panes.
  • Neovim Quick-Launch: Direct integration to launch Neovim at the agent's current working directory.
  • Enhanced Customization: More options for pane positioning, colors, and persistent layouts.

📄 License

MIT

🙏 Acknowledgements

This project extracts and improves upon the tmux session management from oh-my-opencode-slim by alvinunreal.