Aphrodite compresses context before it hits the LLM.
It is the reason there are two integration paths: a reverse proxy for any OpenAI-compatible client, or a native Hermes plugin with hook-level interception.
CCR (Compress-Cache-Retrieve) storage, a 30-type classifier, context engine, and prefetch pipeline - all under 1ms.
This tree documents the current binary and plugin pairing.
The version numbers are not repeated here - they live in crates/aphrodite/Cargo.toml, plugins/aphrodite/plugin.yaml, and the newest CHANGELOG entry, so a release never leaves this page advertising an older one.
Getting Started
- Installing Aphrodite - which artifact you need (proxy binary vs. Hermes plugin), with a decision tree
- Windows Install - fast path with
download.ps1(native PowerShell, nobashneeded) - macOS/Linux Install -
download.sh,aphrodite setup, building from source - Troubleshooting - proxy not auto-launching, verifying the proxy without a full Hermes session, the two-config-files trap
Architecture
- Architecture Index - all 11 flow traces: startup, chat compression, retrieve, hook/FFI, CCR lifecycle, SSE streaming, config resolution, dylib loading, release CI, components, data model
CCR (Compress-Cache-Retrieve)
- Marker Format -
<<<CCR:hash|type|size>>>schema with BLAKE3 hash, 30 content types, TOML-driven preview templates - Lifecycle - the 6-phase flow: compress, retrieve, expire (TTL+LRU+debounce), with threshold tables per type and mode
- Backends
Classification
- Content Types - the 30-type taxonomy with detection order, threshold groups, and preview forms
- Classification Index
Config & Install
- aphrodite.toml - full schema:
[[proxies]],[defaults],[compression],[previews],[templates.*],[flow], precedence rules, config reload - Environment Variables - the
APHRODITE_*registry with the documented-but-inactive list
Proxy
- Architecture - two-listener model (:9797 cache + :9798 token), routing table, management-route bearer auth, SSE pass-through
- Handlers - all 8 handlers with their behaviors
- Retry - connect-phase retry scope, backoff, counters
- Compression - detect → threshold → hash → store → marker pipeline, budget curve, smart markers
API & Metrics
- Health -
GET /healthliveness,X-Aphrodite-Fill-Pct - Metrics Endpoint -
GET /metricsPrometheus text - Retrieve -
POST /retrievehash lookup, query, pagination - CCR Endpoints - create/list/delete/reload with the error table
- Prometheus - all 28 metric names, types, labels
- Queries - PromQL reference: CCR hit rate, latency
Plugin
- Hooks - the SIX hooks with purpose and fire-time table
- Directives - built-in set, injection order, materialization
- Context Engine - the opt-in pass-through engine
Tool Relay
Examples & Guides
- CCR Examples: What the LLM Sees - real captured markers, preview families, token economics
- Hermes Integration - pure-loader plugin, runtime home, self-healing layout
- Hermes Tool Output Schemas - the 43-shape tool-by-tool output catalog
Roadmap
- Centers - AI-conversation memory annotations; shipped vs. sketch items labeled
Style Guide
Every doc in this tree follows one style, the same one this page and the root README.md use:
| Rule | What it means |
|---|---|
| Explain, then detail | Open with one or two plain sentences on what the thing is and why it exists, then drop into tables/code |
| Tables over prose | Fields, flags, options, comparisons - anything with more than two rows of structured data - are a table, not a bulleted wall of text |
| No file/line citations | Docs describe behavior directly; they don’t cite exact source files or line numbers as proof - accuracy is a writing standard, not a footnote |
| No placeholder content | If a documented setting or feature isn’t confirmed to do anything, the doc says so plainly instead of presenting it as working |
| Minimal external links | Link out only when the reader needs to click through to do something (download a release, read an upstream project’s own docs) |
| Roadmap ideas are labeled | Forward-looking or unimplemented designs (see Centers) say clearly which parts are shipped and which are sketches |