Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,853 in github.com/JuliusBrussee/caveman
⨍
Functions
12,853
◇
Types & classes
1,364
↳
Endpoints
5
↓ 2 callers
Function
bm25Scores
(query string, items []Item)
engine/contextwindow/contextwindow.go:186
↓ 2 callers
Method
body
body is the caller's whole request at this point of the session.
proxy/internal/translate/properties_test.go:128
↓ 2 callers
Function
bodyHasPixelMarker
(body: string)
packages/cli/src/index.ts:2170
↓ 2 callers
Function
boolPtr
(v bool)
engine/pixel/transform_anthropic.go:1544
↓ 2 callers
Function
bootstrapLocalWrapRuntime
(opts: WrapOptions)
packages/cli/src/index.ts:6324
↓ 2 callers
Function
bounded
(value: unknown, max = 160)
packages/cli/src/native-hook-fast.ts:159
↓ 2 callers
Function
bounded
(value string, max int)
proxy/internal/nativehook/hook.go:437
↓ 2 callers
Function
boundedMockResponse
(payload, status = 200)
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:25
↓ 2 callers
Function
bridgeTools
bridgeTools flattens the request's tools into plain functions. Tools only an OpenAI server runs (web_search, tool_search, image_generation, ...) have
proxy/internal/translate/responses.go:160
↓ 2 callers
Function
broadPath
(t *testing.T, path string)
proxy/internal/securehome/securehome_windows_test.go:167
↓ 2 callers
Function
buildBenchServer
(t *testing.T, mode string, upstream *statefulUpstream, sink gateway.TelemetrySink)
proxy/internal/standalone/e2e_cost_bench_test.go:989
↓ 2 callers
Function
buildCatalog
(entries)
packages/sdk/typescript/tests/parity.runtime.mjs:58
↓ 2 callers
Function
buildCountTokensRequest
(capturedBody)
packages/subagent-tax/lib/tokens.mjs:22
↓ 2 callers
Function
buildHermesEphemeralCodemodeHome
( sourceHome: string, outDir: string, cmEntry: CodemodeLaunchEntry, )
packages/cli/src/codemode.ts:1333
↓ 2 callers
Method
buildLearnPlan
(cwd string, sources []string, sinceExpr string, retro RetroOptions, repoFilter string)
proxy/internal/store/learn.go:171
↓ 2 callers
Function
buildLearnPortfolio
(sinks []Sink, windowDays float64)
proxy/internal/store/learn_portfolio.go:270
↓ 2 callers
Function
buildLiveRequestGuard
(pinText *string)
engine/pixel/transform_openai.go:557
↓ 2 callers
Method
buildPayloadFor
(spans: readonly OTelSpan[])
packages/sdk/typescript/src/index.ts:2285
↓ 2 callers
Function
buildRuleset
(mode)
src/hooks/caveman-activate.js:350
↓ 2 callers
Function
bumpGeminiPassthrough
(info *TransformInfo, reason string)
engine/pixel/transform_gemini.go:1120
↓ 2 callers
Method
bundleMeta
()
packages/sdk/typescript/src/index.ts:1362
↓ 2 callers
Function
bundleResponse
Build an unsigned response around an arbitrary bundle object.
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:87
↓ 2 callers
Function
bypassed
Reports where the adapter chose the caller's own input, not a plan. An unreachable runtime can only ever produce these: `skipped` when the ad
packages/middleware/python/tests/conftest.py:44
↓ 2 callers
Function
caPEMFromEnvironment
()
shared/platform/postgresconfig/postgresconfig.go:129
↓ 2 callers
Function
cacheEfficiencySink
cacheEfficiencySink reports what a million input tokens ACTUALLY cost this user after their real cache mix — the single most load-bearing cost number
proxy/internal/store/detect_cache_hygiene.go:195
↓ 2 callers
Function
cacheStatusFor
cacheStatusFor maps observed cache usage to an honest cache_status, only asserting hit/write when Bedrock actually reported cache telemetry.
proxy/providers/bedrock/usage.go:630
↓ 2 callers
Function
cacheTTL
cacheTTL is the TTL the request writes its cache entries at, "" when it says none: on Messages the longest ephemeral cache_control ttl (none is 5m, a
proxy/internal/cloudlink/link.go:881
↓ 2 callers
Function
cacheWarmSwitch
cacheWarmSwitch is prompt-cache warming's on/off, asked before every arm and every warm. The CAVEMAN_CACHE_WARM kill switch (off, 0, false, no) wins f
proxy/cmd/caveman-proxy/cache_warm.go:18
↓ 2 callers
Function
cachedRate
(input, cacheRead float64)
proxy/internal/store/report.go:320
↓ 2 callers
Method
call
(method: string, params: Record<string, unknown>, signal: AbortSignal | undefined, timeoutMs = CALL_TIMEOUT_MS
packages/pi-extension/src/recovery.ts:434
↓ 2 callers
Method
callOnNode
(ctx context.Context, target Target, fn string)
browse/cdp.go:367
↓ 2 callers
Method
callOnNodeRaw
(ctx context.Context, target Target, fn string)
browse/cdp.go:395
↓ 2 callers
Function
callSocket
(path string, request Request)
proxy/internal/nativeruntime/server_test.go:143
↓ 2 callers
Function
callerKeepsSharp
(fn func(KeepSharpBlock) bool, block KeepSharpBlock)
engine/pixel/transform_anthropic.go:1287
↓ 2 callers
Function
canAddImages
(info *TransformInfo, n int)
engine/pixel/transform_anthropic.go:1324
↓ 2 callers
Method
cancel
(self)
packages/sdk/python/caveman_cloud/middleware/transport.py:103
↓ 2 callers
Function
canonicalCapabilityProvider
(provider string)
shared/platform/catalog/catalog.go:112
↓ 2 callers
Function
canonicalDefaultMode
(raw)
src/hooks/caveman-config.js:72
↓ 2 callers
Function
canonicalJSON
--- developer messages ----------------------------------------------------- --- Responses -> Anthropic Messages -------------------------------------
proxy/internal/translate/responses.go:397
↓ 2 callers
Function
canonicalManagedHookEntry
(entry: Record<string, unknown>)
packages/cli/src/index.ts:8299
↓ 2 callers
Function
canonicalizeAiderRecurringResult
(result *recurringResult)
proxy/internal/store/source_aider.go:198
↓ 2 callers
Function
carriedFields
carriedFields are the additive fields an ask carries, newest first.
proxy/internal/cloudlink/link.go:1318
↓ 2 callers
Function
carries
(body map[string]any)
proxy/internal/cloudlink/cache_ttl_test.go:53
↓ 2 callers
Function
catalogProbe
catalogProbe renders the lookups `caveman learn` depends on: context windows, prices, and the catalog size.
shared/platform/catalog/cwd_test.go:17
↓ 2 callers
Function
caveHome
()
packages/cli/src/native-hook-fast.ts:43
↓ 2 callers
Function
caveScore
--- Cave Score ------------------------------------------------------------
proxy/internal/store/learn.go:876
↓ 2 callers
Function
cavemanHome
()
packages/pi-extension/src/index.ts:24
↓ 2 callers
Function
cavemanHookTarget
()
packages/cli/src/index.ts:17616
↓ 2 callers
Function
ccrHandleOf
ccrHandleOf reads the handle back out of a replacement's trailing marker.
proxy/internal/gateway/proxy.go:2042
↓ 2 callers
Function
chatAccept
(t *testing.T, body string)
proxy/internal/translate/wire_gaps_test.go:493
↓ 2 callers
Function
chatDocument
chatDocument is a document block as a chat file part, or the text of a text document; a document by URL or file id is refused.
proxy/internal/translate/messages_in.go:524
↓ 2 callers
Function
chatGPTAgent
chatGPTAgent is the agent behind a /chatgpt request: its x-cave-agent label (Pi, OpenCode), else Codex by its own originator or User-Agent (codex_cli_
proxy/internal/gateway/chatgpt.go:931
↓ 2 callers
Function
chatGPTSSEEventIsTerminal
(frame []byte)
proxy/internal/gateway/chatgpt.go:853
↓ 2 callers
Function
chatParts
chatParts renders Responses content parts as chat parts (an unclosed array) and reports whether any is an image or file; a file by URL, which chat can
proxy/internal/translate/responses_in.go:755
↓ 2 callers
Function
chatTexts
chatTexts are the text tokens of a chat content value.
proxy/internal/translate/chat_in.go:219
↓ 2 callers
Function
chatToAnthropic
chatToAnthropic renders a non-streamed chat completion as an Anthropic message named `model`, its reasoning a thinking block signed `signature` (a "ca
proxy/internal/translate/messages.go:175
↓ 2 callers
Function
chatUsageOf
chatUsageOf is a chat usage object from total input, cache reads and writes, and output.
proxy/internal/translate/chat_stream.go:288
↓ 2 callers
Function
chatgptTokenRequest
chatgptTokenRequest posts one grant. A login (nonce set) checks the id_token's claims: it came straight from the token endpoint over TLS, which OIDC C
proxy/internal/pool/chatgpt.go:262
↓ 2 callers
Function
checkContainerURI
checkContainerURI applies the SDK rule for a caller-supplied credential endpoint: TLS anywhere, plaintext only to loopback or the fixed ECS/EKS creden
shared/platform/awscreds/awscreds.go:497
↓ 2 callers
Function
checkFixProvenance
checkFixProvenance re-hashes a recorded target. It reports whether the bytes we fingerprinted are still the bytes on disk, plus the file's current tok
proxy/internal/store/learn_attribution.go:170
↓ 2 callers
Function
checkIMDSEndpoint
checkIMDSEndpoint is checkContainerURI for AWS_EC2_METADATA_SERVICE_ENDPOINT. That variable was taken verbatim and then dialled with p.link — the clie
shared/platform/awscreds/awscreds.go:519
↓ 2 callers
Function
checkInspectObject
(t *testing.T, data []byte)
proxy/providers/inspect_test.go:97
↓ 2 callers
Function
checkOwnerPlan
(t *testing.T, db *sql.DB)
engine/ccr/store_consolidation_blocks_test.go:97
↓ 2 callers
Function
checkProfile
(mutator, fixture = base)
packages/cli/tests/agent-registry.runtime.mjs:30
↓ 2 callers
Function
checkRecoveryIntegrity
checkRecoveryIntegrity runs once per serve, off the request path. A release checks a store it has not seen intact before (#1369); the store refuses wr
proxy/cmd/caveman-proxy/recovery_store.go:72
↓ 2 callers
Function
checkScanJSONString
(t *testing.T, body []byte)
proxy/providers/anthropic/scan_string_test.go:24
↓ 2 callers
Function
checkUsageLineFilter
(t *testing.T, data []byte)
proxy/providers/usage_line_filter_test.go:60
↓ 2 callers
Function
checkedSum
(a int, aOK bool, b int, bOK bool, usage *UsageObservation)
proxy/providers/adapter.go:1721
↓ 2 callers
Function
chmodSQLiteFile
(path string, info os.FileInfo)
engine/ccr/sqlite_file_security_unix.go:12
↓ 2 callers
Function
claimLearnNudge
(source: string | undefined, token: string)
packages/cli/src/learn-autopilot.ts:349
↓ 2 callers
Function
classifyCredential
(credential providers.Credential)
proxy/internal/gateway/authmode.go:75
↓ 2 callers
Function
classifyCredentialAuthKind
classifyCredentialAuthKind trusts only resolver-stamped credential metadata. Bedrock API keys travel over Bearer but are paid AWS credentials, not OAu
proxy/internal/gateway/authmode.go:101
↓ 2 callers
Function
classifyFailure
(input: FailureInput)
packages/sdk/typescript/src/middleware/protocol.ts:34
↓ 2 callers
Function
classifyHeaderAuthMode
(h http.Header)
proxy/internal/gateway/authmode.go:52
↓ 2 callers
Function
classifyRequest
(method, url)
packages/subagent-tax/lib/sink.mjs:146
↓ 2 callers
Function
claudeBillingUsage
claudeBillingUsage returns the DISJOINT billable buckets Anthropic reports: input_tokens is already uncached-only (cache reads and writes are separate
proxy/internal/store/source_claude.go:101
↓ 2 callers
Function
claudeCacheTTL
claudeCacheTTL uses the longest reported write lifetime. Mixed writes cannot be treated as fully expired after only five minutes. Missing breakdowns s
proxy/internal/store/source_claude.go:152
↓ 2 callers
Function
claudeCacheUsage
claudeCacheUsage preserves provider-reported cache components. Presence is separate from value so an absent field never becomes a fabricated zero.
proxy/internal/store/source_claude.go:125
↓ 2 callers
Function
claudeCompactionMarker
Real Claude Code transcripts on this machine carry one compaction as two adjacent records: subtype:"compact_boundary", then isCompactSummary:true. Bot
proxy/internal/store/source_claude.go:170
↓ 2 callers
Function
claudeConfigDir
()
installer/lib/settings.js:443
↓ 2 callers
Function
claudeGlobalConfigPath
()
proxy/internal/store/config_scan.go:283
↓ 2 callers
Function
claudeHasCaveman
()
installer/install.js:585
↓ 2 callers
Function
claudeOwnEndpoint
(settingsPath: string, env: Record<string, unknown>)
packages/cli/src/index.ts:9072
↓ 2 callers
Function
claudeProfileCandidates
()
packages/cli/src/index.ts:11515
↓ 2 callers
Function
claudeProfileMutations
(root: string, gw: string, mcpBinary: string)
packages/cli/src/index.ts:9171
↓ 2 callers
Function
claudeProfileRegistryPath
()
packages/cli/src/index.ts:11487
↓ 2 callers
Function
claudeProviderModel
claudeProviderModel attributes a Claude Code turn to its real provider. Claude Code routed through a gateway can log a vendor-qualified model such as
proxy/internal/store/source_claude.go:300
↓ 2 callers
Function
claudeRepoFromRelPath
(relPath string)
proxy/internal/store/source_claude.go:204
↓ 2 callers
Function
claudeTurnContext
claudeTurnContext returns the full context size the model saw on an assistant turn (input + cache read + cache creation), from the real usage block.
proxy/internal/store/learn.go:1104
↓ 2 callers
Function
claudeUnwiredProfiles
(journal: NativeJournal)
packages/cli/src/index.ts:11566
↓ 2 callers
Function
claudeUsageMessageID
claudeUsageMessageID identifies the API response a usage block belongs to. Claude Code writes one assistant turn as several JSONL lines — one per cont
proxy/internal/store/learn.go:1097
↓ 2 callers
Function
claude_version
()
evals/llm_run.py:164
↓ 2 callers
Function
cleanup
()
packages/cli/src/index.ts:1101
↓ 2 callers
Function
cleanup
(claudeDir)
tests/hooks/caveman-config.test.mjs:31
↓ 2 callers
Function
cleanupPartial
(path: string)
packages/cli/src/index.ts:3113
↓ 2 callers
Function
cleanupWrapTempDirs
()
packages/cli/src/index.ts:12551
↓ 2 callers
Function
clearAuthFallbackEnv
(t *testing.T)
proxy/internal/gateway/auth_fallback_test.go:432
↓ 2 callers
Function
clearAutoModelChoice
(agent: NativeAgent)
packages/cli/src/index.ts:4440
↓ 2 callers
Function
clearRecoveryDamage
(home string)
proxy/cmd/caveman-proxy/recovery_store.go:55
↓ 2 callers
Function
cliIsEphemeral
()
packages/cli/src/index.ts:4050
← previous
next →
2,901–3,000 of 12,853, ranked by callers