Skip to content
Proyek

aic0d3r/local-ai-harness

Lihat di GitHub

Tentang

Installs the fastest local LLM engine for your GPU and sets your coding agent up for it. Inkling 2 Mini at 95.6 t/s, 1M context on Strix Halo (Ryzen AI Max+ 395); NVIDIA and AMD via Strata; connects to Ollama, LM Studio, vLLM, llama.cpp.

Alat pengembangan

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+2
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Local AI Harness: the fastest local LLM engine for your hardware, set up for coding

One command detects your GPU, installs the fastest engine and best-fitting model, and tunes your coding agent (pi) to match. No API key, and it asks before installing anything.

Measured on Strix Halo (Ryzen AI Max+ 395) under Linux. NVIDIA, AMD, Intel Arc and Apple Silicon connect to an engine you run; the status column shows how far each is tested. Cloud models are optional (what reaches the internet).

What you get

Your hardware What runs Status
Strix Halo, 128 GB halogen: Qwen3.8 Flash-Next, CIRU: Inkling 2 Mini, osmos: DeepSeek-V4.1-Flash / Hy4-Flash (1M context), or Kyojin: GLM-5.3-Flash verified: measured here (GLM-5.3-Flash reported)
Strix Halo, 64 GB CIRU: Inkling 2 Mini, context sized to fit experimental: sized for 64 GB, not yet run on one
NVIDIA RTX 20-50, AMD RX 7000/9000 Strata: Inkling 2 Mini; Flash-Next w/ 128 GB VRAM community-tested via Strata (its reports); no harness run yet
Intel Arc, Apple Silicon, other Strata, Ollama, LM Studio, vLLM or llama.cpp; you start it, setup connects experimental: connect only
OS Status
Linux verified: ./harness setup installs, starts, upgrades and rolls back the engines
Windows beta: setup.ps1 wires pi to a Strata you run. Tested on a Windows 11 VM against a stub engine; no ./harness wizard or engine launchers
macOS experimental: connect to an engine you run (./setup.sh --strata <url>); the launchers are Linux only

Native launchers for Windows and macOS: pull requests welcome (CONTRIBUTING.md).

Measured on Strix Halo 128 GB (benchmarks):

  • Flash-Next: 71.6 t/s, 256k context, keeps NPU tools
  • Inkling 2 Mini: 95.6 t/s, 1M context
  • DeepSeek-V4.1-Flash: 36.9 t/s, 1M context, from SSD, ~520 GB free
  • Hy4-Flash: 29.5 t/s (506.9 t/s prefill at 2K), 1M context, from SSD, 157 GB

Community-reported, not verified here (all results; ./harness bench --share adds yours):

  • Strix Halo, 128 GB unified: 88.7 t/s decode on code, CIRU v1.7.0 · ciru-inkling-2-mini (n=1)

Inkling 2 Mini is the default on most hardware. Vendor-published scores (Thinking Machines) put it ahead of Qwen3.8-27B on all four coding tests and three of four agentic tests, behind on terminal v2.1 and both knowledge tests (engine notes). Not measured here; see the source note under the table.

Inkling 2 Mini vs Qwen3.8-27B, published scores
Category Test Inkling 2 Mini Qwen3.8-27B Winner
Coding DeepSWE v1.1 48.2% 42.2% Inkling
SWE-bench Pro v2 (Hard) 77.9% 73.8% Inkling
SWE-bench Multilingual 73.7% 70.0% Inkling
Vibe Code Bench v1.1 77.9% 64.9% Inkling
Agentic / search BrowseComp (with compaction) 79.0% 61.6% Inkling
MCP Atlas (public) 82.7% 77.3% Inkling
JobBench 49.6% 33.4% Inkling
AutomationBench-AA 41.8% 48.2% Qwen
Terminal Terminal-Bench v2.1 71.6% 73.0% Qwen
Terminal-Bench v4.0 5.6% 5.6% tie
Knowledge AA-Omniscience (score) -8.6 -6.4 Qwen
Non-hallucination rate 63.4% 71.4% Qwen

Source: Thinking Machines model card (public, released 2026-11-20), section 5 "Evaluations". The card names the harness per test (Terminal-Bench v2.1 runs in pi). Vendor numbers, not re-run here.

Independent checks: Vals AI measured Vibe Code Bench 77.92% and Vals Index 46.46%, matching the card; Artificial Analysis scores it 20 on its Intelligence Index, level with Qwen3.8-27B; Plotly's data-analytics exam gave 36 of 43 (one run). (Vals, Artificial Analysis, Plotly).

  • Switch engines in one command. ./harness use <engine>, or a menu of eleven engines and cloud models. The agent re-tunes itself each time.
  • Stays fast. Engine upgrades test themselves and roll back on failure; slowdowns over 5% get flagged.
  • Abliterated weights, one menu switch. Refusal-removed Flash-Next, Qwen3.8-27B, DeepSeek-V4.1-Flash and Inkling 2 Mini (CIRU, osmos) for security work and blunt copy that cautious models decline. taint-gate still asks before risky commands (details).
  • Faster turns, better answers. Cold turns 44% faster, no waiting on compaction, 94% fewer tokens to read a function (details).

