Skip to content

Team roles: cloud driver + verified local executors, quant-ladder catalog, and a coding bench gate - #133

Merged
davidrhodus merged 1 commit into
mainfrom
feat/team-roles-local-models
Jul 27, 2026
Merged

Team roles: cloud driver + verified local executors, quant-ladder catalog, and a coding bench gate#133
davidrhodus merged 1 commit into
mainfrom
feat/team-roles-local-models

Conversation

@davidrhodus

Copy link
Copy Markdown
Contributor

What

/team — cloud driver, local execution. Route delegate (write-capable) and explore (recon) subagents to local models with zero endpoint typing: /team delegate local auto-sizes to the machine; bare /team delegate opens a picker over the supported catalog annotated with what fits and what's downloaded. Provisioning (backend detection → quiet download → hi-local serve → health) runs in the background with phase narration and an in-place progress line; the role wires itself when ready. Explicit endpoints still work for power users, and cloud API keys are never sent to local endpoints.

Quant-ladder catalog. Entries carry pipenetwork's full MLX quant ladders (Laguna S 2.1 at 2/3/4/6/8bit, Nemotron Nano 4B, GLM-5.2 REAP50, Nemotron Ultra 550B — every repo verified against the HF listings, no guessed names). Auto picks the family by preference order and the highest-quality quant that fits; name@quant forces a rung; CUDA machines skip MLX-only families instead of failing at setup.

hi team-bench — the promotion gate. Benchmarks local models on machine-verified coding tasks: codegen and bugfix compiled and asserted by rustc, a precise mechanical edit that must survive textual invariants and compile, and strict-JSON tool-call fidelity. One server at a time, honest pass/fail plus tok/s, per-task winners, JSON reports under ~/.hi/bench/.

Measured on a 64GB M-series Mini

model codegen bugfix edit json avg tok/s
coder-32b PASS PASS PASS PASS 7.2
nemotron-30b FAIL FAIL FAIL PASS 17.2
nemotron-4b@8bit FAIL FAIL PASS PASS 36.0

The bench is why the auto ladder is trustworthy: it caught laguna-s serving at ~0 tok/s (loads and health-checks green, but the 118B MoE rides expert streaming that's pathological beyond wired memory) and qwen3.6-35b failing to load entirely (nvfp4 quant unsupported by hi-mlx). Those entries — and bench-flunking nemotron-30b — are explicit-pick only with honest labels until the gaps close. Auto lands exclusively on bench-verified models.

Hardening from live testing

  • Model cache moves to a shared ~/.hi/models root (cwd-relative caching duplicated 50GB checkpoints per project); pre-existing local dirs keep working.
  • model_present now rejects partial downloads: aria2 control-file remnants and safetensors-index shards that never started.
  • hi-local's default output ceiling rises 2048 → 8192 — it was truncating real answers mid-function.
  • Plain-REPL /team <role> with no model prints the sized catalog instead of "unknown role".

Tests

1,642 tests pass across hi-agent / hi-tools / hi / hi-tui / hi-local-core, including new coverage for quant-ladder resolution, @quant parsing, CUDA family skipping, partial-download rejection, the shared-cache fallback, bench validators, and the picker flow.

🤖 Generated with Claude Code

…ding bench as the promotion gate

/team lets the cloud driver (e.g. pipenetwork glm-5.2) delegate execution to
local models with zero endpoint typing: pick a name (or just `local`) and hi
does backend detection, quiet download, hi-local serve, health wait, and role
wiring, narrating phases with an in-place progress line. Bare `/team
delegate|explore` opens a picker over the catalog, annotated per machine.

Catalog entries now carry pipenetwork's whole MLX quant ladders (Laguna S
2.1 at 2/3/4/6/8bit, Nemotron Nano 4B at 4/8bit, GLM-5.2 REAP50, Nemotron
Ultra 550B): auto picks the family by preference order and the highest
quality quant that fits; `name@quant` forces a rung; explicit oversized
picks fall to the smallest published quant. CUDA machines skip MLX-only
families instead of failing at setup.

`hi team-bench` benchmarks local models on verifiable coding tasks
(codegen/bugfix/edit compiled + asserted by rustc, strict-JSON tool-call
fidelity) and is the catalog's promotion gate: auto only serves models that
passed it on real hardware. Live verification on a 64GB M-series Mini:
coder-32b 4/4 (~7 tok/s), nemotron-4b@8bit 2/4 (~36 tok/s, over-reasons on
codegen), nemotron-30b 1/4 (~17 tok/s) — and it caught laguna-s generating
~0 tok/s through the MoE expert-streaming path and qwen3.6-35b unable to
load (nvfp4 unsupported by hi-mlx). Unverified/broken entries are
explicit-pick only, honestly labeled.

Hardening that fell out of live testing: the model cache is shared at
~/.hi/models (cwd-relative downloads duplicated 50GB checkpoints per
project; legacy dirs keep working), model_present rejects partial downloads
(aria2 control files, missing index shards), hi-local's default output
ceiling rises 2048 → 8192 (it truncated real work mid-function), and
delegate/explore routes ride SubagentRoute with cloud keys never leaked to
local endpoints.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@davidrhodus
davidrhodus merged commit 519fc75 into main Jul 27, 2026
1 check failed
@davidrhodus
davidrhodus deleted the feat/team-roles-local-models branch July 27, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant