Introduction
Hi Codeforces,
I would like to introduce XCPC Workstation — a local-first, open-source desktop workstation for competitive programming, built from the ground up in Rust and powered by Typst.
It is a ground-up successor to my earlier browser-based project, xcpc-statement-generator. While the original tool focused solely on web-based statement editing, XCPC Workstation is designed as a complete personal competitive programming environment: a local problem library at the foundation, live-referenced contest composition and PDF publishing, and (in upcoming phases) a local deterministic Polygon workflow and training dashboard.
The first public beta focuses on the authoring and publishing pipeline, which is now ready for daily use.

You can download prebuilt binaries (Windows and Linux) from GitHub Releases, or check out the source code on GitHub.
Why a Native Rewrite?
In practice, preparing a contest involves much more than formatting a single statement: reusing problems across rounds, keeping track of edits in Git, maintaining consistent PDF layouts across problems and editorials, and iterating quickly without waiting seconds for LaTeX recompilation.
XCPC Workstation addresses this with a single shared Rust core that drives the native desktop GUI, a headless CLI (xcpc), and a stdio MCP server (xcpc mcp).
Key Features
- Zero TeX Live, Millisecond Live Preview: Powered by an embedded Typst engine with incremental tiled rasterization. You do not need to install a multi-gigabyte TeX distribution, and edits reflect in the preview almost instantaneously.
- Standard Contest Layouts & Programmable Typesetting: Ships with editable template seeds including
olymp-classic(closely aligned witholymp.sty/ Polygon-style contest booklets, supporting covers, problem lists, optional blank pages, and A4 editorial booklets) andcnoi-classic(Chinese NOI/CSP-style layout). Native@preview/*package support (with offline fallbacks forcetz,pinit, andmannot) lets you embed vector diagrams and annotated formulas directly inside Markdown via```typstblocks. - Local-First, Git-Friendly Problem Library: Every problem lives in a plain-text directory (
problem.toml,statement.md,editorial.md,samples/,assets/). There is no opaque database locking your content in, making Git version control straightforward. - Live-Referenced Contests & Immutable Snapshots: Contests reference problems from your library by ID with optional per-contest metadata overrides (title, time/memory limits, template options). Fixing a typo in the library updates all unfrozen contests automatically. When a contest is finalized, freezing it runs preflight checks and snapshots all source files, active templates, and rendered PDFs into
snapshot/as a read-only archive. - Customizable Templates & Themes: Every template is a regular
.typfile on disk (templates/*.typor per-contestcontests/<id>/template.typ) with a declarative#let schemathat automatically renders layout controls in the Inspector panel. Workspace-level.xcpc/preamble.typmacros andtheme.tomlcustomization are also supported. - Built for Problem Authors: Includes
/slash commands (math blocks, matrices, piecewise functions, subtask tables, Typst blocks), floating math previews while editing, a split-pane sample editor with drag-and-drop reordering, a lightweight asset gallery, focus mode, and an optional Vim mode. - First-Class CLI & AI Agent (MCP) Support: The
xcpcCLI supports building, checking, and rendering contests/problems (with--jsonoutput for CI). Runningxcpc mcpexposes library search, statement editing, contest composition, diagnostics, and PDF export to MCP-compatible AI assistants (Claude, Cursor, Codex, etc.), with an optional--read-onlyflag for safe proofreading and diagnostics. External edits sync back to the open desktop app live without losing cursor state.

Getting Started
Prebuilt packages are available on GitHub Releases for: - Windows (x86_64): per-user installer (.exe, with auto-update) and portable .zip - Linux (x86_64): .deb, Arch .pkg.tar.zst, AppImage, and .tar.gz - Headless CLI / MCP: standalone xcpc binaries for servers and agent workflows
The desktop app includes a built-in example workspace — click "Open Example" on first launch to try the editor, templates, and PDF export immediately.
Roadmap
- Phase 3 — Local Polygon (Planned): Reproducible, cross-platform problem package building and stress testing using
wasi-sdk+ Wasmtime with fuel-based deterministic tick limits (inspired by Hull, without requiring Nix), alongside Polygon ZIP package import. - Phase 4 — Training & OJ Sync (Planned): Codeforces / AtCoder / QOJ submission sync, training analytics, contest retrospectives, and an upsolving queue.
Feedback & Contributions
XCPC Workstation is licensed under Apache-2.0 and is currently in Public Beta. If you encounter bugs, layout discrepancies, or have suggestions for the authoring workflow, please open an issue on GitHub or leave a comment below.
Thanks for reading!



