Skip to content

CLAP roadmap ​

This roadmap is a working engineering plan, not a promise of dates. Items are ordered by user value and implementation risk. Completed entries stay visible so the next milestone can be understood from the repository itself.

Recently completed ​

  • Incremental Ninja direct builds with dependency-file tracking.
  • clap bootstrap --warmup for cold-start preparation.
  • Build profiles, pkg-config support, clap.lock.json dependency locking, and clap deps introspection.
  • clap inspect with an additive-stable JSON schema and schema/project-v1.json for clap.toml validation.
  • JUnit XML output for direct tests and native per-test CTest JUnit output for CMake tests.
  • Conservative zero-config source autodiscovery.
  • Windows Unicode paths, deep project paths, and process-tree interruption hardening.
  • vcpkg integration and mergeable VS Code configuration generation.
  • Build timing diagnostics, including conservative per-edge timing_steps for direct Ninja builds.
  • Cached toolchain lifecycle/integrity commands.
  • Direct, aggregate multi-test, and CMake GCC/Clang coverage reports with branch-aware Cobertura XML.
  • Reproducible local benchmark measurements for cold, no-op, incremental, coverage-report, object-cache, raw-compiler, and raw-CMake comparison builds.
  • Opt-in content-addressed object cache for direct and CMake GCC/Clang/Zig Ninja builds.
  • A lightweight automatic GitHub CI gate plus scripts/ci-local.sh for maintainer-side validation.
  • A reproducible cross-platform validation script with recorded Linux, macOS, and Windows evidence.
  • A source-built VS Code extension scaffold with compile/tests/local .vsix packaging and explicit non-Marketplace positioning.
  • Bash, Zsh, and Fish completion generation from live CLI parser metadata, with Bash/Fish runtime and zsh syntax validation where shells exist.
  • Coverage threshold gates and self-contained HTML coverage summaries.
  • Versioned dependency lock schema plus concrete dependency remediation actions in clap deps.
  • Parallel-scaling benchmark scenarios and refreshed measured performance evidence.
  • Real VS Code extension-host validation.
  • Homebrew packaging validated natively on macOS while remaining unpublished; the Scoop package is validated natively and published in the existing public bucket.
  • Direct static-library project scaffolding.
  • Manifest-mode vcpkg validation with explicit pkg-config/MSVC prerequisite guidance in clap deps.
  • ARM64 Linux/Windows cross-build profiles validated through real AArch64 artifact inspection.
  • Transparent npm and Chocolatey packaging drafts, local npm wrapper validation, and an honest winget design note.
  • VS Code native compiler diagnostics and task-provider discovery validated in a real extension host.
  • Direct-test glob selection, opt-in parallel execution, sequential/CTest fail-fast behavior, aggregate JUnit output, and a generated test-project template.
  • clap doctor dependency/cache diagnostics covering pkg-config and object-cache usage.
  • Dependency-lock package-set staleness diagnostics with declared/locked counts and fail-closed clap deps behavior.
  • Release verification guidance covering exact hashes, post-install consistency, attestations, and maintainer checks.
  • End-to-end Chocolatey validation on real Windows Chocolatey plus Docker-based Arch/AUR and Nix build/install/compile validation.
  • Native Windows/macOS validation of the published PyPI 0.42.0 artifact.
  • VS Code zero-config activation, cancellable process-tree-aware commands, file-watch status refresh, native task metadata, MSVC-style diagnostic parsing, multi-root workspace-aware command/task resolution, and real-CLAP extension-host validation.
  • VS Code Marketplace publication through GitHub OIDC Trusted Publishing, ordinary-emoji icon/attribution, project-template creation, Marketplace-ready README/one-click editor actions, Getting Started walkthrough, configure/build follow-through, and running-state status cancellation.
  • Watch mode (--watch/-w) for build/run/test with dependency-free polling and process-tree-aware restarts.
  • VS Code debugger launch configuration generation in clap vscode (gdb/lldb/cppvsdbg, merge-safe).
  • Interactive integrated-terminal execution validated natively on Windows PowerShell and macOS, including focus/reuse fixes in extension 0.2.6.
  • Truthful Windows portable artifact (embedded CPython + pinned CMake/Ninja + native launcher) validated on stripped-PATH Windows, attached to the 0.44.0 release, with a winget manifest draft; Snap package built in managed core24 LXD and validated end to end.
  • Declarative vendored dependencies: [dependencies] pins in clap.toml, clap sync hash-verified vendoring with drift repair, clap add one-command pinning, compiled-library sources linking with zero flags — validated end-to-end against real cJSON and the full SQLite amalgamation on Windows and macOS (0.52–0.53).
  • Curated dependency registry: clap add doctest/cjson/sqlite/nlohmann-json with pins verified against real downloads before shipping and re-verified at add time (0.55).
  • clap init --adopt for existing codebases: writes only clap.toml around discovered sources (recursive src/ trees in 0.56), refusal messages teaching the remedy in place (0.55–0.56).
  • qemu-user cross-execution: cross-compile becomes cross-run on Linux hosts, transparently through binfmt_misc or the qemu binary, with honest refusals elsewhere (0.54).
  • setup-clap composite GitHub Action with toolchain caching, validated in CI on all three operating systems; clap init --ci generates workflows that use it (0.54).
  • wasm32-wasi as a documented working zig target — C compiles to WebAssembly and executes in Node.js WASI, verified live (0.54).
  • VS Code Test Explorer integration, watch-run command, sync/add commands, curated-profile selection, Adopt Existing Sources command (extension 0.2.7–0.2.16).
  • Automated portable-zip release pipeline, docs-only CI gating, community-health files (SECURITY.md, issue forms), russian landing page, and the montage/demo evidence pipeline with frame-level verification.
  • GitHub Pages project site published from docs/ with a landing page and documentation index.
  • Zero-setup doctest support with pinned SHA-256-verified single-header bootstrap, plus clap init --template doctest.
  • Bare clap test autodiscovery: a scaffolded --template test project runs its whole tests/ tree with zero arguments; test binaries execute as independent programs (0.62).
  • clap dist release engineering: cross-compiled target matrix (Linux musl x86_64/aarch64 + Windows) with per-target archives and SHA-256 checksums in one command, verified against real foreign-architecture artifacts (0.64).
  • clap init --ci release automation: generated workflows build the dist matrix on tag push and attach archives to the GitHub release — validated end to end in a real repository after catching and fixing a structural dead trigger (0.65, fixed 0.69.1).
  • clap install for user-local release installs (0.66).
  • clap update: stale curated pins surface and refresh in one command, with verify-before-write and fork protection (0.69).
  • zig debug-mode signed-overflow traps neutralized with -fwrapv by default — correct hash/noise library code (FastNoiseLite class) no longer aborts in debug builds, matching every other toolchain's semantics (0.69).
  • Curated registry grown to 22 pins spanning JSON, SQLite, testing, noise, math, hashing, lexing, audio, images, fonts, compression-adjacent utilities — every pin compile-and-link verified end to end by scripts/verify_registry.py (0.67–0.72).
  • clap add include hints: the exact #include line derived from the real vendored layout, in human output and as include_hint in --json for agent consumption; namespaced pins (nlohmann/json.hpp, argparse/argparse.hpp) preserve their idiomatic layout via file_path (0.71).
  • Fuzzy curated-name suggestions (clap add json points at cjson/nlohmann-json) (0.69.2).
  • Directory-positional dependency-sources fix: clap run . and clap build . now compile dependency library sources exactly like the bare form — the documented invocation was silently dropping them (0.71.1).
  • Release-gated registry verification: every release must compile-and-link all curated pins on real zig before it can pass (release workflow).
  • Honest comparison documentation (docs/COMPARISON.md) with verified claims about where gcc/CMake/Meson/xmake/MSVC each win.
  • Zero-setup --sanitize undefined through the pinned Zig toolchain's native undefined-behaviour runtime.
  • VS Code Test Explorer integration in extension 0.2.7 with discovery by layout/naming and per-test execution.
  • Recorded terminal demos: real pexpect/ANSI capture pipeline producing quickstart, watch, doctest, coverage, UBSan, and cross-compilation GIFs plus a montaged narrated-structure mp4 embedded in the site hero.
  • Rich dark landing site with feature grid, per-feature demo sections, click-to-copy install commands, favicon, OpenGraph card, and compressed looping video segments.
  • Release automation building and attaching the Windows portable zip from the freshly built release wheel in the same workflow that publishes it.
  • clap init --ci generating a cross-platform GitHub Actions workflow for new projects.
  • Pinned-by-SHA GitHub Actions with grouped Dependabot updates and lazy-import startup reduction (~35% faster module import).
  • Multi-profile matrix builds: one clap build invocation producing a profile-suffixed binary per target, plus clap vendor URL --sha256 for hash-verified single-header dependencies.
  • Static musl cross profiles producing zero-dependency Linux binaries, validated end-to-end on macOS and Linux, plus the clap targets profile discovery command.
  • Declarative vendored dependencies: [dependencies] pins in clap.toml, clap sync verified vendoring, automatic zero-flag include roots, compiled dependency sources (cJSON/SQLite verified end-to-end on Windows, macOS, Linux), clap add one-step pinning, single-file drift self-repair found by macOS validation.
  • qemu-user cross-execution: foreign-architecture Linux binaries execute transparently on Linux hosts for both direct and CMake paths, validated live on x86_64 with aarch64 artifacts and continuously in the CI cross-run smoke.
  • The setup-clap composite GitHub Action with per-OS toolchain caching; clap init --ci generates pinned workflows on it; the action itself is smoke-tested on Linux/Windows/macOS runners in CI.
  • wasm32-wasi verified as a working --target: C compiles to WebAssembly and executes in Node.js WASI, validated on Linux and macOS.
  • VS Code dependency commands (Sync/Add/Watch Run) in extension 0.2.15, Test Explorer test-case navigation in 0.2.12.
  • Windows platform validation recorded on video: init/run/watch on a machine with no Visual Studio or MinGW, embedded in the site.
  • Per-doctest-case VS Code Test Explorer granularity (extension 0.2.9) with assertion-level failure details; Test Results no longer exposes raw doctest XML (0.2.10).
  • Object-cache population without per-translation-unit Python wrappers — misses compile directly and are stored once per build in-process, with validate-only hits avoiding pointless relinks.

