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
↓ 3 callers
Function
windowDays
(sinceExpr, from, to string)
proxy/internal/store/learn.go:1337
↓ 3 callers
Function
windowsACLGrantsBroadWrite
(dacl *windows.ACL)
engine/ccr/sqlite_parent_security_windows.go:39
↓ 3 callers
Function
windowsDeniedOpenFileReplacement
(err error)
engine/ccr/store_generation_test.go:172
↓ 3 callers
Function
wireCallID
wireCallID is safeCallID for a tool_use id handed to an Anthropic-shaped caller (Claude Code): another provider's id (e.g. OpenRouter's "functions.Bas
proxy/internal/translate/responses.go:251
↓ 3 callers
Function
wireToolName
wireToolName is the name an upstream sees for a Responses tool: the namespace and name joined, and, when that is not a valid function name, a 55-chara
proxy/internal/translate/responses.go:62
↓ 3 callers
Function
withCavemanAgent
(input:T,options:LangChainOptions)
packages/middleware/typescript/src/langchain.ts:71
↓ 3 callers
Function
withCavemanAnthropic
(client: T, options: AnthropicOptions)
packages/middleware/typescript/src/anthropic.ts:30
↓ 3 callers
Function
withCavemanMastra
(agent: T, options: CavemanMastraOptions)
packages/middleware/typescript/src/mastra.ts:80
↓ 3 callers
Function
withDropBlockConvo
withDropBlockConvo is an adaptive-thinking body asking for drop_block.
proxy/internal/gateway/route_effort_test.go:404
↓ 3 callers
Function
withIndexLock
(fn: () => T)
packages/cli/src/modules/provider-logins.ts:75
↓ 3 callers
Function
withModel
withModel renames the model a payload reports to shown: the top-level "model" (a Messages, chat or Responses answer, a chat chunk), message.model (mes
proxy/internal/translate/translate.go:935
↓ 3 callers
Function
withOmitted
withOmitted is the summary a shedding budget produces: the surviving facts, then the notice stating how many entries the budget dropped. A trimmed sum
engine/compressors/invariants_test.go:25
↓ 3 callers
Function
withPerMessageBeta
(header http.Header)
proxy/internal/gateway/route.go:1396
↓ 3 callers
Function
withRunState
withRunState serves the two run-state endpoints: the instance identity any local caller may read, and the shutdown only the run-state file's reader ma
proxy/cmd/caveman-proxy/main.go:536
↓ 3 callers
Function
with_caveman_google
Return a clone of a transport-configured Client whose model AFC registers recovery. The caller's client is not modified; wrapping a wrapped clien
packages/middleware/python/caveman_middleware/google.py:231
↓ 3 callers
Function
with_caveman_model
Wrap an existing client; record-only (``recovery_unbound`` in compress mode) unless paired with the workbench.
packages/middleware/python/caveman_middleware/autogen.py:495
↓ 3 callers
Function
with_caveman_openai
Return the same native client class with native resources and helpers. Model-only: no recovery executor is registered, so in compress mode every
packages/middleware/python/caveman_middleware/openai.py:40
↓ 3 callers
Function
with_caveman_tools
Bundle native tools and their executor for an application-owned loop. Pass bundle.tools to bundle.model.chat_with_tools (or its native async or
packages/middleware/python/caveman_middleware/llama_index.py:861
↓ 3 callers
Function
withoutInstallerCodexHook
(root: Record<string, unknown>)
packages/cli/src/index.ts:10460
↓ 3 callers
Function
worthEliding
worthEliding reports whether a run of dropped units should become a marker at all. A run of invariantMinElideUnits or more always is. A shorter one mu
engine/compressors/invariants.go:644
↓ 3 callers
Function
wrap
(client, runtime)
packages/middleware/python/tests/test_openai_native.py:66
↓ 3 callers
Function
wrapExternalWritesDisabled
(env: NodeJS.ProcessEnv = process.env)
packages/cli/src/index.ts:14456
↓ 3 callers
Method
wrapMeasuredSince
wrapMeasuredSince sums proxy-recorded wrap activity at or after since. Nil unless at least one row booked a real compression cut or an observe-mode es
proxy/internal/store/learn.go:342
↓ 3 callers
Method
wrap_model_call
(self, request, handler)
packages/middleware/python/caveman_middleware/langchain.py:240
↓ 3 callers
Method
write
(job captureJob)
proxy/internal/gateway/capture.go:217
↓ 3 callers
Function
writeAnthropicError
writeAnthropicError is Anthropic's error envelope with a status.
proxy/internal/translate/messages_stream.go:450
↓ 3 callers
Function
writeEphemeralCodemodeConfig
(dir: string, servers: Record<string, CodemodeServerConfig>)
packages/cli/src/codemode.ts:1382
↓ 3 callers
Function
writeError
(w http.ResponseWriter, err error, v2 bool)
proxy/internal/middleware/http.go:308
↓ 3 callers
Function
writeExport
(t *testing.T, body string)
proxy/internal/store/learn_reconcile_test.go:10
↓ 3 callers
Method
writeFlush
(w *bufio.Writer, resp rpcResponse)
mcp/server.go:244
↓ 3 callers
Function
writeGeminiSessionFixture
(t *testing.T, root string, index int, block string)
proxy/internal/store/source_gemini_test.go:66
↓ 3 callers
Function
writeIndex
(index: Index)
packages/cli/src/modules/provider-logins.ts:120
↓ 3 callers
Function
writeJson
(path: string, value: unknown)
packages/cli/src/learn-autopilot.ts:101
↓ 3 callers
Function
writeMcpServerMarker
(agentId: string, serverName: string, mcp: { command: string; args: string[] }, tool: string)
packages/cli/src/index.ts:17723
↓ 3 callers
Function
writeNativeRestoration
(file: string, bytes: Buffer | null)
packages/cli/src/index.ts:11795
↓ 3 callers
Function
writeRawConfig
(out: Record<string, unknown>)
packages/cli/src/index.ts:23616
↓ 3 callers
Function
writeResponsesFailure
writeResponsesFailure ends a request that produced nothing: a streaming caller gets a 200 stream holding response.failed (Codex only maps context_leng
proxy/internal/translate/responses_stream.go:832
↓ 3 callers
Function
write_bytes_atomic
Write ``data`` to ``path`` atomically, preserving permission bits.
plugins/caveman/skills/caveman-compress/scripts/compress.py:335
↓ 3 callers
Function
write_bytes_atomic
Write ``data`` to ``path`` atomically, preserving permission bits.
skills/caveman-compress/scripts/compress.py:335
↓ 3 callers
Function
yamlScalarAfterKey
(lines: string[], index: number)
packages/cli/src/index.ts:14932
↓ 3 callers
Function
yellow
(s: string)
packages/cli/src/index.ts:23959
↓ 2 callers
Method
#bypass
(code: string, adapter?: unknown, extra: Partial<Optimization> = {}, strict = true)
packages/sdk/typescript/src/middleware/runtime.ts:538
↓ 2 callers
Method
#capabilities
Single-flight capabilities fetch: concurrent callers share one GET and each waits only on its own signal.
packages/sdk/typescript/src/middleware/runtime.ts:559
↓ 2 callers
Method
#discover
(signal?: AbortSignal)
packages/sdk/typescript/src/middleware/runtime.ts:234
↓ 2 callers
Method
Act
(ctx context.Context, req ActionRequest, target Target)
browse/cdp.go:160
↓ 2 callers
Function
ApplyResolvedPricingRoute
ApplyResolvedPricingRoute adds pricing metadata derived from the trusted, resolved upstream URL. Client body/header hints cannot override the actual b
proxy/providers/adapter.go:159
↓ 2 callers
Function
ApplySplitStatic1hTTL
ApplySplitStatic1hTTL upgrades cache_control markers on ONLY the static head (`tools[]` and `system`) from 5m ephemeral to 1h ephemeral (`"ttl":"1h"`)
proxy/providers/anthropic/breakpoint_plan.go:49
↓ 2 callers
Function
ApplyTurnThinkingLevel
ApplyTurnThinkingLevel splices `thinkingConfig.thinkingLevel = "LOW"` onto Gemini 3/4 requests whose latest user turn is a clean mechanical tool conti
proxy/providers/gemini/turn_effort.go:42
↓ 2 callers
Function
AttachLearnTrendHistory
AttachLearnTrendHistory adds the snapshot-derived score history and sink movers from home/reports. Call it before the current plan is written so the r
proxy/internal/store/learn_trends.go:376
↓ 2 callers
Method
Authenticate
(ctx context.Context, r *http.Request)
proxy/internal/gateway/server.go:64
↓ 2 callers
Method
AutoOffered
()
proxy/internal/gateway/chatgpt_auto.go:35
↓ 2 callers
Method
BedrockSigningCredential
BedrockSigningCredential resolves only the configured IAM signing principal. An incoming SigV4 request has already selected IAM; a Bedrock bearer key
proxy/internal/config/config.go:699
↓ 2 callers
Function
BudgetFromEnv
BudgetFromEnv returns the payload budget Open applies: CAVEMAN_CCR_MAX_BYTES or DefaultMaxStorageBytes.
engine/ccr/store_repair.go:64
↓ 2 callers
Function
BuildStage2RowsWithAux
BuildStage2RowsWithAux augments baseRows with 40 contextual Stage-2 features reusing Stage-1's tokenized terms, templates, sections, and block headers
engine/trim2/stage2.go:43
↓ 2 callers
Function
CachedPrefixComponents
CachedPrefixComponents splits an OpenAI Responses or Chat Completions request into the components the provider's automatic prompt cache keys on: 0. s
proxy/providers/openai/cached_prefix.go:30
↓ 2 callers
Method
CallTool
(ctx context.Context, name string, args map[string]any)
mcp/codemode/builtin_tools.go:1089
↓ 2 callers
Function
CanonicalDedupKey
CanonicalDedupKey returns the inner semantic payload for duplicate-read comparison (strips volatile Codex Chunk ID / Wall time headers while preservin
engine/harness_envelopes.go:314
↓ 2 callers
Method
Capabilities
Capabilities exposes the active registry, including any explicitly configured strategy. Middleware uses this authority rather than maintaining a secon
engine/engine.go:33
↓ 2 callers
Function
ClassifyContent
(text string)
engine/pixel/textprep.go:62
↓ 2 callers
Method
Close
Close terminates the child MCP server process cleanly.
mcp/codemode/stdio_upstream.go:242
↓ 2 callers
Method
Close
Close closes any registered upstreams that implement io.Closer.
mcp/codemode/codemode.go:259
↓ 2 callers
Method
Close
()
mcp/codemode/builtin_tools.go:1123
↓ 2 callers
Method
CloudOff
CloudOff reports `caveman providers cloud off`: an answer sending a request through Caveman Cloud runs the asked model instead.
proxy/internal/pool/pool.go:310
↓ 2 callers
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/compress_panic_test.go:23
↓ 2 callers
Method
CompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/server.go:111
↓ 2 callers
Method
CompressSegmentType
(segment []byte, contentType string)
proxy/internal/gateway/server.go:102
↓ 2 callers
Method
CompressWithMetadata
(input []byte, query string)
engine/compressors/json_strategy.go:40
↓ 2 callers
Function
CompressionRouteMatrix
CompressionRouteMatrix is the checked-in truth table for every route family registered by the managed gateway. "supported" means both schema-aware byt
proxy/providers/compression_coverage.go:20
↓ 2 callers
Method
Configured
Configured reports whether the operator set any middleware key, in caveman.yaml or the environment: a middleware that then cannot start is a startup f
proxy/internal/config/middleware.go:133
↓ 2 callers
Function
CountVisualRows
(text string, cols int)
engine/pixel/textprep.go:20
↓ 2 callers
Function
EnablementOnlyOpportunityContractFor
EnablementOnlyOpportunityContractFor resolves an exact enablement contract. Unknown ids fail closed.
shared/platform/optimizers/optimizers.go:154
↓ 2 callers
Method
EncodeTOON
(input []byte)
mcp/engine_tools.go:23
↓ 2 callers
Function
EstimateTokensForModel
EstimateTokensForModel returns documented input-image tokens only when provider, model family, and effective detail/media-resolution form a closed sup
engine/image/tokens.go:23
↓ 2 callers
Method
ExportTrial
(plan TrialPlan, outDir string)
proxy/internal/store/report.go:116
↓ 2 callers
Method
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/internal/gateway/server.go:232
↓ 2 callers
Function
FamilyIndexOf
FamilyIndexOf returns the index (into Families) of the mutex family the optimizer belongs to, or -1 if the optimizer is not part of any family (its op
shared/platform/optimizers/optimizers.go:316
↓ 2 callers
Function
FamilyNameOf
FamilyNameOf returns the canonical family label for an optimizer, or "" if the optimizer is not a mutex-family member.
shared/platform/optimizers/optimizers.go:325
↓ 2 callers
Method
FrozenPrefixComponents
FrozenPrefixComponents returns exact JSON value bytes that Anthropic treats as frozen context: top-level system/tools plus messages below cache floor.
proxy/providers/anthropic/content_compress.go:21
↓ 2 callers
Method
HasNamespaces
HasNamespaces reports whether the principal may use any namespace at all.
proxy/internal/identity/identity.go:107
↓ 2 callers
Method
Hijack
()
proxy/internal/gateway/websocket_route_test.go:367
↓ 2 callers
Method
Hijack
()
proxy/internal/gateway/websocket_route.go:226
↓ 2 callers
Function
ImpactTests
ImpactTests returns conservative local test impact from explicit test-to-source relationships plus package boundaries. It never claims dynamic coverag
proxy/internal/repointel/index.go:201
↓ 2 callers
Method
ImportCodex
(root, sinceExpr string)
proxy/internal/store/usage_import.go:31
↓ 2 callers
Method
InsertQuotaEvents
(events []QuotaEvent)
proxy/internal/store/trial_store.go:150
↓ 2 callers
Function
IsCompressionProfitableAmortized
(text string, cols, imageCountCap, numCols int, charsPerToken float64, horizon int, priorWarmTokens, priorWarm
engine/pixel/gate.go:161
↓ 2 callers
Function
IsEnablementOnlyOpportunity
IsEnablementOnlyOpportunity reports whether an optimizer is a visible, exact-zero enablement observation with a Dismiss-only lifecycle.
shared/platform/optimizers/optimizers.go:147
↓ 2 callers
Function
IsMechanicalUserContinuation
IsMechanicalUserContinuation reports whether a Responses API request ends with a new, unanswered short mechanical continuation user prompt (e.g. "cont
proxy/providers/turneffort.go:31
↓ 2 callers
Function
IsProductionValue
IsProductionValue applies the same predicate to an injected environment value, which keeps configuration loaders testable without a second spelling.
shared/platform/runtimeenv/runtimeenv.go:21
↓ 2 callers
Function
IsSensitiveHeader
IsSensitiveHeader returns true when the header name carries credential or session material that must not appear in logs or error envelopes. It return
shared/platform/redact/redact.go:298
↓ 2 callers
Method
LearnScanFilteredWithRetro
LearnScanFilteredWithRetro is LearnScanWithRetro plus pre-detection repo filtering. Durable learnings are generated only from the filtered plan.
proxy/internal/store/learn.go:402
↓ 2 callers
Function
LineFeatures
LineFeatures splits context at "\n" and returns its lines with one feature row per line, nFeatures wide. Only the query's last maxQueryBytes count. Th
engine/trim2/features.go:234
↓ 2 callers
Function
LineFeaturesWithAux
LineFeaturesWithAux computes Stage-1 features and returns auxiliary context state reused by Stage-2 contextual feature extraction.
engine/trim2/features.go:241
↓ 2 callers
Function
Lint
Lint measures the inferred per-tool and overall token reduction of a catalog without committing to it. Token counts use the engine's default (offline)
shrink/shrink.go:176
↓ 2 callers
Function
Load
()
proxy/internal/nativepack/pack.go:61
↓ 2 callers
Function
LoadConfigFile
--- MCP Config Loading & Discovery ----------------------------------------- LoadConfigFile parses a JSON MCP config file supporting standard `{"mcpSe
mcp/codemode/stdio_upstream.go:456
↓ 2 callers
Function
LoadOrCreateSessionKey
LoadOrCreateSessionKey returns one user-only HMAC key shared by CLI adapters and local proxy. O_EXCL makes concurrent first startup converge on one ke
proxy/internal/nativeruntime/marker.go:29
↓ 2 callers
Function
LoopbackListen
LoopbackListen reports whether listen binds only the local machine.
proxy/internal/config/config.go:401
↓ 2 callers
Function
MantleRegionAllowed
MantleRegionAllowed validates the endpoint-specific Mantle inventory. Operators may narrow it without widening the shared Runtime inventory.
proxy/providers/bedrock/routing.go:425
↓ 2 callers
Method
MatchMetadataRoute
MatchMetadataRoute applies the same decoded-path check as MatchRoute before admitting a read-only metadata request, so the new GET surface cannot be u
proxy/providers/openaicompat/openaicompat.go:47
↓ 2 callers
Function
MeasureLineCols
(line string, markerScale int)
engine/pixel/render.go:164
← previous
next →
2,601–2,700 of 13,382, ranked by callers