host

package
v0.309.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command muster-mirror shows this machine's tmux sessions in muster's Agents view as MIRRORED sessions — one card per tmux WINDOW. It is READ-ONLY unless started with -interactive. It is the optional host half of the mirror plugin: install it only on the machines whose sessions muster should show, and only against a muster running with MUSTER_MIRROR=1.

It dials OUT to muster and opens no listener — unless -mcp-listen is set, which serves a LOOPBACK-only MCP endpoint for this host's own Claude Code sessions (internal/mirrorhost's MCPProxy; docs/attention.md). Its one credential is this host's mirror token, minted on the muster side with

muster-server mirror token create <host>

Usage:

muster-mirror -url https://muster.example.com -token-file ~/.config/muster-mirror/token

`muster-mirror ask` is a different, short-lived command: Claude Code's PreToolUse hook for AskUserQuestion (ask.go).

Every flag also reads an environment variable (named in -help), so a systemd unit can configure it without putting the token in argv.

Index

Constants

View Source
const DefaultTokenFile = "~/.muster/mirror-token"

DefaultTokenFile is the mirror token's default path, for the daemon and the hook alike.

Variables

This section is empty.

Functions

func LauncherArgs

func LauncherArgs() []string

LauncherArgs reports what SetLauncherArgs set.

func Main

func Main(args []string) int

Main is the host role: what the muster-mirror binary's main() did, with argv[1:] passed in. `muster host …`, the cmd/muster-mirror shim and a binary invoked as muster-mirror all call it with the same arguments, so every flag and subcommand parses the same under each name. It returns the process's exit code.

func SetBuildRevision

func SetBuildRevision(v string)

SetBuildRevision sets the version this role reports. Call it before Main.

func SetLauncherArgs

func SetLauncherArgs(args ...string)

SetLauncherArgs sets the words a spawned opencode window puts between this binary and `opencode`. The muster binary's host role calls it with "host": its executable is muster, where `opencode` alone would be the client's. Call it before Main.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL