TypeScript and Python SDKs
The TypeScript SDK lives inpackages/sdk/typescript and the Python SDK lives in packages/sdk/python. Both implement the same high-level operations:
- Create a Caveman client
- Configure provider calls
- Define, defer, and search tools
- Compress eligible context
- Assemble a request from context parts
- Create and consume context packs
- Emit traces and OpenTelemetry data
- Apply runtime policy
/sdk/v1/* request contracts stay aligned across both languages. A contract change is incomplete until implementations, schemas, and tests agree in both SDKs.
Install the TypeScript SDK:
Neither SDK guesses cost for an unknown model. Unknown pricing remains zero and is explicitly marked
unpriced.Shared contracts
packages/shared/contracts stores JSON Schema wire contracts. The current schema set covers:
- Adapter conformance and agent-run receipts
- Cache guards and canonical spans
- Cave builds and Cave Plans
- Context intermediate representation
- Continuous-improvement reports
- Evaluation cases and grader registry
- Harness events and policy
- Practices
- Transform capabilities and traces
Provider catalog
shared/provider-catalog stores dated public list-price records and generated catalog outputs for local estimates. An unsupported model returns zero price plus an unpriced marker. The catalog does not represent invoice data.
Catalog updates need source date, provider unit semantics, generated-artifact refresh, and tests. See Accounting and evidence for how list-price subtotals relate to real billing.
Benchmark tooling
packages/subagent-tax measures local context and delegation fixtures without issuing provider requests. Its output is benchmark evidence for exact fixtures and counterfactual implementation, not a general savings claim.
Package release model
Registry packages release independently through scoped workflow inputs, while native binaries use a separate signed process. SeePACKAGE_RELEASES.md and Installation for details.