Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
janus
command
audit.go — the `janus audit` command: what left this machine.
|
audit.go — the `janus audit` command: what left this machine. |
|
internal
|
|
|
anthropic
Package anthropic holds the Messages API wire types: requests, content blocks, and stream events.
|
Package anthropic holds the Messages API wire types: requests, content blocks, and stream events. |
|
backend
Package backend defines the interface every model backend satisfies, and its two implementations: the upstream Anthropic API and local LM Studio.
|
Package backend defines the interface every model backend satisfies, and its two implementations: the upstream Anthropic API and local LM Studio. |
|
capture
Package capture writes the readable per-request logs: a Markdown render plus the raw request and response.
|
Package capture writes the readable per-request logs: a Markdown render plus the raw request and response. |
|
config
Package config loads and validates the config file, layered with flags and environment overrides.
|
Package config loads and validates the config file, layered with flags and environment overrides. |
|
guard
Package guard finds secrets in what is about to leave the machine.
|
Package guard finds secrets in what is about to leave the machine. |
|
guard/guardtest
Package guardtest holds the corpus of invented secrets that the guard's tests, and the leak tests, are run against.
|
Package guardtest holds the corpus of invented secrets that the guard's tests, and the leak tests, are run against. |
|
ledger
Package ledger writes one decision record per request to an append-only log, and computes the cache-weighted cost figures reported by janus stats.
|
Package ledger writes one decision record per request to an append-only log, and computes the cache-weighted cost figures reported by janus stats. |
|
mcp
Package mcp is a small Model Context Protocol server: enough of the protocol to offer tools to a client over standard input and output.
|
Package mcp is a small Model Context Protocol server: enough of the protocol to offer tools to a client over standard input and output. |
|
proxy
Package proxy is the HTTP front door: it accepts Messages API requests from the client, runs them through the pipeline, and relays the chosen backend's response, streaming included.
|
Package proxy is the HTTP front door: it accepts Messages API requests from the client, runs them through the pipeline, and relays the chosen backend's response, streaming included. |
|
route
Package route classifies requests and applies the routing policy that picks a backend for each one.
|
Package route classifies requests and applies the routing policy that picks a backend for each one. |
|
shadow
Package shadow runs a request a second time on the local model, after the real answer has gone out, and records how the two compare.
|
Package shadow runs a request a second time on the local model, after the real answer has gone out, and records how the two compare. |
|
validate
Package validate decides whether a local model's answer is fit to give to the client, or should be thrown away in favour of asking Claude.
|
Package validate decides whether a local model's answer is fit to give to the client, or should be thrown away in favour of asking Claude. |
|
worker
Package worker holds the tools janus offers Claude for handing work to the local model: reading that would otherwise fill Claude's context, done locally, with only a short answer going back.
|
Package worker holds the tools janus offers Claude for handing work to the local model: reading that would otherwise fill Claude's context, done locally, with only a short answer going back. |
Click to show internal directories.
Click to hide internal directories.