Claude Code Subagents Guide
This guide describes the Claude Code-native inference setup.
Claude Code supports project subagents in .claude/agents/; each subagent is a Markdown file with YAML frontmatter and a focused system prompt. Project settings live in .claude/settings.json, while CLAUDE.md carries project memory and startup instructions.
Checked-In Claude Assets
CLAUDE.mdProject-level Claude Code instructions..claude/settings.jsonProject permissions that keep this inference project separate from sibling benchmark projects and avoid reading local env files..claude/agents/inference-lab.mdParent coordinator..claude/agents/optimizer.mdRead-only speed candidate proposer..claude/agents/benchmarker.mdLocal benchmark runner and result recorder.
Recommended Start
From inference/:
bash
claude --agent inference-labFor a longer prompt skeleton:
bash
python3 scripts/print_claude_kickoff.pyWorkflow
- Read
AGENTS.md,CLAUDE.md, and this guide. - Resolve the target GGUF with
scripts/resolve_hf_gguf.py. - Ask
benchmarkerto record a baseline. - Ask
optimizerfor one speed variable to change. - Ask
benchmarkerto repeat the same benchmark. - Keep the fastest reproducible command in
research/results.tsv.
Keep comparisons controlled: same model, exact GGUF, prompt, max_tokens, context, and llama.cpp build unless the experiment is explicitly changing one of those variables.
References
https://code.claude.com/docs/en/settingshttps://code.claude.com/docs/en/sub-agents