diff --git a/.agents/rules/go-cli-thee.mdc b/.agents/rules/go-cli-muxon.mdc similarity index 85% rename from .agents/rules/go-cli-thee.mdc rename to .agents/rules/go-cli-muxon.mdc index 493ba3f..a2707db 100644 --- a/.agents/rules/go-cli-thee.mdc +++ b/.agents/rules/go-cli-muxon.mdc @@ -1,21 +1,21 @@ --- -description: Cobra CLI patterns for cmd/thee +description: Cobra CLI patterns for cmd/muxon globs: "harness/cmd/**/*.go" alwaysApply: false --- -# thee CLI (`cmd/thee`) +# muxon CLI (`cmd/muxon`) Specs: `docs/harness-architecture/cli.md`. Commands must match the documented tree (`run`, `chat`, `doctor`, `cost`, …). ## Thin command layer -`cmd/thee` does only: +`cmd/muxon` does only: 1. Define `cobra.Command` (help, flags, args validation). 2. Bind flags; load config via `internal/config`. 3. Call `internal/...` with `cmd.Context()` (or `context` from `PersistentPreRunE`). -4. Map errors to **stable exit codes** (headless `thee run` — see session-director doc). +4. Map errors to **stable exit codes** (headless `muxon run` — see session-director doc). No business logic, no `net/http` calls, no tool execution in `cmd/`. diff --git a/.agents/rules/go-documentation.mdc b/.agents/rules/go-documentation.mdc index f624a2a..e47e231 100644 --- a/.agents/rules/go-documentation.mdc +++ b/.agents/rules/go-documentation.mdc @@ -12,7 +12,7 @@ alwaysApply: false - **Exported** types, funcs, consts, and vars: godoc comment immediately above the declaration. - **Non-trivial unexported** APIs: same godoc style when behavior isn't obvious from the name. -- **Package** comment: full sentence adjacent to `package` (no blank line); `// Package foo ...` for libraries, `// Command thee ...` for `cmd/thee`. +- **Package** comment: full sentence adjacent to `package` (no blank line); `// Package foo ...` for libraries, `// Command muxon ...` for `cmd/muxon`. - Doc style: complete sentence, starts with the name being documented, ends with a period. ```go diff --git a/.agents/rules/go-project-structure.mdc b/.agents/rules/go-project-structure.mdc index b04ba47..e36f941 100644 --- a/.agents/rules/go-project-structure.mdc +++ b/.agents/rules/go-project-structure.mdc @@ -1,5 +1,5 @@ --- -description: Package boundaries, interfaces, and thee internal layout +description: Package boundaries, interfaces, and muxon internal layout globs: "harness/**/*.go" alwaysApply: false --- diff --git a/.agents/rules/go-testing.mdc b/.agents/rules/go-testing.mdc index b09cd79..a5f06c0 100644 --- a/.agents/rules/go-testing.mdc +++ b/.agents/rules/go-testing.mdc @@ -1,5 +1,5 @@ --- -description: Go tests, testdata, and replay fixtures for thee-harness +description: Go tests, testdata, and replay fixtures for muxon globs: "harness/**/*_test.go" alwaysApply: false --- diff --git a/.agents/rules/thee-harness-context.mdc b/.agents/rules/muxon-context.mdc similarity index 64% rename from .agents/rules/thee-harness-context.mdc rename to .agents/rules/muxon-context.mdc index 07b91cf..837718b 100644 --- a/.agents/rules/thee-harness-context.mdc +++ b/.agents/rules/muxon-context.mdc @@ -1,19 +1,19 @@ --- -description: thee-harness project context for agents (Go CLI, layout, specs) +description: muxon project context for agents (Go CLI, layout, specs) alwaysApply: true --- -# thee-harness +# muxon -Open-source **Go** CLI (`thee`) and libraries. Specs live in `docs/harness-architecture/`; build order in `docs/harness-architecture/implementation-plan.md`. +Open-source **Go** CLI (`muxon`) and libraries. Specs live in `docs/harness-architecture/`; build order in `docs/harness-architecture/implementation-plan.md`. ## Layout (do not invent alternatives) Monorepo: harness code lives under **`harness/`** (Go module). API is sibling `api/` (separate module). -- `harness/cmd/thee/` — Cobra wiring only: flags, args, exit codes, stdout/stderr/`--json`. +- `harness/cmd/muxon/` — Cobra wiring only: flags, args, exit codes, stdout/stderr/`--json`. - `harness/internal/` — all behavior; packages mirror architecture (`director`, `contextengine`, `router`, `provider`, `tools`, …). -- **Rule:** `cmd/thee` calls `internal/director` (and siblings); no HTTP, tools, or session loop in `cmd/`. +- **Rule:** `cmd/muxon` calls `internal/director` (and siblings); no HTTP, tools, or session loop in `cmd/`. - `harness/testdata/` — fixtures, trace replay, `httptest` recordings. - Go **1.24+**, `gofmt`/`goimports`, `golangci-lint` in CI. diff --git a/.agents/skills/README.md b/.agents/skills/README.md index 36ae0b0..816eb91 100644 --- a/.agents/skills/README.md +++ b/.agents/skills/README.md @@ -2,13 +2,13 @@ Vendored via [skills CLI](https://github.com/vercel-labs/skills). Cursor discovers these from `.agents/skills/` automatically. -**Precedence:** For thee-harness layout, godoc-only comments, and `internal/` boundaries, **`.agents/rules/` and this repo’s architecture docs win** if a skill suggests a different structure (e.g. `pkg/`, heavy layering). +**Precedence:** For muxon layout, godoc-only comments, and `internal/` boundaries, **`.agents/rules/` and this repo’s architecture docs win** if a skill suggests a different structure (e.g. `pkg/`, heavy layering). ## spf13/go-skills | Skill | Use | |-------|-----| -| `cobra-viper` | `cmd/thee` — Cobra wiring, config, CLI tests | +| `cobra-viper` | `cmd/muxon` — Cobra wiring, config, CLI tests | | `go` | Idiomatic Go, flat packages, stdlib-first | | `go-spec-reviewer` | Review design/spec before large implementations | | `go-release` | GoReleaser, versioning, release hygiene | diff --git a/.changeset/README.md b/.changeset/README.md index b85a8e7..73657af 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -1,10 +1,10 @@ # Changesets Every pull request carries a changeset: a small markdown file here that names the bump and says, -for someone using `thee`, what changed. +for someone using `muxon`, what changed. ```bash -pnpm changeset # pick thee, pick patch or minor, write the note +pnpm changeset # pick muxon, pick patch or minor, write the note pnpm changeset --empty # docs-only or internal change ``` diff --git a/.changeset/dotenv-provider-keys.md b/.changeset/dotenv-provider-keys.md index 0bdd202..b634a6c 100644 --- a/.changeset/dotenv-provider-keys.md +++ b/.changeset/dotenv-provider-keys.md @@ -1,7 +1,7 @@ --- -"thee": minor +"muxon": minor --- -`thee` reads provider keys such as `OPENCODE_API_KEY` from the nearest `.env` at or above the current directory, up to the repo root. Variables already set in your shell win over the file. Copy `.env.example` to `.env` to get started. +`muxon` reads provider keys such as `OPENCODE_API_KEY` from the nearest `.env` at or above the current directory, up to the repo root. Variables already set in your shell win over the file. Copy `.env.example` to `.env` to get started. -**Upgrade:** a `.env` line that isn't `KEY=VALUE` (for example `name: value`) now stops every `thee` command with the file and line number. Fix or remove that line. +**Upgrade:** a `.env` line that isn't `KEY=VALUE` (for example `name: value`) now stops every `muxon` command with the file and line number. Fix or remove that line. diff --git a/.changeset/rename-to-muxon.md b/.changeset/rename-to-muxon.md new file mode 100644 index 0000000..cf33362 --- /dev/null +++ b/.changeset/rename-to-muxon.md @@ -0,0 +1,5 @@ +--- +"muxon": minor +--- + +Rename the project and CLI from thee to muxon (binary, module path, `MUXON_*` env vars, `.muxon/` config dir) and add the logo to the README. diff --git a/.env.example b/.env.example index f01889e..48e314b 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # Copy to .env and fill in the keys you use. .env is gitignored. -# thee reads the nearest .env at or above the current directory, up to the +# muxon reads the nearest .env at or above the current directory, up to the # repo root. Variables already set in your shell take precedence. # OpenCode Go (task eval, /providers in the TUI) diff --git a/.github/workflows/dependabot-changeset.yml b/.github/workflows/dependabot-changeset.yml index f68bb9c..1f83209 100644 --- a/.github/workflows/dependabot-changeset.yml +++ b/.github/workflows/dependabot-changeset.yml @@ -42,7 +42,7 @@ jobs: path=".changeset/dependabot-$NUMBER.md" # the title is data: written through printf into the file body, never evaluated if grep -qE '^(harness/go\.(mod|sum)|go\.work(\.sum)?)$' <<<"$changed"; then - content=$(printf -- '---\n"thee": patch\n---\n\nDependencies: %s.\n' "$TITLE" | base64 -w0) + content=$(printf -- '---\n"muxon": patch\n---\n\nDependencies: %s.\n' "$TITLE" | base64 -w0) else content=$(printf -- '---\n---\n' | base64 -w0) fi diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 7132dc2..7f2dc04 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -19,21 +19,21 @@ jobs: cache-dependency-path: harness/go.sum - name: Install ripgrep run: sudo apt-get update && sudo apt-get install -y ripgrep - - run: go build -o thee ./cmd/thee + - run: go build -o muxon ./cmd/muxon - name: DeepInfra basket env: DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }} run: | - ./thee eval basket \ + ./muxon eval basket \ --matrix testdata/eval/matrix-ci.yaml \ --tasks 'testdata/eval/*.json' \ --trials 1 \ --concurrency 2 \ --budget-usd 5 \ --trust \ - --out "$GITHUB_WORKSPACE/.thee/eval" + --out "$GITHUB_WORKSPACE/.muxon/eval" - uses: actions/upload-artifact@v4 if: always() with: name: eval-runs - path: .thee/eval/runs + path: .muxon/eval/runs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07dd045..a7e123d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -# Release: on a version tag (v1.2.3), build the thee binaries with goreleaser (.goreleaser.yml), +# Release: on a version tag (v1.2.3), build the muxon binaries with goreleaser (.goreleaser.yml), # attest them, and publish the GitHub release. The body is this version's CHANGELOG.md section. name: release @@ -61,7 +61,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # `gh attestation verify thee_linux_amd64.tar.gz --owner adavila0703` proves an archive came + # `gh attestation verify muxon_linux_amd64.tar.gz --owner adavila0703` proves an archive came # from this workflow in this repository - uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 if: startsWith(github.ref, 'refs/tags/v') diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index bb81cb3..63e7f46 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -1,7 +1,7 @@ # Release flow (changesets): every merged PR carries a .changeset/*.md file. This workflow keeps a # "Release" pull request open that bumps the version in package.json and writes CHANGELOG.md from # them. Merging that PR runs `pnpm release:tag`, which pushes the vX.Y.Z tag; release.yml then builds -# the thee binaries with goreleaser and publishes the GitHub release. +# the muxon binaries with goreleaser and publishes the GitHub release. # # Needs secrets.RELEASE_TOKEN: a fine-grained personal access token with contents: write and # pull-requests: write on this repo. Tags pushed with the default GITHUB_TOKEN never trigger other diff --git a/.gitignore b/.gitignore index a9f9822..f6ba7a2 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,7 @@ .DS_Store # Harness runtime -.thee/ +.muxon/ /dist/ # Env / secrets diff --git a/.goreleaser.yml b/.goreleaser.yml index d9f5aee..0363d34 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,13 +2,13 @@ # come from CHANGELOG.md (changesets), so goreleaser's own changelog stays off. version: 2 -project_name: thee +project_name: muxon builds: - - id: thee + - id: muxon dir: harness - main: ./cmd/thee - binary: thee + main: ./cmd/muxon + binary: muxon env: - CGO_ENABLED=0 flags: diff --git a/AGENTS.md b/AGENTS.md index 1dd2977..f8d9ad3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ # Agent instructions -This repository is the **thee** monorepo. The open-source harness is the Go module under `harness/` (`thee` CLI). Before implementing behavior, read the matching doc under `docs/harness-architecture/` and the [implementation plan](docs/harness-architecture/implementation-plan.md). +This repository is the **muxon** monorepo. The open-source harness is the Go module under `harness/` (`muxon` CLI). Before implementing behavior, read the matching doc under `docs/harness-architecture/` and the [implementation plan](docs/harness-architecture/implementation-plan.md). ## Go code @@ -8,12 +8,12 @@ Follow project rules in `.agents/rules/`: | Rule | Topic | |------|--------| -| `thee-harness-context.mdc` | Layout, deps, specs (always on) | +| `muxon-context.mdc` | Layout, deps, specs (always on) | | `go-format-and-naming.mdc` | Naming, packages, receivers | | `go-errors-context-concurrency.mdc` | Errors, `context`, goroutines, slog | | `go-documentation.mdc` | Godoc only — no inline narration | | `go-project-structure.mdc` | `internal/` boundaries, interfaces | -| `go-cli-thee.mdc` | Thin `cmd/thee` + Cobra | +| `go-cli-muxon.mdc` | Thin `cmd/muxon` + Cobra | | `go-testing.mdc` | Tests, `testdata`, replay | ## Agent skills (`.agents/skills/`) diff --git a/Makefile b/Makefile index 63353ef..6181f9c 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,13 @@ # Run from repo root. Harness module lives in harness/. HARNESS := ./harness -THEE := $(HARNESS)/cmd/thee +MUXON := $(HARNESS)/cmd/muxon -.PHONY: help build thee test vet fmt lint eval +.PHONY: help build muxon test vet fmt lint eval help: @echo "Targets (from repo root):" - @echo " make build - build harness/thee binary" - @echo " make thee - go run thee CLI (pass ARGS=...)" + @echo " make build - build harness/muxon binary" + @echo " make muxon - go run muxon CLI (pass ARGS=...)" @echo " make test - go test ./harness/..." @echo " make vet - go vet ./harness/..." @echo " make fmt - gofmt harness/" @@ -15,10 +15,10 @@ help: @echo " make eval - OpenCode Go basket (from repo root)" build: - go build -o harness/thee $(THEE) + go build -o harness/muxon $(MUXON) -thee: - go run $(THEE) $(ARGS) +muxon: + go run $(MUXON) $(ARGS) test: go test ./harness/... @@ -33,4 +33,4 @@ lint: cd harness && golangci-lint run eval: - cd harness && go run ./cmd/thee eval basket --matrix testdata/eval/matrix-opencode.yaml --tasks 'testdata/eval/*.json' --trials 1 --concurrency 2 --budget-usd 5 --trust + cd harness && go run ./cmd/muxon eval basket --matrix testdata/eval/matrix-opencode.yaml --tasks 'testdata/eval/*.json' --trials 1 --concurrency 2 --budget-usd 5 --trust diff --git a/PROGRESS.txt b/PROGRESS.txt index 761edb2..d8fa31a 100644 --- a/PROGRESS.txt +++ b/PROGRESS.txt @@ -1,4 +1,4 @@ -thee harness — implementation progress +muxon harness — implementation progress ====================================== Spec / build order: docs/harness-architecture/implementation-plan.md Code module: harness/ @@ -11,11 +11,11 @@ Milestone M0: PASS Milestone M1: pending (4.10 skipped — no API key) Milestone A: PASS Milestone B: PASS (scripted TUI fixture reaches done) -Milestone C: PASS (local basket files, results.jsonl, thee eval report). Live model matrix not run. +Milestone C: PASS (local basket files, results.jsonl, muxon eval report). Live model matrix not run. Milestone D: PASS as stubs (goreleaser config, auth, export, gc, completion, serve). No tag published. Monorepo layout: DONE -Module path: github.com/PLACEHOLDER/thee/harness (replace PLACEHOLDER before publish) +Module path: github.com/PLACEHOLDER/muxon/harness (replace PLACEHOLDER before publish) Parts (plan order) diff --git a/README.md b/README.md index 89343c8..71e1ca2 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,18 @@ -# thee-harness +

+ muxon: many models in, one agent out +

