CRATES // WORKSPACE MANIFEST

Crates

A tool call's output becomes part of the model's context, and one crate in this workspace is the code that transforms it before the model reads it.

Two workspace crates plus the vendored Headroom fork that carries the content transforms.

It is the reason the fork stays separate: Aphrodite adds the preview pipeline, CCR storage, Hermes integration, and dual-proxy architecture on top of Headroom, instead of rewriting the transforms.

The binary links the fork's headroom-core library only, published as aphrodite-headroom-core v0.2.1: upstream's proxy surface does not ship in Aphrodite.

Every crate is installable on its own; which one an install actually needs follows from the dependency chain.

01 // WORKSPACE // 3 PUBLISHED NAMES

What the workspace publishes

3 names leave this workspace, and none of them is typed by hand: the workspace Cargo.toml decides which crates exist, and every entry is read from that crate's own manifest - its name, its version, its description. A crate added to the workspace appears in the roster with no edit anywhere, and a crate removed from it leaves the same way.

CRATEROLESHIPSVERSION
aphroditeChat Completions proxy with CCR, tool relay, and programmatic CCRthe aphrodite binary + a cdylib/rlibv1.8.1
aphrodite-hermesHermes Agent integration - tool schemas, hook dispatch, skill registrationthe dylib + the aphrodite-hermes-setup helperv1.8.1
aphrodite-headroom-coreThe content transforms - classifier, smart crusher, tokenizera library only; upstream's proxy surface does not shipv0.2.1

SRC: README.md:515-519

SRC: crates/aphrodite/Cargo.toml; crates/aphrodite-hermes/Cargo.toml

02 // CASES // THE MANIFEST, CRATE BY CRATE

Each crate in full

Each name declares itself once, in its own manifest: the version is that file's version and the role is that file's description, so the roster cannot drift from the crates it describes. What each one puts on disk is the difference that matters before an install - a cargo install for the two workspace crates, and for the vendored fork the dependency line that pulls it in, because a library has no binary to place. Colour is the crate's kind and not its rank: canary is a workspace crate a reader installs, teal is the vendored fork that arrives as a dependency.

CASE #01

aphrodite

v1.8.1

Chat Completions proxy with CCR, tool relay, and programmatic CCR.

WORKSPACE // INSTALLABLE

SHIPS the aphrodite binary + a cdylib/rlib

Ships the aphrodite binary and a cdylib/rlib library; built on axum and tokio.

INSTALL // CARGO:

$ cargo install aphrodite
<<<CCR:crate.aphrodite|1.8.1|axum-0.8.9+tokio-1.53.1>>>

SRC: crates/aphrodite/Cargo.toml

CASE #02

aphrodite-hermes

v1.8.1

Hermes Agent integration - tool schemas, hook dispatch, skill registration.

WORKSPACE // INSTALLABLE

SHIPS the dylib + the aphrodite-hermes-setup helper

Ships the aphrodite-hermes-setup helper binary and the dylib; watches config with notify.

INSTALL // CARGO:

$ cargo install aphrodite-hermes

SRC: crates/aphrodite-hermes/Cargo.toml

CASE #03

aphrodite-headroom-core

v0.2.1

The content transforms - classifier, smart crusher, tokenizer.

VENDORED // DEPENDENCY

SHIPS a library only; upstream's proxy surface does not ship

The vendored fork's core library, linked by the proxy crate and published under its own name - upstream's proxy surface does not ship in Aphrodite.

ARRIVES AS // A DEPENDENCY, NOT A COMMAND:

aphrodite → aphrodite-headroom-core

A library only, so cargo install has no binary to place on disk: the proxy crate declares it, and the transforms compile into the binary.

SRC: vendor/headroom/crates/headroom-core/Cargo.toml

03 // DEPENDENCY // ONE CHAIN, 3 LINKS

Who pulls whom

The three names are one chain and not three islands. Each link is a path dependency in the manifest one step up, so the direction never reverses: the vendored core knows nothing about the proxy, the proxy knows nothing about Hermes, and Hermes is the only crate that speaks to the agent. That is why an install names two crates and receives three.

04 // CONFIGURATION SURFACE // APHRODITE.TOML.EXAMPLE

What the crates read at runtime

One TOML file is read by both halves of the pair: the proxy takes its listeners and its flow budget from it, the dylib takes the compression thresholds and the previews. The shipped example carries the keys grouped the way the file groups them, and every value is the example's own default rather than a recommendation.

PROXY // PROXIES, DEFAULTS, FLOW

[[proxies]]
cache → 127.0.0.1:9797 timeout 120
token → 127.0.0.1:9798 timeout 300
tool_relay = true (both)
[defaults]
api_url = "https://api.openai.com"
ccr_ttl_seconds = 3600
[flow]
budget_chars = 2600

ENGINE // COMPRESSION, PREVIEWS

[compression]
engine_threshold_pct = 30
tool_threshold_token = 256
tool_threshold_cache = 2048
terminal_threshold = 256
inline_threshold = 1024
code_multiplier = 1.0
auto_reload = true # shipped default
[previews]
preview_max_chars = 0

Keys without a live consumer are annotated DOCUMENTED BUT UNWIRED in the example; the [templates.*] section is live configuration - preview families, the marker block, prompt templates and the reverse key map render from these format strings (hardcoded builders apply when a block is absent).

Marker grammar: <<<CCR:hash|type|size>>>

SRC: aphrodite.toml.example; CHANGELOG.md v1.8.1