Monorepo for muxon: an open-source, CLI-first coding agent harness that runs any model from any provider (open or frontier, hosted or local) from one place, optimized for the weakest model so it holds up on all of them (verify-gated finish, local JSONL traces). Product overview: docs/product.md.
| Path | What it is |
|---|---|
harness/ |
Go module — muxon CLI and all runtime code |
api/ |
Placeholder for the closed inference API module (not implemented here) |
docs/ |
Architecture specs, research, benchmarks |
Status: Milestones M0, A (headless), B (TUI), C (replay and local eval report), and D (release stubs) are in the tree. Scripted muxon run and muxon chat can fix go-failing-test. Live model-matrix scoring, probe thresholds, and a tagged release are still open. See implementation plan. The module path is still github.com/PLACEHOLDER/muxon/harness.
- Go 1.24+ (install)
- Git
- For upcoming tools: ripgrep (
rg) — CI installs it; optional locally until Part 2
git clone git@github.com:adavila0703/muxon-harness.git
cd muxon-harnessThe repo uses a Go workspace; harness code lives under harness/. You can stay at the repo root for most commands.
Task shortcuts (optional, works on Windows, macOS, and Linux; install from taskfile.dev):
task # list tasks
task build # → harness/muxon (harness/muxon.exe on Windows)
task muxon -- version
task testMake shortcuts (optional, Unix only):
make help
make build # → harness/muxon
make muxon ARGS=version
make testGo directly (same as above, no Make):
go run ./harness/cmd/muxon version
go build -o harness/muxon ./harness/cmd/muxon
go test ./harness/...Equivalent from inside harness/:
cd harness
go build -o muxon ./cmd/muxon
go test ./...| Variable | Default | Purpose |
|---|---|---|
MUXON_HOME |
~/.muxon |
Config, catalog, trust store (tests should set this to a temp dir) |
MUXON_SCRIPTED_PROVIDER_FILE |
— | Path to a JSON file of canned model responses (CI / demos; overrides BYOK when set) |
MUXON_TRUST |
— | Set to 1 to trust the workspace (same as --trust) |
DEEPINFRA_API_KEY (etc.) |
— | Provider keys per embedded models.yaml / ~/.muxon/catalog.json |
muxon also reads the nearest .env at or above the current directory, stopping at the repo root. Shell variables win over the file. To set it up, copy .env.example to .env and fill in your keys.
Release archives are built with .goreleaser.yml (linux, darwin and windows, amd64 and arm64) when a vX.Y.Z tag is pushed; versions and CHANGELOG.md come from changesets. See docs/RELEASING.md. No release is tagged yet. Until then:
go build -o muxon ./harness/cmd/muxon| Command | Description |
|---|---|
muxon / muxon chat |
Interactive TUI |
muxon run |
Headless agent session |
muxon resume [session-id] |
Continue the newest session, or a named one |
muxon doctor |
Keys, providers, rg on PATH (never prints secrets) |
muxon cost |
Token and USD totals from the latest session trace |
muxon trust list|add|rm |
Workspace trust store under MUXON_HOME |
muxon models list|show|probe |
Merged manifest; probe writes a catalog snippet |
muxon auth login <provider> |
Keyring entry; catalog records the provider id only |
muxon trace record|replay|export |
Scripted replay file, load it, or redact a trace |
muxon eval run|report |
Local basket row and aggregate report |
muxon gc |
Drop session dirs older than 14 days and refs/muxon/sessions/* |
muxon completion bash|zsh|fish |
Shell completion |
muxon serve |
Exits 3; IDE protocol is not in this build |
muxon version |
Print build version |
Eval task ids: fix-test-001, feature-add-001, lint-two-file-001, dep-bump-001, rename-001.
Global flags: -C / --directory, --json, -q / --quiet, -v / --verbose.
muxon run -p "<goal>" [--trust] [--verify-cmd "..."] [--model <id>] [--max-tool-rounds N]
[--cost-budget-usd X] [--permission edit|full|read-only] [--yolo] [--no-plan]
[--eval <task.json>]
| Flag | Description |
|---|---|
-p, --prompt |
Goal text (required) |
--trust |
Honor project verify command in the workspace |
--verify-cmd |
Override verify argv (whitespace-separated) |
--model |
Force worker model id from manifest |
--max-tool-rounds, --cost-budget-usd |
Per-run caps |
--permission, --yolo |
Tier / auto-approve within user max_permission |
--no-plan |
Skip planning (v1 records only; no planning state) |
--eval |
Append a row to .muxon/eval/results.jsonl after the run |
Exit codes: 0 done · 1 failed (verify/budget/caps) · 2 approval required · 3 setup · 130 cancelled (SIGINT).
Provider: Without MUXON_SCRIPTED_PROVIDER_FILE, muxon run uses the worker role from merged models.yaml + ~/.muxon/catalog.json (BYOK). Set the provider’s api_key_env in your environment.
-
Copy the fixture somewhere safe (the harness mutates the tree):
cp -R harness/testdata/fixtures/go-failing-test /tmp/go-failing-test
-
Write the scripted responses (same sequence as
director.M0ScriptedResponses) — or export them once from a small Go snippet / test helper. -
Run:
export MUXON_SCRIPTED_PROVIDER_FILE=/path/to/script.json export MUXON_HOME="${TMPDIR:-/tmp}/muxon-home" cd harness go run ./cmd/muxon run -p "fix the failing test" --trust --directory /tmp/go-failing-test
-
Inspect the trace (session id is timestamped;
muxon costreads the latest):/tmp/go-failing-test/.muxon/sessions/<session-id>/trace.jsonlExpect
verify.run(passed) andsession.endwithoutcomedone.
From the repo root:
make fmt test vet # or: gofmt -w harness/ && go test ./harness/... && go vet ./harness/...
make lint # golangci-lint in harness/Lint (optional, matches CI):
cd harness
golangci-lint runGitHub Actions runs test, vet, lint, and build on linux and macOS for changes under harness/.
| Topic | Link |
|---|---|
| Architecture index | docs/harness-architecture/README.md |
| Implementation plan & milestones | docs/harness-architecture/implementation-plan.md |
| CLI & TUI (target) | docs/harness-architecture/cli.md |
| Closed API (separate module) | docs/api/README.md |
harness/go.mod currently uses github.com/PLACEHOLDER/muxon/harness. Replace PLACEHOLDER with your GitHub org or username before publishing the module or cutting releases.
License file not added yet; treat as private development until you declare one.