Michael Suchacz 143656017e
fix(coder/modules/mux): skipping post install scripts in mux (#556)
## Description

Skip post install scripts when installing mux. 

## Type of Change

- Bug fix

## Module Information

<!-- Delete this section if not applicable -->

**Path:** `registry/coder/modules/mux`  
**New version:** `v1.0.1`  
**Breaking change:** No

- [x] Tests pass (`bun test`)
- [x] Code formatted (`bun fmt`)
- [ ] Changes tested locally

---------

Co-authored-by: DevCats <christofer@coder.com>
2025-11-20 11:59:04 -06:00

2.7 KiB

display_name description icon verified tags
mux Coding Agent Multiplexer - Run multiple AI agents in parallel ../../../../.icons/mux.svg false
ai
agents
development
multiplexer

mux

Automatically install and run mux in a Coder workspace. By default, the module installs mux@next from npm (with a fallback to downloading the npm tarball if npm is unavailable). mux is a desktop application for parallel agentic development that enables developers to run multiple AI agents simultaneously across isolated workspaces.

module "mux" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/mux/coder"
  version  = "1.0.1"
  agent_id = coder_agent.example.id
}

Features

  • Parallel Agent Execution: Run multiple AI agents simultaneously on different tasks
  • Mux Workspace Isolation: Each agent works in its own isolated environment
  • Git Divergence Visualization: Track changes across different mux agent workspaces
  • Long-Running Processes: Resume AI work after interruptions
  • Cost Tracking: Monitor API usage across agents

Examples

Basic Usage

module "mux" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/mux/coder"
  version  = "1.0.1"
  agent_id = coder_agent.example.id
}

Pin Version

module "mux" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/mux/coder"
  version  = "1.0.1"
  agent_id = coder_agent.example.id
  # Default is "latest"; set to a specific version to pin
  install_version = "0.4.0"
}

Custom Port

module "mux" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/mux/coder"
  version  = "1.0.1"
  agent_id = coder_agent.example.id
  port     = 8080
}

Use Cached Installation

Run an existing copy of mux if found, otherwise install from npm:

module "mux" {
  count      = data.coder_workspace.me.start_count
  source     = "registry.coder.com/coder/mux/coder"
  version    = "1.0.1"
  agent_id   = coder_agent.example.id
  use_cached = true
}

Skip Install

Run without installing from the network (requires mux to be pre-installed):

module "mux" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/mux/coder"
  version  = "1.0.1"
  agent_id = coder_agent.example.id
  install  = false
}

Supported Platforms

  • Linux (x86_64, aarch64)

Notes

  • mux is currently in preview and you may encounter bugs
  • Requires internet connectivity for agent operations (unless install is set to false)
  • Installs mux@next from npm by default (falls back to the npm tarball if npm is unavailable)