/tea-rags-setup:tune [project alias] [--slots]from tea-rags-setup
Re-tunes an existing TeaRAGs install by benchmarking llama-server pools (instance count, -np slots) or running pipeline/Qdrant benchmarks for Ollama/ONNX providers. Writes results into the project registry. Not for first-time installs.
Ships in tea-rags-setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Existing install only. Install flow never calls this skill. Registry = env
source of truth: results go through tea-rags projects set-env, never into an
MCP config env block.
<alias> = argument, else tea-rags projects list row whose path = cwd.tea-rags projects info --name <alias> → EMBEDDING_PROVIDER,
EMBEDDING_MODEL, EMBEDDING_BASE_URL.tea-rags llama-server status → managed pools, instance liveness.Provider llama-server → section A. ollama / onnx (user switched
themselves) → section B. Every command foreground, waited on (timeout ≥ 10 min).
Client batch size + concurrency = runtime tuner (hill-climb, persisted per
endpoint). Never write EMBEDDING_BATCH_SIZE / EMBEDDING_CONCURRENCY /
EMBEDDING_TUNE_MIN_BATCH_SIZE — a pin caps the climb.
tea-rags llama-server bench --model <model>
→ texts/s per count + the count --instances auto picks.-np), only on "tune slots" / --slots: repeat bench with
--slots 2, 4, 8; stop when gain < 5% vs previous or launch fails / OOM;
keep previous value. Typical optimum = 4 (default).tea-rags llama-server stop --model <model> →
tea-rags llama-server start --model <model> --instances <best count> [--slots <best>]
→ { model, endpoints, instances, bench }.tea-rags projects set-env --name <alias> "EMBEDDING_BASE_URL=<endpoints joined with ,>".Context invariant: -c = slots × window, -b = -ub = window, window from model
catalog. CLI derives them; never hand-edit. Window change = chunk size change =
--force reindex.
Summary, slots filled:
Pool re-tuned — <alias>
Bench: <count>: <texts/s>, … → <best count> instances
Slots: <best> (-np)
Endpoints: <endpoints>
Registry: EMBEDDING_BASE_URL updated
tea-rags tune --project <alias> --provider <ollama|onnx> [--full] — quick ~2–3
min, full ~10–15 min. Omit --qdrant-url: tune probes http://localhost:6333,
else spawns the embedded daemon on its own port.
Reads tuned_environment_variables.env (project root or cwd) → write every
KEY=VALUE with tea-rags projects set-env --name <alias> KEY=VALUE … → delete
the file. Report embedding / storage / deletion rates from its comment lines.
tea-rags missing → run the install skill.status → stop + start (step A3), then set-env.--qdrant-url passed → re-run without it.llama-server to tea-rags tune (accepts only ollama|onnx).env block into any MCP config.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tea-rags, llama-server, benchmark, performance-tuning, qdrant
2 skills in this plugin
npx claudepluginhub artk0de/tearags-mcp --plugin tea-rags-setupOther plugins' skills for the same job