Active engineering priorities ​

1. Coverage and CI quality gates ​

Goal: make coverage enforceable in ordinary CI, not only visible after the fact.

  • Keep Windows GCC/MinGW coverage expectations visible in docs and revalidate after changes to report generation; the pinned-Zig limitation remains explicit.

2. Dependency workflows ​

Goal: make non-trivial C/C++ projects reproducible without turning CLAP into another package manager.

  • Validate more real pkg-config dependency shapes on Windows/macOS without implying that vcpkg or system package installation is automatic.

3. Build performance and cache behavior ​

Goal: reduce repeated compile cost beyond Ninja's per-project incremental behavior and make regressions visible.

  • Reduce the fixed overhead visible in object-cache hits for many small translation units; measurements now distinguish fixed startup/restore/link cost from compile scaling.
  • Keep per-edge timing semantics conservative: cache hits and no-op edges must not be presented as fresh compiler work.

4. IDE integration ​

Goal: make editor setup close to zero while remaining honest about what is generated.

  • Continue measuring real VS Code extension usability in ordinary editing sessions beyond the validated command/task/cancellation/status/multi-root/terminal basics.
  • Keep clap vscode merge behavior conservative and covered by regression tests.

5. Distribution and installation ​

Goal: meet users in the package managers they already use.

  • Keep PyPI as the primary install path.
  • npm, Homebrew, Chocolatey, AUR, and Nix drafts now have validation evidence, Scoop is published, Chocolatey is submitted for moderation, the Snap package is built/validated and the winget portable artifact plus manifest draft exist; both are attached to/drafted against the 0.44.0 release. Store submissions remain maintainer-credential-gated.
  • Publish externally only when the required accounts and credentials exist; drafts must never be represented as published packages.