-Monorepo for **thee**: 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](docs/product.md). +# muxon + +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](docs/product.md). | Path | What it is | |------|------------| -| [`harness/`](harness/) | Go module — `thee` CLI and all runtime code | +| [`harness/`](harness/) | Go module — `muxon` CLI and all runtime code | | [`api/`](api/) | Placeholder for the closed inference API module (not implemented here) | | [`docs/`](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 `thee run` and `thee chat` can fix [`go-failing-test`](harness/testdata/fixtures/go-failing-test). Live model-matrix scoring, probe thresholds, and a tagged release are still open. See [implementation plan](docs/harness-architecture/implementation-plan.md). The module path is still `github.com/PLACEHOLDER/thee/harness`. +**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`](harness/testdata/fixtures/go-failing-test). Live model-matrix scoring, probe thresholds, and a tagged release are still open. See [implementation plan](docs/harness-architecture/implementation-plan.md). The module path is still `github.com/PLACEHOLDER/muxon/harness`. --- @@ -25,8 +29,8 @@ Monorepo for **thee**: an open-source, CLI-first coding agent harness that runs ### Clone and build ```bash -git clone git@github.com:adavila0703/thee-harness.git -cd thee-harness +git clone git@github.com:adavila0703/muxon-harness.git +cd muxon-harness ``` The repo uses a [Go workspace](go.work); harness code lives under `harness/`. You can stay at the **repo root** for most commands. @@ -35,8 +39,8 @@ The repo uses a [Go workspace](go.work); harness code lives under `harness/`. Yo ```bash task # list tasks -task build # → harness/thee (harness/thee.exe on Windows) -task thee -- version +task build # → harness/muxon (harness/muxon.exe on Windows) +task muxon -- version task test ``` @@ -44,16 +48,16 @@ task test ```bash make help -make build # → harness/thee -make thee ARGS=version +make build # → harness/muxon +make muxon ARGS=version make test ``` **Go directly** (same as above, no Make): ```bash -go run ./harness/cmd/thee version -go build -o harness/thee ./harness/cmd/thee +go run ./harness/cmd/muxon version +go build -o harness/muxon ./harness/cmd/muxon go test ./harness/... ``` @@ -61,7 +65,7 @@ Equivalent from inside `harness/`: ```bash cd harness -go build -o thee ./cmd/thee +go build -o muxon ./cmd/muxon go test ./... ``` @@ -69,12 +73,12 @@ go test ./... | Variable | Default | Purpose | |----------|---------|---------| -| `THEE_HOME` | `~/.thee` | Config, catalog, trust store (tests should set this to a temp dir) | -| `THEE_SCRIPTED_PROVIDER_FILE` | — | Path to a JSON file of canned model responses (CI / demos; overrides BYOK when set) | -| `THEE_TRUST` | — | Set to `1` to trust the workspace (same as `--trust`) | -| `DEEPINFRA_API_KEY` (etc.) | — | Provider keys per embedded `models.yaml` / `~/.thee/catalog.json` | +| `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` | -`thee` 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`](.env.example) to `.env` and fill in your keys. +`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`](.env.example) to `.env` and fill in your keys. --- @@ -83,36 +87,36 @@ go test ./... Release archives are built with [`.goreleaser.yml`](.goreleaser.yml) (`linux`, `darwin` and `windows`, `amd64` and `arm64`) when a `vX.Y.Z` tag is pushed; versions and `CHANGELOG.md` come from [changesets](.changeset/README.md). See [docs/RELEASING.md](docs/RELEASING.md). No release is tagged yet. Until then: ```bash -go build -o thee ./harness/cmd/thee +go build -o muxon ./harness/cmd/muxon ``` ## Commands (milestone D) | Command | Description | |---------|-------------| -| `thee` / `thee chat` | Interactive TUI | -| `thee run` | Headless agent session | -| `thee resume [session-id]` | Continue the newest session, or a named one | -| `thee doctor` | Keys, providers, `rg` on PATH (never prints secrets) | -| `thee cost` | Token and USD totals from the latest session trace | -| `thee trust list\|add\|rm` | Workspace trust store under `THEE_HOME` | -| `thee models list\|show\|probe` | Merged manifest; probe writes a catalog snippet | -| `thee auth login ` | Keyring entry; catalog records the provider id only | -| `thee trace record\|replay\|export` | Scripted replay file, load it, or redact a trace | -| `thee eval run\|report` | Local basket row and aggregate report | -| `thee gc` | Drop session dirs older than 14 days and `refs/thee/sessions/*` | -| `thee completion bash\|zsh\|fish` | Shell completion | -| `thee serve` | Exits 3; IDE protocol is not in this build | -| `thee version` | Print build version | +| `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 ` | 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`. -### `thee run` +### `muxon run` ```text -thee run -p "" [--trust] [--verify-cmd "..."] [--model ] [--max-tool-rounds N] +muxon run -p "" [--trust] [--verify-cmd "..."] [--model ] [--max-tool-rounds N] [--cost-budget-usd X] [--permission edit|full|read-only] [--yolo] [--no-plan] [--eval ] ``` @@ -126,11 +130,11 @@ thee run -p "" [--trust] [--verify-cmd "..."] [--model ] [--max-tool-r | `--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 `.thee/eval/results.jsonl` after the run | +| `--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 `THEE_SCRIPTED_PROVIDER_FILE`, `thee run` uses the **worker** role from merged `models.yaml` + `~/.thee/catalog.json` (BYOK). Set the provider’s `api_key_env` in your environment. +**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. ### Scripted M0 demo (fix the sample fixture) @@ -145,16 +149,16 @@ thee run -p "" [--trust] [--verify-cmd "..."] [--model ] [--max-tool-r 3. Run: ```bash - export THEE_SCRIPTED_PROVIDER_FILE=/path/to/script.json - export THEE_HOME="${TMPDIR:-/tmp}/thee-home" + export MUXON_SCRIPTED_PROVIDER_FILE=/path/to/script.json + export MUXON_HOME="${TMPDIR:-/tmp}/muxon-home" cd harness - go run ./cmd/thee run -p "fix the failing test" --trust --directory /tmp/go-failing-test + go run ./cmd/muxon run -p "fix the failing test" --trust --directory /tmp/go-failing-test ``` -4. Inspect the trace (session id is timestamped; `thee cost` reads the latest): +4. Inspect the trace (session id is timestamped; `muxon cost` reads the latest): ```text - /tmp/go-failing-test/.thee/sessions//trace.jsonl + /tmp/go-failing-test/.muxon/sessions//trace.jsonl ``` Expect `verify.run` (passed) and `session.end` with `outcome` `done`. @@ -194,7 +198,7 @@ GitHub Actions runs test, vet, lint, and build on **linux** and **macOS** for ch ## Module path -`harness/go.mod` currently uses `github.com/PLACEHOLDER/thee/harness`. Replace `PLACEHOLDER` with your GitHub org or username before publishing the module or cutting releases. +`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. --- diff --git a/Taskfile.yml b/Taskfile.yml index 34d7e43..8677713 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -3,7 +3,7 @@ version: "3" vars: HARNESS: ./harness - THEE: ./harness/cmd/thee + MUXON: ./harness/cmd/muxon tasks: default: @@ -12,14 +12,14 @@ tasks: silent: true build: - desc: Build harness/thee binary + desc: Build harness/muxon binary cmds: - - go build -o harness/thee{{exeExt}} {{.THEE}} + - go build -o harness/muxon{{exeExt}} {{.MUXON}} - thee: - desc: go run thee CLI (pass args after --, e.g. task thee -- run -p "hi") + muxon: + desc: go run muxon CLI (pass args after --, e.g. task muxon -- run -p "hi") cmds: - - go run {{.THEE}} {{.CLI_ARGS}} + - go run {{.MUXON}} {{.CLI_ARGS}} test: desc: go test ./harness/... @@ -46,4 +46,4 @@ tasks: desc: OpenCode Go basket dir: harness cmds: - - go run ./cmd/thee eval basket --matrix testdata/eval/matrix-opencode.yaml --tasks 'testdata/eval/*.json' --trials 1 --concurrency 2 --budget-usd 5 --trust + - go run ./cmd/muxon eval basket --matrix testdata/eval/matrix-opencode.yaml --tasks 'testdata/eval/*.json' --trials 1 --concurrency 2 --budget-usd 5 --trust diff --git a/api/README.md b/api/README.md index 0a94737..2433844 100644 --- a/api/README.md +++ b/api/README.md @@ -1,4 +1,4 @@ -# thee API (closed source) +# muxon API (closed source) Go service module will live here (`api/go.mod`). Specs: [docs/api/README.md](../docs/api/README.md). diff --git a/docs/README.md b/docs/README.md index 754f35b..c59cf40 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# thee-harness — documentation +# muxon — documentation **Product:** [product.md](./product.md) @@ -21,7 +21,7 @@ Foundational research for a **frugal, model-agnostic engineering harness** (CLI- |----------|-------------| | [01-deepinfra.md](./research/01-deepinfra.md) | DeepInfra product deep dive: architecture, APIs, pricing, privacy, competitors, harness implications | | [02-harness-landscape.md](./research/02-harness-landscape.md) | Harness landscape, techniques, influence matrix, product fit | -| [03-awesome-cli-coding-agents-survey.md](./research/03-awesome-cli-coding-agents-survey.md) | Full survey of bradAGI list (381 entries), Tier A/B for thee-harness | +| [03-awesome-cli-coding-agents-survey.md](./research/03-awesome-cli-coding-agents-survey.md) | Full survey of bradAGI list (381 entries), Tier A/B for muxon | | [benchmarks.md](./benchmarks.md) | How harness scores are calculated, and how to run them from this repo | **Last updated:** 2026-10-12 (research pass). diff --git a/docs/RELEASING.md b/docs/RELEASING.md index edd8056..6e83f85 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -1,18 +1,18 @@ # Releasing -`thee` is one Go binary (`harness/cmd/thee`) shipped as archives for Linux, macOS and Windows, +`muxon` is one Go binary (`harness/cmd/muxon`) shipped as archives for Linux, macOS and Windows, versioned with [changesets](https://github.com/changesets/changesets). The version lives in the root `package.json`, which exists only for the release tooling; nothing is published to npm -(`"private": true`). goreleaser stamps it into the binary (`thee version`). +(`"private": true`). goreleaser stamps it into the binary (`muxon version`). ## Every pull request 1. Make the change. Run `go test ./harness/...`, `go vet ./harness/...` and `gofmt`. -2. `pnpm install` once, then `pnpm changeset`: pick `thee`, pick the bump, write the note **as a - user reads it** ("`thee run` accepts `--budget-usd`", not "refactor director loop"). One +2. `pnpm install` once, then `pnpm changeset`: pick `muxon`, pick the bump, write the note **as a + user reads it** ("`muxon run` accepts `--budget-usd`", not "refactor director loop"). One changeset per user-visible change; a PR can have several. Docs-only or internal PRs: `pnpm changeset --empty`. -3. If the change needs anything from the user at upgrade time (a moved `~/.thee` file, a flag that +3. If the change needs anything from the user at upgrade time (a moved `~/.muxon` file, a flag that changed meaning, a config key renamed, a trace schema bump), add an `**Upgrade:**` line to the changeset. It ends up in the changelog and the GitHub release. 4. CI (`ci.yml`) tests and builds on all three platforms, and refuses a PR without a changeset. @@ -35,7 +35,7 @@ root `package.json`, which exists only for the release tooling; nothing is publi with the archives and `checksums.txt`. The release notes are the changelog section (`scripts/release-notes.mjs`; maintainers' "Thanks @…!" credits are dropped, outside contributors' stay). -3. Download one archive and check `thee version` prints the new version. +3. Download one archive and check `muxon version` prints the new version. A manual run of `release.yml` (`workflow_dispatch`) builds a goreleaser snapshot and publishes nothing. diff --git a/docs/api/README.md b/docs/api/README.md index e94aee8..aa3751d 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -1,4 +1,4 @@ -# thee API +# muxon API Closed-source **Go** service that sits between the open-source harness and inference (default upstream: [DeepInfra](../research/01-deepinfra.md)). @@ -8,15 +8,15 @@ The harness stays public. This API does not. | Piece | License | Owns | |-------|---------|------| -| **Harness** (`thee` CLI) | Open source | Loop, tools, context, routing policy, local traces | +| **Harness** (`muxon` CLI) | Open source | Loop, tools, context, routing policy, local traces | | **API** (this service) | Closed source | Accounts, our upstream keys, metering, abuse limits | | **DeepInfra** | Vendor | Model execution | ```text -thee CLI (OSS) +muxon CLI (OSS) │ OpenAI-compatible chat + stream ├─ BYOK ──────────────► user's DeepInfra / OpenRouter / local - └─ thee API key ──────► api.thee… (closed, Go) + └─ muxon API key ──────► api.muxon… (closed, Go) │ our DeepInfra key └─► DeepInfra ``` @@ -29,7 +29,7 @@ A thin **OpenAI-compatible** proxy: - `POST /v1/chat/completions` (stream and non-stream) - `GET /v1/models` (the curated manifest we allow) -- Auth with a **thee API key**, not a DeepInfra key +- Auth with a **muxon API key**, not a DeepInfra key - Forward to DeepInfra with **our** key - Record **metadata only** (account, model, token counts, cost). No prompt or completion bodies. diff --git a/docs/api/approach.md b/docs/api/approach.md index f413800..52c6842 100644 --- a/docs/api/approach.md +++ b/docs/api/approach.md @@ -1,6 +1,6 @@ # API approach -Closed-source Go service. The open-source harness calls it with a thee API key. The service calls DeepInfra with our key. +Closed-source Go service. The open-source harness calls it with a muxon API key. The service calls DeepInfra with our key. ## Role @@ -20,7 +20,7 @@ The harness already speaks OpenAI-compatible chat. Pointing `base_url` at this A ```text 1. CLI builds messages (local). 2. POST /v1/chat/completions - Authorization: Bearer + Authorization: Bearer body: model, messages, tools, stream, max_tokens 3. API checks key, balance, model allow-list, rate limit. 4. API forwards to DeepInfra with our key. @@ -69,10 +69,10 @@ These are checked by a contract test that runs the harness probe against the API ## Auth -- User creates a **thee API key** in the closed dashboard or with `POST /v1/keys`. -- Harness stores it like any other BYOK secret (`THEE_API_KEY`). +- User creates a **muxon API key** in the closed dashboard or with `POST /v1/keys`. +- Harness stores it like any other BYOK secret (`MUXON_API_KEY`). - Keys are hashed at rest. The DeepInfra key exists only in this service's environment. -- Revoke a thee key without rotating the upstream key. +- Revoke a muxon key without rotating the upstream key. ## Models @@ -80,8 +80,8 @@ The API exposes a **curated list**, not all of DeepInfra. - Public prices can be higher than DeepInfra list (our margin) or equal (subscription covers margin). Pick one before launch; the protocol is the same. - Unknown model ids return 404. -- Router / worker / escalator ids in the OSS manifest map to these ids when the active provider is `thee`. -- `GET /v1/models` returns each model's capability block (tool protocol, structured output, reasoning history, prompt variant, sampling, served context), produced by running `thee models probe` against our own endpoint. Harness users on our API get a tuned profile without configuring anything; local catalog values still win. +- Router / worker / escalator ids in the OSS manifest map to these ids when the active provider is `muxon`. +- `GET /v1/models` returns each model's capability block (tool protocol, structured output, reasoning history, prompt variant, sampling, served context), produced by running `muxon models probe` against our own endpoint. Harness users on our API get a tuned profile without configuring anything; local catalog values still win. ## Metering @@ -114,7 +114,7 @@ DeepInfra stays the upstream until a second provider is worth the code. Add it b | Case | API behavior | |------|----------------| -| Bad thee key | 401, no upstream call | +| Bad muxon key | 401, no upstream call | | Over spend cap | 429, no upstream call | | Model not on allow-list | 404 | | DeepInfra 429 / overload | Pass status through, or one retry on our side | diff --git a/docs/api/boundary.md b/docs/api/boundary.md index 895b978..fcf4aa6 100644 --- a/docs/api/boundary.md +++ b/docs/api/boundary.md @@ -13,7 +13,7 @@ They share **no internal packages**. The contract is HTTP. - `POST /v1/chat/completions` with streaming - `GET /v1/models` -- Bearer thee API key +- Bearer muxon API key - OpenAI-style `usage` on the final stream chunk (prompt, completion, cached, and reasoning tokens) - Request fields passed through unchanged: `tools`, `tool_choice`, `response_format` (including `json_schema`), `prompt_cache_key`, sampling parameters, `stop`, and reasoning parameters - Response fields passed through unchanged: `tool_calls`, `reasoning_content`, `finish_reason` @@ -35,12 +35,12 @@ If the private API changes a field, it keeps the OpenAI shape so the public clie - System prompts, skills, compaction - A requirement that users must use our API -A documented `thee` provider in the public manifest is fine. Hard-coding a private URL with an embedded secret is not. +A documented `muxon` provider in the public manifest is fine. Hard-coding a private URL with an embedded secret is not. ## Default user experience 1. Install the public CLI. -2. Either `thee auth login` (thee API key) or set a BYOK key in `catalog.json`. +2. Either `muxon auth login` (muxon API key) or set a BYOK key in `catalog.json`. 3. The loop is the same either way. ## Related diff --git a/docs/assets/logo.svg b/docs/assets/logo.svg new file mode 100644 index 0000000..fd50fde --- /dev/null +++ b/docs/assets/logo.svg @@ -0,0 +1,31 @@ + + muxon + Four input lines converge into one output line with a dot on it, above the wordmark muxon. + + + + + + + + + + + + + + + muxon + many models in, one agent out + diff --git a/docs/benchmarks.md b/docs/benchmarks.md index cd47348..dd5ae3f 100644 --- a/docs/benchmarks.md +++ b/docs/benchmarks.md @@ -1,6 +1,6 @@ # Benchmarks -How coding-harness scores are actually produced, and how thee can report them from this repo. +How coding-harness scores are actually produced, and how muxon can report them from this repo. A published score is a **harness–model pair** on a **pinned dataset**, graded by a program that runs after the agent exits. The model does not grade itself. The harness does not get to decide that a task passed. Holding the model fixed and swapping the harness moves the score, sometimes by more than swapping a nearby model. That is the measurement this product needs. @@ -56,21 +56,21 @@ Two known holes in the number: Verified is the set people quote. It is also contaminated by now, and some instances have brittle tests (a Django loader bug zeroed correct fixes). Treat Verified as a comparison set with the grader version pinned, not as a clean measure of “can this model code.” -The prediction file thee would emit is JSONL, one object per task: +The prediction file muxon would emit is JSONL, one object per task: ```json -{"instance_id": "sympy__sympy-20590", "model_name_or_path": "thee+Qwen/Qwen3-Coder", "model_patch": "diff --git a/..."} +{"instance_id": "sympy__sympy-20590", "model_name_or_path": "muxon+Qwen/Qwen3-Coder", "model_patch": "diff --git a/..."} ``` ## What changes when the harness changes -Most leaderboards vary the model and leave the agent unstated. The useful experiment for thee is the opposite. +Most leaderboards vary the model and leave the agent unstated. The useful experiment for muxon is the opposite. Ante ran one model (`deepseek/deepseek-v4-flash-0731`), the same ten Terminal-Bench 2.1 tasks, one trial, and the same Daytona sandbox through Ante, Ante with a short prompt, Pi 0.73.1, OpenCode 1.18.4, and Hermes ([How much does the agent harness matter?](https://antigma.ai/blog/2026/08/04/harness-matter), 4 Aug 2026). Pass counts were 10, 9, 7, 7, and 7. They priced every harness on one token table so a provider’s markup would not look like a harness cost. On that table, Pi’s invoice was about ten times the reference price of the same tokens. OpenCode’s reported cost missed reasoning tokens. Ten tasks move ten points when one task flips, so Ante correctly calls this a probe, not a ranking. A later write-up ran GLM-5.2 through four harnesses on all 89 tasks, five trials, and reported a 13 point gap between the best and worst harness on that model ([kimchi.dev](https://kimchi.dev/blog/same-model-different-harness-terminal-bench)). -The scaffold-effect paper measured three harnesses, two models, and 50 Terminal-Bench Pro tasks (300 trials). Pass-rate gaps stayed inside 0–8 points. Tokens per solved task differed by about 40×. The Terminal-Bench paper’s own Claude Opus 4.5 pair was 52.1% on one harness and 57.8% on another, at 256.9M versus 3.9M input tokens ([paper PDF](https://kdd-eval-workshop.github.io/agenticai-evaluation-kdd2026/assets/papers/74_The_Scaffold_Effect_in_Codi.pdf)). A small accuracy gain can hide a large bill. thee’s report has to show both. +The scaffold-effect paper measured three harnesses, two models, and 50 Terminal-Bench Pro tasks (300 trials). Pass-rate gaps stayed inside 0–8 points. Tokens per solved task differed by about 40×. The Terminal-Bench paper’s own Claude Opus 4.5 pair was 52.1% on one harness and 57.8% on another, at 256.9M versus 3.9M input tokens ([paper PDF](https://kdd-eval-workshop.github.io/agenticai-evaluation-kdd2026/assets/papers/74_The_Scaffold_Effect_in_Codi.pdf)). A small accuracy gain can hide a large bill. muxon’s report has to show both. ## Can this live in the repo? @@ -78,13 +78,13 @@ Yes. The grader stays a separate program. The repo owns the runner, the adapter, Three layers, in the order they should be built. -### 1. A basket thee grades itself +### 1. A basket muxon grades itself This is the number we can run on every change. It matches the eval hook already sketched in [observability](./harness-architecture/observability.md). -A task file names a fixture repo, an instruction, and a verify command. `thee eval` runs the session headless, then runs that command. Exit 0 writes reward 1. The agent does not see the verify command’s source and cannot write the result file. +A task file names a fixture repo, an instruction, and a verify command. `muxon eval` runs the session headless, then runs that command. Exit 0 writes reward 1. The agent does not see the verify command’s source and cannot write the result file. -Each row in `.thee/eval/results.jsonl` carries: +Each row in `.muxon/eval/results.jsonl` carries: | Field | Why | |-------|-----| @@ -126,16 +126,16 @@ The task file is JSON. `check.files` is copied into the workspace only after the Commands: ```text -thee eval basket --matrix harness/testdata/eval/matrix.yaml --trials 3 --budget-usd 20 +muxon eval basket --matrix harness/testdata/eval/matrix.yaml --trials 3 --budget-usd 20 make eval -thee eval report -thee eval compare -thee eval export-swebench --instance repo__repo-1 --model thee+qwen3-32b -o predictions.jsonl +muxon eval report +muxon eval compare +muxon eval export-swebench --instance repo__repo-1 --model muxon+qwen3-32b -o predictions.jsonl ``` -Each run lives in `.thee/eval/runs//` (`run.json` plus `results.jsonl`). Rows also carry `run_id`, `provider`, `harness_sha`, `manifest_hash`, `salvaged_tool_calls`, `timeout_hit`, `reason`, and `overrides`. Prices in `models.yaml` are pinned 2026-10-14 (DeepInfra Qwen3.5-9B and Qwen3-32B, OpenAI gpt-5). `matrix-opencode.yaml` uses the OpenCode Go key: `OPENCODE_API_KEY`, or `~/.local/share/opencode/auth.json` under provider `opencode-go`. Its prices are the short-context rates from the OpenCode Go docs (Kimi K2.7 Code, GPT 6 Luna). +Each run lives in `.muxon/eval/runs//` (`run.json` plus `results.jsonl`). Rows also carry `run_id`, `provider`, `harness_sha`, `manifest_hash`, `salvaged_tool_calls`, `timeout_hit`, `reason`, and `overrides`. Prices in `models.yaml` are pinned 2026-10-14 (DeepInfra Qwen3.5-9B and Qwen3-32B, OpenAI gpt-5). `matrix-opencode.yaml` uses the OpenCode Go key: `OPENCODE_API_KEY`, or `~/.local/share/opencode/auth.json` under provider `opencode-go`. Its prices are the short-context rates from the OpenCode Go docs (Kimi K2.7 Code, GPT 6 Luna). -`thee eval compare` is the gate for a new tool or harness flag: same tasks, one override flipped, and the McNemar result says whether the outcomes actually moved. +`muxon eval compare` is the gate for a new tool or harness flag: same tasks, one override flipped, and the McNemar result says whether the outcomes actually moved. Compare against one fat-context frontier run on the same tasks, with the same price table. That is the 3× cost claim, and it only counts when pass rate stays in the same band. @@ -143,7 +143,7 @@ Compare against one fat-context frontier run on the same tasks, with the same pr Do not re-grade SWE-bench inside Go. -**SWE-bench.** Headless thee writes `predictions.jsonl`. Then: +**SWE-bench.** Headless muxon writes `predictions.jsonl`. Then: ```text python -m swebench.harness.run_evaluation \ @@ -152,15 +152,15 @@ python -m swebench.harness.run_evaluation \ --run_id ``` -`thee eval export-swebench` writes that predictions line from `git diff HEAD` (including new files). Lite (300) is the iteration set. Verified (500) is what a public claim has to name, with the grader commit pinned. Full 2,294 is optional. Docker is required. A fresh `run_id` is required whenever the patch changes. +`muxon eval export-swebench` writes that predictions line from `git diff HEAD` (including new files). Lite (300) is the iteration set. Verified (500) is what a public claim has to name, with the grader commit pinned. Full 2,294 is optional. Docker is required. A fresh `run_id` is required whenever the patch changes. Traces stay on the machine. A published job lists task ids, rewards, token counts, and durations. Prompt and completion bodies stay in the local JSONL unless someone explicitly exports them. -## What a thee report contains +## What a muxon report contains One block, every time: -- Dataset and version (`SWE-bench_Lite` or `thee-basket`). +- Dataset and version (`SWE-bench_Lite` or `muxon-basket`). - Harness git SHA and model id. The score is the pair. - Tasks, trials, and the formula (`mean reward`, not pass@k). - Pass rate and an interval. For public sets, bootstrap by task. diff --git a/docs/harness-architecture/README.md b/docs/harness-architecture/README.md index b3cd82f..dd2075b 100644 --- a/docs/harness-architecture/README.md +++ b/docs/harness-architecture/README.md @@ -1,10 +1,10 @@ -# thee-harness — architecture +# muxon — architecture **Status:** Pre-implementation specification. It describes the whole harness, every piece it needs, not a sequence of releases. ## Purpose -thee-harness is a **frugal, model-agnostic coding agent**: one CLI-first loop that drives **any model from any surface** (frontier APIs, aggregators, our inference, local runtimes) from a single place. The loop is **optimized for the weakest supported model**: **tight context**, **tool-native repo access**, and **verification gates** that hold up on a small open model hold up on every model, so stronger models need no separate path. Small open models are the cheap default, not the only target. +muxon is a **frugal, model-agnostic coding agent**: one CLI-first loop that drives **any model from any surface** (frontier APIs, aggregators, our inference, local runtimes) from a single place. The loop is **optimized for the weakest supported model**: **tight context**, **tool-native repo access**, and **verification gates** that hold up on a small open model hold up on every model, so stronger models need no separate path. Small open models are the cheap default, not the only target. The same loop runs **any** model, from an 8B open model to a frontier model. What changes per model is read from its **capability profile** (tool-calling protocol, edit format, context window, tokenizer, caching), not hard-coded for one class. OpenCode is the reference for what we avoid: a loop tuned for frontier tool calling that degrades on small models. The design takes the pieces that work from Aider (edit formats, repo map, test-in-repair-loop), Ante (profiles, local models, catalog), SWE-agent and zeroshot (verifier-gated loops), and the harness-ablation research, and combines them. @@ -18,7 +18,7 @@ The harness owns **tokens, routing, and trust**; providers own **inference**. |-----------|---------| | **BYOK** | User supplies API keys (env, keychain, or `catalog.json`). No account required to run the CLI against your own DeepInfra, OpenRouter, Anthropic, local Ollama, etc. | | **Model-agnostic** | Swappable providers via one adapter interface; default `models.yaml` is a curated starting point, fully overridable. | -| **Capability-adaptive** | Tool protocol, output constraint, edit format, prompt wording, sampling, reasoning handling, and budgets follow the bound model's capability profile. Unknown models get safe defaults; `thee models probe` measures the rest. | +| **Capability-adaptive** | Tool protocol, output constraint, edit format, prompt wording, sampling, reasoning handling, and budgets follow the bound model's capability profile. Unknown models get safe defaults; `muxon models probe` measures the rest. | | **Fail cheap, not loud** | A slip a small model makes (an in-text call, a trailing comma, a repeated read) is caught by the harness before it costs a model turn. | | **Token budget** | Per-session and per-task caps; compaction before “just use a bigger window.” | | **Verify before done** | No terminal success on a changed workspace without a harness-run evidence step (tests, lint, or manual approval). Exhausted budgets and caps end as `failed`, never `done`. | @@ -29,9 +29,9 @@ The harness owns **tokens, routing, and trust**; providers own **inference**. ## Small-model strategy: two pillars -Most failures on 8B–32B workers are not “the model can’t code” — they are **(1) too much or wrong context** and **(2) invalid or wrong tool calls**. Frontier harnesses (e.g. OpenCode) often assume both are easy: wide tool schemas in every prompt, LSP dumps, and several native calls per turn. thee inverts that: **the harness gathers and shapes context; the model requests more with tools.** +Most failures on 8B–32B workers are not “the model can’t code” — they are **(1) too much or wrong context** and **(2) invalid or wrong tool calls**. Frontier harnesses (e.g. OpenCode) often assume both are easy: wide tool schemas in every prompt, LSP dumps, and several native calls per turn. muxon inverts that: **the harness gathers and shapes context; the model requests more with tools.** -| Pillar | OpenCode-style failure | thee response | Spec | +| Pillar | OpenCode-style failure | muxon response | Spec | |--------|------------------------|---------------|------| | **Smart context** | Whole-repo or huge tool/LSP payloads in history | Retrieve → rank → bounded `read`; prefix caps; compaction; no auto file paste | [context-engine.md](./context-engine.md#retrieval-pipeline), [repo-map](./tools/repo-map.md) | | **Reliable tool calling** | Full `tools[]` + parallel native calls | Phase-gated active tools; `two_step` / `fenced`; constrain → salvage → repair → escalate | [tools/README.md](./tools/README.md#tool-calling-on-small-models), ADR-008/010 | diff --git a/docs/harness-architecture/adrs.md b/docs/harness-architecture/adrs.md index 4321bf2..8287948 100644 --- a/docs/harness-architecture/adrs.md +++ b/docs/harness-architecture/adrs.md @@ -8,7 +8,7 @@ Each decision records what we chose, why, and what it costs. Resolve open ADRs b | **ADR-002** | Client–daemon split? | **Monolith CLI** · Ante-style daemon + headless client | **Decided** — monolith binary; `serve` reuses the same `internal/` packages | | **ADR-003** | Compaction strategy? | Elision + truncate only · + cheap summarizer · Cliff-style drop-only | **Open** (lean elision + truncate + optional summarize) | | **ADR-004** | Edit format? | Unified diff only · SEARCH/REPLACE only · **Per-model format + apply ladder** | **Decided** | -| **ADR-005** | Default verify command? | **Auto-detect with override** · Require `thee.toml` | **Decided** — auto-detect; strict mode with nothing detected is a setup error, not a weak pass | +| **ADR-005** | Default verify command? | **Auto-detect with override** · Require `muxon.toml` | **Decided** — auto-detect; strict mode with nothing detected is a setup error, not a weak pass | | **ADR-006** | Our API vs BYOK? | **BYOK always; our API optional** | **Decided** — BYOK is the required path; our API is never the only option | | **ADR-007** | Who runs verification? | Model via `shell` · **Harness subprocess** | **Decided** — harness subprocess, trust-gated | | **ADR-008** | Tool calling protocol? | One protocol for all models · **Per-model capability profile** | **Decided** — `native` / `two_step` / `fenced` from the manifest | @@ -23,15 +23,15 @@ Each decision records what we chose, why, and what it costs. Resolve open ADRs b ### ADR-001 — Go implementation language - **Context:** Need a fast headless CLI, BYOK HTTP, subprocess tools, and a TUI; team prefers Go. -- **Decision:** Implement harness in **Go 1.24+**; single `thee` binary; details in [tech-stack.md](./tech-stack.md). +- **Decision:** Implement harness in **Go 1.24+**; single `muxon` binary; details in [tech-stack.md](./tech-stack.md). - **Consequences:** No Rust/Python core; cross-compile releases; Bubble Tea for the TUI. - **Date:** 2026-10-12 ### ADR-002 — Monolith binary - **Context:** A daemon adds ops complexity before the loop is proven. -- **Decision:** **Monolith** `cmd/thee`; packages under `internal/` mirror the architecture docs. -- **Consequences:** `thee serve` reuses the same packages in a long-lived process instead of a separate daemon. +- **Decision:** **Monolith** `cmd/muxon`; packages under `internal/` mirror the architecture docs. +- **Consequences:** `muxon serve` reuses the same packages in a long-lived process instead of a separate daemon. - **Date:** 2026-10-12 ### ADR-004 — Edit formats and apply ladder @@ -58,14 +58,14 @@ Each decision records what we chose, why, and what it costs. Resolve open ADRs b ### ADR-008 — Capability-driven tool protocol - **Context:** The harness must run frontier models and 8B open models alike. A frontier-style loop (all schemas in every prompt, parallel native calls — OpenCode) breaks small models; a small-model loop (one tool per two calls) wastes latency on frontier models. Varying `tools[]` per state also broke prompt caching. -- **Decision:** Each model's capability profile sets `tool_protocol` (`native`, `two_step`, `fenced`), `parallel_tool_calls`, `edit_format`, context window, tokenizer, and cache mode. Unknown models get conservative defaults; `thee models probe` calibrates. `tools[]` is either the full tier set, constant for the session, or omitted; phase restriction lives in the prompt tail and the runtime. +- **Decision:** Each model's capability profile sets `tool_protocol` (`native`, `two_step`, `fenced`), `parallel_tool_calls`, `edit_format`, context window, tokenizer, and cache mode. Unknown models get conservative defaults; `muxon models probe` calibrates. `tools[]` is either the full tier set, constant for the session, or omitted; phase restriction lives in the prompt tail and the runtime. - **Consequences:** Manifest schema grows ([providers.md](./providers.md#capability-fields)). One loop serves every model class. Observability tracks parse failures and calls per tool per model so profiles can be tuned. - **Date:** 2026-10-13 ### ADR-009 — Workspace trust -- **Context:** `.thee/hooks/`, project `thee.toml`, skills, memory, and the verify command are repo-supplied. Without a gate, running `thee` in a cloned hostile repo is running its scripts. -- **Decision:** Per-workspace trust stored in `~/.thee/trust.json` with a hash of trust-relevant files. Untrusted: no project hooks, skills, memory, or provider config; project security config may only tighten; verify command needs one approval (headless: `--trust`). Details in [security-and-policy.md](./security-and-policy.md#workspace-trust). +- **Context:** `.muxon/hooks/`, project `muxon.toml`, skills, memory, and the verify command are repo-supplied. Without a gate, running `muxon` in a cloned hostile repo is running its scripts. +- **Decision:** Per-workspace trust stored in `~/.muxon/trust.json` with a hash of trust-relevant files. Untrusted: no project hooks, skills, memory, or provider config; project security config may only tighten; verify command needs one approval (headless: `--trust`). Details in [security-and-policy.md](./security-and-policy.md#workspace-trust). - **Consequences:** One prompt on first open. CI passes `--trust`. - **Date:** 2026-10-13 @@ -131,7 +131,7 @@ What the spec still needs before code depends on it: - [ ] `compact` and `standard` prompt texts written - [ ] Probe pass thresholds per step - [ ] Loop-detector thresholds checked against recorded traces -- [ ] Eval basket run across the model matrix: baseline vs thee-harness on same SKUs. The runner is `thee eval basket` (hidden checks, trials, DeepInfra + frontier matrix). This box stays open until that live matrix has been run. +- [ ] Eval basket run across the model matrix: baseline vs muxon on same SKUs. The runner is `muxon eval basket` (hidden checks, trials, DeepInfra + frontier matrix). This box stays open until that live matrix has been run. - [ ] ADR-003 finalized - [x] Go `internal/` package skeleton matching component docs ([implementation-plan.md](./implementation-plan.md#repository-layout-target)) diff --git a/docs/harness-architecture/cli.md b/docs/harness-architecture/cli.md index ca96a2c..826633e 100644 --- a/docs/harness-architecture/cli.md +++ b/docs/harness-architecture/cli.md @@ -7,10 +7,10 @@ | Goal | CLI implication | |------|-----------------| | **CLI-first** | One binary; default path is interactive in a repo. | -| **Same loop everywhere** | `thee`, `thee run`, and `thee eval` all drive the same session director. | -| **Cost visible** | Status line and `thee cost` show tokens and $ every session. | -| **CI-friendly** | `thee run` has stable exit codes, `--json`, and no prompts when flags say so. | -| **ZDR** | No upload; traces stay under `.thee/sessions/`. | +| **Same loop everywhere** | `muxon`, `muxon run`, and `muxon eval` all drive the same session director. | +| **Cost visible** | Status line and `muxon cost` show tokens and $ every session. | +| **CI-friendly** | `muxon run` has stable exit codes, `--json`, and no prompts when flags say so. | +| **ZDR** | No upload; traces stay under `.muxon/sessions/`. | Non-goals for v1 CLI: desktop app, plugin marketplace, multi-session dashboard (orchestrators come later). @@ -20,10 +20,10 @@ Non-goals for v1 CLI: desktop app, plugin marketplace, multi-session dashboard ( | Invocation | When | Behavior | |------------|------|----------| -| **`thee`** | User in a repo (default) | Start or resume **interactive** session (TUI). Equivalent to `thee chat`. | -| **`thee chat`** | Explicit REPL | Same as `thee`; optional `[path]` to set workspace root. | -| **`thee run -p "…"`** | Scripts, CI, eval | **Headless** one goal; stdout is progress + final summary; trace on disk. | -| **`thee `** | Setup, ops, debug | No agent loop (see command tree below). | +| **`muxon`** | User in a repo (default) | Start or resume **interactive** session (TUI). Equivalent to `muxon chat`. | +| **`muxon chat`** | Explicit REPL | Same as `muxon`; optional `[path]` to set workspace root. | +| **`muxon run -p "…"`** | Scripts, CI, eval | **Headless** one goal; stdout is progress + final summary; trace on disk. | +| **`muxon `** | Setup, ops, debug | No agent loop (see command tree below). | Global flags (all subcommands that touch a workspace): @@ -34,41 +34,41 @@ Global flags (all subcommands that touch a workspace): | `-q`, `--quiet` | Errors and final outcome only. | | `-v`, `--verbose` | Extra harness logging (`slog` to stderr). | -Environment mirrors flags where noted: `THEE_TRUST`, `THEE_*` per [security-and-policy.md](./security-and-policy.md#config-precedence). +Environment mirrors flags where noted: `MUXON_TRUST`, `MUXON_*` per [security-and-policy.md](./security-and-policy.md#config-precedence). --- ## Command tree (v1) ```text -thee # → chat (interactive) -thee chat [path] +muxon # → chat (interactive) +muxon chat [path] -thee run -p PROMPT [flags] # headless goal -thee resume [session-id] # interactive; latest in cwd if id omitted +muxon run -p PROMPT [flags] # headless goal +muxon resume [session-id] # interactive; latest in cwd if id omitted -thee doctor # keys, providers, rg, optional LSP, tool-parser hints -thee cost [--last] # session totals from trace +muxon doctor # keys, providers, rg, optional LSP, tool-parser hints +muxon cost [--last] # session totals from trace -thee auth login [provider] # keychain / catalog; optional thee API key -thee models list|show|probe # manifest + catalog + probe → suggested profile +muxon auth login [provider] # keychain / catalog; optional muxon API key +muxon models list|show|probe # manifest + catalog + probe → suggested profile -thee trust list|add|rm # ~/.thee/trust.json -thee memory list|show|rm|review +muxon trust list|add|rm # ~/.muxon/trust.json +muxon memory list|show|rm|review -thee trace export|record|replay -thee eval run|basket|report|compare|export-swebench -thee gc # prune old shadow refs / sessions +muxon trace export|record|replay +muxon eval run|basket|report|compare|export-swebench +muxon gc # prune old shadow refs / sessions -thee serve [flags] # v1 stub or minimal JSONL; full protocol later +muxon serve [flags] # v1 stub or minimal JSONL; full protocol later -thee version -thee completion bash|zsh|fish +muxon version +muxon completion bash|zsh|fish ``` -**Naming:** Research drafts used `cost-report`; the product command is **`thee cost`** ([observability.md](./observability.md#cli-cost-report)). +**Naming:** Research drafts used `cost-report`; the product command is **`muxon cost`** ([observability.md](./observability.md#cli-cost-report)). -### `thee run` flags (headless) +### `muxon run` flags (headless) | Flag | Effect | |------|--------| @@ -79,12 +79,12 @@ thee completion bash|zsh|fish | `--yolo` | Auto-approve within tier up to `max_permission`; enables `shell` in `full`. | | `--model` | Force worker SKU (still uses router for classify unless `--no-router`). | | `--no-plan` | Skip planning phase. | -| `--eval PATH` | Task file; append row to `.thee/eval/results.jsonl`. | +| `--eval PATH` | Task file; append row to `.muxon/eval/results.jsonl`. | | `--max-tool-rounds`, `--cost-budget-usd`, … | Override `[session]` caps for this run. | Exit codes: [session-director.md](./session-director.md#exit-codes). -Interactive session inherits the same caps from `thee.toml` and `~/.thee/config.toml`; headless denies anything that would enter `blocked` except where the table allows `ask_user` to continue. +Interactive session inherits the same caps from `muxon.toml` and `~/.muxon/config.toml`; headless denies anything that would enter `blocked` except where the table allows `ask_user` to continue. --- @@ -95,7 +95,7 @@ Bubble Tea TUI ([tech-stack.md](./tech-stack.md#cli--terminal-ui)). Not a pixel ### Default session (transcript mode) ```text -┌─ thee ─ workspace: ~/src/myapp ─ worker: qwen3-coder@deepinfra ─ edit ─ trusted ─┐ +┌─ muxon ─ workspace: ~/src/myapp ─ worker: qwen3-coder@deepinfra ─ edit ─ trusted ─┐ │ fix the failing TestParse test │ ├───────────────────────────────────────────────────────────────────────────────────┤ │ │ @@ -106,7 +106,7 @@ Bubble Tea TUI ([tech-stack.md](./tech-stack.md#cli--terminal-ui)). Not a pixel │ ▸ patch pkg/parse.go applied (exact) │ │ │ │ [harness] verify running: go test ./... │ -│ [harness] verify failed (exit 1) — 1 failure, log: .thee/sessions/…/verify-2.log │ +│ [harness] verify failed (exit 1) — 1 failure, log: .muxon/sessions/…/verify-2.log │ │ │ │ [assistant] … │ │ │ @@ -127,7 +127,7 @@ Bubble Tea TUI ([tech-stack.md](./tech-stack.md#cli--terminal-ui)). Not a pixel | **Status** | Director state, caps, cost, cache hint; keyboard hints. | | **Input** | Multiline; Enter submits; Shift+Enter newline (or meta configurable). | -Tool lines use a fixed icon (`▸`) and never dump full file bodies — details live in trace + optional `thee trace export`. +Tool lines use a fixed icon (`▸`) and never dump full file bodies — details live in trace + optional `muxon trace export`. ### Approval modal (`blocked`) @@ -158,7 +158,7 @@ Parsed only in the input line (not passed to the model). Unknown `/foo` is sent | `/help` | Short command list. | | `/model [id]` | Switch the worker model. With no argument, pick from the connected provider's model list. | | `/abort` | Cancel goal (`cancelled`). | -| `/exit` | Quit thee. `/quit` is the same command. | +| `/exit` | Quit muxon. `/quit` is the same command. | | `/undo` | Revert last applied patch batch ([session-director](./session-director.md#checkpoints--resume)). | | `/escalate` | Force worker → escalated if budget allows ([model-router](./model-router.md#escalation-triggers)). | | `/continue` | After `paused` or `failed`, resume the same history with a fresh tool-round budget. | @@ -198,7 +198,7 @@ Interrupts: [session-director.md](./session-director.md#interrupts-and-steering) | **`--json`** | NDJSON on stdout: subset of trace events (`state.transition`, `tool.call`, `tool.result`, `verify.run`, `session.end`) for CI parsers. | | **Quiet** | Final line: `done` / `failed: verify_exhausted` + exit code. | -`thee run --json` does not include prompt bodies in strict ZDR profile (same as trace export). +`muxon run --json` does not include prompt bodies in strict ZDR profile (same as trace export). --- @@ -206,10 +206,10 @@ Interrupts: [session-director.md](./session-director.md#interrupts-and-steering) Suggested flow: -1. `thee doctor` — missing `DEEPINFRA_API_KEY` (or catalog provider), `rg` not on PATH, workspace not git (warning only). -2. `thee auth login deepinfra` (or edit `~/.thee/catalog.json`). -3. `cd myrepo && thee` — trust prompt if `.thee/hooks` or verify command present. -4. Type goal or `thee run -p "…"` in CI with `--trust`. +1. `muxon doctor` — missing `DEEPINFRA_API_KEY` (or catalog provider), `rg` not on PATH, workspace not git (warning only). +2. `muxon auth login deepinfra` (or edit `~/.muxon/catalog.json`). +3. `cd myrepo && muxon` — trust prompt if `.muxon/hooks` or verify command present. +4. Type goal or `muxon run -p "…"` in CI with `--trust`. `doctor` never prints secret values; it prints provider id, base URL reachability, and manifest role resolution. diff --git a/docs/harness-architecture/context-engine.md b/docs/harness-architecture/context-engine.md index 5f3ae8e..a5c68ec 100644 --- a/docs/harness-architecture/context-engine.md +++ b/docs/harness-architecture/context-engine.md @@ -77,7 +77,7 @@ The engine auto-loads, in order of precedence, the first that exists at the work 2. `CONVENTIONS.md` (Aider) 3. `CLAUDE.md`, `.cursorrules` (read for compatibility) -Nested `AGENTS.md` files in subdirectories are loaded lazily into the tail when the model first reads or patches a file in that subtree. The root file is capped in the prefix by the window ([Small windows](#small-windows)); beyond that it is trimmed with a note pointing the model at `read`. User-level `~/.thee/AGENTS.md` is prepended. +Nested `AGENTS.md` files in subdirectories are loaded lazily into the tail when the model first reads or patches a file in that subtree. The root file is capped in the prefix by the window ([Small windows](#small-windows)); beyond that it is trimmed with a note pointing the model at `read`. User-level `~/.muxon/AGENTS.md` is prepended. Project instructions are guidance, never policy. They cannot change the permission tier, the verify command, or approvals. In an untrusted workspace they are wrapped as untrusted content (below). @@ -114,11 +114,11 @@ Compaction and elision apply to **tool trace**, not a growing paste of the repo. 1. **Repo map** — symbol map from tree + index; regenerated on git HEAD / dirty set change or TTL. 2. **search** — ripgrep with path/glob limits; return paths + line hits only. Respects ignore rules. 3. **read** — bounded line ranges into snippets (max lines/tokens per read). -4. **Symbol index** — local **SQLite** at `.thee/index/.db` (v1), built from tree-sitter or language-specific extractors where available, else ctags/`go list`-style fallbacks; LSP enriches when installed. Used for `repo-map` ranking and `lsp` fallback. +4. **Symbol index** — local **SQLite** at `.muxon/index/.db` (v1), built from tree-sitter or language-specific extractors where available, else ctags/`go list`-style fallbacks; LSP enriches when installed. Used for `repo-map` ranking and `lsp` fallback. **Ranking (v1):** score symbols for the repo-map slice using (a) token overlap between the current goal text and symbol/path strings, (b) router `tags`, (c) recency of paths the model already read this goal, (d) deprioritize generated/vendor paths already ignored by search. Drop lowest scores until the map fits its budget share ([small windows](#small-windows)). -Ignore rules (`.gitignore`, `.theeignore`, secret deny list) apply to retrieval and to the repo map. See [security-and-policy.md](./security-and-policy.md#ignore-rules-and-secret-paths). +Ignore rules (`.gitignore`, `.muxonignore`, secret deny list) apply to retrieval and to the repo map. See [security-and-policy.md](./security-and-policy.md#ignore-rules-and-secret-paths). ## Compaction pipeline diff --git a/docs/harness-architecture/implementation-plan.md b/docs/harness-architecture/implementation-plan.md index 24c5f47..ba1cc63 100644 --- a/docs/harness-architecture/implementation-plan.md +++ b/docs/harness-architecture/implementation-plan.md @@ -1,12 +1,12 @@ # Harness implementation plan -**Scope:** Open-source `thee` CLI and libraries only. The closed [API](../api/README.md) is a separate Go module (`api/`) in this monorepo and is not part of this plan. +**Scope:** Open-source `muxon` CLI and libraries only. The closed [API](../api/README.md) is a separate Go module (`api/`) in this monorepo and is not part of this plan. -**Code root:** Step **Files** paths are relative to the `harness/` module (`harness/cmd/thee/...`, `harness/internal/...`). +**Code root:** Step **Files** paths are relative to the `harness/` module (`harness/cmd/muxon/...`, `harness/internal/...`). **Spec:** Behavior is defined in this directory ([README](./README.md)). This document is the **build order**, package layout, milestones, and v1 cut line. When a step says “per spec”, the linked section wins over this plan. -**North star:** Headless `thee run` fixes a failing unit test in a fixture repo using a **small-model profile** (`two_step`, `compact` prompt), **verify-gated** `finish`, JSONL trace, exit code `0`. TUI and eval reuse the same `internal/` loop. +**North star:** Headless `muxon run` fixes a failing unit test in a fixture repo using a **small-model profile** (`two_step`, `compact` prompt), **verify-gated** `finish`, JSONL trace, exit code `0`. TUI and eval reuse the same `internal/` loop. **Two pillars** (v1, not bolted on later): [smart context](./context-engine.md#smart-context-vs-context-dump) and [reliable tool calling](./tools/README.md#tool-calling-on-small-models). See [README § Small-model strategy](./README.md#small-model-strategy-two-pillars). @@ -29,11 +29,11 @@ Work proceeds in **ten parts**, in order. **Part 1 is a thin end-to-end loop** ( 1. Read only the **Read** links on the current step plus [§ Contracts](#contracts) below. 2. Create only the **Files** listed; extra files should be tests or `testdata` for that step. 3. Do not invent behavior; spec wins. If stuck, pick the simplest behavior that satisfies **Tests** and note it in the PR. -4. Tests: `t.TempDir()`, `t.Setenv("THEE_HOME", ...)`, `testutil.CopyFixture`; never mutate `testdata/fixtures` in place; no network in unit tests. +4. Tests: `t.TempDir()`, `t.Setenv("MUXON_HOME", ...)`, `testutil.CopyFixture`; never mutate `testdata/fixtures` in place; no network in unit tests. 5. Before PR: `gofmt`, `go vet ./...`, `go test ./...`, `golangci-lint run`. 6. Prompt changes under `internal/assets/prompts/` require golden/`prefix_hash` updates in the same PR. 7. Allowed deps only (see [§ Contracts](#contracts)); no vendor LLM SDKs, testify, or heavy frameworks. -8. `cmd/thee` wires flags and exit codes only; no HTTP, tools, or prompt assembly in `cmd/`. +8. `cmd/muxon` wires flags and exit codes only; no HTTP, tools, or prompt assembly in `cmd/`. ### Step template @@ -53,7 +53,7 @@ Done when: … | ID | Decision | |----|----------| -| D1 | Module `github.com//thee-harness`; human supplies `` in step 1.1. | +| D1 | Module `github.com//muxon`; human supplies `` in step 1.1. | | D2 | `go:embed` only in `internal/assets/` (models.yaml, prompts). | | D3 | Package `internal/contextengine` (not `context`). | | D4 | **No OS sandbox in v1.** `shell`/`process`/`browser`/`mcp`/`subagent` return “not available in this build”. Verify/`test` trust-gated. argv-only exec, env scrub, process groups, path checks always on. | @@ -64,9 +64,9 @@ Done when: … | D9 | Patch ladder in Go (udiff + search_replace); no `git` binary required for apply. | | D10 | Compaction v1: elision + truncate only (ADR-003 open; no summarizer until eval proves need). | | D11 | No `planning` state in v1; registry still has planning-phase tools for later. | -| D12 | Repo-map v1: in-memory Go symbols + path list; cache `.thee/index/repomap.json`. SQLite optional Part 9. | +| D12 | Repo-map v1: in-memory Go symbols + path list; cache `.muxon/index/repomap.json`. SQLite optional Part 9. | | D13 | Classification: router JSON when `router` role set; else `change` + goal-text tags. Finish gate uses workspace changed, not label. | -| D14 | `THEE_HOME` (default `~/.thee`); tests always set it. | +| D14 | `MUXON_HOME` (default `~/.muxon`); tests always set it. | | D15 | HTTP retry: in-house, 3× backoff from 1s. | | D16 | Director tests use `provider/scripted` until Part 9 `replay` traces exist. | | D17 | **Salvage lives in `internal/toolcall`**, not `tools/runtime`. Runtime only executes validated `tools.Call`. | @@ -78,9 +78,9 @@ Done when: … | ID | Criteria | Part | |----|----------|------| -| **M0** | `thee run -p "fix the failing test" --trust` on `testdata/fixtures/go-failing-test` passes with scripted provider; trace has `verify.run` pass + `session.end` `done`. | 1 | +| **M0** | `muxon run -p "fix the failing test" --trust` on `testdata/fixtures/go-failing-test` passes with scripted provider; trace has `verify.run` pass + `session.end` `done`. | 1 | | **M1** | Same task live on `two_step`/`compact` (≤~30B); record `malformed_call_rate`, `salvage_rate`, `model_calls_per_tool`. | 4 | -| **A** | Full `thee run` flags, exit 0–3/130, `doctor`, `cost`, `trust`, `eval run`. | 7 | +| **A** | Full `muxon run` flags, exit 0–3/130, `doctor`, `cost`, `trust`, `eval run`. | 7 | | **B** | TUI completes same fixture. | 8 | | **C** | Eval basket × model matrix per [benchmarks](../benchmarks.md). | 9 | | **D** | Goreleaser, auth, docs, no P0 spec gaps. | 10 | @@ -99,17 +99,17 @@ Hosted API (optional provider only) · full `serve` · MCP/browser/subagent/proc ### Module and dependencies -- Go **1.24+**; binary `thee` from `cmd/thee`. +- Go **1.24+**; binary `muxon` from `cmd/muxon`. - Allowed: `cobra`, `yaml.v3`, `BurntSushi/toml`, `go-cmp`, `go-gitignore`, `bubbletea`/`lipgloss`/`bubbles`, `go-keyring`, optional `tiktoken-go`/`modernc.org/sqlite` in Part 9. - Stdlib first: `context`, `net/http`, `encoding/json`, `log/slog`, `embed`, `os/exec`. ### Repository layout ```text -cmd/thee/ +cmd/muxon/ internal/ assets/ # embed models.yaml + prompts/ - config/ # THEE_HOME, manifest, catalog, toml, credentials + config/ # MUXON_HOME, manifest, catalog, toml, credentials observability/ # JSONL trace, event types provider/ # Request/Response; openai/, scripted/, replay/ security/ # deny/ignore, redaction, tiers, trust, env scrub @@ -127,18 +127,18 @@ internal/ testdata/fixtures/, testdata/traces/, testdata/provider/ ``` -**Import rule:** `cmd/thee` → `internal/*` (not `e2e`/`testutil`). `director` may import all core packages except `ui/*`. `toolcall` imports `provider`, `tools`, `config`; not `director`. +**Import rule:** `cmd/muxon` → `internal/*` (not `e2e`/`testutil`). `director` may import all core packages except `ui/*`. `toolcall` imports `provider`, `tools`, `config`; not `director`. ### On-disk | Path | Purpose | |------|---------| -| `$THEE_HOME/config.toml`, `catalog.json`, `trust.json` | User config | -| `/.thee/sessions//trace.jsonl` | Trace | -| `/.thee/sessions//verify-.log` | Verify log | -| `refs/thee/sessions//base`, `cp-` | Shadow git refs (user index untouched) | +| `$MUXON_HOME/config.toml`, `catalog.json`, `trust.json` | User config | +| `/.muxon/sessions//trace.jsonl` | Trace | +| `/.muxon/sessions//verify-.log` | Verify log | +| `refs/muxon/sessions//base`, `cp-` | Shadow git refs (user index untouched) | -Session id: `YYYYMMDDTHHMMSSZ-xxxxxx`. `.thee/` excluded from tools; append to `.git/info/exclude` on first session if needed. +Session id: `YYYYMMDDTHHMMSSZ-xxxxxx`. `.muxon/` excluded from tools; append to `.git/info/exclude` on first session if needed. ### Core interfaces (names are stable) @@ -170,9 +170,9 @@ Goal: fake or real provider → tool call → patch → `finish` → harness `go Depends on: — Read: [tech-stack](./tech-stack.md), ADR-001/002 -Files: `go.mod`, `cmd/thee/main.go`, `cmd/thee/version.go`, `.github/workflows/ci.yml`, `.golangci.yml` -Build: Cobra root; `thee version`; CI `go test`, `vet`, `lint`, `build ./...` on linux+darwin; install `rg` in CI. -Tests: `go test ./cmd/thee/...` +Files: `go.mod`, `cmd/muxon/main.go`, `cmd/muxon/version.go`, `.github/workflows/ci.yml`, `.golangci.yml` +Build: Cobra root; `muxon version`; CI `go test`, `vet`, `lint`, `build ./...` on linux+darwin; install `rg` in CI. +Tests: `go test ./cmd/muxon/...` Done when: green CI on empty packages. ### Step 1.2 — Embedded manifest @@ -184,12 +184,12 @@ Build: Embed yaml; parse `providers`, `models`, `roles`; `ApplyDefaults` on capa Tests: load embedded manifest; worker role resolves. Done when: unit test loads manifest. -### Step 1.3 — THEE_HOME and credentials +### Step 1.3 — MUXON_HOME and credentials Depends on: 1.2 Read: [providers § Credential resolution](./providers.md#credential-resolution-order) Files: `internal/config/paths.go`, `internal/config/credential.go` -Build: `THEE_HOME`; resolve `api_key_env` → env (never log value). +Build: `MUXON_HOME`; resolve `api_key_env` → env (never log value). Tests: missing key error; present key found. Done when: credential tests pass. @@ -283,11 +283,11 @@ Build: states `acting` → `tooling` → `verifying` → `done`; max rounds cap; Tests: scripted run → `done`, workspace fixed. Done when: director test on copied fixture. -### Step 1.14 — thee run +### Step 1.14 — muxon run Depends on: 1.13, 1.3 -Read: [cli § thee run](./cli.md#thee-run-flags-headless) -Files: `cmd/thee/run.go` +Read: [cli § muxon run](./cli.md#muxon-run-flags-headless) +Files: `cmd/muxon/run.go` Build: `-p`, `--trust`, `--directory`; map `Outcome` to exit codes. Tests: `e2e` or `os/exec` run binary with scripted provider env hook (inject scripted in test only). Done when: **M0** e2e green in CI. @@ -309,7 +309,7 @@ Done when: documented one manual run attempted. Depends on: 1.7 Read: [security § Ignore rules](./security-and-policy.md#ignore-rules-and-secret-paths) Files: `internal/security/policy.go`, `internal/security/ignore.go` -Build: deny list; `.theeignore`; bulk dirs. +Build: deny list; `.muxonignore`; bulk dirs. Tests: `.env` read denied; `node_modules` collapsed in list. ### Step 2.2 — Result caps + redaction + wrappers @@ -511,10 +511,10 @@ Tests: `tool_rounds_exhausted`, `budget_exhausted`. Depends on: 2.1 Read: [security § Workspace trust](./security-and-policy.md#workspace-trust) -Files: `internal/security/trust.go`, `cmd/thee/trust.go` +Files: `internal/security/trust.go`, `cmd/muxon/trust.go` Tests: untrusted headless verify → exit 3. -### Step 5.4 — config.toml / thee.toml precedence +### Step 5.4 — config.toml / muxon.toml precedence Depends on: 1.3 Read: [security § Config precedence](./security-and-policy.md#config-precedence) @@ -553,7 +553,7 @@ Tests: `*_test.go` edit flagged. Depends on: 1.7 Read: [session-director § Workspace state](./session-director.md#workspace-state-at-start), [checkpoint](./tools/checkpoint.md) Files: `internal/workspace/snapshot.go` -Build: dirty tree → `refs/thee/sessions//base` without touching user index. +Build: dirty tree → `refs/muxon/sessions//base` without touching user index. ### Step 5.10 — Checkpoints + undo @@ -627,8 +627,8 @@ Tests: question goal → `task_type` question; patch still requires verify if ch ### Step 7.1 — All run flags Depends on: 5.x, 6.x -Read: [cli § run flags](./cli.md#thee-run-flags-headless) -Files: `cmd/thee/run.go` +Read: [cli § run flags](./cli.md#muxon-run-flags-headless) +Files: `cmd/muxon/run.go` Build: `--verify-cmd`, `--permission`, `--yolo`, budgets, `--model`, `--no-plan`, `--eval`. ### Step 7.2 — Presenters (--json, -q) @@ -647,25 +647,25 @@ Tests: cancel mid-run. Depends on: 6.1, 2.3 Read: [cli § doctor](./cli.md#first-run-and-doctor) -Files: `cmd/thee/doctor.go` +Files: `cmd/muxon/doctor.go` Tests: missing key reported, not printed. ### Step 7.5 — cost Depends on: 1.4 -Files: `cmd/thee/cost.go` +Files: `cmd/muxon/cost.go` Tests: read last trace totals. ### Step 7.6 — trust subcommands Depends on: 5.3 -Files: `cmd/thee/trust.go` (complete) +Files: `cmd/muxon/trust.go` (complete) ### Step 7.7 — eval run Depends on: 7.1 Read: [benchmarks](../benchmarks.md), [observability § Eval](./observability.md#eval-integration) -Files: `internal/eval/task.go`, `cmd/thee/eval.go`, `testdata/eval/fix-test.json` +Files: `internal/eval/task.go`, `cmd/muxon/eval.go`, `testdata/eval/fix-test.json` Done when: **Milestone A** documented in repo README. --- @@ -676,7 +676,7 @@ Done when: **Milestone A** documented in repo README. Depends on: 5.13 Read: [cli § wireframe](./cli.md#interactive-layout-wireframe) -Files: `internal/ui/tui/app.go`, `cmd/thee/chat.go` +Files: `internal/ui/tui/app.go`, `cmd/muxon/chat.go` Build: header, transcript, status, input regions. ### Step 8.2 — Streaming + tool lines @@ -711,13 +711,13 @@ Done when: **Milestone B** same fixture as A. Depends on: 5.13 Read: [observability § Trace replay](./observability.md#trace-replay-harness-self-tests) -Files: `internal/provider/replay/replay.go`, `cmd/thee/trace.go` +Files: `internal/provider/replay/replay.go`, `cmd/muxon/trace.go` Tests: hash mismatch fails with diff (D18). ### Step 9.2 — models list / show Depends on: 6.1 -Files: `cmd/thee/models.go` +Files: `cmd/muxon/models.go` ### Step 9.3 — models probe (thresholds TBD in doc only) @@ -741,7 +741,7 @@ Done when: **Milestone C** `results.jsonl` + report stub. ### Step 9.6 — resume Depends on: 5.10, 8.1 -Files: `cmd/thee/resume.go` +Files: `cmd/muxon/resume.go` ### Step 9.7 — Optional anthropic adapter @@ -756,22 +756,22 @@ Files: `internal/provider/anthropic/` (if time). ### Step 10.1 — auth login (keyring) Depends on: 1.3 -Files: `cmd/thee/auth.go` +Files: `cmd/muxon/auth.go` ### Step 10.2 — trace export Depends on: 9.1 -Files: `cmd/thee/trace.go` export subcommand +Files: `cmd/muxon/trace.go` export subcommand ### Step 10.3 — gc, completion Depends on: 5.10 -Files: `cmd/thee/gc.go`, `completion.go` +Files: `cmd/muxon/gc.go`, `completion.go` ### Step 10.4 — serve stub Depends on: 1.1 -Files: `cmd/thee/serve.go` → exit 3 message. +Files: `cmd/muxon/serve.go` → exit 3 message. ### Step 10.5 — goreleaser + README + adrs checklist diff --git a/docs/harness-architecture/model-router.md b/docs/harness-architecture/model-router.md index 1feece4..d378617 100644 --- a/docs/harness-architecture/model-router.md +++ b/docs/harness-architecture/model-router.md @@ -2,7 +2,7 @@ The model router selects **which model role** and **which SKU** runs each inference call. It implements the product thesis: **cheap by default, expensive only with evidence**. -It also adapts the loop to **what the bound model can do**. thee runs anything from an 8B open model to a frontier model, so the tool protocol, edit format, context budget, and batching are read from the model's **capability profile** instead of being hard-coded for one class of model. OpenCode is the counter-example: its loop assumes frontier-grade tool calling and a large window, and degrades badly on small models. +It also adapts the loop to **what the bound model can do**. muxon runs anything from an 8B open model to a frontier model, so the tool protocol, edit format, context budget, and batching are read from the model's **capability profile** instead of being hard-coded for one class of model. OpenCode is the counter-example: its loop assumes frontier-grade tool calling and a large window, and degrades badly on small models. ## Roles @@ -41,7 +41,7 @@ Unknown models get conservative defaults: `two_step`, `structured_output: none`, ### Probe -`thee models probe ` calibrates a model against its real endpoint and writes a suggested profile to the user's catalog, so a new model can be tuned without a release. It runs, in order: +`muxon models probe ` calibrates a model against its real endpoint and writes a suggested profile to the user's catalog, so a new model can be tuned without a release. It runs, in order: 1. **Served context.** Sends a prompt with a marker near the start, at increasing lengths, and asks for the marker back. The largest length that round-trips is `served_context`. This catches local servers that silently truncate. 2. **Structured output.** Sends one request with `response_format: json_schema`, then one with a grammar where the provider supports it. Whichever is accepted and obeyed sets `structured_output`. diff --git a/docs/harness-architecture/observability.md b/docs/harness-architecture/observability.md index 0bd5f9c..27c2f33 100644 --- a/docs/harness-architecture/observability.md +++ b/docs/harness-architecture/observability.md @@ -11,20 +11,20 @@ Observability makes the harness **debuggable**, **cost-transparent**, and **regr ## Trace storage -- Path: `.thee/sessions//trace.jsonl` (gitignored by default). -- Verify logs: `.thee/sessions//verify-.log`, redacted, referenced by path from `verify.run`. +- Path: `.muxon/sessions//trace.jsonl` (gitignored by default). +- Verify logs: `.muxon/sessions//verify-.log`, redacted, referenced by path from `verify.run`. - **No remote upload** in ZDR mode. -- Optional export: user runs `thee export-trace` for bug reports (redact secrets). +- Optional export: user runs `muxon export-trace` for bug reports (redact secrets). ### Versioning -Every trace starts with `session.start` carrying `schema_version` (semver) and the `thee` version. Minor versions only add fields; readers ignore unknown fields. Resume and replay refuse a newer **major** version with a message naming the version needed. Checkpoints carry the same field. +Every trace starts with `session.start` carrying `schema_version` (semver) and the `muxon` version. Minor versions only add fields; readers ignore unknown fields. Resume and replay refuse a newer **major** version with a message naming the version needed. Checkpoints carry the same field. ## Event types | Event | Fields | |-------|--------| -| `session.start` | schema_version, thee_version, workspace, profile, permission tier, trusted, base_ref, dirty | +| `session.start` | schema_version, muxon_version, workspace, profile, permission tier, trusted, base_ref, dirty | | `goal.start` | goal_id, task_type, router_confidence | | `state.transition` | from, to, reason | | `model.request` | role, provider_id, api, model_id, tool_protocol, structured_output, prompt_variant, served_context, estimated_input_tokens, prefix_hash (no body in strict ZDR export) | @@ -64,8 +64,8 @@ Dev profile: optional full prompt logging locally (required for trace replay fix Commands: -- `thee cost` — session totals -- `thee cost --last` — last task block +- `muxon cost` — session totals +- `muxon cost --last` — last task block Display example: @@ -75,10 +75,10 @@ Session: 4.2M in (3.1M cached) / 180k out (40k reasoning) ~$1.14 (worker 92%, ## Eval integration -- `thee eval run task.json` copies the fixture into a fresh temp workspace, runs the director, then runs the task's hidden `check` (files copied in only after the agent exits). Reward is 1 only when that check exits 0. A timeout is reward 0 with `timeout_hit`. -- `thee eval basket --matrix testdata/eval/matrix.yaml --trials 3` writes `.thee/eval/runs//results.jsonl` and `run.json`. `--budget-usd` stops scheduling once spent cost reaches the cap. -- `thee eval report ` groups by model and capability overrides and prints a task-clustered 95% bootstrap interval. `thee eval compare ` pairs tasks and prints an exact McNemar p-value. -- `thee run --eval tasks/fix-test-001.json` still appends one row to the workspace `.thee/eval/results.jsonl` from `session.end`. That path is not the hidden grader. +- `muxon eval run task.json` copies the fixture into a fresh temp workspace, runs the director, then runs the task's hidden `check` (files copied in only after the agent exits). Reward is 1 only when that check exits 0. A timeout is reward 0 with `timeout_hit`. +- `muxon eval basket --matrix testdata/eval/matrix.yaml --trials 3` writes `.muxon/eval/runs//results.jsonl` and `run.json`. `--budget-usd` stops scheduling once spent cost reaches the cap. +- `muxon eval report ` groups by model and capability overrides and prints a task-clustered 95% bootstrap interval. `muxon eval compare ` pairs tasks and prints an exact McNemar p-value. +- `muxon run --eval tasks/fix-test-001.json` still appends one row to the workspace `.muxon/eval/results.jsonl` from `session.end`. That path is not the hidden grader. - Weekly workflow (`.github/workflows/eval.yml`) runs the DeepInfra slice. The frontier row is manual. A harness change that helps the frontier row while hurting the 9B row is a regression. - How those rows become a score, and how SWE-bench gets graded outside this binary: [benchmarks.md](../benchmarks.md). @@ -91,7 +91,7 @@ Dev-profile traces double as **golden fixtures** for deterministic loop tests: - A `replay` provider serves recorded `model.response` bodies in order. Each request is matched by sequence number and the hash of its assembled messages. - A hash mismatch fails the test and prints the prompt diff. That catches unintended prompt-layout and cache-prefix changes, not just behavior changes. - Tests assert the sequence of state transitions, tool calls, and the `session.end` outcome. Tool side effects run against a fixture repo in `testdata/`. -- `thee trace record` captures a fixture; `thee trace replay` re-runs one. Fixtures are re-recorded deliberately when the prompt layout changes on purpose. +- `muxon trace record` captures a fixture; `muxon trace replay` re-runs one. Fixtures are re-recorded deliberately when the prompt layout changes on purpose. See [tech-stack.md](./tech-stack.md#testing-lint-ci). diff --git a/docs/harness-architecture/oss-comparison.md b/docs/harness-architecture/oss-comparison.md index 3702272..2aa2e89 100644 --- a/docs/harness-architecture/oss-comparison.md +++ b/docs/harness-architecture/oss-comparison.md @@ -1,6 +1,6 @@ # Open-source harness comparison -Each table lists thee beside five open-source references. **Closer to** is blank except on the one harness the design is closest to. That cell says `closest`. +Each table lists muxon beside five open-source references. **Closer to** is blank except on the one harness the design is closest to. That cell says `closest`. | Harness | Why it's here | |---------|----------------| @@ -16,7 +16,7 @@ The question this product exists to answer: what does each harness do when the m | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A capability profile per model drives tool protocol, constrained decoding, salvage of in-text calls, edit format, prompt variant, sampling, reasoning handling, and measured context. A probe fills it in. Loops are detected and cut off. | | +| **muxon** | A capability profile per model drives tool protocol, constrained decoding, salvage of in-text calls, edit format, prompt variant, sampling, reasoning handling, and measured context. A probe fills it in. Loops are detected and cut off. | | | **OpenCode** | One loop tuned for frontier tool calling: every schema in every prompt, several native calls per reply. Small models pick wrong tools and miss schemas. | | | **Aider** | Per-model settings choose the edit format and some prompt behavior; the model edits by text, so weak function calling matters less. No tool loop to break. | closest | | **Ante** | Profiles choose a small or full tool set; local models through llama.cpp are a supported path. | | @@ -29,7 +29,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | One state machine: plan, act, tools, verify, escalate, then done, failed, or cancelled under hard caps and a loop detector. Monolith CLI. | | +| **muxon** | One state machine: plan, act, tools, verify, escalate, then done, failed, or cancelled under hard caps and a loop detector. Monolith CLI. | | | **OpenCode** | Client–server, many sessions, plan/build roles. Done is not a verify state. | | | **Aider** | Chat plus git. Architect and editor modes. No escalate or blocked state. | | | **Ante** | Daemon owns each turn: prompt, tools, confirm, execute. | closest | @@ -40,7 +40,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Cache-stable prompt, retrieve instead of pasting the repo, token budget from the measured window, prefix scaled to the window, compact or standard prompt per model, elide then summarize. | | +| **muxon** | Cache-stable prompt, retrieve instead of pasting the repo, token budget from the measured window, prefix scaled to the window, compact or standard prompt per model, elide then summarize. | | | **OpenCode** | LSP and a large window. Compaction assumes a strong model. | | | **Aider** | Repo map and files you add. Little formal compaction or cache layout. | closest | | **Ante** | Profile sets the context. No published token budget. | | @@ -51,7 +51,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Cheap router, then a worker, then a bigger model only after failed checks. Tool protocol and edit format follow each model's capability profile. | | +| **muxon** | Cheap router, then a worker, then a bigger model only after failed checks. Tool protocol and edit format follow each model's capability profile. | | | **OpenCode** | User picks the model. Zen points at frontier models. | | | **Aider** | Strong architect model, cheaper editor. The user picks. Tests do not escalate. | closest | | **Ante** | Any model, including local. A profile chooses. No evidence router. | | @@ -62,7 +62,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | The full tool set in [tools/README.md](./tools/README.md): workspace, edits, run, and control. Caps on output. Built-in tools stay when MCP is attached. | | +| **muxon** | The full tool set in [tools/README.md](./tools/README.md): workspace, edits, run, and control. Caps on output. Built-in tools stay when MCP is attached. | | | **OpenCode** | Wide surface, including LSP, sessions, and plugins. | closest | | **Aider** | Diffs and git. The user mostly chooses files. | | | **Ante** | A profile can expose a handful of tools or a full set. | | @@ -73,7 +73,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | The harness runs the tests itself. Done waits until they pass. Baseline run, test-edit policy, repeated failure escalates, then stops as failed. | | +| **muxon** | The harness runs the tests itself. Done waits until they pass. Baseline run, test-edit policy, repeated failure escalates, then stops as failed. | | | **OpenCode** | The model can run tests. Done is not a verifier state. | | | **Aider** | `/test` and lint exist. The user runs them. They do not gate the loop. | | | **Ante** | Tests are a tool. Finish does not require them. | | @@ -84,7 +84,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | BYOK, a priced role manifest, and `catalog.json`. OpenAI-compatible by default, with native Anthropic Messages and OpenAI Responses adapters. Per-model reasoning handling. Local servers checked for truncation. Our API is optional, cheaper, and keeps zero data retention. No embedded local engine. | | +| **muxon** | BYOK, a priced role manifest, and `catalog.json`. OpenAI-compatible by default, with native Anthropic Messages and OpenAI Responses adapters. Per-model reasoning handling. Local servers checked for truncation. Our API is optional, cheaper, and keeps zero data retention. No embedded local engine. | | | **OpenCode** | 75+ providers, Copilot and ChatGPT login, Zen tier. | | | **Aider** | Broad BYOK, including local models. Flags and YAML. No priced roles. | | | **Ante** | Presets, `catalog.json`, and built-in GGUF. | closest | @@ -95,7 +95,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Local JSONL, tokens and dollars per turn, harness-quality rates (parse, salvage, loop, truncation) per model, and an eval across a model matrix. Strict mode omits prompt bodies. | | +| **muxon** | Local JSONL, tokens and dollars per turn, harness-quality rates (parse, salvage, loop, truncation) per model, and an eval across a model matrix. Strict mode omits prompt bodies. | | | **OpenCode** | Sessions and share links. Cost is not the product. | | | **Aider** | Chat history and some token display. No cost ledger. | | | **Ante** | Daemon protocol. Public story is benchmarks. | | @@ -106,7 +106,7 @@ What we take: Aider's per-model edit formats and lenient matching, Ante's profil | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Read, edit, and full tiers. Workspace trust for repo config and hooks. Secret deny list, argv-only exec, scrubbed env, optional sandbox. Our provider never retains content. | | +| **muxon** | Read, edit, and full tiers. Workspace trust for repo config and hooks. Secret deny list, argv-only exec, scrubbed env, optional sandbox. Our provider never retains content. | | | **OpenCode** | Local execution and a privacy claim. | | | **Aider** | Local process and git. You are the policy. | | | **Ante** | Daemon confirmations. Local by default. No retention rule for a hosted route. | | diff --git a/docs/harness-architecture/providers.md b/docs/harness-architecture/providers.md index 9f2f71f..056cd57 100644 --- a/docs/harness-architecture/providers.md +++ b/docs/harness-architecture/providers.md @@ -4,7 +4,7 @@ Providers are **adapters** from the harness to inference backends. The default p ## Bring your own keys (BYOK) -**thee-harness never requires our API keys or a thee-harness account** to run inference. Users authenticate to whatever backends they choose; the harness only reads credentials from the user’s machine (or their team secret store). +**muxon never requires our API keys or a muxon account** to run inference. Users authenticate to whatever backends they choose; the harness only reads credentials from the user’s machine (or their team secret store). The harness lets users bring their own key. Our own inference is the provider we want them to select, specified in [../api/README.md](../api/README.md): lower price, and prompts, completions, and code are never retained. The client protocol is the same OpenAI-compatible call either way. @@ -13,21 +13,21 @@ The harness lets users bring their own key. Our own inference is the provider we | **User-owned credentials** | Keys live in env vars, OS keychain, or a user-level config file—not embedded in the binary. | | **Any supported host** | If it speaks OpenAI-compatible chat completions (+ tools), you can register it. | | **Default ≠ exclusive** | Shipped `models.yaml` recommends frugal OSS routes (often DeepInfra); users replace providers, models, and rates freely. | -| **No key escrow** | CLI talks directly to the provider; we do not proxy or store keys on our servers. Choosing our API means using a thee key against our endpoint, not handing us a vendor key. | +| **No key escrow** | CLI talks directly to the provider; we do not proxy or store keys on our servers. Choosing our API means using a muxon key against our endpoint, not handing us a vendor key. | | **Multi-provider** | Different roles (router / worker / escalated) may use different providers and keys in one session. | ### Credential resolution order -1. Per-provider `api_key_env` in `models.yaml` or `catalog.json` (e.g. `DEEPINFRA_API_KEY`). At startup `thee` loads the nearest `.env` at or above the current directory (stopping at the directory that holds `.git`). It never overrides variables already set in the environment. +1. Per-provider `api_key_env` in `models.yaml` or `catalog.json` (e.g. `DEEPINFRA_API_KEY`). At startup `muxon` loads the nearest `.env` at or above the current directory (stopping at the directory that holds `.git`). It never overrides variables already set in the environment. 2. Generic fallbacks where documented (e.g. `OPENAI_API_KEY` for OpenAI-compatible base URLs)—explicit in config, not magic. -3. OS keychain entries via `thee auth login `. +3. OS keychain entries via `muxon auth login `. 4. **(team)** CI/org secret injection—same env-based contract. -`thee doctor` should report which providers are configured (key present, base URL reachable) without printing secret values. +`muxon doctor` should report which providers are configured (key present, base URL reachable) without printing secret values. ### User provider registry: `catalog.json` -Ante-style file (default `~/.thee/catalog.json` or path in `thee.toml`) for providers and models **without** waiting for a release: +Ante-style file (default `~/.muxon/catalog.json` or path in `muxon.toml`) for providers and models **without** waiting for a release: ```json { @@ -50,11 +50,11 @@ Ante-style file (default `~/.thee/catalog.json` or path in `thee.toml`) for prov Model entries in `models.yaml` reference `provider: my-deepinfra` (or inline overrides). -Project `thee.toml` cannot register providers or redirect base URLs; that would let a repo route your code to its own endpoint. Provider config is user-level only ([security-and-policy.md](./security-and-policy.md#workspace-trust)). +Project `muxon.toml` cannot register providers or redirect base URLs; that would let a repo route your code to its own endpoint. Provider config is user-level only ([security-and-policy.md](./security-and-policy.md#workspace-trust)). ### Our API as a provider -The [thee API](../api/README.md) (pay-as-you-go credits) is one provider entry like any other: `base_url` plus `THEE_API_KEY`. It is **optional**. BYOK remains fully supported for solo devs, air-gapped, and teams with existing vendor contracts, and choosing our API never disables direct BYOK. +The [muxon API](../api/README.md) (pay-as-you-go credits) is one provider entry like any other: `base_url` plus `MUXON_API_KEY`. It is **optional**. BYOK remains fully supported for solo devs, air-gapped, and teams with existing vendor contracts, and choosing our API never disables direct BYOK. ## Recommended defaults (not lock-in) @@ -133,7 +133,7 @@ Rules: Most "small models don't work in this harness" reports come from the server, not the model. The harness checks the usual failures instead of trusting defaults: - **Silent truncation.** Ollama's default context is far smaller than the model's window and it drops the start of the prompt without an error, which deletes the system prompt and tool catalog first. The adapter sends `num_ctx` (Ollama `options`) sized to the turn budget, and the probe measures `served_context` for every local endpoint. When usage shows `prompt_tokens` well below the harness estimate, the turn is flagged as truncated and the session drops to the measured window. -- **Chat template and tool parser.** vLLM and llama.cpp only return native tool calls when the server runs with the right tool parser and template. Without them, calls arrive as text. The salvage parser handles this, and `thee doctor` reports when a native-profile model is producing text calls. +- **Chat template and tool parser.** vLLM and llama.cpp only return native tool calls when the server runs with the right tool parser and template. Without them, calls arrive as text. The salvage parser handles this, and `muxon doctor` reports when a native-profile model is producing text calls. - **Stop sequences.** Some templates leak end-of-turn tokens or continue past them. Per-model `sampling.stop` covers this. - **Concurrency.** Local servers often serve one request at a time. The harness does not send concurrent model calls (subagents, background summarization) to an endpoint marked `max_concurrency: 1`; they queue. - **No usage.** Some servers omit usage in streams. Token budgets then use the harness estimate, marked as estimated in the trace. @@ -203,7 +203,7 @@ Request `stream_options.include_usage` when streaming on `openai_chat`. Cost for ## Manifest: `models.yaml` -Shipped as a **starter** manifest; users override path via `thee.toml` or `--models-manifest`. All `provider` names must exist in `providers:` or `catalog.json`. +Shipped as a **starter** manifest; users override path via `muxon.toml` or `--models-manifest`. All `provider` names must exist in `providers:` or `catalog.json`. ```yaml version: 1 @@ -260,7 +260,7 @@ models: model: qwen3-coder:30b capabilities: context_window: 262144 - served_context: 32768 # measured by `thee models probe`; adapter sends num_ctx + served_context: 32768 # measured by `muxon models probe`; adapter sends num_ctx tool_protocol: two_step structured_output: json_schema # Ollama `format` text_tool_dialect: qwen_xml @@ -299,7 +299,7 @@ What each field drives is in [model-router.md](./model-router.md#capability-prof - Missing fields take conservative defaults, so an unknown model works, just less efficiently. `parallel_tool_calls` stays off. - Native models connected through `/providers` are the exception: they are created with `tool_protocol: native` and `parallel_tool_calls: true`. A later `/model` switch on that provider keeps the flag. One reply may then contain up to 8 calls, run in order. - `catalog.json` entries can carry the same `capabilities` block; user values override the shipped manifest. -- `thee models probe ` measures served context, structured-output support, tool protocols, edit formats, and reasoning behavior against the real endpoint, and writes a suggested block to the catalog ([Probe](./model-router.md#probe)). +- `muxon models probe ` measures served context, structured-output support, tool protocols, edit formats, and reasoning behavior against the real endpoint, and writes a suggested block to the catalog ([Probe](./model-router.md#probe)). - A gateway that publishes capabilities on `GET /v1/models` (our API, or a LiteLLM-style proxy that exposes model info) fills defaults automatically; local config still wins. ## Related diff --git a/docs/harness-architecture/security-and-policy.md b/docs/harness-architecture/security-and-policy.md index c20ed3d..b3a4c10 100644 --- a/docs/harness-architecture/security-and-policy.md +++ b/docs/harness-architecture/security-and-policy.md @@ -7,38 +7,38 @@ Security wraps **tool runtime**, **subprocess** execution, and **repo-supplied c | Layer | Policy | |-------|--------| | **Our API** | Optional; no prompt/completion persistence; billing metadata only. **BYOK direct mode unchanged.** | -| **Credentials** | **BYOK** — keys never sent to thee-harness servers unless user opts into hosted proxy. Never passed to subprocesses. | +| **Credentials** | **BYOK** — keys never sent to muxon servers unless user opts into hosted proxy. Never passed to subprocesses. | | **Recommended defaults** | OSS models on DeepInfra when user configures `DEEPINFRA_API_KEY`; strict mode blocks unwanted third-party model routes | | **Local traces** | User-owned disk; optional body-free mode | ## Workspace trust -Cloning a hostile repo and running `thee` must not be equivalent to running its scripts. Repo-supplied surfaces that can execute or steer: +Cloning a hostile repo and running `muxon` must not be equivalent to running its scripts. Repo-supplied surfaces that can execute or steer: | Surface | Risk | Untrusted behavior | |---------|------|--------------------| -| `.thee/hooks/` | Runs as the user | Not run | -| Verify command (`thee.toml`, `package.json`, `Makefile`) | Runs as the user | Interactive: shown and approved once. Headless: setup error unless `--trust` or `--verify-cmd` | +| `.muxon/hooks/` | Runs as the user | Not run | +| Verify command (`muxon.toml`, `package.json`, `Makefile`) | Runs as the user | Interactive: shown and approved once. Headless: setup error unless `--trust` or `--verify-cmd` | | `test` tool | Runs repo code | Disabled | -| Project `thee.toml` `[security]` | Could loosen policy | Can only **tighten** (lower tier, add blocks) | -| Project `thee.toml` `[providers]` | Could redirect inference and leak code | Ignored | -| `.thee/skills/`, `.thee/memory/` | Prompt injection | Not loaded | +| Project `muxon.toml` `[security]` | Could loosen policy | Can only **tighten** (lower tier, add blocks) | +| Project `muxon.toml` `[providers]` | Could redirect inference and leak code | Ignored | +| `.muxon/skills/`, `.muxon/memory/` | Prompt injection | Not loaded | | `AGENTS.md` and source files | Prompt injection | Loaded, wrapped as untrusted content | -Trust is per workspace root and stored in `~/.thee/trust.json` with a hash of the trust-relevant files (`thee.toml`, `.thee/hooks/*`, resolved verify command). When that hash changes, interactive mode asks again and shows what changed. +Trust is per workspace root and stored in `~/.muxon/trust.json` with a hash of the trust-relevant files (`muxon.toml`, `.muxon/hooks/*`, resolved verify command). When that hash changes, interactive mode asks again and shows what changed. - **Interactive first run:** one prompt listing hooks, the verify command, and any policy the project config sets. Choices: trust, trust once, don't trust. -- **Headless / CI:** `--trust`, `THEE_TRUST=1`, or a path prefix in the user's `trusted_roots`. CI checkouts of your own repo normally pass `--trust`. -- `thee trust list | add | rm` manages the store. +- **Headless / CI:** `--trust`, `MUXON_TRUST=1`, or a path prefix in the user's `trusted_roots`. CI checkouts of your own repo normally pass `--trust`. +- `muxon trust list | add | rm` manages the store. ## Config precedence Lowest to highest: 1. Built-in defaults -2. User `~/.thee/config.toml` -3. Project `thee.toml` (only its tightening keys when untrusted) -4. Environment `THEE_*` +2. User `~/.muxon/config.toml` +3. Project `muxon.toml` (only its tightening keys when untrusted) +4. Environment `MUXON_*` 5. CLI flags Security keys are the exception: the user's `max_permission`, `deny` patterns, and `zdr_strict` are ceilings that later layers cannot loosen. `--yolo` raises the tier to the user's `max_permission` and auto-approves within it; it never exceeds it. @@ -81,7 +81,7 @@ The user's next message clears the taint because the user has seen the content i - **argv only;** `sh -c` style strings denied unless `allow_shell_strings = true`. - Blocklist: `rm -rf /`, `curl | sh`, fork bombs, writing outside workspace root. The blocklist is a backstop, not a boundary; the sandbox is the boundary. -- Allowlist optional in `thee.toml` for CI. +- Allowlist optional in `muxon.toml` for CI. - Provider keys and secret env vars scrubbed from every subprocess. - Secret redaction in trace: patterns for API keys, `.env` paths. @@ -99,7 +99,7 @@ Backends: macOS `sandbox-exec` profile; Linux bubblewrap, falling back to Landlo Prevention, not just redaction: -- `search`, `list`, and `repo-map` respect `.gitignore`, `.theeignore` (gitignore syntax), and skip bulk directories (`node_modules`, `vendor`, `dist`, `build`, `target`, `.git`, `.venv`). +- `search`, `list`, and `repo-map` respect `.gitignore`, `.muxonignore` (gitignore syntax), and skip bulk directories (`node_modules`, `vendor`, `dist`, `build`, `target`, `.git`, `.venv`). - **Secret deny list** — contents never returned by `read`/`search`, writes need approval: ```text @@ -116,10 +116,10 @@ Users extend it with `[security] deny_read = [...]`. A denied read returns "path Memory is injected into future sessions, so a poisoned note outlives the session that wrote it. - Every note stores provenance: session id, the tool results it followed, timestamp, and whether the session was tainted. -- Project memory (`.thee/memory/`) is written at `edit`; it is loaded only in trusted workspaces. -- User-global memory (`~/.thee/memory/`) writes always need approval (headless: denied), because they affect every repo. -- Notes written while tainted are stored as `pending` and not injected until the user accepts them (`thee memory review`). -- `thee memory list | show | rm` for inspection. +- Project memory (`.muxon/memory/`) is written at `edit`; it is loaded only in trusted workspaces. +- User-global memory (`~/.muxon/memory/`) writes always need approval (headless: denied), because they affect every repo. +- Notes written while tainted are stored as `pending` and not injected until the user accepts them (`muxon memory review`). +- `muxon memory list | show | rm` for inspection. ## Network egress @@ -133,11 +133,11 @@ DvalinCode-style: - Hash-chained log of tool calls and approvals for compliance export. - Off for solo use; on when a team policy requires it. -## Config surface: `thee.toml` +## Config surface: `muxon.toml` ```toml -[providers] # honored only in ~/.thee/config.toml -catalog = "~/.thee/catalog.json" # BYOK provider registry (optional) +[providers] # honored only in ~/.muxon/config.toml +catalog = "~/.muxon/catalog.json" # BYOK provider registry (optional) models_manifest = "models.yaml" # or path to user override [security] @@ -159,7 +159,7 @@ backend = "auto" # auto | sandbox-exec | bubblewrap | landlock | docker network = false ``` -User-level `~/.thee/config.toml` adds `max_permission` and `trusted_roots`. +User-level `~/.muxon/config.toml` adds `max_permission` and `trusted_roots`. ## Related diff --git a/docs/harness-architecture/session-director.md b/docs/harness-architecture/session-director.md index d6674c8..ec75fc8 100644 --- a/docs/harness-architecture/session-director.md +++ b/docs/harness-architecture/session-director.md @@ -73,7 +73,7 @@ Any state can move to `failed` when a budget runs out, and to `cancelled` on a d ## Caps and budgets -Configured in `thee.toml` under `[session]`. Defaults are tuned for small workers, which burn budget on retry loops; one structured failure beats another full-context resend. +Configured in `muxon.toml` under `[session]`. Defaults are tuned for small workers, which burn budget on retry loops; one structured failure beats another full-context resend. ```toml [session] @@ -121,7 +121,7 @@ Thresholds are in `[session.loop]`. Each firing is a `loop.detected` event so pe ## Headless behavior -`thee run -p` has no human, so anything that would be `blocked` becomes a terminal outcome. +`muxon run -p` has no human, so anything that would be `blocked` becomes a terminal outcome. | Situation | Headless outcome | |-----------|------------------| @@ -141,12 +141,12 @@ Thresholds are in `[session.loop]`. Each firing is a `loop.detected` event so pe | `3` | Setup error — no provider key, untrusted workspace, no verify command, bad config | | `130` | `cancelled` (SIGINT) | -`session.end` in JSONL always carries `outcome`, `reason`, `verify_attempts`, `escalation_generation`, `tool_rounds`, totals, and `workspace_changed`. That is the same shape `thee eval` and benchmark runners consume. See [observability.md](./observability.md). +`session.end` in JSONL always carries `outcome`, `reason`, `verify_attempts`, `escalation_generation`, `tool_rounds`, totals, and `workspace_changed`. That is the same shape `muxon eval` and benchmark runners consume. See [observability.md](./observability.md). ## Workspace state at start - **Git repo, clean tree.** Record `HEAD` as the session base. -- **Git repo, dirty tree.** Allowed. The director snapshots the current tree (including untracked, non-ignored files) into a shadow ref `refs/thee/sessions//base` without touching the user's index, branch, or stash. The user's uncommitted work is never stashed or reset. Interactive mode prints one line noting the dirty files. +- **Git repo, dirty tree.** Allowed. The director snapshots the current tree (including untracked, non-ignored files) into a shadow ref `refs/muxon/sessions//base` without touching the user's index, branch, or stash. The user's uncommitted work is never stashed or reset. Interactive mode prints one line noting the dirty files. - **Not a git repo.** Allowed. Checkpoints fall back to file snapshots (see [checkpoint](./tools/checkpoint.md)). Verify baselines still work. The diff the user reviews at the end is always `base → current`, so pre-existing edits are not attributed to the agent. diff --git a/docs/harness-architecture/tech-stack.md b/docs/harness-architecture/tech-stack.md index 42a0e28..c7cf5e3 100644 --- a/docs/harness-architecture/tech-stack.md +++ b/docs/harness-architecture/tech-stack.md @@ -1,6 +1,6 @@ # Tech stack -**Decision:** The thee-harness **core** is implemented in **Go** as a single CLI binary (`thee`). Our hosted API lives in a separate repo; BYOK direct mode does not depend on it. +**Decision:** The muxon **core** is implemented in **Go** as a single CLI binary (`muxon`). Our hosted API lives in a separate repo; BYOK direct mode does not depend on it. **Go version:** **1.24+** (pin current stable in `go.mod` at implementation time). @@ -36,9 +36,9 @@ Rust/Python references (Ante, Aider, Tau) inform design; the harness is **Go onl ## Repository layout ```text -thee-harness/ # monorepo root (docs, go.work) -├── harness/ # OSS thee CLI module -│ ├── cmd/thee/ +muxon/ # monorepo root (docs, go.work) +├── harness/ # OSS muxon CLI module +│ ├── cmd/muxon/ │ ├── internal/ │ ├── testdata/ │ ├── go.mod @@ -48,7 +48,7 @@ thee-harness/ # monorepo root (docs, go.work) └── go.work ``` -Package names under `internal/` follow [README.md](./README.md) (director, context, router, provider, …). **This doc does not define package behavior**—only that we use a standard Go module layout with `internal/` boundaries so `thee serve` can reuse them in a long-lived process (ADR-002). +Package names under `internal/` follow [README.md](./README.md) (director, context, router, provider, …). **This doc does not define package behavior**—only that we use a standard Go module layout with `internal/` boundaries so `muxon serve` can reuse them in a long-lived process (ADR-002). --- @@ -59,7 +59,7 @@ Package names under `internal/` follow [README.md](./README.md) (director, conte | Commands and headless output | [spf13/cobra](https://github.com/spf13/cobra) or std `flag`; stdout/stderr; optional `--json` | | Formatting | [charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) | | TUI | [charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea) | -| `thee serve` | JSONL over stdio or WebSocket ([session-director.md](./session-director.md#surfaces)) | +| `muxon serve` | JSONL over stdio or WebSocket ([session-director.md](./session-director.md#surfaces)) | --- @@ -67,7 +67,7 @@ Package names under `internal/` follow [README.md](./README.md) (director, conte | Data | Format | Library | |------|--------|---------| -| `thee.toml` | TOML | [BurntSushi/toml](https://github.com/BurntSushi/toml) or [pelletier/go-toml](https://github.com/pelletier/go-toml) | +| `muxon.toml` | TOML | [BurntSushi/toml](https://github.com/BurntSushi/toml) or [pelletier/go-toml](https://github.com/pelletier/go-toml) | | `models.yaml` | YAML | [gopkg.in/yaml.v3](https://gopkg.in/yaml.v3) | | `catalog.json` | JSON | `encoding/json` | | Secrets | Env / OS keychain | `os.Getenv`, keychain via [zalando/go-keyring](https://github.com/zalando/go-keyring); no secrets in repo | @@ -125,9 +125,9 @@ Three adapters behind one interface ([providers.md](./providers.md#adapters)): ` | Item | Choice | |------|--------| -| Module path | TBD (e.g. `github.com//thee-harness`) | +| Module path | TBD (e.g. `github.com//muxon`) | | Artifacts | `goreleaser` or manual `GOOS`/`GOARCH` matrix | -| Distribution | GitHub Releases (single `thee` binary per platform) | +| Distribution | GitHub Releases (single `muxon` binary per platform) | --- diff --git a/docs/harness-architecture/tool-runtime.md b/docs/harness-architecture/tool-runtime.md index ef9e053..9c96863 100644 --- a/docs/harness-architecture/tool-runtime.md +++ b/docs/harness-architecture/tool-runtime.md @@ -22,16 +22,16 @@ The tool runtime executes every tool in [tools/README.md](./tools/README.md). It | `full` | + shell, process, browser, MCP servers that write or use the network | - `finish` is allowed in every tier. It requires a verifier pass whenever the session changed the workspace. -- Writing user-global memory (`~/.thee/memory/`) needs approval in every tier. See [memory](./tools/memory.md). +- Writing user-global memory (`~/.muxon/memory/`) needs approval in every tier. See [memory](./tools/memory.md). - `test` runs repo code, so like the verifier it also requires workspace trust. - Hooks run as the user and can deny a call before it starts. They only run in trusted workspaces. -The user's `max_permission` in `~/.thee/config.toml` caps every session. Project config and flags can lower the tier; they cannot raise it above that cap. See [security-and-policy.md](./security-and-policy.md#config-precedence). +The user's `max_permission` in `~/.muxon/config.toml` caps every session. Project config and flags can lower the tier; they cannot raise it above that cap. See [security-and-policy.md](./security-and-policy.md#config-precedence). ## Files - **Workspace root only.** Paths are resolved and symlinks followed before the check; anything outside the root is rejected. -- **Ignore rules.** `search`, `list`, and `repo-map` skip `.gitignore` and `.theeignore` matches and bulk directories (`node_modules`, `vendor`, `dist`, `build`, `.git`). `read` of an ignored-but-not-secret path is allowed when named explicitly. +- **Ignore rules.** `search`, `list`, and `repo-map` skip `.gitignore` and `.muxonignore` matches and bulk directories (`node_modules`, `vendor`, `dist`, `build`, `.git`). `read` of an ignored-but-not-secret path is allowed when named explicitly. - **Secret paths.** `read`, `search`, and `list` never return the contents of the secret deny list (`.env*` except `.env.example`, keys, credentials). Writes to those paths need approval. List in [security-and-policy.md](./security-and-policy.md#ignore-rules-and-secret-paths). - **Stale reads.** The runtime records a content hash per file when the model reads it. `patch` and `write` on a file whose current hash differs from the last one the model saw (the user edited it meanwhile) are rejected with "file changed since you read it; re-read lines X–Y." This turns silent patch failures into one clear repair step. - **Atomic writes.** Every write goes to a temp file in the same directory and is renamed into place. diff --git a/docs/harness-architecture/tools/README.md b/docs/harness-architecture/tools/README.md index 1022807..6d45a36 100644 --- a/docs/harness-architecture/tools/README.md +++ b/docs/harness-architecture/tools/README.md @@ -1,6 +1,6 @@ # Tools -The model does not edit the repo by talking. It calls tools. How they run, and which permission tier they need, is [../tool-runtime.md](../tool-runtime.md). Each comparison lists thee beside the other harnesses. **Closer to** says `closest` on one of them and is blank everywhere else. +The model does not edit the repo by talking. It calls tools. How they run, and which permission tier they need, is [../tool-runtime.md](../tool-runtime.md). Each comparison lists muxon beside the other harnesses. **Closer to** says `closest` on one of them and is blank everywhere else. ## Tool calling on small models @@ -24,9 +24,9 @@ How a call is made is a property of the bound model (`tool_protocol` in its [cap | `two_step` | Small or unprofiled models (default when unknown) | 1. The prompt lists tools by name and one line; the model names **one**. 2. The next request carries that tool's flat schema and one example; the model fills the arguments. | | `fenced` | Models whose native tool calling is broken | Same two steps, but each reply is one fenced block with the same fields. The runtime parses the block. | -When `parallel_tool_calls` is set, one native reply may contain up to 8 calls. thee runs them in order and counts the batch as one tool round. A successful `finish` ends the batch; later calls in that reply are not run. Calls that depend on an earlier result belong in a later turn. `two_step` and `fenced` stay one call per reply. Native models connected through `/providers` default the flag on. Manifest models and unknown models stay off unless the profile sets it. +When `parallel_tool_calls` is set, one native reply may contain up to 8 calls. muxon runs them in order and counts the batch as one tool round. A successful `finish` ends the batch; later calls in that reply are not run. Calls that depend on an earlier result belong in a later turn. `two_step` and `fenced` stay one call per reply. Native models connected through `/providers` default the flag on. Manifest models and unknown models stay off unless the profile sets it. -`two_step` costs about two model calls per tool. That is the price of reliability on small models, and it is why it is not the default for models that do not need it. Observability tracks `model_calls_per_tool` and malformed-call rate per model so the profile can be tuned (`thee models probe`). +`two_step` costs about two model calls per tool. That is the price of reliability on small models, and it is why it is not the default for models that do not need it. Observability tracks `model_calls_per_tool` and malformed-call rate per model so the profile can be tuned (`muxon models probe`). In every protocol the file is written by `patch` or `write`. Assistant text is never saved to disk. @@ -74,7 +74,7 @@ Results stay shaped and capped: a hit list, a diff stat, an exit code and the la | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | The session state picks a few tools. The protocol follows the model: native calls for capable models, name-then-schema for small ones, a fenced block when native calling is broken. Decoding is constrained to the schema where the backend allows it, in-text calls are salvaged, then one repair, then escalate. | | +| **muxon** | The session state picks a few tools. The protocol follows the model: native calls for capable models, name-then-schema for small ones, a fenced block when native calling is broken. Decoding is constrained to the schema where the backend allows it, in-text calls are salvaged, then one repair, then escalate. | | | **OpenCode** | Every tool schema is in the prompt. The model can return several native calls in one reply. The loop is aimed at frontier models. | | | **Aider** | The model returns a diff. The harness parses and applies it. A cheaper model can be the editor. | | | **Ante** | A profile chooses which tools are exposed, a handful or a full set. The daemon runs the call. Local models are a supported path. | closest | diff --git a/docs/harness-architecture/tools/ask_user.md b/docs/harness-architecture/tools/ask_user.md index 32492a0..960d17f 100644 --- a/docs/harness-architecture/tools/ask_user.md +++ b/docs/harness-architecture/tools/ask_user.md @@ -16,7 +16,7 @@ The question should be answerable in one line. A question the model could answer | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | One question, optional choices, three per goal. Headless gets an answer to proceed on its assumption. | | +| **muxon** | One question, optional choices, three per goal. Headless gets an answer to proceed on its assumption. | | | **OpenCode** | The model asks in plain text and the turn ends. | | | **Aider** | The model asks in chat. | | | **Ante** | The daemon can pause for input. | closest | diff --git a/docs/harness-architecture/tools/browser.md b/docs/harness-architecture/tools/browser.md index fffbc5b..f0fd177 100644 --- a/docs/harness-architecture/tools/browser.md +++ b/docs/harness-architecture/tools/browser.md @@ -16,7 +16,7 @@ Page content is untrusted. It is wrapped as such in context, and it **taints** t | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Fetch first. A short session only when the page requires it. Text is capped. | | +| **muxon** | Fetch first. A short session only when the page requires it. Text is capped. | | | **OpenCode** | Browsing is not the core of the editor. | | | **Aider** | No browser. | | | **Ante** | Not part of the default daemon profile. | | diff --git a/docs/harness-architecture/tools/checkpoint.md b/docs/harness-architecture/tools/checkpoint.md index 44ab573..155e173 100644 --- a/docs/harness-architecture/tools/checkpoint.md +++ b/docs/harness-architecture/tools/checkpoint.md @@ -10,10 +10,10 @@ Save the workspace and restore it. A checkpoint is a snapshot of the tree plus t ## Storage -- **Git repo.** Checkpoints are **shadow refs** under `refs/thee/sessions//cp-`. The harness builds them with a temporary index (`GIT_INDEX_FILE`), `git write-tree`, and `git commit-tree`, so the user's index, `HEAD`, branches, and stash are never touched and `git log` does not show them. Untracked non-ignored files are included. Refs older than 14 days are pruned by `thee gc`. -- **Not a git repo.** Changed files are copied to `.thee/sessions//snapshots//` before each patch batch (copy-on-write for files the agent touched only). +- **Git repo.** Checkpoints are **shadow refs** under `refs/muxon/sessions//cp-`. The harness builds them with a temporary index (`GIT_INDEX_FILE`), `git write-tree`, and `git commit-tree`, so the user's index, `HEAD`, branches, and stash are never touched and `git log` does not show them. Untracked non-ignored files are included. Refs older than 14 days are pruned by `muxon gc`. +- **Not a git repo.** Changed files are copied to `.muxon/sessions//snapshots//` before each patch batch (copy-on-write for files the agent touched only). -The session base (`refs/thee/sessions//base`) is taken at start, including a dirty tree, so restore can always get back to exactly what the user had. +The session base (`refs/muxon/sessions//base`) is taken at start, including a dirty tree, so restore can always get back to exactly what the user had. Restore does not rewind our API. It only rewinds the local workspace. The model can call `restore` after a bad patch. The user can call it from the CLI. @@ -21,7 +21,7 @@ Restore does not rewind our API. It only rewinds the local workspace. The model | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Shadow git refs (or file snapshots) plus session pointers. The last 20 are kept. User history is untouched. Restore is local. | | +| **muxon** | Shadow git refs (or file snapshots) plus session pointers. The last 20 are kept. User history is untouched. Restore is local. | | | **OpenCode** | Sessions can be resumed. Workspace undo is lighter. | | | **Aider** | Git history is the undo path. | closest | | **Ante** | The daemon keeps the turn. Workspace checkpoints are not the core. | | diff --git a/docs/harness-architecture/tools/delete.md b/docs/harness-architecture/tools/delete.md index 4261b07..5233cc5 100644 --- a/docs/harness-architecture/tools/delete.md +++ b/docs/harness-architecture/tools/delete.md @@ -14,7 +14,7 @@ The tool returns the path and whether it was removed or renamed. It does not dum | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A delete and a move, one path per call. | | +| **muxon** | A delete and a move, one path per call. | | | **OpenCode** | File tools include remove and rename. | closest | | **Aider** | Removal is usually a diff that deletes every line, or a git command. | | | **Ante** | A profile decides if delete exists. | | diff --git a/docs/harness-architecture/tools/finish.md b/docs/harness-architecture/tools/finish.md index ce1f633..694719b 100644 --- a/docs/harness-architecture/tools/finish.md +++ b/docs/harness-architecture/tools/finish.md @@ -16,7 +16,7 @@ The summary the user sees adds the diff stat against the session base and lists | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Finish is rejected until the verifier has passed, unless nothing was changed. | | +| **muxon** | Finish is rejected until the verifier has passed, unless nothing was changed. | | | **OpenCode** | The model stops when it says it is done. Tests are optional. | | | **Aider** | You end the turn. `/test` does not block a finish tool. | | | **Ante** | The loop ends on the model or the user. | | diff --git a/docs/harness-architecture/tools/git.md b/docs/harness-architecture/tools/git.md index f0cbbb0..d596af5 100644 --- a/docs/harness-architecture/tools/git.md +++ b/docs/harness-architecture/tools/git.md @@ -14,7 +14,7 @@ Status, diff, commit, and worktree. Day-to-day git does not go through a free-fo | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Named actions. Status, diff, and log are read-only. Commit and worktree are edits. | | +| **muxon** | Named actions. Status, diff, and log are read-only. Commit and worktree are edits. | | | **OpenCode** | Git happens through the shell and the editor. | | | **Aider** | Git commits and diffs are the center of the edit loop. | closest | | **Ante** | A profile can allow shell git instead. | | diff --git a/docs/harness-architecture/tools/hooks.md b/docs/harness-architecture/tools/hooks.md index 9cbfdc5..76b51bb 100644 --- a/docs/harness-architecture/tools/hooks.md +++ b/docs/harness-architecture/tools/hooks.md @@ -1,6 +1,6 @@ # hooks -Project code that runs before or after a tool call. Hooks are files in `.thee/hooks/`, not model-written shell. The model does not call a hook by name. The runtime does, using the tool name and the arguments. +Project code that runs before or after a tool call. Hooks are files in `.muxon/hooks/`, not model-written shell. The model does not call a hook by name. The runtime does, using the tool name and the arguments. | | | |--|--| @@ -8,13 +8,13 @@ Project code that runs before or after a tool call. Hooks are files in `.thee/ho | **Limit** | A hook gets a few seconds. Its output is capped. | | **Permission** | Hooks run as the user, so they run only in a [trusted workspace](../security-and-policy.md#workspace-trust). A failing `pre` hook blocks the tool. | -Hooks are for formatters, secret scans, and policy. They are not a second agent. User-level hooks in `~/.thee/hooks/` always run; project hooks in `.thee/hooks/` are skipped until the workspace is trusted, and a change to any hook file asks for trust again. +Hooks are for formatters, secret scans, and policy. They are not a second agent. User-level hooks in `~/.muxon/hooks/` always run; project hooks in `.muxon/hooks/` are skipped until the workspace is trusted, and a change to any hook file asks for trust again. ## Comparison | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Files in `.thee/hooks/`. `pre` can deny. `post` can annotate. The runtime invokes them, with a short timeout and a capped result. | | +| **muxon** | Files in `.muxon/hooks/`. `pre` can deny. `post` can annotate. The runtime invokes them, with a short timeout and a capped result. | | | **OpenCode** | Plugin and hook points surround tool calls. | closest | | **Aider** | No hook runner. | | | **Ante** | Confirmation is in the daemon, not a project hook. | | diff --git a/docs/harness-architecture/tools/list.md b/docs/harness-architecture/tools/list.md index 75743ad..c8abb02 100644 --- a/docs/harness-architecture/tools/list.md +++ b/docs/harness-architecture/tools/list.md @@ -14,7 +14,7 @@ Ignored and bulk directories are collapsed to one entry with a count, so a listi | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A capped listing inside the workspace. Always available. One call. | | +| **muxon** | A capped listing inside the workspace. Always available. One call. | | | **OpenCode** | Listing is part of the file tools, along with LSP. | closest | | **Aider** | The repo map stands in for browsing the tree. | | | **Ante** | A profile can include or drop a list tool. | | diff --git a/docs/harness-architecture/tools/lsp.md b/docs/harness-architecture/tools/lsp.md index 8d808c3..a1741b0 100644 --- a/docs/harness-architecture/tools/lsp.md +++ b/docs/harness-architecture/tools/lsp.md @@ -14,7 +14,7 @@ The harness starts the server for the project’s languages. If none is installe | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Definition, references, and diagnostics, capped at 30 locations, when a server exists. | | +| **muxon** | Definition, references, and diagnostics, capped at 30 locations, when a server exists. | | | **OpenCode** | LSP is loaded automatically and is part of the main tool set. | closest | | **Aider** | No LSP. The repo map is the index. | | | **Ante** | Not a required part of the daemon. | | diff --git a/docs/harness-architecture/tools/mcp.md b/docs/harness-architecture/tools/mcp.md index 2aff57e..918a2ff 100644 --- a/docs/harness-architecture/tools/mcp.md +++ b/docs/harness-architecture/tools/mcp.md @@ -8,13 +8,13 @@ Call a tool on an MCP server the user has attached. The server’s tools are not | **Limit** | The result is truncated like `shell` output. | | **Permission** | The server declares a tier. A server that can write or reach the network is full. | -Config lives in `thee.toml`. A server that fails to start is reported and skipped. MCP does not replace `patch`, `read`, or `shell`. Servers declared in a project `thee.toml` start only in a trusted workspace. Results are untrusted content, and a networked server's result taints the session ([security-and-policy.md](../security-and-policy.md#prompt-injection)). +Config lives in `muxon.toml`. A server that fails to start is reported and skipped. MCP does not replace `patch`, `read`, or `shell`. Servers declared in a project `muxon.toml` start only in a trusted workspace. Results are untrusted content, and a networked server's result taints the session ([security-and-policy.md](../security-and-policy.md#prompt-injection)). ## Comparison | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | One call to a user-attached server. The result is truncated. Built-in edit tools stay. A server that writes is full permission. | | +| **muxon** | One call to a user-attached server. The result is truncated. Built-in edit tools stay. A server that writes is full permission. | | | **OpenCode** | MCP is supported beside a large built-in tool set. | | | **Aider** | No MCP. | | | **Ante** | Extensions are profiles more than MCP. | | diff --git a/docs/harness-architecture/tools/memory.md b/docs/harness-architecture/tools/memory.md index 032ccae..e9f8019 100644 --- a/docs/harness-architecture/tools/memory.md +++ b/docs/harness-architecture/tools/memory.md @@ -6,11 +6,11 @@ Read and write notes that survive the session. Memory is on the user’s machine |--|--| | **Args** | action (`read`, `write`, `search`), scope (`project`, `user`), text or query | | **Limit** | A note is at most 2 KiB. Search returns a handful of hits. | -| **Permission** | `read` and `search`: any tier, including `read-only`. `write` to project memory (`.thee/memory/`): `edit`. `write` to user memory (`~/.thee/memory/`): approval in every tier; denied headless. | +| **Permission** | `read` and `search`: any tier, including `read-only`. `write` to project memory (`.muxon/memory/`): `edit`. `write` to user memory (`~/.muxon/memory/`): approval in every tier; denied headless. | Small models get cheap structured recall without patch rights. Gating writes keeps read-only runs side-effect-free (apart from the trace) and stops a skim of an untrusted repo from planting notes. -Project memory is loaded only in a trusted workspace, because it is repo-supplied text. Every note records provenance (session, the tool results it followed, time). A note written after untrusted web or MCP content entered the session is kept `pending` until the user accepts it with `thee memory review`. See [security-and-policy.md](../security-and-policy.md#memory-poisoning). +Project memory is loaded only in a trusted workspace, because it is repo-supplied text. Every note records provenance (session, the tool results it followed, time). A note written after untrusted web or MCP content entered the session is kept `pending` until the user accepts it with `muxon memory review`. See [security-and-policy.md](../security-and-policy.md#memory-poisoning). The context engine injects the search hits, not the whole store, wrapped as model-written content. Memory is for conventions and decisions, not a copy of the repo. @@ -18,7 +18,7 @@ The context engine injects the search hits, not the whole store, wrapped as mode | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Local notes with explicit read, write, and search. Size-capped, with provenance. Reads in any tier, writes from `edit`, user-global writes approved. | | +| **muxon** | Local notes with explicit read, write, and search. Size-capped, with provenance. Reads in any tier, writes from `edit`, user-global writes approved. | | | **OpenCode** | Session history is the memory. | | | **Aider** | The repo and conventions file are the memory. | | | **Ante** | A profile includes memory beside the prompt and tools. | closest | diff --git a/docs/harness-architecture/tools/patch.md b/docs/harness-architecture/tools/patch.md index 591af0d..fddd062 100644 --- a/docs/harness-architecture/tools/patch.md +++ b/docs/harness-architecture/tools/patch.md @@ -23,7 +23,7 @@ The tool returns the path, a short diff stat, and which ladder step applied. Obs | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Unified diff or SEARCH/REPLACE, picked per model. One file. Exact, then whitespace-tolerant, then unique fuzzy match, then a targeted reject. | | +| **muxon** | Unified diff or SEARCH/REPLACE, picked per model. One file. Exact, then whitespace-tolerant, then unique fuzzy match, then a targeted reject. | | | **OpenCode** | Search-replace and whole-file edits are both common. | | | **Aider** | Several edit formats chosen per model, with flexible matching when a hunk does not apply exactly. | closest | | **Ante** | Edits are whatever tools the profile exposes. | | diff --git a/docs/harness-architecture/tools/process.md b/docs/harness-architecture/tools/process.md index 3b167ef..a0a83c0 100644 --- a/docs/harness-architecture/tools/process.md +++ b/docs/harness-architecture/tools/process.md @@ -14,7 +14,7 @@ A process is killed when the session ends unless the user asked to leave it. Out | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Named start, read, and stop. Log reads are capped. The session stops leftovers. Tests stay on shell. | | +| **muxon** | Named start, read, and stop. Log reads are capped. The session stops leftovers. Tests stay on shell. | | | **OpenCode** | Long commands are usually a shell call. | | | **Aider** | `/run` is one-shot. | | | **Ante** | The daemon can hold a turn. Background processes are not the published model. | | diff --git a/docs/harness-architecture/tools/read.md b/docs/harness-architecture/tools/read.md index 790099a..3236381 100644 --- a/docs/harness-architecture/tools/read.md +++ b/docs/harness-architecture/tools/read.md @@ -14,7 +14,7 @@ Paths must stay inside the workspace. A miss returns an error, not a guess. Path | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | One file, one line range, 400 lines max. The model chooses the range. | | +| **muxon** | One file, one line range, 400 lines max. The model chooses the range. | | | **OpenCode** | Reads files and can pull symbols through the LSP. | | | **Aider** | You name the files. It reads those. | | | **Ante** | File read is a profile tool. Caps depend on the profile. | | diff --git a/docs/harness-architecture/tools/repo-map.md b/docs/harness-architecture/tools/repo-map.md index 1a3de74..4d2eaa0 100644 --- a/docs/harness-architecture/tools/repo-map.md +++ b/docs/harness-architecture/tools/repo-map.md @@ -14,7 +14,7 @@ The map skips ignored, bulk, and secret paths. It is rebuilt when git HEAD or th | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A ranked symbol map, always on. The model still reads the bodies it edits. | | +| **muxon** | A ranked symbol map, always on. The model still reads the bodies it edits. | | | **OpenCode** | LSP and file tools, without Aider’s map as the index. | | | **Aider** | The repo map is how the agent orients before editing. | closest | | **Ante** | A profile can skip it. | | diff --git a/docs/harness-architecture/tools/search.md b/docs/harness-architecture/tools/search.md index cbcde24..ad9d9f5 100644 --- a/docs/harness-architecture/tools/search.md +++ b/docs/harness-architecture/tools/search.md @@ -8,13 +8,13 @@ Find matching lines in the workspace. Returns file, line number, and a short pre | **Limit** | 50 hits, 200 characters of preview each | | **Permission** | read-only | -Implementation wraps `rg` when it is on `PATH`. It respects `.gitignore` and `.theeignore`, skips bulk directories (`node_modules`, `vendor`, `dist`, …), and never returns lines from paths on the secret deny list ([security-and-policy.md](../security-and-policy.md#ignore-rules-and-secret-paths)). +Implementation wraps `rg` when it is on `PATH`. It respects `.gitignore` and `.muxonignore`, skips bulk directories (`node_modules`, `vendor`, `dist`, …), and never returns lines from paths on the secret deny list ([security-and-policy.md](../security-and-policy.md#ignore-rules-and-secret-paths)). ## Comparison | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Ripgrep with a hit cap and a short preview. Always on. The model greps, then reads a range. | | +| **muxon** | Ripgrep with a hit cap and a short preview. Always on. The model greps, then reads a range. | | | **OpenCode** | Search plus LSP symbol lookup. | | | **Aider** | Repo map, then you add files. | | | **Ante** | Grep is a normal tool. A profile can omit it. | closest | diff --git a/docs/harness-architecture/tools/shell.md b/docs/harness-architecture/tools/shell.md index 83a9c7c..c9f69e2 100644 --- a/docs/harness-architecture/tools/shell.md +++ b/docs/harness-architecture/tools/shell.md @@ -14,7 +14,7 @@ The argv is exec'd directly, not through a shell. `sh -c "..."` and similar are | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | One argv, no shell strings, a timeout, an output cap, a scrubbed env, and a blocklist. Off unless the user allows it. Not used for verify. | | +| **muxon** | One argv, no shell strings, a timeout, an output cap, a scrubbed env, and a blocklist. Off unless the user allows it. Not used for verify. | | | **OpenCode** | Shell is a normal tool, with approvals, and a wider command surface. | | | **Aider** | Optional and usually user-triggered (`/run`). | | | **Ante** | The daemon confirms commands. A profile can remove shell. | | diff --git a/docs/harness-architecture/tools/skills.md b/docs/harness-architecture/tools/skills.md index 27a8ebe..ecaf48a 100644 --- a/docs/harness-architecture/tools/skills.md +++ b/docs/harness-architecture/tools/skills.md @@ -8,13 +8,13 @@ Load one procedure by name. The prompt holds a catalog of names and one-line des | **Limit** | Two loaded skills. Bodies count toward the context budget. | | **Permission** | any tier | -Skills live in the repo (`.thee/skills/`) and in the user directory (`~/.thee/skills/`). A skill is instructions. It does not add a new executable tool. Repo skills appear in the catalog only in a [trusted workspace](../security-and-policy.md#workspace-trust); user skills always do. A skill cannot change permissions or the verify command. +Skills live in the repo (`.muxon/skills/`) and in the user directory (`~/.muxon/skills/`). A skill is instructions. It does not add a new executable tool. Repo skills appear in the catalog only in a [trusted workspace](../security-and-policy.md#workspace-trust); user skills always do. A skill cannot change permissions or the verify command. ## Comparison | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A catalog of names in the prompt. The body loads on demand, two at a time. Instructions only. | | +| **muxon** | A catalog of names in the prompt. The body loads on demand, two at a time. Instructions only. | | | **OpenCode** | Skills are files the agent can load, often next to MCP. | | | **Aider** | No skill catalog. Conventions stay in one file. | | | **Ante** | A profile swaps prompt, tools, skills, and memory together. | | diff --git a/docs/harness-architecture/tools/subagent.md b/docs/harness-architecture/tools/subagent.md index 0c250f8..9f5091b 100644 --- a/docs/harness-architecture/tools/subagent.md +++ b/docs/harness-architecture/tools/subagent.md @@ -21,7 +21,7 @@ The child's context does not consume the parent's context window. The child's to ## Merge back (`write` children) -1. The child works in a worktree on branch `thee//`, created from the parent's current tree. +1. The child works in a worktree on branch `muxon//`, created from the parent's current tree. 2. The child must pass the verifier in its worktree before it can `finish`. A child that fails returns its failure summary and no diff. 3. On success the parent receives the summary and the diff stat. The runtime applies `base..child` to the parent workspace as one patch batch with `git apply --3way`. 4. Conflicts are returned to the parent as a failed tool result with the conflicting paths. Nothing is half-applied. @@ -31,7 +31,7 @@ The child's context does not consume the parent's context window. The child's to | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A child with its own context. Only the summary returns. Read-only children first; writing children get a worktree and must verify before their diff is merged. | | +| **muxon** | A child with its own context. Only the summary returns. Read-only children first; writing children get a worktree and must verify before their diff is merged. | | | **OpenCode** | Subagents and parallel sessions are part of the product. | closest | | **Aider** | No subagent tool. | | | **Ante** | The daemon can run a turn. Child agents are not the default. | | diff --git a/docs/harness-architecture/tools/test.md b/docs/harness-architecture/tools/test.md index d35f022..d78a03a 100644 --- a/docs/harness-architecture/tools/test.md +++ b/docs/harness-architecture/tools/test.md @@ -14,7 +14,7 @@ The filter is checked against a path or test-id pattern and passed as one argv e | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | The project's own test command with one filter. No free-form command. Never sets the verified flag. | | +| **muxon** | The project's own test command with one filter. No free-form command. Never sets the verified flag. | | | **OpenCode** | The model runs tests through shell. | | | **Aider** | `/test` runs the configured command; failures go into the next turn. | closest | | **Ante** | Tests are a shell call the daemon confirms. | | diff --git a/docs/harness-architecture/tools/todo.md b/docs/harness-architecture/tools/todo.md index c52e9ec..02b9aac 100644 --- a/docs/harness-architecture/tools/todo.md +++ b/docs/harness-architecture/tools/todo.md @@ -14,7 +14,7 @@ A session task list. The model adds items, marks them done, and the director put | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | A capped list, re-injected each turn. Finish waits while required work is open. | | +| **muxon** | A capped list, re-injected each turn. Finish waits while required work is open. | | | **OpenCode** | Task lists show up in OpenCode-style harnesses and their todo tools. | closest | | **Aider** | No todo tool. The chat is the list. | | | **Ante** | A profile could add one. It is not the default loop. | | diff --git a/docs/harness-architecture/tools/write.md b/docs/harness-architecture/tools/write.md index 08cd257..f034696 100644 --- a/docs/harness-architecture/tools/write.md +++ b/docs/harness-architecture/tools/write.md @@ -14,7 +14,7 @@ Replacing an existing file the user changed since the model last read it is reje | Harness | What it does | Closer to | |---------|--------------|-----------| -| **thee** | Full contents for a new or small file, capped at 32 KiB. A large existing file is patched. | | +| **muxon** | Full contents for a new or small file, capped at 32 KiB. A large existing file is patched. | | | **OpenCode** | A write can drop a large new file in one call. | closest | | **Aider** | New files usually arrive as a diff. | | | **Ante** | A profile can allow write. Size limits are not part of the public design. | | diff --git a/docs/harness-architecture/verifier.md b/docs/harness-architecture/verifier.md index 4dc698c..7916ff9 100644 --- a/docs/harness-architecture/verifier.md +++ b/docs/harness-architecture/verifier.md @@ -15,7 +15,7 @@ Verification is run **by the harness**, not by the model. The harness spawns the ## Trust -The verify command comes from the repo (`thee.toml`, `package.json` scripts, `Makefile`). Running it executes repo code as the user, outside the model's permission tier. So verify execution is gated by **workspace trust**, not by tier: +The verify command comes from the repo (`muxon.toml`, `package.json` scripts, `Makefile`). Running it executes repo code as the user, outside the model's permission tier. So verify execution is gated by **workspace trust**, not by tier: - **Trusted workspace:** run the resolved command. - **Untrusted, interactive:** show the resolved command once and ask. Approval is remembered per workspace until the command string changes. @@ -28,7 +28,7 @@ See [security-and-policy.md](./security-and-policy.md#workspace-trust). Project detection order (ADR-005): 1. CLI `--verify-cmd` -2. User or project `thee.toml` → `[verify] command = "..."` +2. User or project `muxon.toml` → `[verify] command = "..."` 3. `package.json` → `npm test` / `pnpm test` / `yarn test` (by lockfile) 4. `Makefile` → `make test` if target exists 5. Python → `pytest -q` if pytest config present @@ -53,7 +53,7 @@ Verify is its own subprocess policy, not a special case of `shell`. | Environment | `CI=1`, `TERM=dumb`, no TTY, stdin closed | Stops watch modes and interactive prompts (jest/vitest watch, pagers). Provider API keys are scrubbed from the env. | | Kill | Whole process group; SIGTERM, SIGKILL after 5s | On timeout or interrupt. | | Sandbox | Same as `shell` when enabled | See [security-and-policy.md](./security-and-policy.md#sandboxing). | -| Full log | `.thee/sessions//verify-.log` | Stdout + stderr, redacted with the trace redaction patterns. | +| Full log | `.muxon/sessions//verify-.log` | Stdout + stderr, redacted with the trace redaction patterns. | The verify timeout counts against the session wall-clock budget, so `max_verify_attempts × timeout` cannot silently turn into an hour. @@ -90,7 +90,7 @@ Strict verify invites passing by editing or deleting tests. Protected paths defa **/test/** **/tests/** **/__tests__/** **/spec/** *_test.go *.test.* *.spec.* test_*.py *_test.py conftest.py jest.config.* vitest.config.* pytest.ini tox.ini .github/workflows/** -thee.toml (the [verify] table) +muxon.toml (the [verify] table) ``` | `test_edits` | Adding new test files | Modifying or deleting existing protected files | @@ -134,7 +134,7 @@ verify_result { ], excerpt: "... up to model_max_lines / model_max_bytes of the most relevant output ...", baseline: "pass", // pass | fail | unknown - log_path: ".thee/sessions//verify-3.log" + log_path: ".muxon/sessions//verify-3.log" } ``` diff --git a/docs/product.md b/docs/product.md index 39d5066..7a97012 100644 --- a/docs/product.md +++ b/docs/product.md @@ -1,12 +1,12 @@ # Product -thee is one coding agent harness for every model. Open or frontier, hosted or local, from any provider: you use them all from a single place, with the same loop, the same tools, and the same bill. +muxon is one coding agent harness for every model. Open or frontier, hosted or local, from any provider: you use them all from a single place, with the same loop, the same tools, and the same bill. It is a command-line harness. You point it at a repo, describe the change, and it searches, reads, patches, and runs your tests. Which model does the work is a setting, not a different product. Swap providers or model sizes without changing how you work. ## The goal -Build the widest harness, not one tuned for a single model. thee should drive any model from any surface (frontier APIs like Anthropic and OpenAI, aggregators like OpenRouter and DeepInfra, our own inference, and models on your own machine) through one interface. +Build the widest harness, not one tuned for a single model. muxon should drive any model from any surface (frontier APIs like Anthropic and OpenAI, aggregators like OpenRouter and DeepInfra, our own inference, and models on your own machine) through one interface. To make that work, the harness is **optimized for the weakest model it supports**. If the loop holds up on a small open model with a short context window and shaky tool calling, it holds up everywhere. Stronger models do not need a different harness; they just finish faster and fail less. Design for the worst case, and every model benefits: diff --git a/docs/research/01-deepinfra.md b/docs/research/01-deepinfra.md index 2e88b26..6c9a89b 100644 --- a/docs/research/01-deepinfra.md +++ b/docs/research/01-deepinfra.md @@ -15,7 +15,7 @@ | **Is it the cheapest?** | For many **identical open-weight SKUs**, DeepInfra is often **among the lowest** (frequently cited as lowest mainstream host in independent comparisons). **Novita** sometimes undercuts on specific models (~5–15%). **Groq/Cerebras** optimize **latency**, not $/token. **OpenRouter** is passthrough + ~5.5% credit fee, but can route to the cheapest endpoint. | | **Serverless?** | **Yes** for default API: you call HTTPS; they schedule on shared fleet (queue, autoscale). You do **not** manage pods. | | **Stateless for you?** | **Yes** at the API boundary: each request is independent unless **you** send conversation history or use **prompt cache keys / retention**. | -| **Good fit for thee-harness?** | **Strong** as default upstream for **cheap coder models** + **prompt caching** + **flex tier** for background jobs + **fail_fast** multi-provider failover. **Weak** as a standalone “wholesale” business (thin margin, no public reseller tier). | +| **Good fit for muxon?** | **Strong** as default upstream for **cheap coder models** + **prompt caching** + **flex tier** for background jobs + **fail_fast** multi-provider failover. **Weak** as a standalone “wholesale” business (thin margin, no public reseller tier). | --- @@ -112,7 +112,7 @@ From [sandboxes overview](https://docs.deepinfra.com/sandboxes/overview): ### 2.10 Hosted agents -Docs list managed **OpenClaw**, **Hermes-Agent**, etc., billed hourly, pre-wired to DeepInfra inference — relevant as **competitive reference**, not core to thee-harness unless you offer a hosted tier later. +Docs list managed **OpenClaw**, **Hermes-Agent**, etc., billed hourly, pre-wired to DeepInfra inference — relevant as **competitive reference**, not core to muxon unless you offer a hosted tier later. --- @@ -176,7 +176,7 @@ From [data privacy](https://docs.deepinfra.com/account/data-privacy): **Trust center:** SOC 2 / ISO 27001 cited on privacy policy; see [trust.deepinfra.com](https://trust.deepinfra.com/resources). -**Product guidance for thee-harness:** +**Product guidance for muxon:** - Prefer **open models on DeepInfra** for maximum alignment with “we don’t warehouse your code.” - **Disclose** that closed models on the same API may forward to Google/Anthropic. @@ -274,7 +274,7 @@ Official integration docs include **Pi**, **Hermes Agent**, **LangChain**, **Ver --- -## 8. Suggested model tiers for thee-harness (initial) +## 8. Suggested model tiers for muxon (initial) | Role | Example DeepInfra models | Rationale | |------|--------------------------|-----------| diff --git a/docs/research/02-harness-landscape.md b/docs/research/02-harness-landscape.md index 2400c1a..3ffba22 100644 --- a/docs/research/02-harness-landscape.md +++ b/docs/research/02-harness-landscape.md @@ -1,6 +1,6 @@ # Coding-agent harness landscape — research brief -**Purpose:** Map the **agent harness** ecosystem (CLI-first), compare philosophies (frontier-default vs model-agnostic), and extract **design patterns** for **thee-harness**: a frugal, tool-native, ZDR-aligned engineering agent starting as a **CLI**. +**Purpose:** Map the **agent harness** ecosystem (CLI-first), compare philosophies (frontier-default vs model-agnostic), and extract **design patterns** for **muxon**: a frugal, tool-native, ZDR-aligned engineering agent starting as a **CLI**. **Status:** High-level survey (Oct 2026). Star counts and names drift quickly — use linked repos for ground truth. @@ -14,7 +14,7 @@ --- -## 1a. thee-harness product requirements (evaluation lens) +## 1a. muxon product requirements (evaluation lens) Everything in this landscape is filtered against what you described building: @@ -28,7 +28,7 @@ Everything in this landscape is filtered against what you described building: | **Escalation** | Cheap path for 80–90% of steps; larger model only on evidence (tests fail, planner stuck). | | **Cost visibility** | Per-turn and per-task **tokens + $** — rare in the awesome list; core differentiator. | -**What “frontier harnesses” usually optimize for:** subscription UX, long chat history, browser/MCP breadth, multi-agent spectacle — often **one model class** and **high token burn**. thee-harness optimizes **engineering tasks per dollar** with similar **merge/test outcomes**. +**What “frontier harnesses” usually optimize for:** subscription UX, long chat history, browser/MCP breadth, multi-agent spectacle — often **one model class** and **high token burn**. muxon optimizes **engineering tasks per dollar** with similar **merge/test outcomes**. --- @@ -61,7 +61,7 @@ A **harness** is everything **around** the model that makes coding agents reliab **Framework** (LangGraph, CrewAI) = general orchestration. **Coding harness** = opinionated loop optimized for repos. -**Thesis alignment:** Winners for thee-harness are harnesses that treat **model as interchangeable** and **tokens as cost**, not products that assume one frontier model. +**Thesis alignment:** Winners for muxon are harnesses that treat **model as interchangeable** and **tokens as cost**, not products that assume one frontier model. --- @@ -86,7 +86,7 @@ flowchart TB agents --> infra ``` -| Category | Examples | Relevance to thee-harness | +| Category | Examples | Relevance to muxon | |----------|----------|---------------------------| | **Model-agnostic OSS CLI** | Ante, OpenCode, Aider, Goose, Pi, Nanocoder, Codewhale | **Primary design references** | | **Frontier-tuned vendor CLI** | Claude Code, Codex CLI, Cursor CLI, Copilot CLI | UX + safety patterns; weak on cheap-model default | @@ -106,7 +106,7 @@ flowchart TB | **Universal** | BYO key, OpenAI-compatible, local GGUF, catalog.json | **Ante**, Goose, Aider, Pi, OpenCode (general), Codewhale, Nanocoder | | **Hybrid** | Default cheap route + escalation | Codewhale fleets, Reasonix split planner/executor, OpenSquilla ML tier routing | -**thee-harness target:** **Universal + hybrid routing + explicit $/turn metrics** — closer to **Ante** and **Aider** than to **Claude Code**. +**muxon target:** **Universal + hybrid routing + explicit $/turn metrics** — closer to **Ante** and **Aider** than to **Claude Code**. --- @@ -127,7 +127,7 @@ Many harnesses in the awesome list implement a **single loop**: append full tool | **Prompt cache layout** | Stable system + tools prefix | Waveloom + DeepInfra caching | | **Verify gate** | Tests/linter before `finish` | zeroshot, SWE-agent, MartinLoop budgets | | **Bash-only action space** | Fewer tool tokens for capable models | arXiv:2609.20804 finding | -| **Graph / batch tools** | Fewer round-trips | Tura (evaluate for thee-harness) | +| **Graph / batch tools** | Fewer round-trips | Tura (evaluate for muxon) | **Academic / industry research to fold into architecture (see §3b):** @@ -139,9 +139,9 @@ Many harnesses in the awesome list implement a **single loop**: append full tool --- -## 3b. Mapping awesome-list clusters → thee-harness layers +## 3b. Mapping awesome-list clusters → muxon layers -| thee-harness layer | Best list references | +| muxon layer | Best list references | |--------------------|----------------------| | Provider + catalog | Ante, Nanocoder, Continue, OpenCode config | | Edit / apply | Aider, Codewhale | @@ -165,9 +165,9 @@ Many harnesses in the awesome list implement a **single loop**: append full tool - **Providers:** 12+ presets (Anthropic, OpenAI, Gemini, Grok, DeepSeek, OpenRouter, …) + **`~/.ante/catalog.json`** for any OpenAI-compatible endpoint (**DeepInfra fits here**). - **Local:** Embedded **llama.cpp** for **GGUF offline** — no API key. - **Profiles:** `--profile` swaps system prompt, tools, skills, memory — same binary, different agents. -- **Benchmark narrative:** Terminal-Bench style comparisons holding **model constant** across harnesses — exactly the right methodology for thee-harness marketing. +- **Benchmark narrative:** Terminal-Bench style comparisons holding **model constant** across harnesses — exactly the right methodology for muxon marketing. -**Borrow for thee-harness:** +**Borrow for muxon:** - Daemon + headless CLI separation (IDE later without rewriting loop) - `catalog.json` provider registry @@ -341,17 +341,17 @@ Sorted roughly by relevance to **frugal universal CLI**, not just stars. ## 6. Orchestrators (intentionally out of v0 scope) -Tools like **Orca**, **Multica**, **Agent Orchestrator**, **vibe-kanban** run **many** agent CLIs in parallel worktrees. Useful **after** thee-harness is a credible single-session CLI. +Tools like **Orca**, **Multica**, **Agent Orchestrator**, **vibe-kanban** run **many** agent CLIs in parallel worktrees. Useful **after** muxon is a credible single-session CLI. -**Future integration:** Expose JSONL/`serve` like Ante so orchestrators can drive thee-harness as a worker. +**Future integration:** Expose JSONL/`serve` like Ante so orchestrators can drive muxon as a worker. --- ## 7. Harness engineering patterns (from awesome-harness-engineering) -Cross-cutting practices worth baking into thee-harness v1: +Cross-cutting practices worth baking into muxon v1: -| Pattern | Source inspiration | thee-harness action | +| Pattern | Source inspiration | muxon action | |---------|-------------------|---------------------| | **Verification gate** | Harness engineering (OpenAI), SWE-bench culture | No “done” without test/lint command | | **Tool design** | Anthropic “effective tools” | Few tools, strict schemas, small outputs | @@ -376,7 +376,7 @@ Cross-cutting practices worth baking into thee-harness v1: | **Offline / local** | Ante llama.cpp | Ollama path in Nanocoder | | **Model routing** | Codewhale fleets | OpenSquilla tier router | | **Context compaction** | Keen Code, Waveloom | Claude Code compaction ideas | -| **Cost visibility** | (gap in market) | **thee-harness differentiator** | +| **Cost visibility** | (gap in market) | **muxon differentiator** | | **ZDR / no body logs** | OpenCode privacy copy + DeepInfra OSS models | DvalinCode audit chain for teams | | **Regression testing** | opencode-harness labs | SWE-agent tasks | | **Headless CI** | `codewhale exec`, Codex `-p` | Aider scripting | @@ -392,7 +392,7 @@ Cross-cutting practices worth baking into thee-harness v1: | **Local inference** | Supported via providers | **First-class** embedded GGUF | | **Size / deps** | Larger ecosystem (TS/desktop) | Single Rust binary | | **DeepInfra** | Via OpenRouter or custom OpenAI base URL | Via `catalog.json` OpenAI-compatible entry | -| **Best for thee-harness** | LSP + distribution ideas | **Core loop + provider abstraction + serve protocol** | +| **Best for muxon** | LSP + distribution ideas | **Core loop + provider abstraction + serve protocol** | **Positioning line:** “Ante-grade model freedom + Aider-grade edits + OpenCode-grade LSP (roadmap) + **token/$ dashboard** DeepInfra defaults.” @@ -401,7 +401,7 @@ Cross-cutting practices worth baking into thee-harness v1: ## 10. Recommended v0 CLI architecture (synthesis) ``` -thee-harness CLI +muxon CLI ├── commands: chat | run -p "..." | doctor | cost-report ├── loop: plan (optional) → act → verify → escalate? ├── providers: deepinfra (default) | openrouter | ollama | catalog.json @@ -437,7 +437,7 @@ Hold constant across harness comparisons (Ante methodology): Metrics: **success**, **wall time**, **input/output tokens**, **$ (DeepInfra list)**, **escalation rate**. -Run baseline: “fat context + single frontier model” vs thee-harness routing. +Run baseline: “fat context + single frontier model” vs muxon routing. --- diff --git a/docs/research/03-awesome-cli-coding-agents-survey.md b/docs/research/03-awesome-cli-coding-agents-survey.md index 2c9b770..373587c 100644 --- a/docs/research/03-awesome-cli-coding-agents-survey.md +++ b/docs/research/03-awesome-cli-coding-agents-survey.md @@ -3,7 +3,7 @@ **Local mirror:** `docs/research/_sources/awesome-cli-coding-agents` (shallow clone, README dated **2026-10-12**). **Machine parse:** `docs/research/_sources/awesome-cli-coding-agents-parsed.json` (381 linked entries extracted from README bullets). -This document catalogs what the list contains, classifies projects by **fit for thee-harness**, and records **what to steal** vs **what to avoid** (frontier-default loops). +This document catalogs what the list contains, classifies projects by **fit for muxon**, and records **what to steal** vs **what to avoid** (frontier-default loops). --- @@ -17,7 +17,7 @@ This document catalogs what the list contains, classifies projects by **fit for ### 1.1 Top-level sections (entry counts from parse) -| Section | ~Entries | Role relative to thee-harness | +| Section | ~Entries | Role relative to muxon | |---------|----------|-------------------------------| | **Open Source** (terminal agents) | 106 | **Primary** — actual coding harnesses | | **OpenClaw ecosystem** | 12 | Personal-assistant runtime; skills/channels — peripheral | @@ -28,7 +28,7 @@ This document catalogs what the list contains, classifies projects by **fit for --- -## 2. thee-harness goals (evaluation lens) +## 2. muxon goals (evaluation lens) Use this checklist when scoring any project from the list: @@ -51,7 +51,7 @@ quadrantChart title Harness positioning (conceptual) x-axis Low token discipline --> High token discipline y-axis Single-vendor frontier --> Multi-model / OSS - quadrant-1 thee-harness target + quadrant-1 muxon target quadrant-2 Ante, Aider, Codewhale quadrant-3 Claude Code, Codex CLI, Qwen Code quadrant-4 OpenCode general mode @@ -69,7 +69,7 @@ quadrantChart --- -## 4. Tier A — study deeply for thee-harness (curated) +## 4. Tier A — study deeply for muxon (curated) Projects chosen for **overlap with frugal + universal + engineering**, not raw stars. @@ -143,7 +143,7 @@ Large stars but **frontier-shaped** or scope too wide for v0: ## 6. Tier C — orchestration & infrastructure (from list tail) -When thee-harness works, these wrap **your** CLI: +When muxon works, these wrap **your** CLI: - **Session managers:** Orca, Paseo, Agent Orchestrator, taskpods, repomon - **Cost observability:** Claudescope, iris, Tempest (token intelligence) @@ -169,9 +169,9 @@ Grouped for scanning; see README for full URLs and star counts. --- -## 8. Compared to thee-harness — gap analysis +## 8. Compared to muxon — gap analysis -| Capability | Common in list | thee-harness intent | +| Capability | Common in list | muxon intent | |------------|----------------|---------------------| | BYOM / OpenAI-compatible | Many OSS entries | **Default DeepInfra OSS manifest** | | Prompt caching layout | Rare (Waveloom called out) | **First-class** (stable prefix design) | diff --git a/harness/cmd/thee/auth.go b/harness/cmd/muxon/auth.go similarity index 95% rename from harness/cmd/thee/auth.go rename to harness/cmd/muxon/auth.go index 34f02c2..a388c0a 100644 --- a/harness/cmd/thee/auth.go +++ b/harness/cmd/muxon/auth.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) var authCmd = &cobra.Command{ diff --git a/harness/cmd/thee/chat.go b/harness/cmd/muxon/chat.go similarity index 81% rename from harness/cmd/thee/chat.go rename to harness/cmd/muxon/chat.go index 640affd..29cf807 100644 --- a/harness/cmd/thee/chat.go +++ b/harness/cmd/muxon/chat.go @@ -6,11 +6,11 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/router" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/ui/tui" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/ui/tui" ) var chatCmd = &cobra.Command{ @@ -73,7 +73,7 @@ func startChat(cmd *cobra.Command, args []string) error { } func autoConnectID(prov provider.Provider) string { - if prov != nil || os.Getenv("THEE_SCRIPTED_PROVIDER_FILE") != "" { + if prov != nil || os.Getenv("MUXON_SCRIPTED_PROVIDER_FILE") != "" { return "" } return config.LastProvider() @@ -82,7 +82,7 @@ func autoConnectID(prov provider.Provider) string { // loadInteractiveProvider opens the TUI even when the worker key is missing. // The second result is the provider id. The third is a setup hint when the key is absent. func loadInteractiveProvider(manifest *config.Manifest) (provider.Provider, string, string, error) { - if os.Getenv("THEE_SCRIPTED_PROVIDER_FILE") != "" { + if os.Getenv("MUXON_SCRIPTED_PROVIDER_FILE") != "" { p, _, err := loadRunProvider(manifest, "") return p, "", "", err } @@ -96,7 +96,7 @@ func loadInteractiveProvider(manifest *config.Manifest) (provider.Provider, stri if envName == "" { envName = "the provider API key" } - hint := "No provider key yet. Set " + envName + ", or run: thee auth login " + bind.ProviderName + hint := "No provider key yet. Set " + envName + ", or run: muxon auth login " + bind.ProviderName return nil, bind.ProviderName, hint, nil } return p, bind.ProviderName, "", nil diff --git a/harness/cmd/thee/completion.go b/harness/cmd/muxon/completion.go similarity index 100% rename from harness/cmd/thee/completion.go rename to harness/cmd/muxon/completion.go diff --git a/harness/cmd/thee/cost.go b/harness/cmd/muxon/cost.go similarity index 92% rename from harness/cmd/thee/cost.go rename to harness/cmd/muxon/cost.go index e20ce13..5a33b55 100644 --- a/harness/cmd/thee/cost.go +++ b/harness/cmd/muxon/cost.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" ) var costCmd = &cobra.Command{ diff --git a/harness/cmd/thee/doctor.go b/harness/cmd/muxon/doctor.go similarity index 89% rename from harness/cmd/thee/doctor.go rename to harness/cmd/muxon/doctor.go index ce9aacd..c568ca8 100644 --- a/harness/cmd/thee/doctor.go +++ b/harness/cmd/muxon/doctor.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) var doctorCmd = &cobra.Command{ diff --git a/harness/cmd/thee/eval.go b/harness/cmd/muxon/eval.go similarity index 87% rename from harness/cmd/thee/eval.go rename to harness/cmd/muxon/eval.go index 34cec93..93ec4b6 100644 --- a/harness/cmd/thee/eval.go +++ b/harness/cmd/muxon/eval.go @@ -10,9 +10,9 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/eval" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/eval" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) var evalCmd = &cobra.Command{ @@ -56,16 +56,16 @@ var evalRunCmd = &cobra.Command{ ctx, stop := signal.NotifyContext(cmd.Context(), os.Interrupt, syscall.SIGTERM) defer stop() res, err := eval.RunTrial(ctx, prepared.Task, eval.TrialOptions{ - ModelID: modelID, - Provider: prov, - Manifest: manifest, - Trial: 1, - RunID: runID, - Timeout: timeout, - ResultsPath: filepath.Join(outDir, "runs", runID, "results.jsonl"), - TheeVersion: version, - Trusted: trust, - TaskDir: prepared.TaskDir, + ModelID: modelID, + Provider: prov, + Manifest: manifest, + Trial: 1, + RunID: runID, + Timeout: timeout, + ResultsPath: filepath.Join(outDir, "runs", runID, "results.jsonl"), + MuxonVersion: version, + Trusted: trust, + TaskDir: prepared.TaskDir, }) if err != nil && res.Row.TaskID == "" { progress.Error(idx, prepared.Task.ID, modelID, 1, err) @@ -120,14 +120,14 @@ var evalBasketCmd = &cobra.Command{ ctx, stop := signal.NotifyContext(cmd.Context(), os.Interrupt, syscall.SIGTERM) defer stop() header, rows, err := eval.RunBasket(ctx, tasks, models, eval.BasketOptions{ - Trials: trials, - Concurrency: conc, - BudgetUSD: budget, - OutputDir: outDir, - TheeVersion: version, - Trusted: trust, - Manifest: manifest, - Progress: eval.NewTrialProgress(cmd.ErrOrStderr()), + Trials: trials, + Concurrency: conc, + BudgetUSD: budget, + OutputDir: outDir, + MuxonVersion: version, + Trusted: trust, + Manifest: manifest, + Progress: eval.NewTrialProgress(cmd.ErrOrStderr()), ProviderFor: func(modelID string) (provider.Provider, error) { p, _, err := loadRunProvider(manifest, modelID) return p, err @@ -214,7 +214,7 @@ func init() { evalRunCmd.Flags().Bool("trust", false, "Trust workspace for verify") evalRunCmd.Flags().String("model", "", "Worker model id") evalRunCmd.Flags().Int("timeout", 0, "Trial timeout in seconds") - evalRunCmd.Flags().String("out", filepath.Join(".thee", "eval"), "Directory for run results") + evalRunCmd.Flags().String("out", filepath.Join(".muxon", "eval"), "Directory for run results") evalRunCmd.Flags().String("run-id", "", "Run id (default: generated)") evalBasketCmd.Flags().String("matrix", "", "Matrix YAML of model ids and capability overrides") @@ -223,10 +223,10 @@ func init() { evalBasketCmd.Flags().Int("concurrency", 1, "Trials to run at once") evalBasketCmd.Flags().Float64("budget-usd", 0, "Stop scheduling once spent cost reaches this many dollars") evalBasketCmd.Flags().Bool("trust", true, "Trust fixture workspaces") - evalBasketCmd.Flags().String("out", filepath.Join(".thee", "eval"), "Directory for run results") + evalBasketCmd.Flags().String("out", filepath.Join(".muxon", "eval"), "Directory for run results") - evalReportCmd.Flags().String("out", filepath.Join(".thee", "eval"), "Directory for run results") - evalCompareCmd.Flags().String("out", filepath.Join(".thee", "eval"), "Directory for run results") + evalReportCmd.Flags().String("out", filepath.Join(".muxon", "eval"), "Directory for run results") + evalCompareCmd.Flags().String("out", filepath.Join(".muxon", "eval"), "Directory for run results") evalExportCmd.Flags().String("instance", "", "SWE-bench instance id") evalExportCmd.Flags().String("model", "", "model_name_or_path written into the prediction") diff --git a/harness/cmd/thee/eval_test.go b/harness/cmd/muxon/eval_test.go similarity index 83% rename from harness/cmd/thee/eval_test.go rename to harness/cmd/muxon/eval_test.go index 5f2090e..95535fe 100644 --- a/harness/cmd/thee/eval_test.go +++ b/harness/cmd/muxon/eval_test.go @@ -7,14 +7,14 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/eval" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/eval" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" ) func TestEvalRunWritesReward(t *testing.T) { home := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) results := filepath.Join(t.TempDir(), "results.jsonl") task := eval.Task{ ID: "fix-test-001", diff --git a/harness/cmd/thee/flags.go b/harness/cmd/muxon/flags.go similarity index 100% rename from harness/cmd/thee/flags.go rename to harness/cmd/muxon/flags.go diff --git a/harness/cmd/thee/gc.go b/harness/cmd/muxon/gc.go similarity index 88% rename from harness/cmd/thee/gc.go rename to harness/cmd/muxon/gc.go index 571dd18..7399b5e 100644 --- a/harness/cmd/thee/gc.go +++ b/harness/cmd/muxon/gc.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/session" ) var gcCmd = &cobra.Command{ diff --git a/harness/cmd/thee/main.go b/harness/cmd/muxon/main.go similarity index 74% rename from harness/cmd/thee/main.go rename to harness/cmd/muxon/main.go index 6a7f29e..c73e67e 100644 --- a/harness/cmd/thee/main.go +++ b/harness/cmd/muxon/main.go @@ -1,4 +1,4 @@ -// Command thee is the thee harness CLI entrypoint. +// Command muxon is the muxon harness CLI entrypoint. package main import ( diff --git a/harness/cmd/thee/models.go b/harness/cmd/muxon/models.go similarity index 95% rename from harness/cmd/thee/models.go rename to harness/cmd/muxon/models.go index 2c99b78..04a2075 100644 --- a/harness/cmd/thee/models.go +++ b/harness/cmd/muxon/models.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/router" ) var modelsCmd = &cobra.Command{ diff --git a/harness/cmd/thee/models_test.go b/harness/cmd/muxon/models_test.go similarity index 83% rename from harness/cmd/thee/models_test.go rename to harness/cmd/muxon/models_test.go index 37f359f..d4f4ca2 100644 --- a/harness/cmd/thee/models_test.go +++ b/harness/cmd/muxon/models_test.go @@ -5,11 +5,11 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) func TestModelsList(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) var buf bytes.Buffer modelsListCmd.SetOut(&buf) modelsListCmd.SetErr(&buf) diff --git a/harness/cmd/thee/resume.go b/harness/cmd/muxon/resume.go similarity index 82% rename from harness/cmd/thee/resume.go rename to harness/cmd/muxon/resume.go index 3d867e5..31ef260 100644 --- a/harness/cmd/thee/resume.go +++ b/harness/cmd/muxon/resume.go @@ -8,10 +8,10 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/session" - "github.com/PLACEHOLDER/thee/harness/internal/ui/tui" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/ui/tui" ) var resumeCmd = &cobra.Command{ @@ -32,13 +32,13 @@ var resumeCmd = &cobra.Command{ return err } } - tracePath := filepath.Join(dir, ".thee", "sessions", id, "trace.jsonl") + tracePath := filepath.Join(dir, ".muxon", "sessions", id, "trace.jsonl") major, err := session.MajorSchema(tracePath) if err != nil { return err } if major > 1 { - return exitError{code: 3, msg: fmt.Sprintf("trace schema %d needs a newer thee", major)} + return exitError{code: 3, msg: fmt.Sprintf("trace schema %d needs a newer muxon", major)} } manifest, err := config.LoadMergedManifest() if err != nil { @@ -70,7 +70,7 @@ var resumeCmd = &cobra.Command{ } func newestSession(workspace string) (string, error) { - dir := filepath.Join(workspace, ".thee", "sessions") + dir := filepath.Join(workspace, ".muxon", "sessions") entries, err := os.ReadDir(dir) if err != nil { return "", err diff --git a/harness/cmd/thee/root.go b/harness/cmd/muxon/root.go similarity index 80% rename from harness/cmd/thee/root.go rename to harness/cmd/muxon/root.go index c5a83bd..83d390d 100644 --- a/harness/cmd/thee/root.go +++ b/harness/cmd/muxon/root.go @@ -6,12 +6,12 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) var rootCmd = &cobra.Command{ - Use: "thee", - Short: "thee coding agent harness", + Use: "muxon", + Short: "muxon coding agent harness", SilenceUsage: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { wd, err := os.Getwd() diff --git a/harness/cmd/thee/run.go b/harness/cmd/muxon/run.go similarity index 86% rename from harness/cmd/thee/run.go rename to harness/cmd/muxon/run.go index c35ede9..5875460 100644 --- a/harness/cmd/thee/run.go +++ b/harness/cmd/muxon/run.go @@ -10,15 +10,15 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/eval" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/router" - "github.com/PLACEHOLDER/thee/harness/internal/session" - "github.com/PLACEHOLDER/thee/harness/internal/ui/headless" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/eval" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/ui/headless" ) type exitError struct { @@ -35,7 +35,7 @@ var runCmd = &cobra.Command{ setupLogging() prompt, _ := cmd.Flags().GetString("prompt") trust, _ := cmd.Flags().GetBool("trust") - if os.Getenv("THEE_TRUST") == "1" { + if os.Getenv("MUXON_TRUST") == "1" { trust = true } verifyCmd, _ := cmd.Flags().GetString("verify-cmd") @@ -100,7 +100,7 @@ var runCmd = &cobra.Command{ Goal: prompt, Workspace: dir, Trusted: trust, - TheeVersion: version, + MuxonVersion: version, Provider: prov, Manifest: manifest, SessionID: sid, @@ -144,7 +144,7 @@ func init() { } func loadRunProvider(manifest *config.Manifest, modelOverride string) (provider.Provider, string, error) { - if path := os.Getenv("THEE_SCRIPTED_PROVIDER_FILE"); path != "" { + if path := os.Getenv("MUXON_SCRIPTED_PROVIDER_FILE"); path != "" { p, err := scripted.FromEnv() if err != nil { return nil, "", err @@ -182,7 +182,7 @@ func appendEvalRow(workspace, taskPath, modelID string, out director.Outcome, st if out.State == director.StateDone { reward = 1 } - return eval.AppendResult(filepath.Join(workspace, ".thee", "eval", "results.jsonl"), eval.ResultRow{ + return eval.AppendResult(filepath.Join(workspace, ".muxon", "eval", "results.jsonl"), eval.ResultRow{ TaskID: task.ID, Trial: 1, Reward: reward, diff --git a/harness/cmd/thee/serve.go b/harness/cmd/muxon/serve.go similarity index 100% rename from harness/cmd/thee/serve.go rename to harness/cmd/muxon/serve.go diff --git a/harness/cmd/thee/trace.go b/harness/cmd/muxon/trace.go similarity index 84% rename from harness/cmd/thee/trace.go rename to harness/cmd/muxon/trace.go index 9cd40e9..b440e4d 100644 --- a/harness/cmd/thee/trace.go +++ b/harness/cmd/muxon/trace.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/replay" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/replay" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" ) var traceCmd = &cobra.Command{ @@ -76,7 +76,7 @@ var traceExportCmd = &cobra.Command{ if dest == "" { return fmt.Errorf("missing --output") } - src := filepath.Join(dir, ".thee", "sessions", args[0], "trace.jsonl") + src := filepath.Join(dir, ".muxon", "sessions", args[0], "trace.jsonl") return observability.ExportRedacted(src, dest) }, } diff --git a/harness/cmd/thee/trust.go b/harness/cmd/muxon/trust.go similarity index 91% rename from harness/cmd/thee/trust.go rename to harness/cmd/muxon/trust.go index a13839a..a87b2d4 100644 --- a/harness/cmd/thee/trust.go +++ b/harness/cmd/muxon/trust.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) var trustCmd = &cobra.Command{ @@ -41,7 +41,7 @@ var trustAddCmd = &cobra.Command{ if err != nil { return err } - s.AddRootWithConfigHash(root, security.HashTheeToml(root)) + s.AddRootWithConfigHash(root, security.HashMuxonToml(root)) return security.SaveTrust(s) }, } diff --git a/harness/cmd/thee/trust_test.go b/harness/cmd/muxon/trust_test.go similarity index 89% rename from harness/cmd/thee/trust_test.go rename to harness/cmd/muxon/trust_test.go index 95f15c2..ac05134 100644 --- a/harness/cmd/thee/trust_test.go +++ b/harness/cmd/muxon/trust_test.go @@ -6,12 +6,12 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) func TestTrustAddListRm(t *testing.T) { home := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) root := filepath.Join(home, "ws") if err := os.MkdirAll(root, 0o755); err != nil { t.Fatal(err) diff --git a/harness/cmd/thee/version.go b/harness/cmd/muxon/version.go similarity index 100% rename from harness/cmd/thee/version.go rename to harness/cmd/muxon/version.go diff --git a/harness/cmd/thee/version_test.go b/harness/cmd/muxon/version_test.go similarity index 100% rename from harness/cmd/thee/version_test.go rename to harness/cmd/muxon/version_test.go diff --git a/harness/go.mod b/harness/go.mod index ba69539..6dc3adf 100644 --- a/harness/go.mod +++ b/harness/go.mod @@ -1,4 +1,4 @@ -module github.com/PLACEHOLDER/thee/harness +module github.com/PLACEHOLDER/muxon/harness go 1.26.0 diff --git a/harness/internal/assets/prompts/compact/rules.tmpl b/harness/internal/assets/prompts/compact/rules.tmpl index 010b13b..8ec3664 100644 --- a/harness/internal/assets/prompts/compact/rules.tmpl +++ b/harness/internal/assets/prompts/compact/rules.tmpl @@ -1,4 +1,4 @@ -You are thee, a coding agent in the user's workspace. +You are muxon, a coding agent in the user's workspace. Answer the user in plain text. Call a tool only to read or change the workspace. A greeting, or a question you can answer from the conversation, is text and no tool. diff --git a/harness/internal/assets/prompts/standard/rules.tmpl b/harness/internal/assets/prompts/standard/rules.tmpl index 7d253f9..a35b03c 100644 --- a/harness/internal/assets/prompts/standard/rules.tmpl +++ b/harness/internal/assets/prompts/standard/rules.tmpl @@ -1,4 +1,4 @@ -You are thee, a coding agent in the user's workspace — the user can ask questions or request changes. +You are muxon, a coding agent in the user's workspace — the user can ask questions or request changes. Answer the user in plain text — a reply is complete when it needs no tool. Call a tool only to read or change the workspace — tools are how edits happen, not how you talk. A greeting, or a question you can answer from the conversation, is text and no tool — do not search the repo for small talk. diff --git a/harness/internal/config/catalog.go b/harness/internal/config/catalog.go index 0f32784..442edb8 100644 --- a/harness/internal/config/catalog.go +++ b/harness/internal/config/catalog.go @@ -13,9 +13,9 @@ type Catalog struct { Models []ModelDef `json:"models"` } -// CatalogPath returns the catalog file path from user config or THEE_HOME default. +// CatalogPath returns the catalog file path from user config or MUXON_HOME default. func CatalogPath() (string, error) { - home, err := TheeHome() + home, err := MuxonHome() if err != nil { return "", err } diff --git a/harness/internal/config/catalog_test.go b/harness/internal/config/catalog_test.go index 856cf66..624922a 100644 --- a/harness/internal/config/catalog_test.go +++ b/harness/internal/config/catalog_test.go @@ -8,7 +8,7 @@ import ( func TestCatalogOverridesProviderBaseURL(t *testing.T) { home := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) catPath := filepath.Join(home, "catalog.json") cat := `{ "providers": { diff --git a/harness/internal/config/config.go b/harness/internal/config/config.go index 5d7a3bc..f06fd04 100644 --- a/harness/internal/config/config.go +++ b/harness/internal/config/config.go @@ -25,11 +25,11 @@ func LoadEffective(workspaceRoot string) (EffectiveConfig, error) { Permission: "edit", Baseline: true, } - home, err := TheeHome() + home, err := MuxonHome() if err == nil { mergeFile(&out, filepath.Join(home, "config.toml"), false) } - mergeFile(&out, filepath.Join(workspaceRoot, "thee.toml"), true) + mergeFile(&out, filepath.Join(workspaceRoot, "muxon.toml"), true) out.Permission = capPermission(out.Permission, out.MaxPermission) return out, nil } @@ -101,7 +101,7 @@ func normalizePerm(p string) string { // VerifyCommandFromEnv returns CLI/env override. func VerifyCommandFromEnv() string { - if v := os.Getenv("THEE_VERIFY_CMD"); v != "" { + if v := os.Getenv("MUXON_VERIFY_CMD"); v != "" { return v } return "" diff --git a/harness/internal/config/config_test.go b/harness/internal/config/config_test.go index 7cd5d1e..88c502d 100644 --- a/harness/internal/config/config_test.go +++ b/harness/internal/config/config_test.go @@ -9,7 +9,7 @@ import ( func TestProjectCannotExceedMaxPermission(t *testing.T) { home := t.TempDir() ws := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) if err := os.WriteFile(filepath.Join(home, "config.toml"), []byte(` [security] max_permission = "edit" @@ -17,7 +17,7 @@ permission = "edit" `), 0o644); err != nil { t.Fatal(err) } - if err := os.WriteFile(filepath.Join(ws, "thee.toml"), []byte(` + if err := os.WriteFile(filepath.Join(ws, "muxon.toml"), []byte(` [security] permission = "full" `), 0o644); err != nil { diff --git a/harness/internal/config/credential_test.go b/harness/internal/config/credential_test.go index fcda768..a942261 100644 --- a/harness/internal/config/credential_test.go +++ b/harness/internal/config/credential_test.go @@ -5,16 +5,16 @@ import ( ) func TestResolveAPIKeyMissing(t *testing.T) { - t.Setenv("THEE_TEST_KEY", "") - _, err := ResolveAPIKey("THEE_TEST_KEY") + t.Setenv("MUXON_TEST_KEY", "") + _, err := ResolveAPIKey("MUXON_TEST_KEY") if err == nil { t.Fatal("expected error") } } func TestResolveAPIKeyPresent(t *testing.T) { - t.Setenv("THEE_TEST_KEY", "secret") - v, err := ResolveAPIKey("THEE_TEST_KEY") + t.Setenv("MUXON_TEST_KEY", "secret") + v, err := ResolveAPIKey("MUXON_TEST_KEY") if err != nil { t.Fatal(err) } diff --git a/harness/internal/config/dotenv_test.go b/harness/internal/config/dotenv_test.go index bb6c635..b8977d7 100644 --- a/harness/internal/config/dotenv_test.go +++ b/harness/internal/config/dotenv_test.go @@ -51,11 +51,11 @@ func writeFile(t *testing.T, path, body string) { } func TestLoadDotEnvWalksUpToRepoRoot(t *testing.T) { - unsetForTest(t, "THEE_DOTENV_A", "THEE_DOTENV_B") + unsetForTest(t, "MUXON_DOTENV_A", "MUXON_DOTENV_B") root := t.TempDir() writeFile(t, filepath.Join(root, ".git", "HEAD"), "ref: refs/heads/main\n") - writeFile(t, filepath.Join(root, ".env"), "THEE_DOTENV_A=from-file\nTHEE_DOTENV_B=from-file\n") - t.Setenv("THEE_DOTENV_B", "from-env") + writeFile(t, filepath.Join(root, ".env"), "MUXON_DOTENV_A=from-file\nMUXON_DOTENV_B=from-file\n") + t.Setenv("MUXON_DOTENV_B", "from-env") sub := filepath.Join(root, "harness", "cmd") if err := os.MkdirAll(sub, 0o750); err != nil { t.Fatal(err) @@ -67,17 +67,17 @@ func TestLoadDotEnvWalksUpToRepoRoot(t *testing.T) { if path != filepath.Join(root, ".env") { t.Errorf("LoadDotEnv: got path %q", path) } - if got := os.Getenv("THEE_DOTENV_A"); got != "from-file" { - t.Errorf("THEE_DOTENV_A: got %q, want from-file", got) + if got := os.Getenv("MUXON_DOTENV_A"); got != "from-file" { + t.Errorf("MUXON_DOTENV_A: got %q, want from-file", got) } - if got := os.Getenv("THEE_DOTENV_B"); got != "from-env" { - t.Errorf("THEE_DOTENV_B: got %q, want from-env", got) + if got := os.Getenv("MUXON_DOTENV_B"); got != "from-env" { + t.Errorf("MUXON_DOTENV_B: got %q, want from-env", got) } } func TestFindDotEnvStopsAtRepoRoot(t *testing.T) { outer := t.TempDir() - writeFile(t, filepath.Join(outer, ".env"), "THEE_DOTENV_OUTER=1\n") + writeFile(t, filepath.Join(outer, ".env"), "MUXON_DOTENV_OUTER=1\n") repo := filepath.Join(outer, "repo") writeFile(t, filepath.Join(repo, ".git"), "gitdir: elsewhere\n") path, err := FindDotEnv(repo) diff --git a/harness/internal/config/keyring.go b/harness/internal/config/keyring.go index b94983d..40cadeb 100644 --- a/harness/internal/config/keyring.go +++ b/harness/internal/config/keyring.go @@ -8,7 +8,7 @@ import ( "github.com/zalando/go-keyring" ) -const keyringService = "thee" +const keyringService = "muxon" // SecretStore saves provider keys outside the repo and traces. type SecretStore interface { diff --git a/harness/internal/config/keyring_test.go b/harness/internal/config/keyring_test.go index a3352fe..c284511 100644 --- a/harness/internal/config/keyring_test.go +++ b/harness/internal/config/keyring_test.go @@ -13,15 +13,15 @@ func TestKeyringAfterEnv(t *testing.T) { if err := StoreProviderKey("deepinfra", "secret-value"); err != nil { t.Fatal(err) } - got, err := ResolveProviderKey("MISSING_THEE_KEY", "deepinfra") + got, err := ResolveProviderKey("MISSING_MUXON_KEY", "deepinfra") if err != nil { t.Fatal(err) } if got != "secret-value" { t.Fatal(got) } - t.Setenv("MISSING_THEE_KEY", "from-env") - got, err = ResolveProviderKey("MISSING_THEE_KEY", "deepinfra") + t.Setenv("MISSING_MUXON_KEY", "from-env") + got, err = ResolveProviderKey("MISSING_MUXON_KEY", "deepinfra") if err != nil { t.Fatal(err) } @@ -39,7 +39,7 @@ func TestResolveProviderKeyOpenCodeAuth(t *testing.T) { if err := os.WriteFile(path, body, 0o600); err != nil { t.Fatal(err) } - t.Setenv("THEE_OPENCODE_AUTH", path) + t.Setenv("MUXON_OPENCODE_AUTH", path) t.Setenv("OPENCODE_API_KEY", "") got, err := ResolveProviderKey("OPENCODE_API_KEY", "opencode-go") if err != nil { diff --git a/harness/internal/config/manifest.go b/harness/internal/config/manifest.go index 9d74ca8..e46da9a 100644 --- a/harness/internal/config/manifest.go +++ b/harness/internal/config/manifest.go @@ -5,7 +5,7 @@ import ( "gopkg.in/yaml.v3" - "github.com/PLACEHOLDER/thee/harness/internal/assets" + "github.com/PLACEHOLDER/muxon/harness/internal/assets" ) // Manifest is the parsed models.yaml document. diff --git a/harness/internal/config/opencode_auth.go b/harness/internal/config/opencode_auth.go index 53e72c1..78466ca 100644 --- a/harness/internal/config/opencode_auth.go +++ b/harness/internal/config/opencode_auth.go @@ -12,9 +12,9 @@ type openCodeCredential struct { } // OpenCodeAuthPath is the OpenCode credential file. -// THEE_OPENCODE_AUTH overrides the default path. +// MUXON_OPENCODE_AUTH overrides the default path. func OpenCodeAuthPath() string { - if p := os.Getenv("THEE_OPENCODE_AUTH"); p != "" { + if p := os.Getenv("MUXON_OPENCODE_AUTH"); p != "" { return p } if xdg := os.Getenv("XDG_DATA_HOME"); xdg != "" { diff --git a/harness/internal/config/paths.go b/harness/internal/config/paths.go index bc2bd79..32dd92b 100644 --- a/harness/internal/config/paths.go +++ b/harness/internal/config/paths.go @@ -5,11 +5,11 @@ import ( "path/filepath" ) -const defaultHome = ".thee" +const defaultHome = ".muxon" -// TheeHome returns THEE_HOME or ~/.thee. -func TheeHome() (string, error) { - if v := os.Getenv("THEE_HOME"); v != "" { +// MuxonHome returns MUXON_HOME or ~/.muxon. +func MuxonHome() (string, error) { + if v := os.Getenv("MUXON_HOME"); v != "" { return v, nil } home, err := os.UserHomeDir() diff --git a/harness/internal/config/state.go b/harness/internal/config/state.go index e0638bf..316aeb2 100644 --- a/harness/internal/config/state.go +++ b/harness/internal/config/state.go @@ -12,7 +12,7 @@ type uiState struct { } func statePath() (string, error) { - home, err := TheeHome() + home, err := MuxonHome() if err != nil { return "", err } diff --git a/harness/internal/config/state_test.go b/harness/internal/config/state_test.go index 302d4ae..6f2f5e8 100644 --- a/harness/internal/config/state_test.go +++ b/harness/internal/config/state_test.go @@ -3,7 +3,7 @@ package config import "testing" func TestSaveLastModelSurvivesProviderSave(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) if err := SaveLastProvider("opencode-go"); err != nil { t.Fatal(err) } diff --git a/harness/internal/config/userconfig.go b/harness/internal/config/userconfig.go index 860b10b..8fcd0e7 100644 --- a/harness/internal/config/userconfig.go +++ b/harness/internal/config/userconfig.go @@ -7,7 +7,7 @@ import ( "github.com/BurntSushi/toml" ) -// UserConfig is ~/.thee/config.toml (user-level only). +// UserConfig is ~/.muxon/config.toml (user-level only). type UserConfig struct { Providers struct { Catalog string `toml:"catalog"` @@ -22,7 +22,7 @@ type UserConfig struct { // LoadUserConfig reads user config when present. func LoadUserConfig() (UserConfig, error) { - home, err := TheeHome() + home, err := MuxonHome() if err != nil { return UserConfig{}, err } diff --git a/harness/internal/contextengine/build.go b/harness/internal/contextengine/build.go index d2990bd..ca810d0 100644 --- a/harness/internal/contextengine/build.go +++ b/harness/internal/contextengine/build.go @@ -6,10 +6,10 @@ import ( "fmt" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/index" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/index" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const wrapUpNudge = "You are near the tool round limit. Finish the current change, then call finish with a summary of what is done and what remains." @@ -55,7 +55,7 @@ func BuildTurn(in TurnInput) TurnOutput { } rendered, err := RenderVariant(variant, in.ToolSpecs, in.Parallel) if err != nil { - rendered = RenderedPrompt{SystemRules: "You are thee.", ToolCatalog: "Tools available."} + rendered = RenderedPrompt{SystemRules: "You are muxon.", ToolCatalog: "Tools available."} } instructions, _ := LoadProjectInstructions(in.WorkspaceRoot, in.Trusted) diff --git a/harness/internal/contextengine/build_test.go b/harness/internal/contextengine/build_test.go index 0243086..a36c4ad 100644 --- a/harness/internal/contextengine/build_test.go +++ b/harness/internal/contextengine/build_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func TestPrefixHashStableAcrossPhase(t *testing.T) { diff --git a/harness/internal/contextengine/compact.go b/harness/internal/contextengine/compact.go index 98f15b7..6cee082 100644 --- a/harness/internal/contextengine/compact.go +++ b/harness/internal/contextengine/compact.go @@ -3,7 +3,7 @@ package contextengine import ( "strings" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) const verifyFailureMarker = "verify failed" diff --git a/harness/internal/contextengine/compact_test.go b/harness/internal/contextengine/compact_test.go index 87d6ae3..646ff6d 100644 --- a/harness/internal/contextengine/compact_test.go +++ b/harness/internal/contextengine/compact_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestCompactDropsTokensKeepsVerifyFailure(t *testing.T) { diff --git a/harness/internal/contextengine/instructions.go b/harness/internal/contextengine/instructions.go index e60cf80..329b066 100644 --- a/harness/internal/contextengine/instructions.go +++ b/harness/internal/contextengine/instructions.go @@ -4,8 +4,8 @@ import ( "os" "path/filepath" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) var projectInstructionFiles = []string{ @@ -18,7 +18,7 @@ var projectInstructionFiles = []string{ // LoadProjectInstructions loads root project guidance per spec precedence. func LoadProjectInstructions(workspaceRoot string, trusted bool) (string, error) { var parts []string - home, err := config.TheeHome() + home, err := config.MuxonHome() if err == nil { user := filepath.Join(home, "AGENTS.md") if b, err := os.ReadFile(user); err == nil { diff --git a/harness/internal/contextengine/messages.go b/harness/internal/contextengine/messages.go index 7db360e..0b90a73 100644 --- a/harness/internal/contextengine/messages.go +++ b/harness/internal/contextengine/messages.go @@ -1,7 +1,7 @@ package contextengine import ( - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // AppendToolResult adds a tool result user message. diff --git a/harness/internal/contextengine/minimal_test.go b/harness/internal/contextengine/minimal_test.go index 4930b00..964b502 100644 --- a/harness/internal/contextengine/minimal_test.go +++ b/harness/internal/contextengine/minimal_test.go @@ -3,7 +3,7 @@ package contextengine import ( "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func TestBuildTurnIncludesToolsWhenNative(t *testing.T) { diff --git a/harness/internal/contextengine/render.go b/harness/internal/contextengine/render.go index 5865809..43da066 100644 --- a/harness/internal/contextengine/render.go +++ b/harness/internal/contextengine/render.go @@ -5,8 +5,8 @@ import ( "io/fs" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/assets" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/assets" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const ( diff --git a/harness/internal/contextengine/render_test.go b/harness/internal/contextengine/render_test.go index 55a8ea4..c250fbe 100644 --- a/harness/internal/contextengine/render_test.go +++ b/harness/internal/contextengine/render_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func TestCompactSystemGoldenHash(t *testing.T) { diff --git a/harness/internal/contextengine/tokens.go b/harness/internal/contextengine/tokens.go index a96c325..a704f8b 100644 --- a/harness/internal/contextengine/tokens.go +++ b/harness/internal/contextengine/tokens.go @@ -1,7 +1,7 @@ package contextengine import ( - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) const approxCharsPerToken = 3.5 diff --git a/harness/internal/contextengine/tokens_test.go b/harness/internal/contextengine/tokens_test.go index 4e80ac6..12d6faf 100644 --- a/harness/internal/contextengine/tokens_test.go +++ b/harness/internal/contextengine/tokens_test.go @@ -3,7 +3,7 @@ package contextengine import ( "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestEstimatorCorrectionRatio(t *testing.T) { diff --git a/harness/internal/db/db.go b/harness/internal/db/db.go index 1477733..799e94b 100644 --- a/harness/internal/db/db.go +++ b/harness/internal/db/db.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" _ "modernc.org/sqlite" ) @@ -24,7 +24,7 @@ const schemaVersion = 2 // File is the database path for a workspace. func File(workspace string) string { - return filepath.Join(workspace, ".thee", "thee.sqlite") + return filepath.Join(workspace, ".muxon", "muxon.sqlite") } // DB is the open workspace database. diff --git a/harness/internal/director/budget.go b/harness/internal/director/budget.go index caa0040..51c5610 100644 --- a/harness/internal/director/budget.go +++ b/harness/internal/director/budget.go @@ -1,12 +1,12 @@ package director -import "github.com/PLACEHOLDER/thee/harness/internal/config" +import "github.com/PLACEHOLDER/muxon/harness/internal/config" // DefaultInteractiveMaxToolRounds is the per-goal cap for an interactive // session when neither config nor a flag sets one. const DefaultInteractiveMaxToolRounds = 100 -// SessionCaps are per-goal limits from thee.toml defaults. +// SessionCaps are per-goal limits from muxon.toml defaults. type SessionCaps struct { MaxToolRounds int MaxVerifyAttempts int diff --git a/harness/internal/director/checkpoint.go b/harness/internal/director/checkpoint.go index 2b43d85..184d729 100644 --- a/harness/internal/director/checkpoint.go +++ b/harness/internal/director/checkpoint.go @@ -13,7 +13,7 @@ type CheckpointStore struct { seq int } -// NewCheckpointStore creates a store under .thee/sessions. +// NewCheckpointStore creates a store under .muxon/sessions. func NewCheckpointStore(root, sessionID string) *CheckpointStore { return &CheckpointStore{root: root, sessionID: sessionID} } @@ -25,7 +25,7 @@ func (c *CheckpointStore) Save(relPath string) error { return err } c.seq++ - destDir := filepath.Join(c.root, ".thee", "sessions", c.sessionID, "snapshots", "cp", itoa(c.seq)) + destDir := filepath.Join(c.root, ".muxon", "sessions", c.sessionID, "snapshots", "cp", itoa(c.seq)) if err := os.MkdirAll(destDir, 0o755); err != nil { return err } @@ -36,7 +36,7 @@ func (c *CheckpointStore) Save(relPath string) error { // RestoreNewest copies the newest on-disk snapshot for relPath back into the workspace. func RestoreNewest(root, sessionID, relPath string) error { base := filepath.Base(relPath) - cpRoot := filepath.Join(root, ".thee", "sessions", sessionID, "snapshots", "cp") + cpRoot := filepath.Join(root, ".muxon", "sessions", sessionID, "snapshots", "cp") entries, err := os.ReadDir(cpRoot) if err != nil { return err @@ -79,7 +79,7 @@ func (c *CheckpointStore) RestoreLatest(relPath string) error { return os.ErrNotExist } dest := filepath.Join(c.root, relPath) - src := filepath.Join(c.root, ".thee", "sessions", c.sessionID, "snapshots", "cp", itoa(c.seq), filepath.Base(relPath)) + src := filepath.Join(c.root, ".muxon", "sessions", c.sessionID, "snapshots", "cp", itoa(c.seq), filepath.Base(relPath)) return copyFile(src, dest) } diff --git a/harness/internal/director/director.go b/harness/internal/director/director.go index a101308..217c3c0 100644 --- a/harness/internal/director/director.go +++ b/harness/internal/director/director.go @@ -10,19 +10,19 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/contextengine" - "github.com/PLACEHOLDER/thee/harness/internal/db" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/openai" - "github.com/PLACEHOLDER/thee/harness/internal/router" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/toolcall" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/tools/impl" - "github.com/PLACEHOLDER/thee/harness/internal/verifier" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/contextengine" + "github.com/PLACEHOLDER/muxon/harness/internal/db" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/openai" + "github.com/PLACEHOLDER/muxon/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/toolcall" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools/impl" + "github.com/PLACEHOLDER/muxon/harness/internal/verifier" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) const defaultSessionID = "test-session" @@ -40,7 +40,7 @@ type Config struct { Goal string Workspace string Trusted bool - TheeVersion string + MuxonVersion string Provider provider.Provider Manifest *config.Manifest MaxRounds int @@ -129,7 +129,7 @@ func Run(ctx context.Context, cfg Config) (Outcome, error) { if sid == "" { sid = defaultSessionID } - traceDir := filepath.Join(ws.Root(), ".thee", "sessions", sid) + traceDir := filepath.Join(ws.Root(), ".muxon", "sessions", sid) if err := os.MkdirAll(traceDir, 0o755); err != nil { return Outcome{State: StateFailed, Reason: "setup", ExitCode: 3}, err } @@ -202,7 +202,7 @@ func Run(ctx context.Context, cfg Config) (Outcome, error) { return o } - emit(observability.SessionStartEvent(cfg.TheeVersion, ws.Root())) + emit(observability.SessionStartEvent(cfg.MuxonVersion, ws.Root())) _ = workspace.EnsureSessionBase(ws.Root(), sid) class := router.ClassifyGoal(ctx, cfg.Goal, manifest, routerProv) diff --git a/harness/internal/director/director_batch_test.go b/harness/internal/director/director_batch_test.go index ebf1e31..ff40047 100644 --- a/harness/internal/director/director_batch_test.go +++ b/harness/internal/director/director_batch_test.go @@ -8,10 +8,10 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func manifestWithParallel(t *testing.T, on bool) *config.Manifest { @@ -36,12 +36,12 @@ func readCall(id, path string) provider.ToolCall { func runBatch(t *testing.T, parallel bool, allTools bool, script []provider.Response) (Outcome, string) { t.Helper() - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") trace := filepath.Join(t.TempDir(), "t.jsonl") out, err := Run(context.Background(), Config{ Goal: "look around", Workspace: dir, Trusted: true, Interactive: true, - RegisterAllTools: allTools, TheeVersion: "t", + RegisterAllTools: allTools, MuxonVersion: "t", Provider: scripted.New(script), Manifest: manifestWithParallel(t, parallel), TracePath: trace, diff --git a/harness/internal/director/director_cancel_test.go b/harness/internal/director/director_cancel_test.go index 7cd8c8a..eddae8a 100644 --- a/harness/internal/director/director_cancel_test.go +++ b/harness/internal/director/director_cancel_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) type blockingProvider struct{} @@ -25,17 +25,17 @@ func (blockingProvider) Stream(ctx context.Context, req provider.Request) (provi } func TestDirectorCancelExit130(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) ctx, cancel := context.WithCancel(context.Background()) cancel() manifest, _ := config.LoadEmbeddedManifest() out, err := Run(ctx, Config{ - Goal: "fix", - Workspace: t.TempDir(), - Trusted: true, - TheeVersion: "test", - Provider: blockingProvider{}, - Manifest: manifest, + Goal: "fix", + Workspace: t.TempDir(), + Trusted: true, + MuxonVersion: "test", + Provider: blockingProvider{}, + Manifest: manifest, }) if err != nil { t.Fatal(err) diff --git a/harness/internal/director/director_db_test.go b/harness/internal/director/director_db_test.go index 246d027..98a5dc4 100644 --- a/harness/internal/director/director_db_test.go +++ b/harness/internal/director/director_db_test.go @@ -8,17 +8,17 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/db" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/db" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" _ "modernc.org/sqlite" ) func TestRejectedPatchIsStored(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -33,7 +33,7 @@ func TestRejectedPatchIsStored(t *testing.T) { }}, }) out, err := Run(context.Background(), Config{ - Goal: "fix the sum", Workspace: dir, Trusted: true, Interactive: true, TheeVersion: "t", + Goal: "fix the sum", Workspace: dir, Trusted: true, Interactive: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{ { ToolCalls: []provider.ToolCall{{ID: "call_patch", Name: "patch", Arguments: patchArgs}}, @@ -87,14 +87,14 @@ func TestRejectedPatchIsStored(t *testing.T) { } func TestToolParseFailureIsLogged(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { t.Fatal(err) } out, err := Run(context.Background(), Config{ - Goal: "fix the sum", Workspace: dir, Trusted: true, TheeVersion: "t", + Goal: "fix the sum", Workspace: dir, Trusted: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{ {Text: "I will describe the fix instead of calling a tool."}, {Text: "still no tool call"}, @@ -143,7 +143,7 @@ func TestToolParseFailureIsLogged(t *testing.T) { } func TestToolRoundsExhaustedIsLogged(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -155,7 +155,7 @@ func TestToolRoundsExhaustedIsLogged(t *testing.T) { FinishReason: "tool_calls", } out, err := Run(context.Background(), Config{ - Goal: "explain sum.go", Workspace: dir, Trusted: true, TheeVersion: "t", + Goal: "explain sum.go", Workspace: dir, Trusted: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{read, read, read}), Manifest: manifest, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), @@ -172,7 +172,7 @@ func TestToolRoundsExhaustedIsLogged(t *testing.T) { } func TestVerifyFailureIsLogged(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -192,7 +192,7 @@ func TestVerifyFailureIsLogged(t *testing.T) { FinishReason: "tool_calls", } out, err := Run(context.Background(), Config{ - Goal: "fix the sum", Workspace: dir, Trusted: true, TheeVersion: "t", + Goal: "fix the sum", Workspace: dir, Trusted: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{patch, finish, finish}), Manifest: manifest, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), diff --git a/harness/internal/director/director_escalate_test.go b/harness/internal/director/director_escalate_test.go index 87dda77..7fe7dd8 100644 --- a/harness/internal/director/director_escalate_test.go +++ b/harness/internal/director/director_escalate_test.go @@ -8,14 +8,14 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestDirectorVerifyFailEmitsEscalate(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") wrongPatch, _ := json.Marshal(map[string]interface{}{ "path": "sum.go", "format": "search_replace", @@ -41,14 +41,14 @@ func TestDirectorVerifyFailEmitsEscalate(t *testing.T) { tracePath := filepath.Join(t.TempDir(), "trace.jsonl") manifest := escalateTestManifest() _, err := Run(context.Background(), Config{ - Goal: "fix test", - Workspace: dir, - Trusted: true, - TheeVersion: "test", - Provider: scripted.New(script), - Manifest: manifest, - TracePath: tracePath, - MaxRounds: 30, + Goal: "fix test", + Workspace: dir, + Trusted: true, + MuxonVersion: "test", + Provider: scripted.New(script), + Manifest: manifest, + TracePath: tracePath, + MaxRounds: 30, Caps: SessionCaps{ MaxToolRounds: 30, MaxVerifyAttempts: 6, diff --git a/harness/internal/director/director_goal_test.go b/harness/internal/director/director_goal_test.go index df4da30..0c59513 100644 --- a/harness/internal/director/director_goal_test.go +++ b/harness/internal/director/director_goal_test.go @@ -7,25 +7,25 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestDirectorQuestionGoalClassification(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") tracePath := filepath.Join(t.TempDir(), "trace.jsonl") manifest, _ := config.LoadEmbeddedManifest() _, err := Run(context.Background(), Config{ - Goal: "where is sum configured?", - Workspace: dir, - Trusted: true, - TheeVersion: "test", - Provider: scripted.New(M0ScriptedResponses()), - Manifest: manifest, - TracePath: tracePath, - MaxRounds: 5, + Goal: "where is sum configured?", + Workspace: dir, + Trusted: true, + MuxonVersion: "test", + Provider: scripted.New(M0ScriptedResponses()), + Manifest: manifest, + TracePath: tracePath, + MaxRounds: 5, }) if err != nil { t.Fatal(err) diff --git a/harness/internal/director/director_interactive_test.go b/harness/internal/director/director_interactive_test.go index 512b7d3..2cd8c66 100644 --- a/harness/internal/director/director_interactive_test.go +++ b/harness/internal/director/director_interactive_test.go @@ -9,16 +9,16 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func runInteractive(t *testing.T, script []provider.Response, ask func(context.Context, string, []string) (string, error)) (Outcome, []string) { t.Helper() - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -26,7 +26,7 @@ func runInteractive(t *testing.T, script []provider.Response, ask func(context.C } var said []string out, err := Run(context.Background(), Config{ - Goal: "hello", Workspace: dir, Trusted: true, Interactive: true, RegisterAllTools: true, TheeVersion: "t", + Goal: "hello", Workspace: dir, Trusted: true, Interactive: true, RegisterAllTools: true, MuxonVersion: "t", Provider: scripted.New(script), Manifest: manifest, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), MaxRounds: 10, @@ -40,14 +40,14 @@ func runInteractive(t *testing.T, script []provider.Response, ask func(context.C } func TestProviderErrorIsReturned(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { t.Fatal(err) } out, err := Run(context.Background(), Config{ - Goal: "hello", Workspace: dir, Trusted: true, Interactive: true, TheeVersion: "t", + Goal: "hello", Workspace: dir, Trusted: true, Interactive: true, MuxonVersion: "t", Provider: scripted.New(nil), Manifest: manifest, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), }) @@ -84,7 +84,7 @@ func TestFollowUpKeepsPriorTurn(t *testing.T) { func runInteractiveGoal(t *testing.T, goal string, history []provider.Message, script []provider.Response) (Outcome, []string) { t.Helper() - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -92,7 +92,7 @@ func runInteractiveGoal(t *testing.T, goal string, history []provider.Message, s } var said []string out, err := Run(context.Background(), Config{ - Goal: goal, Workspace: dir, Trusted: true, Interactive: true, RegisterAllTools: true, TheeVersion: "t", + Goal: goal, Workspace: dir, Trusted: true, Interactive: true, RegisterAllTools: true, MuxonVersion: "t", Provider: scripted.New(script), Manifest: manifest, History: history, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), MaxRounds: 10, @@ -149,7 +149,7 @@ func TestRejectedToolCallStaysPaired(t *testing.T) { } func TestToolRunErrorKeepsResult(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -158,7 +158,7 @@ func TestToolRunErrorKeepsResult(t *testing.T) { readArgs, _ := json.Marshal(map[string]any{"path": "sum.go", "start_line": 1, "end_line": 5}) out, err := Run(context.Background(), Config{ Goal: "read the file", Workspace: dir, Trusted: true, Interactive: true, - RegisterAllTools: true, TheeVersion: "t", + RegisterAllTools: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{{ ToolCalls: []provider.ToolCall{{ID: "call_read", Name: "read", Arguments: readArgs}}, FinishReason: "tool_calls", diff --git a/harness/internal/director/director_replay_test.go b/harness/internal/director/director_replay_test.go index f4984cd..65f91b3 100644 --- a/harness/internal/director/director_replay_test.go +++ b/harness/internal/director/director_replay_test.go @@ -6,14 +6,14 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestDirectorReplayVerifyFailThenPass(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") wrongPatch, _ := json.Marshal(map[string]interface{}{ "path": "sum.go", "format": "search_replace", @@ -35,14 +35,14 @@ func TestDirectorReplayVerifyFailThenPass(t *testing.T) { t.Fatal(err) } out, err := Run(context.Background(), Config{ - Goal: "fix test", - Workspace: dir, - Trusted: true, - TheeVersion: "test", - Provider: scripted.New(script), - Manifest: manifest, - TracePath: filepath.Join(t.TempDir(), "trace.jsonl"), - MaxRounds: 30, + Goal: "fix test", + Workspace: dir, + Trusted: true, + MuxonVersion: "test", + Provider: scripted.New(script), + Manifest: manifest, + TracePath: filepath.Join(t.TempDir(), "trace.jsonl"), + MaxRounds: 30, }) if err != nil { t.Fatal(err) diff --git a/harness/internal/director/director_rounds_test.go b/harness/internal/director/director_rounds_test.go index 3f604a1..b5f7f5c 100644 --- a/harness/internal/director/director_rounds_test.go +++ b/harness/internal/director/director_rounds_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestResolveCapsInteractiveDefault(t *testing.T) { @@ -72,7 +72,7 @@ func TestHeadlessFailsAtToolRoundLimit(t *testing.T) { func runRoundLimit(t *testing.T, interactive bool, summary string) (Outcome, []string) { t.Helper() - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -88,7 +88,7 @@ func runRoundLimit(t *testing.T, interactive bool, summary string) (Outcome, []s var said []string out, err := Run(context.Background(), Config{ Goal: "explain sum.go", Workspace: dir, Trusted: true, Interactive: interactive, - RegisterAllTools: true, TheeVersion: "t", + RegisterAllTools: true, MuxonVersion: "t", Provider: scripted.New([]provider.Response{ read("1"), read("2"), read("3"), {Text: summary}, diff --git a/harness/internal/director/director_test.go b/harness/internal/director/director_test.go index 1cf3d37..0fa1585 100644 --- a/harness/internal/director/director_test.go +++ b/harness/internal/director/director_test.go @@ -6,14 +6,14 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" - "github.com/PLACEHOLDER/thee/harness/internal/verifier" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/verifier" ) func TestDirectorScriptedFixture(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -21,13 +21,13 @@ func TestDirectorScriptedFixture(t *testing.T) { } trace := filepath.Join(t.TempDir(), "trace.jsonl") out, err := Run(context.Background(), Config{ - Goal: "fix the failing test", - Workspace: dir, - Trusted: true, - TheeVersion: "test", - Provider: scripted.New(M0ScriptedResponses()), - Manifest: manifest, - TracePath: trace, + Goal: "fix the failing test", + Workspace: dir, + Trusted: true, + MuxonVersion: "test", + Provider: scripted.New(M0ScriptedResponses()), + Manifest: manifest, + TracePath: trace, }) if err != nil { t.Fatal(err) diff --git a/harness/internal/director/director_untrusted_test.go b/harness/internal/director/director_untrusted_test.go index 8dc37ed..023b942 100644 --- a/harness/internal/director/director_untrusted_test.go +++ b/harness/internal/director/director_untrusted_test.go @@ -4,13 +4,13 @@ import ( "context" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestUntrustedHeadlessExit3(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, _ := config.LoadEmbeddedManifest() out, err := Run(context.Background(), Config{ diff --git a/harness/internal/director/loop.go b/harness/internal/director/loop.go index 851aaea..c032193 100644 --- a/harness/internal/director/loop.go +++ b/harness/internal/director/loop.go @@ -7,8 +7,8 @@ import ( "fmt" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) const ( diff --git a/harness/internal/director/loop_test.go b/harness/internal/director/loop_test.go index efc7493..d12b5e3 100644 --- a/harness/internal/director/loop_test.go +++ b/harness/internal/director/loop_test.go @@ -3,7 +3,7 @@ package director import ( "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestRepeatedCallAfterEarlierWrite(t *testing.T) { diff --git a/harness/internal/director/record.go b/harness/internal/director/record.go index b688690..26f0ca2 100644 --- a/harness/internal/director/record.go +++ b/harness/internal/director/record.go @@ -6,10 +6,10 @@ import ( "strings" "unicode/utf8" - "github.com/PLACEHOLDER/thee/harness/internal/contextengine" - "github.com/PLACEHOLDER/thee/harness/internal/db" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/contextengine" + "github.com/PLACEHOLDER/muxon/harness/internal/db" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func warnDB(err error) { diff --git a/harness/internal/director/repair.go b/harness/internal/director/repair.go index 0cc5fe7..1827f3c 100644 --- a/harness/internal/director/repair.go +++ b/harness/internal/director/repair.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/toolcall" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/toolcall" ) func repairableToolErr(err error) bool { diff --git a/harness/internal/director/repair_test.go b/harness/internal/director/repair_test.go index 85e32db..262cffe 100644 --- a/harness/internal/director/repair_test.go +++ b/harness/internal/director/repair_test.go @@ -6,14 +6,14 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestRepairThenSucceeds(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") readArgs, _ := json.Marshal(map[string]interface{}{"path": "sum.go", "start_line": 1, "end_line": 10}) patchArgs, _ := json.Marshal(map[string]interface{}{ @@ -29,7 +29,7 @@ func TestRepairThenSucceeds(t *testing.T) { } manifest, _ := config.LoadEmbeddedManifest() out, err := Run(context.Background(), Config{ - Goal: "fix", Workspace: dir, Trusted: true, TheeVersion: "t", + Goal: "fix", Workspace: dir, Trusted: true, MuxonVersion: "t", Provider: scripted.New(script), Manifest: manifest, TracePath: filepath.Join(t.TempDir(), "t.jsonl"), MaxRounds: 20, }) diff --git a/harness/internal/director/states.go b/harness/internal/director/states.go index c90db9a..81351c6 100644 --- a/harness/internal/director/states.go +++ b/harness/internal/director/states.go @@ -1,7 +1,7 @@ package director import ( - "github.com/PLACEHOLDER/thee/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" ) const ( diff --git a/harness/internal/e2e/m0_test.go b/harness/internal/e2e/m0_test.go index 4c9bd2e..d08ae47 100644 --- a/harness/internal/e2e/m0_test.go +++ b/harness/internal/e2e/m0_test.go @@ -9,13 +9,13 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestM0RunE2E(t *testing.T) { home := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) fixtureDir := testutil.CopyFixture(t, "go-failing-test") scriptPath := filepath.Join(home, "script.json") b, err := json.Marshal(director.M0ScriptedResponses()) @@ -25,12 +25,12 @@ func TestM0RunE2E(t *testing.T) { if err := os.WriteFile(scriptPath, b, 0o644); err != nil { t.Fatal(err) } - bin := buildThee(t) + bin := buildMuxon(t) cmd := exec.Command(bin, "run", "-p", "fix the failing test", "--trust", "--directory", fixtureDir) cmd.Dir = fixtureDir cmd.Env = append(os.Environ(), - "THEE_HOME="+home, - "THEE_SCRIPTED_PROVIDER_FILE="+scriptPath, + "MUXON_HOME="+home, + "MUXON_SCRIPTED_PROVIDER_FILE="+scriptPath, ) out, err := cmd.CombinedOutput() if err != nil { @@ -51,7 +51,7 @@ func TestM0RunE2E(t *testing.T) { } func latestTrace(fixtureDir string) (string, error) { - sessionsDir := filepath.Join(fixtureDir, ".thee", "sessions") + sessionsDir := filepath.Join(fixtureDir, ".muxon", "sessions") entries, err := os.ReadDir(sessionsDir) if err != nil { return "", err @@ -68,17 +68,17 @@ func latestTrace(fixtureDir string) (string, error) { return filepath.Join(sessionsDir, latest, "trace.jsonl"), nil } -func buildThee(t *testing.T) string { +func buildMuxon(t *testing.T) string { dir := t.TempDir() - name := "thee" + name := "muxon" if runtime.GOOS == "windows" { name += ".exe" } out := filepath.Join(dir, name) cmd := exec.Command("go", "build", "-o", out, ".") - cmd.Dir = filepath.Join("..", "..", "cmd", "thee") + cmd.Dir = filepath.Join("..", "..", "cmd", "muxon") if outCombined, err := cmd.CombinedOutput(); err != nil { - t.Fatalf("build thee: %v\n%s", err, outCombined) + t.Fatalf("build muxon: %v\n%s", err, outCombined) } return out } diff --git a/harness/internal/eval/basket.go b/harness/internal/eval/basket.go index a20d31d..09424ac 100644 --- a/harness/internal/eval/basket.go +++ b/harness/internal/eval/basket.go @@ -12,9 +12,9 @@ import ( "gopkg.in/yaml.v3" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/session" ) // ModelSpec is one row of the model matrix. @@ -35,7 +35,7 @@ type BasketOptions struct { Concurrency int BudgetUSD float64 OutputDir string - TheeVersion string + MuxonVersion string Trusted bool Dataset string DatasetVersion string @@ -153,7 +153,7 @@ func normalizeBasket(opt BasketOptions) BasketOptions { opt.Concurrency = 1 } if opt.Dataset == "" { - opt.Dataset = "thee-basket" + opt.Dataset = "muxon-basket" } if opt.DatasetVersion == "" { opt.DatasetVersion = "1" @@ -162,7 +162,7 @@ func normalizeBasket(opt BasketOptions) BasketOptions { opt.RunID = session.NewID() } if opt.OutputDir == "" { - opt.OutputDir = filepath.Join(".thee", "eval") + opt.OutputDir = filepath.Join(".muxon", "eval") } return opt } @@ -288,7 +288,7 @@ func (s *basketState) runJob(ctx context.Context, j basketJob, remain float64) ( Overrides: j.model.Overrides, Timeout: time.Duration(j.task.Task.TimeoutS) * time.Second, SessionBudgetUSD: remain, - TheeVersion: s.opt.TheeVersion, + MuxonVersion: s.opt.MuxonVersion, Trusted: s.opt.Trusted, TaskDir: j.task.TaskDir, HarnessSHA: s.header.HarnessSHA, diff --git a/harness/internal/eval/copy.go b/harness/internal/eval/copy.go index cd4825b..3d7bc48 100644 --- a/harness/internal/eval/copy.go +++ b/harness/internal/eval/copy.go @@ -69,8 +69,8 @@ func removePaths(paths []string) { func gitBaseline(dir string) { cmds := [][]string{ {"git", "init"}, - {"git", "config", "user.email", "eval@thee.local"}, - {"git", "config", "user.name", "thee eval"}, + {"git", "config", "user.email", "eval@muxon.local"}, + {"git", "config", "user.name", "muxon eval"}, {"git", "add", "-A"}, {"git", "commit", "-m", "baseline", "--allow-empty"}, } diff --git a/harness/internal/eval/runner.go b/harness/internal/eval/runner.go index 79099a5..7977702 100644 --- a/harness/internal/eval/runner.go +++ b/harness/internal/eval/runner.go @@ -13,13 +13,13 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/router" - "github.com/PLACEHOLDER/thee/harness/internal/session" - "github.com/PLACEHOLDER/thee/harness/internal/subproc" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/subproc" ) // TrialOptions controls one eval trial. @@ -33,7 +33,7 @@ type TrialOptions struct { Timeout time.Duration SessionBudgetUSD float64 ResultsPath string - TheeVersion string + MuxonVersion string Trusted bool TaskDir string FixtureRoots []string @@ -182,7 +182,7 @@ func trialConfig(task Task, opt TrialOptions, manifest *config.Manifest, work st Goal: goal, Workspace: work, Trusted: opt.Trusted, - TheeVersion: opt.TheeVersion, + MuxonVersion: opt.MuxonVersion, Provider: opt.Provider, Manifest: manifest, SessionID: session.NewID(), @@ -209,7 +209,7 @@ func finishTrial(res TrialResult, opt TrialOptions) (TrialResult, error) { } func prepareWorkspace(task Task, opt TrialOptions) (string, error) { - work, err := os.MkdirTemp("", "thee-eval-"+task.ID+"-") + work, err := os.MkdirTemp("", "muxon-eval-"+task.ID+"-") if err != nil { return "", err } diff --git a/harness/internal/eval/runner_test.go b/harness/internal/eval/runner_test.go index f3a65ae..7ae1f08 100644 --- a/harness/internal/eval/runner_test.go +++ b/harness/internal/eval/runner_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" ) func TestHiddenCheckOverridesDirectorDone(t *testing.T) { diff --git a/harness/internal/eval/swebench_test.go b/harness/internal/eval/swebench_test.go index 628368e..3ecc125 100644 --- a/harness/internal/eval/swebench_test.go +++ b/harness/internal/eval/swebench_test.go @@ -21,8 +21,8 @@ func TestExportSWEBenchPatch(t *testing.T) { } } run("init") - run("config", "user.email", "eval@thee.local") - run("config", "user.name", "thee eval") + run("config", "user.email", "eval@muxon.local") + run("config", "user.name", "muxon eval") if err := os.WriteFile(filepath.Join(dir, "a.go"), []byte("package p\n"), 0o644); err != nil { t.Fatal(err) } @@ -32,7 +32,7 @@ func TestExportSWEBenchPatch(t *testing.T) { t.Fatal(err) } out := filepath.Join(t.TempDir(), "predictions.jsonl") - if err := ExportSWEBench(dir, "repo__repo-1", "thee+qwen3-32b", out); err != nil { + if err := ExportSWEBench(dir, "repo__repo-1", "muxon+qwen3-32b", out); err != nil { t.Fatal(err) } b, err := os.ReadFile(out) diff --git a/harness/internal/index/repomap.go b/harness/internal/index/repomap.go index 3618e58..f980a97 100644 --- a/harness/internal/index/repomap.go +++ b/harness/internal/index/repomap.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) // Symbol is one indexed name in a file. @@ -29,7 +29,7 @@ type RepoMap struct { // CachePath returns the workspace cache file path. func CachePath(workspaceRoot string) string { - return filepath.Join(workspaceRoot, ".thee", "index", "repomap.json") + return filepath.Join(workspaceRoot, ".muxon", "index", "repomap.json") } // LoadOrBuild returns ranked symbols, using JSON cache when fresh enough. diff --git a/harness/internal/index/repomap_test.go b/harness/internal/index/repomap_test.go index 9771e2c..4161e16 100644 --- a/harness/internal/index/repomap_test.go +++ b/harness/internal/index/repomap_test.go @@ -4,8 +4,8 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestRepoMapRanksTestSymbol(t *testing.T) { diff --git a/harness/internal/observability/cost_read.go b/harness/internal/observability/cost_read.go index 83f8590..a2a0242 100644 --- a/harness/internal/observability/cost_read.go +++ b/harness/internal/observability/cost_read.go @@ -25,9 +25,9 @@ type SessionCostSummary struct { WellFormedPatches int } -// ReadLatestSessionCost reads the newest session trace under workspace/.thee/sessions. +// ReadLatestSessionCost reads the newest session trace under workspace/.muxon/sessions. func ReadLatestSessionCost(workspaceRoot string) (SessionCostSummary, string, error) { - sessionsDir := filepath.Join(workspaceRoot, ".thee", "sessions") + sessionsDir := filepath.Join(workspaceRoot, ".muxon", "sessions") entries, err := os.ReadDir(sessionsDir) if err != nil { return SessionCostSummary{}, "", err diff --git a/harness/internal/observability/events.go b/harness/internal/observability/events.go index 0ce3786..dddfbb6 100644 --- a/harness/internal/observability/events.go +++ b/harness/internal/observability/events.go @@ -1,7 +1,7 @@ package observability import ( - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) const SchemaVersion = "1.0.0" @@ -11,7 +11,7 @@ type Event struct { Type string `json:"type"` SchemaVersion string `json:"schema_version,omitempty"` - TheeVersion string `json:"thee_version,omitempty"` + MuxonVersion string `json:"muxon_version,omitempty"` Workspace string `json:"workspace,omitempty"` Outcome string `json:"outcome,omitempty"` @@ -70,11 +70,11 @@ func (t *UsageTotals) Add(u provider.Usage, costUSD float64) { } } -func SessionStartEvent(theeVersion, workspace string) Event { +func SessionStartEvent(muxonVersion, workspace string) Event { return Event{ Type: "session.start", SchemaVersion: SchemaVersion, - TheeVersion: theeVersion, + MuxonVersion: muxonVersion, Workspace: workspace, } } diff --git a/harness/internal/observability/export.go b/harness/internal/observability/export.go index 0d78440..a19a420 100644 --- a/harness/internal/observability/export.go +++ b/harness/internal/observability/export.go @@ -4,7 +4,7 @@ import ( "bufio" "os" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) // ExportRedacted copies a trace, redacting secret-like strings. diff --git a/harness/internal/provider/openai/client.go b/harness/internal/provider/openai/client.go index 52e398d..81f3dd5 100644 --- a/harness/internal/provider/openai/client.go +++ b/harness/internal/provider/openai/client.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // Client is an OpenAI-compatible chat completions client. diff --git a/harness/internal/provider/openai/client_test.go b/harness/internal/provider/openai/client_test.go index e1eaa35..16f8ba8 100644 --- a/harness/internal/provider/openai/client_test.go +++ b/harness/internal/provider/openai/client_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestStreamRecordedSSE(t *testing.T) { diff --git a/harness/internal/provider/openai/constraint_test.go b/harness/internal/provider/openai/constraint_test.go index a3b26b1..fc3f571 100644 --- a/harness/internal/provider/openai/constraint_test.go +++ b/harness/internal/provider/openai/constraint_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/toolcall" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/toolcall" ) func TestConstraintDowngradeRetry(t *testing.T) { diff --git a/harness/internal/provider/openai/responses.go b/harness/internal/provider/openai/responses.go index f5915f3..3db47b6 100644 --- a/harness/internal/provider/openai/responses.go +++ b/harness/internal/provider/openai/responses.go @@ -9,7 +9,7 @@ import ( "net/http" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) const openCodeGoResponsesURL = "https://opencode.ai/inference/go/v1/responses" diff --git a/harness/internal/provider/openai/responses_test.go b/harness/internal/provider/openai/responses_test.go index 55a8b0d..9222986 100644 --- a/harness/internal/provider/openai/responses_test.go +++ b/harness/internal/provider/openai/responses_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestResponsesEndpointForOpenCodeGo(t *testing.T) { diff --git a/harness/internal/provider/openai/stream.go b/harness/internal/provider/openai/stream.go index 6feb31e..7083d32 100644 --- a/harness/internal/provider/openai/stream.go +++ b/harness/internal/provider/openai/stream.go @@ -7,7 +7,7 @@ import ( "io" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) type sseStream struct { diff --git a/harness/internal/provider/replay/replay.go b/harness/internal/provider/replay/replay.go index 600b77a..1c936d1 100644 --- a/harness/internal/provider/replay/replay.go +++ b/harness/internal/provider/replay/replay.go @@ -9,7 +9,7 @@ import ( "os" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // Step is one recorded model turn. diff --git a/harness/internal/provider/replay/replay_test.go b/harness/internal/provider/replay/replay_test.go index 2bf7899..157f8c5 100644 --- a/harness/internal/provider/replay/replay_test.go +++ b/harness/internal/provider/replay/replay_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestHashMismatchDiff(t *testing.T) { diff --git a/harness/internal/provider/scripted/scripted.go b/harness/internal/provider/scripted/scripted.go index e96c64f..31fd436 100644 --- a/harness/internal/provider/scripted/scripted.go +++ b/harness/internal/provider/scripted/scripted.go @@ -7,7 +7,7 @@ import ( "os" "sync" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // Provider returns queued responses in order. @@ -22,11 +22,11 @@ func New(responses []provider.Response) *Provider { return &Provider{queue: responses} } -// FromEnv loads responses from THEE_SCRIPTED_PROVIDER_FILE (JSON array). +// FromEnv loads responses from MUXON_SCRIPTED_PROVIDER_FILE (JSON array). func FromEnv() (*Provider, error) { - path := os.Getenv("THEE_SCRIPTED_PROVIDER_FILE") + path := os.Getenv("MUXON_SCRIPTED_PROVIDER_FILE") if path == "" { - return nil, fmt.Errorf("THEE_SCRIPTED_PROVIDER_FILE not set") + return nil, fmt.Errorf("MUXON_SCRIPTED_PROVIDER_FILE not set") } data, err := os.ReadFile(path) if err != nil { diff --git a/harness/internal/provider/scripted/scripted_test.go b/harness/internal/provider/scripted/scripted_test.go index e86ea51..c52a48f 100644 --- a/harness/internal/provider/scripted/scripted_test.go +++ b/harness/internal/provider/scripted/scripted_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestScriptedDrainsInOrder(t *testing.T) { diff --git a/harness/internal/router/bind.go b/harness/internal/router/bind.go index 753f4ab..0fe72a1 100644 --- a/harness/internal/router/bind.go +++ b/harness/internal/router/bind.go @@ -3,7 +3,7 @@ package router import ( "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) // Binding is a resolved role with model and provider metadata. diff --git a/harness/internal/router/classify.go b/harness/internal/router/classify.go index e5e9a34..69af86a 100644 --- a/harness/internal/router/classify.go +++ b/harness/internal/router/classify.go @@ -5,8 +5,8 @@ import ( "encoding/json" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // Classification is the router task label for a goal. diff --git a/harness/internal/router/cost.go b/harness/internal/router/cost.go index 8e5381c..58fee70 100644 --- a/harness/internal/router/cost.go +++ b/harness/internal/router/cost.go @@ -1,8 +1,8 @@ package router import ( - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // RatesFromModel extracts list prices from a model definition. diff --git a/harness/internal/router/cost_test.go b/harness/internal/router/cost_test.go index 82bad86..3a7c4e6 100644 --- a/harness/internal/router/cost_test.go +++ b/harness/internal/router/cost_test.go @@ -3,7 +3,7 @@ package router import ( "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func TestCachedTokensPricedSeparately(t *testing.T) { diff --git a/harness/internal/router/probe.go b/harness/internal/router/probe.go index ae9164c..4670b19 100644 --- a/harness/internal/router/probe.go +++ b/harness/internal/router/probe.go @@ -10,7 +10,7 @@ import ( "os" "path/filepath" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) // ProbeSnippet is a suggested capability block. Thresholds are still open in the model-router doc. diff --git a/harness/internal/router/probe_test.go b/harness/internal/router/probe_test.go index b9e98df..770a61c 100644 --- a/harness/internal/router/probe_test.go +++ b/harness/internal/router/probe_test.go @@ -20,7 +20,7 @@ func TestProbeChatWritesAcceptedSettings(t *testing.T) { if sn.StructuredOutput != "json_schema" || sn.ToolProtocol != "native" { t.Fatalf("%+v", sn) } - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) if err := WriteSnippet(sn); err != nil { t.Fatal(err) } diff --git a/harness/internal/router/provider.go b/harness/internal/router/provider.go index 5e61939..16069ea 100644 --- a/harness/internal/router/provider.go +++ b/harness/internal/router/provider.go @@ -4,10 +4,10 @@ import ( "fmt" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/openai" - "github.com/PLACEHOLDER/thee/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/openai" + "github.com/PLACEHOLDER/muxon/harness/internal/session" ) // NewProvider builds a provider client for a binding. diff --git a/harness/internal/router/provider_test.go b/harness/internal/router/provider_test.go index fd80f04..1214385 100644 --- a/harness/internal/router/provider_test.go +++ b/harness/internal/router/provider_test.go @@ -8,9 +8,9 @@ import ( "net/http/httptest" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/openai" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/openai" ) func TestWorkerProviderSendsBoundModelID(t *testing.T) { diff --git a/harness/internal/security/ignore.go b/harness/internal/security/ignore.go index c3a2cb7..918ac78 100644 --- a/harness/internal/security/ignore.go +++ b/harness/internal/security/ignore.go @@ -21,16 +21,16 @@ var bulkDirNames = map[string]bool{ // IgnoreRules applies gitignore-style rules and bulk-dir skipping. type IgnoreRules struct { git *ignore.GitIgnore - thee *ignore.GitIgnore + muxon *ignore.GitIgnore root string policy *Policy } -// LoadIgnore loads .gitignore and .theeignore from the workspace root. +// LoadIgnore loads .gitignore and .muxonignore from the workspace root. func LoadIgnore(root string, policy *Policy) (*IgnoreRules, error) { r := &IgnoreRules{root: root, policy: policy} r.git = compileIgnoreFile(filepath.Join(root, ".gitignore")) - r.thee = compileIgnoreFile(filepath.Join(root, ".theeignore")) + r.muxon = compileIgnoreFile(filepath.Join(root, ".muxonignore")) return r, nil } @@ -73,7 +73,7 @@ func (r *IgnoreRules) matchesIgnore(rel string) bool { if r.git != nil && r.git.MatchesPath(rel) { return true } - if r.thee != nil && r.thee.MatchesPath(rel) { + if r.muxon != nil && r.muxon.MatchesPath(rel) { return true } return false diff --git a/harness/internal/security/policy.go b/harness/internal/security/policy.go index 30fdab6..7da94ba 100644 --- a/harness/internal/security/policy.go +++ b/harness/internal/security/policy.go @@ -18,7 +18,7 @@ func NewPolicy() *Policy { return &Policy{} } -// WithDenyRead adds user-configured deny patterns (from thee.toml later). +// WithDenyRead adds user-configured deny patterns (from muxon.toml later). func (p *Policy) WithDenyRead(patterns []string) *Policy { p.extraDeny = append(p.extraDeny, patterns...) return p diff --git a/harness/internal/security/trust.go b/harness/internal/security/trust.go index d640975..bf81c87 100644 --- a/harness/internal/security/trust.go +++ b/harness/internal/security/trust.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) // TrustStore lists trusted workspace roots. @@ -17,9 +17,9 @@ type TrustStore struct { ConfigHashes map[string]string `json:"config_hashes,omitempty"` } -// LoadTrust reads ~/.thee/trust.json. +// LoadTrust reads ~/.muxon/trust.json. func LoadTrust() (TrustStore, error) { - home, err := config.TheeHome() + home, err := config.MuxonHome() if err != nil { return TrustStore{}, err } @@ -40,7 +40,7 @@ func LoadTrust() (TrustStore, error) { // SaveTrust writes the trust store. func SaveTrust(s TrustStore) error { - home, err := config.TheeHome() + home, err := config.MuxonHome() if err != nil { return err } @@ -65,7 +65,7 @@ func (s *TrustStore) AddRoot(root string) { s.Roots = append(s.Roots, root) } -// AddRootWithConfigHash records trust and optional thee.toml hash. +// AddRootWithConfigHash records trust and optional muxon.toml hash. func (s *TrustStore) AddRootWithConfigHash(root, hash string) { s.AddRoot(root) if hash == "" { @@ -77,9 +77,9 @@ func (s *TrustStore) AddRootWithConfigHash(root, hash string) { s.ConfigHashes[filepath.Clean(root)] = hash } -// HashTheeToml returns sha256 of project thee.toml when present. -func HashTheeToml(workspaceRoot string) string { - path := filepath.Join(workspaceRoot, "thee.toml") +// HashMuxonToml returns sha256 of project muxon.toml when present. +func HashMuxonToml(workspaceRoot string) string { + path := filepath.Join(workspaceRoot, "muxon.toml") b, err := os.ReadFile(path) if err != nil { return "" @@ -102,7 +102,7 @@ func (s *TrustStore) RemoveRoot(root string) { // IsTrustedRoot reports whether the workspace is trusted for verify. func IsTrustedRoot(workspaceRoot string) bool { - if os.Getenv("THEE_TRUST") == "1" { + if os.Getenv("MUXON_TRUST") == "1" { return true } s, err := LoadTrust() diff --git a/harness/internal/security/trust_test.go b/harness/internal/security/trust_test.go index f346d2b..c286a87 100644 --- a/harness/internal/security/trust_test.go +++ b/harness/internal/security/trust_test.go @@ -7,7 +7,7 @@ import ( func TestTrustAddList(t *testing.T) { home := t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) dir := filepath.Join(home, "proj") s := TrustStore{} s.AddRoot(dir) diff --git a/harness/internal/session/gc.go b/harness/internal/session/gc.go index f784843..99d6eab 100644 --- a/harness/internal/session/gc.go +++ b/harness/internal/session/gc.go @@ -10,7 +10,7 @@ import ( const gcAge = 14 * 24 * time.Hour -// GC removes session directories older than 14 days and shadow refs under refs/thee/sessions. +// GC removes session directories older than 14 days and shadow refs under refs/muxon/sessions. func GC(workspace string, now time.Time) (int, error) { n, err := gcSessions(workspace, now, gcAge) if err != nil { @@ -21,7 +21,7 @@ func GC(workspace string, now time.Time) (int, error) { } func gcSessions(workspace string, now time.Time, olderThan time.Duration) (int, error) { - dir := filepath.Join(workspace, ".thee", "sessions") + dir := filepath.Join(workspace, ".muxon", "sessions") entries, err := os.ReadDir(dir) if err != nil { if os.IsNotExist(err) { @@ -53,7 +53,7 @@ func gcShadowRefs(workspace string) (int, error) { if _, err := os.Stat(filepath.Join(workspace, ".git")); err != nil { return 0, nil } - cmd := exec.Command("git", "for-each-ref", "--format=%(refname)", "refs/thee/sessions") + cmd := exec.Command("git", "for-each-ref", "--format=%(refname)", "refs/muxon/sessions") cmd.Dir = workspace out, err := cmd.Output() if err != nil { @@ -62,7 +62,7 @@ func gcShadowRefs(workspace string) (int, error) { removed := 0 for _, line := range strings.Split(strings.TrimSpace(string(out)), "\n") { ref := strings.TrimSpace(line) - if ref == "" || !strings.HasPrefix(ref, "refs/thee/sessions/") { + if ref == "" || !strings.HasPrefix(ref, "refs/muxon/sessions/") { continue } del := exec.Command("git", "update-ref", "-d", ref) diff --git a/harness/internal/session/gc_test.go b/harness/internal/session/gc_test.go index e25efb1..84aa8f1 100644 --- a/harness/internal/session/gc_test.go +++ b/harness/internal/session/gc_test.go @@ -9,7 +9,7 @@ import ( func TestGCRemovesOldSessions(t *testing.T) { root := t.TempDir() - old := filepath.Join(root, ".thee", "sessions", "old") + old := filepath.Join(root, ".muxon", "sessions", "old") if err := os.MkdirAll(old, 0o755); err != nil { t.Fatal(err) } @@ -17,7 +17,7 @@ func TestGCRemovesOldSessions(t *testing.T) { if err := os.Chtimes(old, past, past); err != nil { t.Fatal(err) } - fresh := filepath.Join(root, ".thee", "sessions", "fresh") + fresh := filepath.Join(root, ".muxon", "sessions", "fresh") if err := os.MkdirAll(fresh, 0o755); err != nil { t.Fatal(err) } diff --git a/harness/internal/toolcall/constraint.go b/harness/internal/toolcall/constraint.go index cf7a2a7..67df782 100644 --- a/harness/internal/toolcall/constraint.go +++ b/harness/internal/toolcall/constraint.go @@ -3,7 +3,7 @@ package toolcall import ( "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // Step1Schema returns JSON schema for tool name selection. diff --git a/harness/internal/toolcall/dispatch.go b/harness/internal/toolcall/dispatch.go index 9b30344..058497d 100644 --- a/harness/internal/toolcall/dispatch.go +++ b/harness/internal/toolcall/dispatch.go @@ -3,8 +3,8 @@ package toolcall import ( "context" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) // DispatchInput selects the tool-calling protocol. diff --git a/harness/internal/toolcall/fenced.go b/harness/internal/toolcall/fenced.go index 8f07521..f8be0ca 100644 --- a/harness/internal/toolcall/fenced.go +++ b/harness/internal/toolcall/fenced.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) // NextFenced uses two-step flow with fenced-block salvage on step 2. diff --git a/harness/internal/toolcall/native.go b/harness/internal/toolcall/native.go index 116297d..045abe2 100644 --- a/harness/internal/toolcall/native.go +++ b/harness/internal/toolcall/native.go @@ -3,7 +3,7 @@ package toolcall import ( "errors" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // ErrNoToolCalls means the model replied with text and no tool call. diff --git a/harness/internal/toolcall/native_test.go b/harness/internal/toolcall/native_test.go index 5d768ee..f06799c 100644 --- a/harness/internal/toolcall/native_test.go +++ b/harness/internal/toolcall/native_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) func calls(n int) provider.Response { diff --git a/harness/internal/toolcall/salvage.go b/harness/internal/toolcall/salvage.go index 70be0eb..4f6e750 100644 --- a/harness/internal/toolcall/salvage.go +++ b/harness/internal/toolcall/salvage.go @@ -6,9 +6,9 @@ import ( "strconv" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/tools/schema" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools/schema" ) var fenceRE = regexp.MustCompile("(?s)```(?:json)?\\s*([\\s\\S]*?)```") diff --git a/harness/internal/toolcall/salvage_test.go b/harness/internal/toolcall/salvage_test.go index 2b0e82a..fd1ab9c 100644 --- a/harness/internal/toolcall/salvage_test.go +++ b/harness/internal/toolcall/salvage_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func TestSalvageFencedTrailingComma(t *testing.T) { diff --git a/harness/internal/toolcall/two_step.go b/harness/internal/toolcall/two_step.go index d3d7df9..e38bd34 100644 --- a/harness/internal/toolcall/two_step.go +++ b/harness/internal/toolcall/two_step.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) // TwoStepInput drives a name-then-args tool turn. diff --git a/harness/internal/toolcall/two_step_test.go b/harness/internal/toolcall/two_step_test.go index 061cd1e..6d1d5e4 100644 --- a/harness/internal/toolcall/two_step_test.go +++ b/harness/internal/toolcall/two_step_test.go @@ -5,8 +5,8 @@ import ( "encoding/json" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type seqProvider struct { diff --git a/harness/internal/tools/impl/ask_user.go b/harness/internal/tools/impl/ask_user.go index 6043053..5cda892 100644 --- a/harness/internal/tools/impl/ask_user.go +++ b/harness/internal/tools/impl/ask_user.go @@ -5,7 +5,7 @@ import ( "encoding/json" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const ( diff --git a/harness/internal/tools/impl/checkpoint.go b/harness/internal/tools/impl/checkpoint.go index b974dd0..803a684 100644 --- a/harness/internal/tools/impl/checkpoint.go +++ b/harness/internal/tools/impl/checkpoint.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type checkpointTool struct { diff --git a/harness/internal/tools/impl/delete.go b/harness/internal/tools/impl/delete.go index aa71992..78c55ad 100644 --- a/harness/internal/tools/impl/delete.go +++ b/harness/internal/tools/impl/delete.go @@ -5,8 +5,8 @@ import ( "encoding/json" "os" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type deleteTool struct{} diff --git a/harness/internal/tools/impl/delete_test.go b/harness/internal/tools/impl/delete_test.go index 8b643ee..56ce379 100644 --- a/harness/internal/tools/impl/delete_test.go +++ b/harness/internal/tools/impl/delete_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) func TestDeleteFile(t *testing.T) { diff --git a/harness/internal/tools/impl/finish.go b/harness/internal/tools/impl/finish.go index 8d24f5b..3cbb06b 100644 --- a/harness/internal/tools/impl/finish.go +++ b/harness/internal/tools/impl/finish.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type finishTool struct{} diff --git a/harness/internal/tools/impl/git.go b/harness/internal/tools/impl/git.go index 81e6f8f..44a5b5a 100644 --- a/harness/internal/tools/impl/git.go +++ b/harness/internal/tools/impl/git.go @@ -5,9 +5,9 @@ import ( "encoding/json" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/subproc" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/subproc" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type gitTool struct{} diff --git a/harness/internal/tools/impl/git_test.go b/harness/internal/tools/impl/git_test.go index 0f99519..0991f72 100644 --- a/harness/internal/tools/impl/git_test.go +++ b/harness/internal/tools/impl/git_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) func TestGitWorktreeUnavailable(t *testing.T) { diff --git a/harness/internal/tools/impl/list.go b/harness/internal/tools/impl/list.go index 33d7bf7..1e0159a 100644 --- a/harness/internal/tools/impl/list.go +++ b/harness/internal/tools/impl/list.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const maxListEntries = 200 diff --git a/harness/internal/tools/impl/patch.go b/harness/internal/tools/impl/patch.go index e93a47c..600ecdb 100644 --- a/harness/internal/tools/impl/patch.go +++ b/harness/internal/tools/impl/patch.go @@ -4,10 +4,10 @@ import ( "context" "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/tools/patch" - "github.com/PLACEHOLDER/thee/harness/internal/verifier" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools/patch" + "github.com/PLACEHOLDER/muxon/harness/internal/verifier" ) type patchTool struct{} diff --git a/harness/internal/tools/impl/read.go b/harness/internal/tools/impl/read.go index df84fcd..40968a3 100644 --- a/harness/internal/tools/impl/read.go +++ b/harness/internal/tools/impl/read.go @@ -6,9 +6,9 @@ import ( "fmt" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/tools/schema" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools/schema" ) const maxReadLines = 400 diff --git a/harness/internal/tools/impl/read_test.go b/harness/internal/tools/impl/read_test.go index 4100595..7845b06 100644 --- a/harness/internal/tools/impl/read_test.go +++ b/harness/internal/tools/impl/read_test.go @@ -8,9 +8,9 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) func TestReadSlice(t *testing.T) { diff --git a/harness/internal/tools/impl/repomap.go b/harness/internal/tools/impl/repomap.go index f8465d7..90844d6 100644 --- a/harness/internal/tools/impl/repomap.go +++ b/harness/internal/tools/impl/repomap.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/index" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/index" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type repoMapTool struct{} diff --git a/harness/internal/tools/impl/search.go b/harness/internal/tools/impl/search.go index dcf5c9e..305ef20 100644 --- a/harness/internal/tools/impl/search.go +++ b/harness/internal/tools/impl/search.go @@ -7,8 +7,8 @@ import ( "os/exec" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/subproc" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/subproc" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const maxSearchHits = 50 diff --git a/harness/internal/tools/impl/search_test.go b/harness/internal/tools/impl/search_test.go index 35efdc2..cfa3d80 100644 --- a/harness/internal/tools/impl/search_test.go +++ b/harness/internal/tools/impl/search_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) func TestSearchFindsSum(t *testing.T) { diff --git a/harness/internal/tools/impl/test.go b/harness/internal/tools/impl/test.go index 1b93e85..045d082 100644 --- a/harness/internal/tools/impl/test.go +++ b/harness/internal/tools/impl/test.go @@ -5,8 +5,8 @@ import ( "encoding/json" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/subproc" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/subproc" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) type testTool struct{} diff --git a/harness/internal/tools/impl/todo.go b/harness/internal/tools/impl/todo.go index 755f56e..d5a4ca2 100644 --- a/harness/internal/tools/impl/todo.go +++ b/harness/internal/tools/impl/todo.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const maxOpenTodos = 30 diff --git a/harness/internal/tools/impl/web_search.go b/harness/internal/tools/impl/web_search.go index 9f219b0..06fdd48 100644 --- a/harness/internal/tools/impl/web_search.go +++ b/harness/internal/tools/impl/web_search.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const ( @@ -94,7 +94,7 @@ func (t *webSearchTool) Run(ctx context.Context, env *tools.Env, args json.RawMe return tools.Fail(env, "web_search", "could not create search request"), nil } req.Header.Set("Accept", "text/html") - req.Header.Set("User-Agent", "thee-web-search/1.0") + req.Header.Set("User-Agent", "muxon-web-search/1.0") resp, err := t.client.Do(req) if err != nil { return tools.Fail(env, "web_search", "web search request failed: "+err.Error()), nil diff --git a/harness/internal/tools/impl/web_search_test.go b/harness/internal/tools/impl/web_search_test.go index 93cbcd8..369c315 100644 --- a/harness/internal/tools/impl/web_search_test.go +++ b/harness/internal/tools/impl/web_search_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) func TestWebSearchReturnsSearchResults(t *testing.T) { diff --git a/harness/internal/tools/impl/write.go b/harness/internal/tools/impl/write.go index e994597..8c8476c 100644 --- a/harness/internal/tools/impl/write.go +++ b/harness/internal/tools/impl/write.go @@ -4,7 +4,7 @@ import ( "context" "encoding/json" - "github.com/PLACEHOLDER/thee/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" ) const maxWriteBytes = 32 * 1024 diff --git a/harness/internal/tools/impl/write_test.go b/harness/internal/tools/impl/write_test.go index caabd56..08267a3 100644 --- a/harness/internal/tools/impl/write_test.go +++ b/harness/internal/tools/impl/write_test.go @@ -8,8 +8,8 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/tools" - "github.com/PLACEHOLDER/thee/harness/internal/workspace" + "github.com/PLACEHOLDER/muxon/harness/internal/tools" + "github.com/PLACEHOLDER/muxon/harness/internal/workspace" ) func TestWriteCreatesMissingFile(t *testing.T) { diff --git a/harness/internal/tools/registry.go b/harness/internal/tools/registry.go index ca0a36d..adef28c 100644 --- a/harness/internal/tools/registry.go +++ b/harness/internal/tools/registry.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) // Result is returned to the model from a tool. diff --git a/harness/internal/tools/result.go b/harness/internal/tools/result.go index e6cb397..bfd3f8d 100644 --- a/harness/internal/tools/result.go +++ b/harness/internal/tools/result.go @@ -3,7 +3,7 @@ package tools import ( "fmt" - "github.com/PLACEHOLDER/thee/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/security" ) // FormatResult wraps tool output for the model context. diff --git a/harness/internal/ui/headless/present.go b/harness/internal/ui/headless/present.go index fc61c41..2758de9 100644 --- a/harness/internal/ui/headless/present.go +++ b/harness/internal/ui/headless/present.go @@ -6,7 +6,7 @@ import ( "io" "os" - "github.com/PLACEHOLDER/thee/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" ) // Mode selects CLI output style. diff --git a/harness/internal/ui/headless/present_test.go b/harness/internal/ui/headless/present_test.go index 6c8c68e..5c1843d 100644 --- a/harness/internal/ui/headless/present_test.go +++ b/harness/internal/ui/headless/present_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" ) func TestNDJSONIncludesSessionEnd(t *testing.T) { diff --git a/harness/internal/ui/tui/app.go b/harness/internal/ui/tui/app.go index 7e8c861..0e33157 100644 --- a/harness/internal/ui/tui/app.go +++ b/harness/internal/ui/tui/app.go @@ -15,12 +15,12 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/session" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/session" ) // Options configures an interactive session. @@ -141,7 +141,7 @@ func NewModel(opt Options) Model { opt.ProviderID = "deepinfra" } ti := textarea.New() - ti.Placeholder = "Ask thee to change something (/help for commands)" + ti.Placeholder = "Ask muxon to change something (/help for commands)" ti.Prompt = "" ti.ShowLineNumbers = false ti.KeyMap.InsertNewline = key.NewBinding(key.WithKeys("alt+enter", "shift+enter")) @@ -336,7 +336,7 @@ func (m *Model) applyModal() tea.Cmd { root := m.opt.Workspace s, err := security.LoadTrust() if err == nil { - s.AddRootWithConfigHash(root, security.HashTheeToml(root)) + s.AddRootWithConfigHash(root, security.HashMuxonToml(root)) err = security.SaveTrust(s) } m.opt.Trusted = true @@ -470,7 +470,7 @@ func (m *Model) startGoal(goal string, force bool) tea.Cmd { Goal: goal, Workspace: opt.Workspace, Trusted: trusted, - TheeVersion: opt.Version, + MuxonVersion: opt.Version, Provider: opt.Provider, Manifest: opt.Manifest, SessionID: opt.SessionID, @@ -750,7 +750,7 @@ func (m Model) inputView(width int) string { } func (m Model) footerView(width int) string { - brand := accentStyle.Bold(true).Render("thee") + " " + mutedStyle.Render(displayVersion(m.opt.Version)) + " " + brand := accentStyle.Bold(true).Render("muxon") + " " + mutedStyle.Render(displayVersion(m.opt.Version)) + " " model := m.opt.WorkerModel if model == "" { model = "no model" diff --git a/harness/internal/ui/tui/app_test.go b/harness/internal/ui/tui/app_test.go index a8cfba7..97f6811 100644 --- a/harness/internal/ui/tui/app_test.go +++ b/harness/internal/ui/tui/app_test.go @@ -12,12 +12,12 @@ import ( tea "github.com/charmbracelet/bubbletea" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/director" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/scripted" - "github.com/PLACEHOLDER/thee/harness/internal/security" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/scripted" + "github.com/PLACEHOLDER/muxon/harness/internal/security" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func sessionModel(dir string) Model { @@ -135,14 +135,14 @@ type fakeOpenCode struct { func setupOpenCode(t *testing.T, fake *fakeOpenCode, secret string) (home string) { t.Helper() home = t.TempDir() - t.Setenv("THEE_HOME", home) + t.Setenv("MUXON_HOME", home) t.Setenv("OPENCODE_API_KEY", "") t.Setenv("DEEPINFRA_API_KEY", "") auth := filepath.Join(t.TempDir(), "auth.json") if err := os.WriteFile(auth, []byte(`{"opencode-go":{"type":"api","key":"`+secret+`"}}`), 0o600); err != nil { t.Fatal(err) } - t.Setenv("THEE_OPENCODE_AUTH", auth) + t.Setenv("MUXON_OPENCODE_AUTH", auth) config.SetSecretStore(config.NewMemoryKeyring()) t.Cleanup(func() { config.SetSecretStore(nil) }) srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -325,8 +325,8 @@ func TestTrustModalKeys(t *testing.T) { func untrustedFixture(t *testing.T) Model { t.Helper() - t.Setenv("THEE_HOME", t.TempDir()) - t.Setenv("THEE_TRUST", "") + t.Setenv("MUXON_HOME", t.TempDir()) + t.Setenv("MUXON_TRUST", "") dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -396,7 +396,7 @@ func TestInterruptSecondCancels(t *testing.T) { } func TestScriptedFixtureDone(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { @@ -442,7 +442,7 @@ func TestScriptedFixtureDone(t *testing.T) { func TestAskUserShowsQuestionAndSendsAnswer(t *testing.T) { askArgs, _ := json.Marshal(map[string]any{"question": "Which file?", "choices": []string{"sum.go", "main.go"}}) finishArgs, _ := json.Marshal(map[string]string{"summary": "picked sum.go"}) - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) manifest, err := config.LoadEmbeddedManifest() if err != nil { t.Fatal(err) @@ -503,7 +503,7 @@ func TestPausedOutcomeOffersContinue(t *testing.T) { } func TestContinueAfterPauseKeepsHistory(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) dir := testutil.CopyFixture(t, "go-failing-test") manifest, err := config.LoadEmbeddedManifest() if err != nil { diff --git a/harness/internal/ui/tui/modal.go b/harness/internal/ui/tui/modal.go index 161fcc9..e446bcd 100644 --- a/harness/internal/ui/tui/modal.go +++ b/harness/internal/ui/tui/modal.go @@ -68,7 +68,7 @@ func (m *Modal) View() string { if m.Kind == "trust" { return box.Render(textStyle.Bold(true).Render("Trust this workspace?") + "\n\n" + accentStyle.Render(shortPath(m.Workspace)) + "\n\n" + - mutedStyle.Render("thee will read and edit files here and run its verify\ncommand and tools as you. Only trust code you know.") + "\n\n" + + mutedStyle.Render("muxon will read and edit files here and run its verify\ncommand and tools as you. Only trust code you know.") + "\n\n" + key("t", "trust") + " " + key("o", "this session only") + " " + key("d", "don't trust")) } return box.Render(textStyle.Bold(true).Render("Approval required") + "\n\n" + diff --git a/harness/internal/ui/tui/model.go b/harness/internal/ui/tui/model.go index d82b724..d7b927e 100644 --- a/harness/internal/ui/tui/model.go +++ b/harness/internal/ui/tui/model.go @@ -8,8 +8,8 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider/openai" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/openai" ) const modelPickerRows = 8 diff --git a/harness/internal/ui/tui/model_test.go b/harness/internal/ui/tui/model_test.go index b8f124a..4ca484c 100644 --- a/harness/internal/ui/tui/model_test.go +++ b/harness/internal/ui/tui/model_test.go @@ -6,11 +6,11 @@ import ( tea "github.com/charmbracelet/bubbletea" - "github.com/PLACEHOLDER/thee/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/config" ) func TestModelCommandSwitchesWorker(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) m := sessionModel(t.TempDir()) m.modelCommand("qwen3-coder") if m.opt.WorkerModel != "qwen3-coder" { @@ -68,7 +68,7 @@ func TestModelSuggestionsFilter(t *testing.T) { } func TestModelPickerSelects(t *testing.T) { - t.Setenv("THEE_HOME", t.TempDir()) + t.Setenv("MUXON_HOME", t.TempDir()) m := sessionModel(t.TempDir()) m.modelChoices = []string{"kimi-k2.7-code", "qwen3-coder"} m.modelsAuthoritative = true diff --git a/harness/internal/ui/tui/providers.go b/harness/internal/ui/tui/providers.go index 9c04cfe..d494cb6 100644 --- a/harness/internal/ui/tui/providers.go +++ b/harness/internal/ui/tui/providers.go @@ -11,10 +11,10 @@ import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/PLACEHOLDER/thee/harness/internal/config" - "github.com/PLACEHOLDER/thee/harness/internal/provider" - "github.com/PLACEHOLDER/thee/harness/internal/provider/openai" - "github.com/PLACEHOLDER/thee/harness/internal/router" + "github.com/PLACEHOLDER/muxon/harness/internal/config" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider/openai" + "github.com/PLACEHOLDER/muxon/harness/internal/router" ) var openCodeGoBaseURL = "https://opencode.ai/zen/go/v1" @@ -201,7 +201,7 @@ func (m *Model) beginConnect(c ProviderChoice, secret string) tea.Cmd { if client.Headers == nil { client.Headers = map[string]string{} } - client.Headers["User-Agent"] = "thee/" + displayVersion(m.opt.Version) + client.Headers["User-Agent"] = "muxon/" + displayVersion(m.opt.Version) client.Headers["x-opencode-session"] = m.opt.SessionID } m.connecting = c.Title diff --git a/harness/internal/ui/tui/stream.go b/harness/internal/ui/tui/stream.go index 597845a..88224dc 100644 --- a/harness/internal/ui/tui/stream.go +++ b/harness/internal/ui/tui/stream.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/PLACEHOLDER/thee/harness/internal/observability" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/observability" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) // FormatEvent returns one transcript line for verify and harness events. diff --git a/harness/internal/ui/tui/stream_test.go b/harness/internal/ui/tui/stream_test.go index e03bf0d..e4eabb5 100644 --- a/harness/internal/ui/tui/stream_test.go +++ b/harness/internal/ui/tui/stream_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/provider" + "github.com/PLACEHOLDER/muxon/harness/internal/provider" ) type fakeStream struct { diff --git a/harness/internal/ui/tui/theme.go b/harness/internal/ui/tui/theme.go index b1d0509..91fbb71 100644 --- a/harness/internal/ui/tui/theme.go +++ b/harness/internal/ui/tui/theme.go @@ -53,7 +53,7 @@ var commandDocs = []commandDoc{ {"/continue", "resume after the tool round limit"}, {"/undo", "revert the last patch"}, {"/abort", "cancel the running goal"}, - {"/exit", "quit thee"}, + {"/exit", "quit muxon"}, } // commandAliases maps a canonical command to names that should complete to it. diff --git a/harness/internal/ui/tui/tools.go b/harness/internal/ui/tui/tools.go index 69aa232..acebfb0 100644 --- a/harness/internal/ui/tui/tools.go +++ b/harness/internal/ui/tui/tools.go @@ -8,7 +8,7 @@ import ( "github.com/charmbracelet/lipgloss" - "github.com/PLACEHOLDER/thee/harness/internal/director" + "github.com/PLACEHOLDER/muxon/harness/internal/director" ) type toolCall struct { diff --git a/harness/internal/verifier/verifier.go b/harness/internal/verifier/verifier.go index f2f53fd..b1103b7 100644 --- a/harness/internal/verifier/verifier.go +++ b/harness/internal/verifier/verifier.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/PLACEHOLDER/thee/harness/internal/subproc" + "github.com/PLACEHOLDER/muxon/harness/internal/subproc" ) // Result is a verify run outcome. diff --git a/harness/internal/verifier/verifier_test.go b/harness/internal/verifier/verifier_test.go index e3dd3df..c57618b 100644 --- a/harness/internal/verifier/verifier_test.go +++ b/harness/internal/verifier/verifier_test.go @@ -6,7 +6,7 @@ import ( "path/filepath" "testing" - "github.com/PLACEHOLDER/thee/harness/internal/testutil" + "github.com/PLACEHOLDER/muxon/harness/internal/testutil" ) func TestVerifierOnFixture(t *testing.T) { diff --git a/harness/internal/workspace/snapshot.go b/harness/internal/workspace/snapshot.go index 73346c3..3734b1e 100644 --- a/harness/internal/workspace/snapshot.go +++ b/harness/internal/workspace/snapshot.go @@ -11,15 +11,15 @@ import ( func EnsureSessionBase(root, sessionID string) error { git := filepath.Join(root, ".git") if _, err := os.Stat(git); err == nil { - ref := fmt.Sprintf("refs/thee/sessions/%s/base", sessionID) + ref := fmt.Sprintf("refs/muxon/sessions/%s/base", sessionID) return writeShadowRef(root, ref) } - dest := filepath.Join(root, ".thee", "sessions", sessionID, "snapshots", "base") + dest := filepath.Join(root, ".muxon", "sessions", sessionID, "snapshots", "base") return os.MkdirAll(dest, 0o755) } func writeShadowRef(root, ref string) error { - idx := filepath.Join(root, ".thee", "tmp-index") + idx := filepath.Join(root, ".muxon", "tmp-index") _ = os.Remove(idx) env := append(os.Environ(), "GIT_INDEX_FILE="+idx) add := exec.Command("git", "add", "-A") @@ -36,7 +36,7 @@ func writeShadowRef(root, ref string) error { return err } treeHash := string(treeOut[:40]) - commit := exec.Command("git", "commit-tree", treeHash, "-m", "thee session base") + commit := exec.Command("git", "commit-tree", treeHash, "-m", "muxon session base") commit.Dir = root commit.Env = env commitOut, err := commit.Output() diff --git a/harness/internal/workspace/write.go b/harness/internal/workspace/write.go index 98bd3be..050b553 100644 --- a/harness/internal/workspace/write.go +++ b/harness/internal/workspace/write.go @@ -83,7 +83,7 @@ func (w *Workspace) WriteFile(rel string, data []byte) error { return err } dir := filepath.Dir(abs) - tmp, err := os.CreateTemp(dir, ".thee-write-*") + tmp, err := os.CreateTemp(dir, ".muxon-write-*") if err != nil { return err } diff --git a/harness/testdata/eval/matrix.yaml b/harness/testdata/eval/matrix.yaml index 8db277a..7baef23 100644 --- a/harness/testdata/eval/matrix.yaml +++ b/harness/testdata/eval/matrix.yaml @@ -1,4 +1,4 @@ -# Model matrix for thee eval basket. Prices are pinned in models.yaml (2026-10-14). +# Model matrix for muxon eval basket. Prices are pinned in models.yaml (2026-10-14). models: - model_id: qwen3-9b overrides: diff --git a/harness/testdata/prompts/compact_system.golden b/harness/testdata/prompts/compact_system.golden index 5984275..ef49589 100644 --- a/harness/testdata/prompts/compact_system.golden +++ b/harness/testdata/prompts/compact_system.golden @@ -1,4 +1,4 @@ -You are thee, a coding agent in the user's workspace. +You are muxon, a coding agent in the user's workspace. Answer the user in plain text. Call a tool only to read or change the workspace. A greeting, or a question you can answer from the conversation, is text and no tool. diff --git a/harness/testdata/prompts/standard_system.golden b/harness/testdata/prompts/standard_system.golden index 0a6fdc7..cc703f5 100644 --- a/harness/testdata/prompts/standard_system.golden +++ b/harness/testdata/prompts/standard_system.golden @@ -1,4 +1,4 @@ -You are thee, a coding agent in the user's workspace — the user can ask questions or request changes. +You are muxon, a coding agent in the user's workspace — the user can ask questions or request changes. Answer the user in plain text — a reply is complete when it needs no tool. Call a tool only to read or change the workspace — tools are how edits happen, not how you talk. A greeting, or a question you can answer from the conversation, is text and no tool — do not search the repo for small talk. diff --git a/package.json b/package.json index 70b47a6..6631fa6 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "thee", + "name": "muxon", "version": "0.0.0", "private": true, - "description": "Release tooling for the thee CLI (changesets). The Go module lives in harness/.", + "description": "Release tooling for the muxon CLI (changesets). The Go module lives in harness/.", "packageManager": "pnpm@10.15.1", "scripts": { "changeset": "changeset", diff --git a/scripts/release-tag.sh b/scripts/release-tag.sh index dcc742a..95fe7f4 100644 --- a/scripts/release-tag.sh +++ b/scripts/release-tag.sh @@ -1,6 +1,6 @@ #!/bin/sh # Tag the current commit with the version from package.json (v1.2.3) and push it. -# The release workflow builds the thee binaries and publishes the GitHub release from that tag. Run +# The release workflow builds the muxon binaries and publishes the GitHub release from that tag. Run # by the "version" workflow after a "Release" PR merges, or by hand after `pnpm release:version` on main. set -eu cd "$(dirname "$0")/.." @@ -11,6 +11,6 @@ if git rev-parse -q --verify "refs/tags/$tag" >/dev/null; then exit 0 fi [ -z "$(git status --porcelain)" ] || { echo "working tree not clean"; exit 1; } -git tag -a "$tag" -m "thee $version" +git tag -a "$tag" -m "muxon $version" git push origin "$tag" echo "pushed $tag"