cpu-mode
Command-line client for cpu.mode, a benchmark judge for tiny systems-code challenges.
This repository is intentionally separate from the private server and judge repo. The CLI talks only to the public HTTP API.
Install
From crates.io:
From source:
Upgrade an existing install:
Login
The CLI uses the cpu.mode headless login flow. It prints a GitHub verification URL and code, waits for approval, then stores a cpu.mode API token locally.
The server-side auth endpoints are:
POST /auth/cli/start
POST /auth/cli/poll
GET /auth/session
Examples
List challenges:
Print the raw API response:
Show challenge metadata:
Read a leaderboard:
Read the all-system geomean slowdown leaderboard:
Public solutions that are not ranked because the same user has a faster solution can still appear with a blank rank.
Submit a Rust solution and wait for all system jobs:
Submit C++ with GCC instead of the default Clang compiler:
Inspect a job:
Show queued jobs first, then newest jobs by queue time:
Download a job profile:
Show a job's top-down analysis:
Show a solution and make it public:
Make it private again:
Show a user submission history:
Command output is human-readable by default. Pass global --raw when an agent or script
needs the exact JSON API response.