# micromux

## How it works

1. **List the commands you already run** in a `micromux.yaml`: a database, a migration, an API,
   a frontend.
2. **`micromux` starts each one when its dependencies are ready:** once they started, reported
   healthy, or completed, as a migration job does.
3. **Watch and steer the whole stack in one TUI:** read each service's logs, restart it, or turn it
   off.
4. **Scripts and coding agents steer the same session** with `micromux ctl` and the MCP server. A
   restart from there waits for dependencies too.

## Try it

Put a `micromux.yaml` in your project:

```yaml {title="micromux.yaml"}
version: "1"
services:
  postgres:
    command: postgres -D ./pgdata
    healthcheck:
      test: pg_isready -q

  api:
    command: ./run-api
    depends_on:
      - name: postgres
        condition: healthy
```

Run `micromux` in that directory. It starts `postgres`, starts `api` once `postgres` reports
healthy, and opens the TUI. Press `q` to stop both.

```sh
micromux
```

Then read on:

- **[Getting started](https://romnn.github.io/micromux/docs/getting-started/)** walks through a first stack, step by
  step.
- **[Features](https://github.com/romnn/micromux#features)** in the README shows jobs, ports and
  hostnames, structured logs and agent control in short.
- **[The guides](https://romnn.github.io/micromux/docs/)** cover every key, pane and command.
