Cross-platform Rust control plane core
Find a file
Sam & Claude cf7d25e83a Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude)
Greenfield cross-platform (FreeBSD/Linux) Rust crate per clawdie-ai doc/COLIBRI-CONTROLPLANE-PLAN.md. colibri-probe sends a byte-stable DeepSeek prefix twice and reports prompt_cache_hit_tokens as a clawdie.provider-smoke.result.v1 manifest; build-only/skipped without DEEPSEEK_API_KEY.

Stack: tokio + reqwest(rustls-tls, no OpenSSL) + serde + chrono. Builds clean on Linux (cargo build --release, 1m16s); rust-toolchain pinned to 1.95.0. FreeBSD (osa) build is the next lane.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 10:08:23 +02:00
src Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00
.gitignore Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00
Cargo.lock Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00
Cargo.toml Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00
README.md Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00
rust-toolchain.toml Scaffold Colibri Phase 1: colibri-probe DeepSeek cache smoke (Sam & Claude) 2026-05-26 10:08:23 +02:00

Colibri

The Clawdie control plane core — a small, cross-platform (FreeBSD + Linux) Rust daemon. It unifies a coordination model (agents-as-teammates, task board, team skills) with a cache-first cost discipline (byte-stable prompt prefixes, cache-hit metering), sitting on top of the existing Pi engine, watchdog, hostd and Postgres.

Design + implementation path: see doc/COLIBRI-CONTROLPLANE-PLAN.md in clawdie-ai.

Phase 1 — colibri-probe

A falsifiable first build that proves three things at once:

  1. Rust + rustls + tokio build cross-platform (Linux first, FreeBSD next).
  2. A raw DeepSeek HTTPS call works.
  3. DeepSeek prefix caching is real on our infra: send a byte-stable prefix twice and observe prompt_cache_hit_tokens > 0 on the second request.

It prints a clawdie.provider-smoke.result.v1 manifest on stdout.

Build (no key needed)

cargo build --release

Run

# Build-only / skipped mode (no key): verifies the binary runs.
./target/release/colibri-probe

# Live cache probe:
DEEPSEEK_API_KEY=sk-... ./target/release/colibri-probe

Env overrides: DEEPSEEK_MODEL (default deepseek-chat, the DeepSeek API model string — distinct from our internal deepseek-v4-flash alias), DEEPSEEK_ENDPOINT, COLIBRI_HOST.

FreeBSD note

Target x86_64-unknown-freebsd (Rust Tier-2). Install via pkg install rust or rustup; the rust-toolchain.toml pins the channel for cross-host reproducibility. TLS is rustls to avoid openssl-sys linking on FreeBSD.