Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
13,382 in github.com/JuliusBrussee/caveman
⨍
Functions
13,382
◇
Types & classes
1,416
↳
Endpoints
5
↓ 2 callers
Function
load_snapshot
Read and validate one snapshot before a consumer reports from it.
evals/snapshot_contract.py:115
↓ 2 callers
Function
loadedClient
(response, options = {})
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:93
↓ 2 callers
Function
loaderControlKey
(key)
agents/compile.mjs:103
↓ 2 callers
Function
loads
Strict JSON, read as JSON.parse reads it: NaN/Infinity are rejected and integral numbers are ints.
packages/sdk/python/caveman_cloud/middleware/protocol.py:83
↓ 2 callers
Function
localScanUploadFromRetro
(retro: LearnRetro, scannedAt: Date)
packages/cli/src/index.ts:13725
↓ 2 callers
Function
localTurnEffortSessionKey
localTurnEffortSessionKey ensures every conversation using cache-safe local per-message marks has a stable session key for byte-identical mark replay
proxy/internal/gateway/local_turn_effort.go:124
↓ 2 callers
Function
lockPath
()
packages/cli/src/modules/index-file.ts:99
↓ 2 callers
Function
logfmtFields
logfmtFields extracts the `key=value` tokens of one log line, in order.
engine/compressors/invariants.go:707
↓ 2 callers
Function
loginBrowserOpener
( url: string, platform: NodeJS.Platform = process.platform, )
packages/cli/src/index.ts:13368
↓ 2 callers
Function
looksLikeLog
(input []byte)
engine/detect.go:216
↓ 2 callers
Function
looksLikeSSE
looksLikeSSE reports whether a response body prefix opens as an SSE stream: a field line (`event:`, `data:`, `id:`, `retry:`) or a comment (`:`). A JS
proxy/internal/gateway/chatgpt.go:732
↓ 2 callers
Function
looksLikeSingleOpenCodeServer
(raw: unknown)
packages/cli/src/codemode.ts:225
↓ 2 callers
Function
lookup
(whole, name)
installer/install.js:1194
↓ 2 callers
Function
lookupField
(obj: unknown, path: string)
packages/middleware/typescript/src/codemode.ts:226
↓ 2 callers
Method
lookupPrice
(provider, model string)
proxy/internal/standalone/e2e_cost_bench_test.go:144
↓ 2 callers
Function
main
()
shrink/cmd/caveman-shrink/main.go:44
↓ 2 callers
Function
makeAnnotatedToolCatalogGemini
()
proxy/internal/standalone/e2e_cost_bench_test.go:922
↓ 2 callers
Function
makeAnnotatedToolCatalogOpenAI
()
proxy/internal/standalone/e2e_cost_bench_test.go:892
↓ 2 callers
Function
makeChalk
(noColor)
installer/install.js:205
↓ 2 callers
Function
makeResponsesDeferPayload
(mcpCount int, withSearch bool)
proxy/providers/openai/defer_mcp_test.go:13
↓ 2 callers
Function
makeSession
(dir, lines)
tests/test_caveman_stats.js:34
↓ 2 callers
Function
makeStubAXTree
(extraNoise int)
mcp/codemode/stdio_js_builtin_test.go:802
↓ 2 callers
Function
makeVerboseSystemPrompt
()
proxy/internal/standalone/e2e_cost_bench_test.go:829
↓ 2 callers
Function
manifest_window
§11: the largest head length k with k <= max_items and sum(sizes[:k]) <= max_bytes.
packages/sdk/python/caveman_cloud/middleware/protocol.py:235
↓ 2 callers
Function
mantleActionAllowed
(path string)
proxy/providers/bedrock/routing.go:227
↓ 2 callers
Function
manualThinking
manualThinking: only extended (manual, `enabled`) thinking requires the final assistant tool turn to start with a thinking block; adaptive relaxes tha
proxy/internal/translate/messages.go:425
↓ 2 callers
Method
mapped
mapped builds the JWT or certificate principal prefix+value. globs from the credential win; otherwise the token map entry of that name supplies them.
proxy/internal/identity/identity.go:314
↓ 2 callers
Function
markEstimate
markEstimate tells the agent message_start's input_tokens is an estimate.
proxy/internal/translate/messages_stream.go:554
↓ 2 callers
Function
markdownRowCells
(cells []string, trimTrailing bool)
engine/compressors/html_table.go:225
↓ 2 callers
Function
markerMAC
(key []byte, encodedSessionID string)
proxy/internal/nativeruntime/marker.go:139
↓ 2 callers
Function
maskedWebSocketFrame
(opcode byte, payload string)
proxy/internal/gateway/websocket_route_test.go:75
↓ 2 callers
Method
matchAdapter
(r *http.Request)
proxy/internal/gateway/proxy.go:2368
↓ 2 callers
Function
matches_framework
Pure version check for adapters retaining a passive per-call delegate. Each pin is `(distribution, minimum, exclusive_maximum)`.
packages/middleware/python/caveman_middleware/_versions.py:66
↓ 2 callers
Function
maxRetrieveResponseBytes
()
proxy/internal/gateway/retrieve_tool.go:938
↓ 2 callers
Function
maybeReflowOpenAI
(text string, enabled bool)
engine/pixel/transform_openai.go:784
↓ 2 callers
Function
maybeReflowText
(text string, enabled bool)
engine/pixel/transform_anthropic.go:947
↓ 2 callers
Function
maybeSpawnAutopilot
(cliPath = join(dirname(fileURLToPath(import.meta.url)), "index.js"))
packages/cli/src/learn-autopilot.ts:177
↓ 2 callers
Function
maybeWarnHermesMissingKey
(agent: AgentProfile | undefined, gw = gatewayURL())
packages/cli/src/index.ts:7443
↓ 2 callers
Function
mcpMarkerBytes
(mcp: { command: string; args: string[] }, tool: string, configPath?: string)
packages/cli/src/index.ts:17100
↓ 2 callers
Function
mcpPendingJournalPath
(agent: "kilo" | "qwen", serverName: string)
packages/cli/src/index.ts:17091
↓ 2 callers
Function
mcpSurfaceMode
(value: CapabilityValue)
packages/cli/src/index.ts:4602
↓ 2 callers
Function
mcpSurfaceSink
(cfg configScan, existing []Sink)
proxy/internal/store/detect_mcp_tax.go:10
↓ 2 callers
Function
meaningfulTokenReduction
(before, after int)
engine/image/image.go:146
↓ 2 callers
Method
measuredPrefix
()
proxy/internal/store/learn.go:134
↓ 2 callers
Function
medianAndScale
medianAndScale returns the median and a robust scale (MAD) of xs, falling back to the standard deviation when the MAD is zero (≥ half the values ident
engine/compressors/json.go:421
↓ 2 callers
Method
medianContext
()
proxy/internal/store/learn.go:115
↓ 2 callers
Function
memTools
memTools maps the store onto cavemem MCP tools, reusing the mcp framing. Every result is labeled inferred.
mem/cmd/cavemem/main.go:138
↓ 2 callers
Method
memoryByID
(id string)
mem/store.go:665
↓ 2 callers
Function
memoryProjectRoot
memoryProjectRoot is the directory Claude Code keys auto memory on: the git repository, with every worktree folded into its main checkout (per the doc
proxy/internal/store/detect_memory_health.go:131
↓ 2 callers
Function
merge
(src: Record<string, CodemodeServerConfig>)
packages/cli/src/codemode.ts:1258
↓ 2 callers
Function
mergeAliasValue
(current int, found bool, next int, usage *UsageObservation)
proxy/providers/adapter.go:1689
↓ 2 callers
Function
mergeAnthropicCustomHeader
(raw: string | undefined, name: string, value: string | undefined)
packages/cli/src/index.ts:13024
↓ 2 callers
Function
mergeBedrockUsage
mergeBedrockUsage reads usage from the Bedrock shapes (camelCase converse, snake_case anthropic-invoke, nested metadata/message.usage) and merges the
proxy/providers/bedrock/usage.go:298
↓ 2 callers
Function
mergeBehaviorScan
(dst, src *behaviorScan)
proxy/internal/store/learn.go:1142
↓ 2 callers
Function
mergeHermesConfigEdits
(editedYaml: string, originalYaml: string)
packages/cli/src/codemode.ts:1907
↓ 2 callers
Function
mergeUsage
mergeUsage reads every usage-bearing sub-object reachable from obj and merges cumulative stream counters with a max rule. Each object is normalized to
proxy/providers/adapter.go:1280
↓ 2 callers
Function
messageText
messageText joins a message's text blocks with "\n"; a string content is one block. ok is false when no block has any non-space text; tool reports a t
proxy/internal/cloudlink/link.go:1051
↓ 2 callers
Function
messageZones
messageZones parses a request into its message spans plus the set of message indexes that form the live zone. It is the single definition of "live" sh
proxy/providers/anthropic/content_compress.go:246
↓ 2 callers
Function
messages
(input)
packages/middleware/python/caveman_middleware/langchain.py:313
↓ 2 callers
Function
messagesFinish
messagesFinish completes a Messages body built for a Messages host: model, max_tokens, the effort as fitted thinking plus output_config, the structure
proxy/internal/translate/msgbuild.go:307
↓ 2 callers
Function
messagesSchemaFormat
messagesSchemaFormat is output_config.format for a JSON schema.
proxy/internal/translate/msgbuild.go:364
↓ 2 callers
Function
messagesToHistorySegments
(messages []Message, upToExclusive int, fromInclusive int)
engine/pixel/history_anthropic.go:195
↓ 2 callers
Function
middlewareUsageRows
middlewareUsageRows is every row's principal, counted and size, for recomputing the counters from scratch.
proxy/internal/store/middleware.go:102
↓ 2 callers
Method
middlewareWrite
(ctx context.Context, fn func(*sql.Tx) error)
proxy/internal/store/middleware.go:502
↓ 2 callers
Method
migrateCacheComponentBatch
migrateCacheComponentBatch handles the next cacheComponentBatchRows ids above the mark in one transaction: a non-empty legacy list of a row inside the
proxy/internal/store/cache_components.go:83
↓ 2 callers
Method
migrateCacheComponents
migrateCacheComponents moves every legacy list above the mark, batch by batch, until none is left or ctx ends. It is idempotent and safe to stop at an
proxy/internal/store/cache_components.go:61
↓ 2 callers
Function
mk
tests/test_mcp_shrink.js:482
↓ 2 callers
Function
mockFetch
Queue one or more responses; each is `{status?, body}` or an Error to throw.
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:49
↓ 2 callers
Function
modelAllowed
(modelID string)
proxy/providers/bedrock/routing.go:431
↓ 2 callers
Function
modelFromGeminiPath
(path string)
proxy/internal/standalone/e2e_cost_bench_test.go:688
↓ 2 callers
Method
modelTurn
modelTurn reports an item a model turn produced or answered: an assistant message, and on Responses reasoning, a tool call or its output, a compaction
proxy/internal/gateway/route.go:422
↓ 2 callers
Function
moduleChoice
(state: ModuleState)
packages/cli/src/modules/status.ts:21
↓ 2 callers
Function
movedOwnedMcpRemovalBlocked
(agent: "kilo" | "qwen", serverName: string, marker: McpServerMarker)
packages/cli/src/index.ts:15674
↓ 2 callers
Function
mustRawJSON
(value any)
engine/pixel/transform_openai.go:832
↓ 2 callers
Method
name
(contentEncoding string)
proxy/internal/gateway/route.go:1601
↓ 2 callers
Function
namesAuto
namesAuto reports a JSON body whose top-level "model" is Auto.
proxy/internal/gateway/route.go:171
↓ 2 callers
Function
nativeBackupBytes
(operation: NativeJournal["operations"][number])
packages/cli/src/index.ts:11502
↓ 2 callers
Function
nativeCapabilityReport
(agent: NativeAgent, components: NativeComponents, versionStatus: ReturnType<typeof nativeVersionStatus>)
packages/cli/src/index.ts:8821
↓ 2 callers
Function
nativeDigestObject
(value: unknown)
packages/cli/src/index.ts:18234
↓ 2 callers
Function
nativeHistory
nativeHistory removes from a request bound for the harness's own provider the reasoning another host produced in this conversation (a pool request's t
proxy/internal/gateway/route_pool.go:240
↓ 2 callers
Function
nativeHookCommand
(agentId: string)
packages/cli/src/index.ts:8286
↓ 2 callers
Function
nativeHookInvocation
( executable: string, fastHook: string, agentId: string, executableIsProxy: boolean, platform: NodeJ
packages/cli/src/index.ts:8209
↓ 2 callers
Function
nativeHostProbe
(agent: AgentProfile)
packages/cli/src/index.ts:9061
↓ 2 callers
Function
nativeMiddleware
(options: CavemanOptions, blocked: Blocked, registration?: RecoveryRegistration)
packages/middleware/typescript/src/ai-sdk.ts:75
↓ 2 callers
Function
nativeOwnEndpoint
(agent: NativeAgent)
packages/cli/src/index.ts:9135
↓ 2 callers
Function
nativeRepairFix
(agent: NativeAgent)
packages/cli/src/index.ts:10425
↓ 2 callers
Function
nearest
(directory: string, name: string, levels: number, nested: boolean)
packages/middleware/typescript/src/versions.ts:12
↓ 2 callers
Function
nearestProximity
(flags []bool)
engine/trim2/features.go:1073
↓ 2 callers
Function
needsCompress
()
packages/shared/contracts/conformance/run.mjs:240
↓ 2 callers
Function
nestedCapabilityValue
(doc: Record<string, unknown>, key: CapabilityKey)
packages/cli/src/index.ts:4611
↓ 2 callers
Function
newCave
()
packages/sdk/typescript/tests/runtime-policy.runtime.mjs:68
↓ 2 callers
Function
newChatServer
(st gateway.PrefixCache, comp gateway.Compressor, rt *e2eChatTransport)
proxy/internal/store/prefix_stability_openai_e2e_test.go:74
↓ 2 callers
Function
newCompressionEligible
(original []byte)
proxy/providers/anthropic/content_compress.go:423
↓ 2 callers
Function
newCompressionEligible
(original []byte)
proxy/providers/openai/content_compress.go:463
↓ 2 callers
Function
newCrossTurnDeltaIndex
()
proxy/internal/gateway/delta.go:70
↓ 2 callers
Function
newDialer
(cfg Config)
shared/platform/ssrf/ssrf.go:445
↓ 2 callers
Function
newFilteredUpstream
(inner Upstream, include, exclude []string)
mcp/codemode/http_upstream.go:155
↓ 2 callers
Function
newKey
(t *testing.T)
proxy/internal/middleware/hardening_test.go:45
↓ 2 callers
Function
newLoggingTokenGatedServer
newLoggingTokenGatedServer is the same server with its warnings captured, for the tests that assert on what a rejection discloses.
proxy/internal/standalone/auth_token_test.go:34
↓ 2 callers
Function
newMCPRecoveryTestServer
(t *testing.T, upstream string, sink TelemetrySink, comp Compressor)
proxy/internal/gateway/compress_test.go:765
← previous
next →
3,601–3,700 of 13,382, ranked by callers