Fastest engine for your GPU, agent re-tuned per switch. ./harness setup on a Ryzen AI Max+ 395 ends with: engine CIRU v1.7.0, Inkling 2 Mini; context 1M tokens; speed 95.4 t/s decode, 2204 t/s prefill. Linux, Windows (beta)

Why not just Ollama, LM Studio, llama-swap or Harbor?

tool what it does what this harness adds
Ollama, LM Studio run models in their own engine installs the engines tuned for Strix Halo (halogen, gufo, Strata, osmos, CIRU, Kyojin, strix-llama.cpp); Ollama and LM Studio stay as engines you can switch to
llama-swap a proxy that loads and swaps models on any OpenAI-compatible server sizes the coding agent for each model, not only the server
Harbor one command brings up a pre-wired Docker stack of 30+ backends (halogen, llama.cpp, vLLM, Ollama; no Strata, gufo, osmos or CIRU), frontends and services; harbor launch pi gives pi the server URL and model ids sets pi's context, output limit, compaction, thinking levels and vision per engine and model; halogen 0.19.1 (Harbor's default: 0.6.3, November 2026); engine upgrades that test themselves and roll back

Keep what you already run: Ollama, LM Studio, vLLM and llama.cpp are engines you can switch to.

Install on Linux and Windows

Needs pi (curl -fsSL https://pi.dev/install.sh | sh) and uv for search. Optional, for the symbol tools: uv tool install -p 3.13 serena-agent. ./setup.sh offers to install pi and Serena when they're missing (asks [y/N]; --install-tools does it without asking, for scripted runs). Docker and the engines are always manual.

git clone https://github.com/aic0d3r/local-ai-harness && cd local-ai-harness
./harness setup             # detects your hardware, asks for a model, installs and starts its engine
./start.sh ~/my-project     # opens the coding agent on your project

Setup asks every question first and installs nothing until you confirm. Its menus use arrow keys, and Esc goes back. It installs halogen, gufo, Strata, osmos, CIRU, Kyojin and strix-llama.cpp itself; start Ollama, vLLM, LM Studio or llama.cpp before running it. ./setup.sh --doctor checks the whole install, including a live model ping. Flags and the full walkthrough: docs/SETUP.md.

Windows (beta)

Tested on a clean Windows 11 VM against a stub engine, not yet on real hardware. In PowerShell:

# 1. Install and start Strata: https://github.com/Niko1221/Strata
irm https://pi.dev/install.ps1 | iex   # 2. install pi
git clone https://github.com/aic0d3r/local-ai-harness; cd local-ai-harness
powershell -ExecutionPolicy Bypass -File .\setup.ps1   # 3. offers Git and Python through winget, then uv and Serena

setup.ps1 connects pi to the running Strata; it never installs or starts an engine. Details: docs/WINDOWS.md.

Daily use

./start.sh ~/my-project     # start the engine if it is down, open pi (add -c to resume the last session)
./harness config            # menu: switch engine, model or weights; upgrade the engine; sidecar; stop an engine
./harness update-check      # newer engine release? upgrade it from ./harness config (rolls back on failure)
./harness status            # what pi is pointed at
./harness tune              # re-measure speed and re-size the limits
./harness monitor           # live prefill/decode speed

All commands and uninstall: docs/SETUP.md.

Desktop and phone: Paseo runs pi from a desktop app, iOS, Android or the web, so it uses the engine, models and limits the harness set up. A session open in both Paseo and a terminal at once gets a warning.

What reaches the internet: web search, a daily git fetch for harness updates (HARNESS_NO_UPDATE_CHECK=1 turns it off), the engine release check if you enable it, and downloads you confirm. Nothing else. Cloud models are optional: hybrid setup.

Use the engine with another agent

The engine picker, upgrades and rollbacks work without pi. Run ./harness setup and pick no agent (or ./setup.sh --no-pi), then:

./harness serve                          # start the saved engine, print its URL and token budget, run the bridge (Ctrl-C stops it)
eval "$(./harness serve --export-env)"   # in the client's shell: OPENAI_*, ANTHROPIC_*, CLAUDE_CODE_MAX_*, HARNESS_MODEL, HARNESS_CTX
client how it connects
Claude Code the bridge on 127.0.0.1:8788 speaks Anthropic Messages; eval the env above, then run claude
Codex CLI the bridge speaks the Responses API; serve prints the ~/.codex/config.toml provider block
OpenCode, Aider, Continue straight to the engine's OpenAI-compatible URL; Aider: aider --model openai/$HARNESS_MODEL
Gemini CLI not supported: it talks to Gemini models only

Most of the engines here speak only chat completions (osmos answers 404 to /v1/messages and /v1/responses), so the bridge translates text, images, tool calls and streaming. It drops reasoning and server-side tools such as web search. Measured on osmos with Inkling 2 Mini: Claude Code 2.1.332 wrote a file and ran cat (Write and Bash tools, 30 s); Codex 0.172.0 ran shell commands and edited a file with apply_patch (12 s). The eval sets ANTHROPIC_* for that shell only, so run it in a shell you keep for the local model. After ./harness config switches the engine or model, run serve again.

Other models and engines

On Strix Halo, setup asks which model you want and picks its fastest engine. Off halogen, you lose the NPU tools (list).

model engine on Strix Halo, measured here abliterated
Inkling 2 Mini CIRU: 95.6 t/s decode, 2,168 t/s prefill (osmos 48.2 / 1,157; gufo ~47-59 reported) yes (CIRU, osmos)
Tess 4.5 26B-A3B (an Inkling 2 Mini fine-tune) CIRU, 96.6 t/s decode, 2,149 t/s prefill no
Inkling 2 Small osmos, 256K context from SSD, ~30 t/s (maintainer's report; osmos's README: 22.5) no
Qwen3.8 Flash-Next 125B halogen 71.6 t/s; among open-source engines Strata decodes faster, gufo prefills faster; osmos's 512K pack is listed after them (~51.5 t/s reported, not measured here) yes
Ornith-1.5-35B-A3B (Qwen3.6 tuned for coding) strix-llama.cpp, ~59 t/s reported, not measured here no
Qwen3.6-35B-A3B strix-llama.cpp, 85.3 t/s no
Flint 40B A2.5B (Recursive, built for coding agents) strix-llama.cpp, ~53.6 t/s reported, not measured here no
Qwen3.8-27B gufo yes
DeepSeek-V4.1-Flash (~768B) osmos, 1M context from SSD, 36.9 t/s yes
Hy4-Flash osmos: 29.5 t/s decode, 506.9 t/s prefill at 2K, 1M context from SSD (text only); Strata: SQ-64/SQ-96/SQ-128 for desktop GPUs (128K, vision, reported) no
GLM-5.3-Flash (320B MoE, EXL3) Kyojin container (ghcr.io/yamz-labs/kyojin-glm:1.9.3), Strix Halo 128 GB, ~27.4-36.8 t/s decode, 633 t/s prefill reported, 131K-512K ctx, vision no

Apple Silicon: run Strata natively and connect with ./setup.sh --strata <url>; the launchers are Linux only. What setup recommends and why: ENGINES.md.

Faster, more accurate, fewer tokens

Every layer takes work off the main model. Turns get shorter, searches land on the right file, and less prefill means faster replies locally and a smaller bill on cloud.

Faster turns, better searches, 94% fewer tokens. Time spent waiting: compaction 54% less, cold turn 44%, semble search 22%, serena routing 16%. Right answers: semble code search 17/18 (was 13/18), semble-first routing 6/6 tasks (was 5/6). Tokens per task: serena function read 94% less, screenshot 83%, commit diff 62%, cold prompt 43%, semble and serena routing 38%

Faster

  • Small, stable prompt: 8 tools declared instead of 25, and nothing rewrites the system prompt mid-session. A cold turn on osmos drops from 31.4 s to 17.5 s.
  • Background compaction: a sidecar model summarizes while you keep working: ~24 s in the background instead of a ~52 s wait.
  • Search routing: semble first to find code (22% less time), serena once the symbol is known (16% less).

More accurate

  • semble search: the right file in the top 3 for 17 of 18 queries, vs 13 of 18 with the NPU search it replaced.
  • semble-first routing: 6 of 6 tasks right, vs 5 of 6 without it.

Fewer tokens

  • Symbol tools (94%): serena reads one function in ~205 tokens instead of ~3,500 for the whole file.
  • Screenshot cap (83%): a phone screenshot costs 436 tokens on halogen instead of 2,552.
  • Sidecar commits (62%): the sidecar reads the diff, so the main model sees 7.1k tokens instead of 18.5k.
  • Cold prompt (43%): 13,968 tokens down to 7,952.
  • Also: rtk output compression, tool-trim, image-prune, /trim (run it in a session: flags stale or duplicate AGENTS.md rules), a warm prompt cache and a prompt-injection gate.

Each lever was measured on the same task with and without it, on an ASUS ROG Flow Z13 (Ryzen AI Max+ 395, 128 GB) at 70 W: the screenshot cap on halogen, the prompt and routing levers on osmos. The samples are small (18 queries, 6 tasks). Every run: BENCHMARKS.md; the stack: STRIX-HALO.md; extensions: extensions/README.md.

Documentation

Contributing

Only Strix Halo is measured here. ./harness bench --share takes about 45 seconds and prints one table row: prefill at 16k tokens, decode on code and on prose, decode at depth, plus GPU, memory, CPU and OS (no hostname or user name). It runs against any OpenAI-compatible server with no setup, e.g. Ollama: ./harness bench --share --url http://127.0.0.1:11434. Say yes when it asks and the row becomes a GitHub issue that an Action adds to the community results and the hardware list above. How the run works: COMMUNITY-BENCH.md. Bug reports and pull requests: CONTRIBUTING.md.

If the harness saved you time, a star helps other local-model users find it.

License

MIT

Jelajahi proyek terkait

Memuat…