Versions in this module Expand all Collapse all v0 v0.7.17 Dec 3, 2026 v0.7.16 Dec 3, 2026 Changes in this version + const DefaultN + const FlagName + const LearnedTTL + const MinLearned + const MinObserved + const RereadAfter + func LearnedDisagreements() int64 + func ManagedSettingsDir(goos string) string + func RouteOf(provider, wire string) string type ClaudeCode + FlagWindows map[string]int + NoServerFlags bool + Read bool + func ReadClaudeIn(getenv func(string) string, home, goos, cwd string, open Open) ClaudeCode + func (c ClaudeCode) Assume(model string, window int) (Point, bool) + func (c ClaudeCode) Hint(model string) Hint + type ClaudeReader struct + GOOS string + Getenv func(string) string + Home string + Now func() time.Time + Open Open + func (r *ClaudeReader) Get(cwd string) ClaudeCode + type Hint struct + FromFlag bool + N int + NoServerFlags bool + type KV interface + Get func(key string) ([]byte, bool) + Put func(key string, payload []byte) + type Kind string + const KindAbsolute + const KindFractional + const KindNone + type LearnKey struct + Client Client + Model string + Route string + Version string + func LearnKeyFor(cl agent.Client, model, route string) LearnKey + type Learner struct + Now func() time.Time + func (l Learner) NoteDisagreement(st KV, k LearnKey, setting Point) + func (l Learner) Observe(st KV, k LearnKey, billed int) + func (l Learner) Point(st KV, k LearnKey, window int) (Point, bool) + type Limits struct + Kind Kind + Source Source + Tokens int + Window int + WindowExact bool + func LimitsOf(window int, exact bool, tokens int, src Source, kind Kind) Limits + func PointLimits(window int, exact bool, p Point) Limits + func (l Limits) ForAccountant() (window, point int) type Point + func AssumeHosted(client Client, model string, window int) (Point, bool) + func (p Point) Kind() Kind type Settings + ClaudeReader *ClaudeReader + func (s Settings) Assume(client Client, model string, window int) (Point, bool) type Source + const ClaudeAssumed + const Learned v0.7.15 Dec 2, 2026 v0.7.14 Dec 1, 2026 v0.7.13 Dec 1, 2026 v0.7.12 Nov 30, 2026 Changes in this version type Client + func ClientOf(cl agent.Client) Client v0.7.11 Nov 30, 2026 v0.7.10 Nov 26, 2026 v0.7.9 Nov 25, 2026 Changes in this version + const BobDefaultThreshold + const BobFallbackWindow + const ClientToBilled + const OffEnv + func BobSystemSettingsPath(getenv func(string) string, goos string) string + func CleanBobWindows(windows map[string]int, max int) map[string]int + func IsClientSource(src string) bool + type Bob struct + Read bool + Threshold string + func ReadBob(getenv func(string) string, home, goos string, open Open) Bob + func (b Bob) Resolve(window, bobWindow int) (Point, bool) + type ClaudeCode struct + EnvDisable string + EnvDisableAuto string + EnvPct string + EnvWindow string + ModelWindows map[string]string + SettingsEnabled string + SettingsWindow string + func ReadClaude(getenv func(string) string, home string, open Open) ClaudeCode + func (c ClaudeCode) Resolve(model string, window int) (p Point, ok bool) + type Client string + const ClientBob + const ClientClaude + const ClientCodex + const ClientNone + type Codex struct + Limit string + PostTurn string + Scope string + func ReadCodex(getenv func(string) string, home string, open Open) Codex + func (c Codex) Resolve(window int) (Point, bool) + type Open func(path string) (fs.File, error) + type Point struct + Abs int + Frac float64 + Note string + Source Source + func For(model string) Point + func Recorded(model string, abs int, src string) Point + func Resolve(model string, tokens, window int) Point + func (p Point) FromClient() bool + func (p Point) Tokens(window int) int + type Settings struct + Bob Bob + Claude ClaudeCode + Codex Codex + func (s Settings) Pick(client Client, model string, window int, bobWindow func(model string) int) (Point, bool) + type Source string + const Assumed + const ClientDefault + const Configured + const Measured + const Operator + const WindowFallback