inferencekit is a plugin for Claude Code, Codex and OpenCode, backed by reusable CLI and MCP tools. Give your agent a model, hardware and a goal. It finds, benchmarks and tunes compatible inference engines for your workload. You can stop with the best tested configuration or go further with custom optimizations, including GPU kernels. Model coverage depends on runtime and measurement adapter support; see supported workloads and hardware.
How it works
inferencekit gives your agent the playbook and the tools of a senior inference engineer. On every run it works the problem the same way.
- Understand the task. The agent first asks about your goal, deadline, budget and how much the results may change, reusing answers you already gave. It identifies the model, hardware and real inputs, then estimates memory, compute and launch costs per request. Text, image, audio and video use their own metrics and quality checks.
- Find and tune an engine. It searches the web for current engines and settings for your model and hardware, then tunes and benchmarks compatible options for your workload. Engines listed here, such as vLLM, SGLang, llama.cpp and TensorRT-LLM, are examples, not a fixed set. The fastest tested configuration that meets your quality requirements can be the result, or the tuned baseline for further work.
- Find the bottleneck. It selects the profiler for your hardware: Nsight on NVIDIA, ROCm tools on AMD, or Instruments and Metal on Apple. It measures the critical path and investigates memory, compute and launch costs, checking current vendor docs when support is uncertain.
- Investigate and implement, if requested. Search current code, papers, compiler docs and engineering talks; inspect dispatch, IR and assembly when useful. Choose graph execution, fusion, matrix kernels, packing, state reuse or other techniques from measured bottlenecks. Independent implementations can run in parallel; one coordinator integrates changes, and measurements stay serialized per device. Separate authorized devices may run concurrently.
- Prove every step. Every change gets a fast correctness check and a timed screen; milestones get the full proof: interleaved rounds against the tuned baseline, the anti-cheat gates and quality against a reference model. Changes that miss the agreed performance or quality requirements are reverted.
- Ship it. You get the fastest proven configuration and a
REPORT.md with the result, quality checks, commands to install and run it, saved outputs, and details to reproduce the measurements.
When it asks you
The agent works on its own and stops only when it needs you:
- Missing details. If you didn't say which model, hardware or workload, it asks before it starts.
- Your preferences. Choose exactly the same results, small differences with the same quality, or speed with an agreed quality tradeoff. Set your goal, spending, deadline and check-ins; it reuses answers you already gave.
- Model changes. Permission to simplify the model is separate from permission to use stronger compression. Plans are optional: ask to see one if you want it.
- The budget cap. When the run reaches the cap you set, it stops and asks.
- Things only you can give. For example, permission to read the GPU's profiler counters, or a Hugging Face token for a gated model.