Every crate in crates/ is listed here, with the file where it starts and the chapter that covers its behavior. The module docs at the top of each entry file are the maintained description. When this table and a crate disagree, the crate is right and this table needs fixing. boundaries keeps Duet and the physician client from importing each other’s clinical crates. The Shared table below is the list of crates both products may use. One crate sits a level deeper: coda-sandbox, the agent sandbox tool, lives in crates/workspace-tools/sandbox/ and is listed under Tooling and guards.
Coda’s design, as a catalog of AI-native component families: tokens, icons, and each component’s look, motion, gestures, states and accessibility, with no product rules
Plain-text or HTML messages through the Gmail API or the Workspace SMTP relay, plus the intake primitive, the history.list cursor reader (src/history.rs). Products own the copy, the links, the durable cursor, the polling schedule and the effects
Offline BGE encoder binary that speaks both the Duet and the physician encoder protocols; tests/compare.rs checks it against the existing Python workers. No crate depends on it
One product-neutral bounded provider/tool loop and ordered turn in engine. Chords chat and reply revisions supply a frozen recipe and implement engine::Product. The harness builds each request, emits ordered events and exposes the shared skill_view tool for each job’s visible package. Products keep authority, effects and persistence. The harness reconstructs recovery from their admitted records and messages.
The clinical library’s records and the nightly’s failure rules: article states, night outcomes counted from each night’s ledger, the stop rule, the slot lease and activation, with their Postgres schema; the night runner every source goes through, and the alerts the records raise; and its sources, starting with PubMed’s retraction and correction status read from NCBI’s E-utilities. Depends on no other local crate
Shared tracing, logging, and OpenTelemetry setup for the Rust services; the testing feature starts the disposable Docker Langfuse and collector for ignored tests
Models, operations and reference docs generated from the pinned coda-app OpenAPI plus Duet-owned additions. Regenerate with cargo run -p workspace-tools -- generate-duet-wire; do not edit outputs by hand.
On-device health samples from HealthKit and Health Connect; durable acquisition records, the native source adapter contract and the transactional upload outbox (account fencing and the batch transport live in duet-client::health_upload)
Every ui family rendered with its states, each at its own address, the command that builds and serves it, and the browser test that opens every family. Nothing depends on it
Tests that keep product dependencies apart, retain the reference shipping clients, and hold both apps’ raw controls, hand-built cards and library overrides to a checked-in table
Workspace command entrypoints, including generate-duet-wire, install-doppler, apply-migrations, the observability-drill routes, among them the staging Langfuse drills, and discord (read-only bot discovery, private verified channel and thread backups, offline inspect and search, and an offline publish that writes a static search site of consenting authors’ messages, in src/discord/); supporting checks and generator assets remain in scripts/
The agent sandbox tool: its config, doctor and status, worktree (seeded reflink worktrees), ci run (the CI spool client and the spool format the controller shares), ci-controller (the Firecracker CI controller the coda-ci units run), carry, and broker (the token broker that serves the container’s tokens from the host keyring) with its container clients credential and token. A root workspace member nested under workspace-tools, with its own flake (README) that builds only this crate from the root lockfile and ships the NixOS module services.coda-sandbox, which declares the container and CI it checks, so a host deploys it without the product flake. No crate depends on it
Builds the APK, opens the Android emulator (a window, or headless in CI) and runs one UI Automator class (cargo run -p android -- test [--headless] coda.duet.ModeShellTest)
extension/ holds Coda’s Chrome extension, which reads the practice’s EHR under the physician’s own sign-in, and its local sandbox bridge and tests. Its popup is the extension-popup crate; the rest is not a Cargo crate. Its README covers loading it and running a sandbox read.