Documentation
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package catalogdata embeds the pinned price sheets.
|
Package catalogdata embeds the pinned price sheets. |
|
cmd
|
|
|
costroid
command
Command costroid is the cost check for pull requests.
|
Command costroid is the cost check for pull requests. |
|
internal
|
|
|
adapter
Package adapter holds what every agent adapter hands the wrapper.
|
Package adapter holds what every agent adapter hands the wrapper. |
|
adapter/claudecode
Package claudecode reads Claude Code runs.
|
Package claudecode reads Claude Code runs. |
|
adapter/codex
Package codex reads `codex exec --json` runs.
|
Package codex reads `codex exec --json` runs. |
|
catalog
Package catalog prices token classes against the pinned sheets.
|
Package catalog prices token classes against the pinned sheets. |
|
cicontext
Package cicontext reads what the CI system says about a run.
|
Package cicontext reads what the CI system says about a run. |
|
comment
Package comment turns FOCUS rows into the check output and the sticky pull request comment.
|
Package comment turns FOCUS rows into the check output and the sticky pull request comment. |
|
config
Package config checks a costroid.yml against the published schema.
|
Package config checks a costroid.yml against the published schema. |
|
decimal
Package decimal is an exact base-10 number for money and quantities.
|
Package decimal is an exact base-10 number for money and quantities. |
|
egress
Package egress is the one way out of costroid serve.
|
Package egress is the one way out of costroid serve. |
|
fanout
Package fanout runs CPU-bound work over a list on every core the process has.
|
Package fanout runs CPU-bound work over a list on every core the process has. |
|
focus
Package focus holds the Costroid FOCUS row, version 0.3, and its writer.
|
Package focus holds the Costroid FOCUS row, version 0.3, and its writer. |
|
gateway
Package gateway gives one CI run its own key on a LiteLLM proxy.
|
Package gateway gives one CI run its own key on a LiteLLM proxy. |
|
gateway/gatewaytest
Package gatewaytest serves the LiteLLM proxy routes costroid gateway calls, as LiteLLM v1.108.1 answered them on 2026-11-07, for tests.
|
Package gatewaytest serves the LiteLLM proxy routes costroid gateway calls, as LiteLLM v1.108.1 answered them on 2026-11-07, for tests. |
|
oidc
Package oidc verifies CI OIDC ID tokens and reads a run's identity from them.
|
Package oidc verifies CI OIDC ID tokens and reads a run's identity from them. |
|
oidc/oidctest
Package oidctest is a stub OIDC issuer for tests: an RSA key, a JWKS endpoint and a signer.
|
Package oidctest is a stub OIDC issuer for tests: an RSA key, a JWKS endpoint and a signer. |
|
otlp
Package otlp reads OTLP/HTTP traces and logs into per-request usage.
|
Package otlp reads OTLP/HTTP traces and logs into per-request usage. |
|
policy
Package policy decides the check's conclusion.
|
Package policy decides the check's conclusion. |
|
recipelint
Package recipelint holds the shipped CI recipes to their security rules: no privileged trigger, every action pinned by SHA, and an agent's job that holds nothing but read access to the code.
|
Package recipelint holds the shipped CI recipes to their security rules: no privileged trigger, every action pinned by SHA, and an agent's job that holds nothing but read access to the code. |
|
reconcile
Package reconcile compares the ledger with the provider's own reports, per credential per day, in two steps.
|
Package reconcile compares the ledger with the provider's own reports, per credential per day, in two steps. |
|
run
Package run launches an agent under a budget and turns its usage into rows.
|
Package run launches an agent under a budget and turns its usage into rows. |
|
scm
Package scm reaches a source-code host through one interface.
|
Package scm reaches a source-code host through one interface. |
|
scm/scmtest
Package scmtest holds stub GitHub and GitLab APIs for tests.
|
Package scmtest holds stub GitHub and GitLab APIs for tests. |
|
server
Package server is the ingest service behind costroid serve: the result-stream and OTLP paths, pricing against the pinned catalog, and the per-PR view.
|
Package server is the ingest service behind costroid serve: the result-stream and OTLP paths, pricing against the pinned catalog, and the per-PR view. |
|
store
Package store is the ledger: FOCUS rows in Postgres, one tenant at a time.
|
Package store is the ledger: FOCUS rows in Postgres, one tenant at a time. |
|
store/storetest
Package storetest runs Postgres in Docker for the packages that need it.
|
Package storetest runs Postgres in Docker for the packages that need it. |
|
Package migrations embeds the forward-only schema migrations.
|
Package migrations embeds the forward-only schema migrations. |
|
scripts
|
|
|
accuracy
command
Command accuracy keeps the inputs of one day's reconciliation, writes the accuracy page from every day kept, and checks the page against them.
|
Command accuracy keeps the inputs of one day's reconciliation, writes the accuracy page from every day kept, and checks the page against them. |
|
record
command
Command record turns an agent's run into a test fixture that holds no content: no prompt, no reply, no tool output, no path and no credential.
|
Command record turns an agent's run into a test fixture that holds no content: no prompt, no reply, no tool output, no path and no credential. |
Click to show internal directories.
Click to hide internal directories.