# AGENTS.md Instructions for a coding agent working in the Arc LLM Cookbook. The human guide is [CONTRIBUTING.md](CONTRIBUTING.md). Benchmarks run with bench-standard; follow **its** [AGENTS.md](https://git.linxweiler.xyz/miga/benchmarks/src/branch/main/AGENTS.md) for every benchmark step. This file covers only what the cookbook adds. There are two jobs. Ask your human which one, if it isn't clear. ## A. Set up a recipe for your human 1. Find the GPU: `xpu-smi discovery` or `lspci | grep -i vga`. The cookbook covers Intel Arc only. Open that GPU's folder from the index in [README.md](README.md), and pick the recipe in its README by model and profile. ★ marks the fastest. Ask which profile if unsure: one user → `single-user`, several users or agents → `throughput`. 2. Check the host against [docs/host-setup.md](docs/host-setup.md). Changing groups, BIOS or power limits is your human's call: tell them, don't do it. 3. Download the model as the recipe says and **check the hash**. 4. Run the launch command **unchanged**. Ask before stopping another server on the GPU. 5. Run the recipe's "Check it" request, then tell your human the endpoint and model ID. 6. Offer to benchmark it (job B): that makes the recipe verified. ## B. Contribute a run 1. Start the server with the recipe's launch command (or the variant you test). Write that exact command to `server-cmd.txt`. 2. Benchmark with bench.sh, following its AGENTS.md: dry run, quick run, then `--full` only after your human agrees. Use the bench.sh command in the recipe's numbers block. Its declared values are the recipe's. With several GPUs: read every card's PCIe link (docs/host-setup.md, "Several GPUs") and pass all of them in `--special-notes`. 3. Copy the result folder into `/results/` (or `mixed//results/`) **unchanged**. 4. Then one of: - **Reproduction:** append the folder name to the recipe's `results`. - **A variant that lost:** add a `[[tried]]` entry to `//tried.md`. - **A variant that won (a `--full` run):** follow CONTRIBUTING.md, "Find something faster". Show your human the comparison before changing a recipe. 5. Run `python3 tools/cookbook.py build`, then `validate`. Fix every error. Don't silence one by editing results or `cookbook.toml`. 6. Report: the result folder, the headline number against the recipe's, the warnings, and what goes in the pull request. ## Rules - **Never edit a result folder**, and never type numbers into a recipe or tried log. - **Never change a recipe's launch command** without a `--full` run that shows it's faster. - **Change one thing per variant**, so the result says what made the difference. - **Ask before** `--full` runs, before restarting or stopping a server, and before committing or pushing. - Check `server-cmd.txt` for private paths or host names, and tell your human what you saw.