Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
7,561 in github.com/JuliusBrussee/caveman
⨍
Functions
7,561
◇
Types & classes
842
↓ 5 callers
Function
hasArg
(args []string, name string)
proxy/cmd/caveman-proxy/main.go:820
↓ 5 callers
Function
hasFile
(path: string)
packages/cli/src/index.ts:1228
↓ 5 callers
Function
hermesConfigPath
()
packages/cli/src/index.ts:9086
↓ 5 callers
Function
injectRetrieveTool
(provider, routePath string, body []byte)
proxy/internal/gateway/retrieve_tool.go:51
↓ 5 callers
Function
int64FromAny
(v any)
proxy/internal/store/usage_import.go:547
↓ 5 callers
Function
isExecutable
(p: string)
packages/cli/src/index.ts:14779
↓ 5 callers
Function
isIdentifierTokenAt
(source: string, start: number, expected: string)
packages/agent/src/source-graph.ts:704
↓ 5 callers
Function
isRecord
(value: unknown)
packages/agent/src/adapters.ts:616
↓ 5 callers
Function
jsonChars
(value)
packages/subagent-tax/lib/analyze.mjs:12
↓ 5 callers
Function
judgeGatewayUrl
(raw: unknown)
packages/graders/src/index.ts:643
↓ 5 callers
Function
keepQueryRelevant
keepQueryRelevant adds the highest-scoring BM25 documents to keep. Existing force-keeps are never removed. Selection is deterministic: score descendin
engine/compressors/relevance.go:12
↓ 5 callers
Function
loadBuildInputs
( root: string, configPath: string, beforeSourceHash?: ( inputs: Omit<LoadedBuildInputs, "sourceSha2
packages/agent/src/cli.ts:994
↓ 5 callers
Function
lowerAgentContext
( definition: AgentDefinition, options: { rootDir?: string; runtimeSegments?: readonly RuntimeCont
packages/agent/src/execution-kernel.ts:14
↓ 5 callers
Function
markSpendIncomplete
(ledgers: readonly SpendLedger[])
packages/agent/src/runtime.ts:4711
↓ 5 callers
Function
maskDecision
maskDecision runs a tool output through afterTool exactly as the hook does and reports whether the output was replaced by a pointer.
proxy/internal/nativeruntime/mask_elidable_test.go:35
↓ 5 callers
Function
maskRuntime
Mask what cannot be summarized in place; elide what can. These pin the boundary between the two mechanisms. Before it existed they collided: the ship
proxy/internal/nativeruntime/mask_elidable_test.go:23
↓ 5 callers
Function
memory
(options: { namespace: string; provenance?: MemoryDefinition["provenance"]; ttl: string; recallBudget:
packages/agent/src/primitives.ts:261
↓ 5 callers
Function
mustJSONGemini
(t *testing.T, v any)
engine/pixel/transform_gemini_test.go:365
↓ 5 callers
Function
mustMarshalTest
(t *testing.T, v any)
engine/pixel/transform_openai_test.go:326
↓ 5 callers
Function
nativePolicyMode
()
packages/cli/src/index.ts:9956
↓ 5 callers
Function
nativeProfile
()
packages/cli/src/index.ts:9949
↓ 5 callers
Function
newCodeWith
newCodeWith constructs the code compressor with explicit options (used by callers/tests that want comment or docstring removal).
engine/compressors/code_cgo.go:51
↓ 5 callers
Function
newQueryTransport
()
shared/platform/chhttp/chhttp.go:230
↓ 5 callers
Function
newRecurringMiner
()
proxy/internal/store/recurring.go:98
↓ 5 callers
Function
newSocketFreeCompressServerWithConfig
(adapter providers.Adapter, comp Compressor, rt *captureTransport, creds CredentialResolver, cfg Config)
proxy/internal/gateway/live_zone_test.go:105
↓ 5 callers
Function
normalizedTaskType
(value string)
proxy/internal/nativeruntime/runtime.go:905
↓ 5 callers
Function
objectStringField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/content_compress.go:200
↓ 5 callers
Function
openAITestOptions
(model string)
engine/pixel/transform_openai_test.go:285
↓ 5 callers
Method
openai
(config: { upstreamKey?: string } = {})
packages/sdk/typescript/src/index.ts:395
↓ 5 callers
Method
pageRows
pageRows is the row count that fills the profile's canvas height.
engine/pixel/density.go:217
↓ 5 callers
Function
parseFlexInt
parseFlexInt coerces a JSON value (number or numeric string) to a non-negative uint64. Negative or unparseable values become 0.
shared/platform/importers/importers.go:192
↓ 5 callers
Function
parseJSONTOON
(input []byte)
engine/compressors/toon_encode.go:110
↓ 5 callers
Function
planBlocks
The breakpoint planner places Anthropic prompt-cache metadata on the upstream request. cache_control is not model-visible, so this is byte-safe under
proxy/providers/anthropic/breakpoint_plan_test.go:19
↓ 5 callers
Function
projectId
()
packages/cli/src/index.ts:14577
↓ 5 callers
Function
providerUsesOpenAITools
(provider string)
proxy/internal/gateway/retrieve_tool.go:327
↓ 5 callers
Function
proxyBin
()
packages/cli/src/index.ts:12773
↓ 5 callers
Function
quote
(t *testing.T, value string)
proxy/providers/gemini/content_compress_test.go:47
↓ 5 callers
Method
record
Record a tool call. Raises :class:`RetryLoopError` once an identical call has repeated past the threshold. A different call resets the streak.
packages/sdk/python/caveman_cloud/core.py:71
↓ 5 callers
Method
recordSpan
* Buffer a span, mapping GenAI fields to `gen_ai.*` attributes. * Returns the OTelSpan (with generated ids) so callers can chain child spans * v
packages/sdk/typescript/src/index.ts:2150
↓ 5 callers
Function
recoverPendingNativeInstallUnlocked
(agent: NativeAgent)
packages/cli/src/index.ts:6747
↓ 5 callers
Method
recoverTool
(args json.RawMessage)
browse/session.go:374
↓ 5 callers
Method
renderStyle
renderStyle builds the RenderStyle that draws this profile. Cell advance is expressed through CellWBonus (advance − glyph width); pitch and zebra are
engine/pixel/density.go:279
↓ 5 callers
Function
requestBudgetMatchesBody
(record TraceRecord)
cacheengine/cachebench/trace.go:381
↓ 5 callers
Method
requestContext
(parent context.Context)
browse/cdp.go:114
↓ 5 callers
Function
resolveCaveRoute
( gatewayURL: string, options: { cave?: "auto" | "off"; ensureRuntime?: boolean; fetch?: typeo
packages/agent/src/runtime.ts:5068
↓ 5 callers
Method
result
()
packages/agent/src/adapters.ts:229
↓ 5 callers
Function
retrieveTool
retrieveTool returns the exact original for a handle; an unknown handle is a fail-closed tool error carrying a cave_snake_code (PRD §11.4). session ma
mcp/engine_tools.go:168
↓ 5 callers
Function
retroExpectedCut
retroExpectedCut measures the same segments the retro pass would, through the same engine call, so the assertion is an oracle rather than a magic numb
proxy/internal/store/learn_retro_test.go:135
↓ 5 callers
Function
retroTextLine
(t *testing.T, timestamp, text string)
proxy/internal/store/learn_retro_test.go:370
↓ 5 callers
Function
retroToolResultLine
(t *testing.T, payload string)
proxy/internal/store/learn_retro_test.go:356
↓ 5 callers
Function
rootObjectSpan
(body []byte)
proxy/providers/anthropic/splice.go:22
↓ 5 callers
Function
roundUSD
roundUSD preserves the ClickHouse money columns' Decimal128(10) precision. Rounding each request to micro-dollars loses real spend for low-cost models
shared/platform/importers/importers.go:273
↓ 5 callers
Function
runPixelRender
(args []string)
engine/cmd/caveman-engine/main.go:291
↓ 5 callers
Function
serveCaptureRequest
(t *testing.T, srv *Server, path, body string)
proxy/internal/gateway/capture_test.go:79
↓ 5 callers
Function
serveLines
serveLines drives the server with raw request lines and returns the raw non-empty output lines (a JSON-RPC batch response is a single array line, so t
mcp/server_test.go:564
↓ 5 callers
Function
sessionValueFeatures
()
proxy/routing/session_value_test.go:256
↓ 5 callers
Function
sinkIDs
(plan LearnPlan)
proxy/internal/store/trial_feature_test.go:864
↓ 5 callers
Function
skipValue
skipValue returns the offset just past the JSON value at i without inspecting it. The input is pre-validated, so container nesting is tracked by depth
engine/compressors/toolschema_annotations.go:322
↓ 5 callers
Function
splitWrappedLinesIntoReadablePages
(lines []string, maxLines, maxChars int)
engine/pixel/render.go:243
↓ 5 callers
Function
strictInteger
(value: unknown, error: string)
packages/agent/src/adapters.ts:522
↓ 5 callers
Function
strictNonNegativeInt
(value: unknown)
packages/sdk/typescript/src/index.ts:1965
↓ 5 callers
Function
stringOr
(v any, fallback string)
engine/pixel/history_openai.go:496
↓ 5 callers
Function
subCachedBlock
(text string)
proxy/internal/gateway/subscription_live_zone_test.go:53
↓ 5 callers
Function
syntheticCorpusRows
(turns int)
cacheengine/cachebench/corpus_test.go:260
↓ 5 callers
Function
telemetryAnonymousId
(state: TelemetryRuntimeState)
packages/cli/src/index.ts:678
↓ 5 callers
Function
telemetrySendable
(state: TelemetryRuntimeState)
packages/cli/src/index.ts:519
↓ 5 callers
Function
testKeyPEM
(t *testing.T)
shared/platform/githubapp/githubapp_test.go:33
↓ 5 callers
Function
testStore
(t *testing.T)
mem/cmd/cavemem/main_test.go:29
↓ 5 callers
Function
tmpStore
tmpStore returns a WithStorePath option pointing at a fresh per-test database file, so tests never write to the shared ~/.caveman/ccr.db.
shrink/shrink_test.go:45
↓ 5 callers
Function
unresolvedInternalRefs
unresolvedInternalRefs resolves each local JSON Pointer from the schema resource that contains it: an embedded tool schema or the nearest subschema ca
engine/compressors/toolschema_test.go:381
↓ 5 callers
Function
userBlocksFromBody
(t *testing.T, body []byte)
engine/pixel/transform_anthropic_test.go:369
↓ 5 callers
Function
validSessionValueContext
(pool []Candidate, now time.Time)
proxy/routing/session_value_test.go:260
↓ 5 callers
Function
validateCompatPath
(path, rawPath string)
proxy/providers/openaicompat/openaicompat.go:259
↓ 5 callers
Function
validateProviderUsage
( evidence: ProviderUsageEvidence, options: { expected?: { provider: string; model: string }; repo
packages/agent/src/execution-kernel.ts:121
↓ 5 callers
Function
writeClaudeProject
(t *testing.T, root, slug, file string, lines []string)
proxy/internal/store/trial_feature_test.go:377
↓ 5 callers
Function
writeJSON
(w io.Writer, v any)
mem/cmd/cavemem/main.go:383
↓ 4 callers
Method
AnalyzeTrial
AnalyzeTrial runs local-only replay checks against captured payloads, stores the resulting moves, then returns the public TrialPlan. Local never verif
proxy/internal/store/trial_store.go:199
↓ 4 callers
Method
AppJWT
AppJWT builds a short-lived (10-minute) RS256 App JWT signed with the App private key. iat is backdated 60s to tolerate clock skew (GitHub's guidance)
shared/platform/githubapp/githubapp.go:113
↓ 4 callers
Function
BM25
BM25 scores each document against the query using the same deterministic Okapi BM25 the context packer uses (k1=1.5, b=0.75) — no embeddings, no netwo
engine/contextwindow/contextwindow.go:178
↓ 4 callers
Function
ClassifyResolvedAuthMode
ClassifyResolvedAuthMode includes the credential resolver's final BYOK/config key. Header-only classification labeled a configured subscription/OAuth
proxy/internal/gateway/authmode.go:42
↓ 4 callers
Method
Close
()
browse/cdp.go:93
↓ 4 callers
Function
Compress
Compress encodes data with the named codec. "none" returns data unchanged.
shared/platform/objectstore/compress.go:35
↓ 4 callers
Function
ConfidenceScore
ConfidenceScore is a CHEAP, PURE heuristic that scores how confident a cascade rung's answer text looks, in [0,1]. Lower = less confident = should esc
proxy/routing/confidence.go:21
↓ 4 callers
Function
DecompressLimit
DecompressLimit reverses Compress while refusing to produce more than maxBytes of plaintext. The limit is applied while decoding gzip and through zstd
shared/platform/objectstore/compress.go:66
↓ 4 callers
Function
DefaultCorpusLimits
DefaultCorpusLimits returns conservative local-import bounds.
cacheengine/cachebench/corpus.go:42
↓ 4 callers
Function
EstimateImageCount
(text string, cols, numCols, maxCharsPerImage int, rp renderParams)
engine/pixel/textprep.go:46
↓ 4 callers
Function
EvalCompressionProfitability
(text string, cols, imageCountCap, numCols int, charsPerToken, priorWarmTokens, priorWarmImageTokens float64,
engine/pixel/gate.go:101
↓ 4 callers
Method
Exists
Exists reports whether key is present.
shared/platform/objectstore/objectstore.go:50
↓ 4 callers
Function
ExtractCompressible
ExtractCompressible is exported so Azure OpenAI and OpenAI-compatible adapters can reuse the identical wire grammar without changing provider identity
proxy/providers/openai/content_compress.go:47
↓ 4 callers
Function
ExtractFactSheetEntries
(text string)
engine/pixel/factsheet.go:67
↓ 4 callers
Function
ExtractProviderUsage
ExtractProviderUsage extracts cache counters and total input tokens from one complete, non-streaming provider response. Duplicate keys, missing totals
cacheengine/raw_usage.go:25
↓ 4 callers
Method
Forget
Forget deletes a memory by id and atomically repairs neighboring lineage pointers. Expired predecessors stay expired: deleting a current version means
mem/store.go:324
↓ 4 callers
Function
FromEnv
FromEnv builds a Store from the S3_* environment variables. It returns (nil, nil) when S3_ENDPOINT is unset outside production. Production requires ob
shared/platform/objectstore/objectstore.go:143
↓ 4 callers
Method
FrozenLevers
FrozenLevers returns this session's frozen levers in a stable order, for the x-caveman-tripwire disclosure header.
proxy/internal/gateway/ledger.go:123
↓ 4 callers
Method
List
List returns all keys under prefix (used by retention + ZDR assertions).
shared/platform/objectstore/objectstore.go:52
↓ 4 callers
Function
New
New constructs the Vertex adapter. baseURL is the aiplatform endpoint; in production it is a Vertex host (e.g. https://us-central1-aiplatform.googleap
proxy/providers/vertex/vertex.go:50
↓ 4 callers
Function
New
(listen, mode, owner, version string)
proxy/internal/runstate/runstate.go:68
↓ 4 callers
Function
New
New parses the private key, validates the base URL, and builds the App. It returns an error (not a half-built App) on any misconfiguration, so callers
shared/platform/githubapp/githubapp.go:67
↓ 4 callers
Function
NewChecked
NewChecked validates configuration at construction time. New preserves its original one-result API but stores the same configuration error and makes a
cacheengine/engine.go:54
↓ 4 callers
Function
NewQueryClient
NewQueryClient returns an *http.Client bounded for ClickHouse queries/DDL.
shared/platform/chhttp/chhttp.go:287
← previous
next →
601–700 of 7,561, ranked by callers