/c10k-dojo:setupfrom c10k-dojo
One-time setup — build the offline docs bundle, the benchmark image, and check tooling.
Ships in c10k-dojo. Installing the plugin adds it to Claude Code.
Prepare the learner's project for the dojo. Run from the project directory where the learner will
build (their workspace/ and docs/ will live here).
./workspace/ if missing (the agent's only writable code dir).require 'protocol/http1', 'rack', 'async', etc. Provision them so the learner can
run bundle exec ruby workspace/<server>.rb locally:
${CLAUDE_PLUGIN_ROOT}/env/bench/Gemfile and
${CLAUDE_PLUGIN_ROOT}/env/bench/config.ru to the project root,bundle config set --local path vendor/bundle && bundle install.
After this, bundle exec ruby -e "require 'protocol/http1'" succeeds with no network. (Step 1's
echo is stdlib-only and needs none of this; the requirement starts at Step 2.)"${CLAUDE_PLUGIN_ROOT}/env/docs/build-bundle.sh" — it generates
./docs/ (ri dumps, man pages, the protocol-http1 cheatsheet, the Rack spec, INDEX.md). Confirm
./docs/INDEX.md exists afterward.ab — all already present on a
typical macOS/Linux box, nothing to install. Check Docker (docker version), Go (go version),
and ApacheBench (ab -V; it ships at /usr/sbin/ab on macOS). Build the target image:
docker build -t c10k-target -f "${CLAUDE_PLUGIN_ROOT}/env/bench/Dockerfile.target" "${CLAUDE_PLUGIN_ROOT}/env/bench".
ab measures throughput + latency; env/bench/holder.go (run with go run) measures
held-connection capacity, which ab can't. The cage pins to one core (--cpuset-cpus=0).ollama pull llama3:8b; it listens on :11434) and launch with --model llama3:8b (the
c10k-dojo.sh wrapper forwards it). Record the choice with
"${CLAUDE_PLUGIN_ROOT}/bin/dojo.sh" set-mode <local-jailed|anthropic-api>.${CLAUDE_PLUGIN_ROOT}/env/ai-jail.toml as a template.Report what's ready and what's missing, then tell them to run /c10k-dojo:start.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Other plugins' commands for the same job
npx claudepluginhub geeksilva97/brk --plugin c10k-dojo7 commands in this plugin
/benchRun the constrained benchmark against the learner's current server and record the result./hintGive a scoped hint for the current step — never the full spine./nextAdvance to the next step after the current step's success check passes./revealInstructor escape hatch — show the reference implementation for the current step./startBegin or resume the c10k-dojo at your current step./statusShow dojo progress, the benchmark results table, and the connections-vs-survival curve.