6. Cross-platform validation ​

Goal: keep Windows and macOS behavior real instead of assumed.

  • Use existing Windows/macOS validation sessions for user-visible platform changes.
  • Keep hosted GitHub CI lightweight and run expensive platform validation locally or on maintainers' machines where possible.
  • Re-run cross-platform validation after changes that affect process spawning, path handling, toolchain discovery, coverage, or object caching.

7. Repository evidence and documentation ​

Goal: make the project easy to evaluate without marketing claims.

  • Keep the demo pipeline (scripts/record_demo.py, scripts/montage_demo.py) reproducible as workflows evolve; re-record segments when UX changes.
  • Keep README, README.ru, examples, schemas, shell completions, and changelog synchronized with real behavior.
  • Add troubleshooting entries only after reproducing the underlying problem.

8. Developer-experience features ​

Goal: grow the core workflows that make CLAP feel like a complete toolchain rather than a bootstrapper.

  • Snap artifact attachment in the release workflow was evaluated and deferred: managed LXD snap builds are too slow and fragile for the tag-triggered release path; the validated local build flow in packaging/snap/ remains the supported way to produce the artifact.

Explicit non-goals ​

  • CLAP is not a new C-like or Python-like programming language.
  • CLAP is not a reimplementation of a C/C++ compiler.
  • CLAP does not vendor or re-sign third-party package-manager artifacts as if they were first-party releases.
  • CLAP does not claim coverage, sanitizer, or platform support that the pinned toolchain cannot provide.