cpu-mode-0.2.0 is not a library.
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 source:
After publishing to crates.io:
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:
Submit a Rust solution and wait for all system jobs:
Inspect a job:
Download a job profile:
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.