Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JuliusBrussee/caveman
/ functions
Functions
12,391 in github.com/JuliusBrussee/caveman
⨍
Functions
12,391
◇
Types & classes
1,304
↳
Endpoints
5
↓ 5 callers
Function
everyNamespace
(name string)
proxy/internal/middleware/runtime_test.go:61
↓ 5 callers
Function
extract_code_blocks
Line-based fenced code block extractor. Handles ``` and ~~~ fences with variable length (CommonMark: closing fence must use same char and be
skills/caveman-compress/scripts/validate.py:68
↓ 5 callers
Function
factory
(*args, **kwargs)
packages/middleware/python/caveman_middleware/agno.py:561
↓ 5 callers
Method
fetch
()
proxy/internal/identity/oidc.go:140
↓ 5 callers
Function
fileFingerprint
(path string)
proxy/internal/store/detect_memory_health.go:308
↓ 5 callers
Function
fillWithObjects
fillWithObjects inserts rows from next until the page cap refuses one, and returns the ids that went in.
engine/ccr/store_reclaim_test.go:44
↓ 5 callers
Method
finish
(self)
packages/middleware/python/caveman_middleware/google.py:414
↓ 5 callers
Function
fitOpenAIEffort
fitOpenAIEffort is clampEffort for an OpenAI-shaped upstream, where no effort field means the model's default: "none" on a model without it is its low
proxy/internal/translate/messages_in.go:671
↓ 5 callers
Function
gatewayObjectStringField
(body []byte, obj gatewayJSONSpan, field string)
proxy/internal/gateway/pixel.go:672
↓ 5 callers
Function
gatewaySkipJSONSpace
(body []byte, i int)
proxy/internal/gateway/retrieve_tool.go:290
↓ 5 callers
Function
geminiAdapter
Zone tagging for the cross-turn prefix fix. Gemini caches repeated prompt prefixes implicitly, so a turn this proxy compressed while it was the live z
proxy/providers/gemini/prefix_stability_test.go:18
↓ 5 callers
Function
geminiTurnConversation
(userTexts ...string)
proxy/internal/gateway/prefix_stability_payg_test.go:76
↓ 5 callers
Function
get
get issues an unauthenticated GET, for the probe routes that stay open.
proxy/internal/standalone/auth_token_test.go:51
↓ 5 callers
Function
glyphs
()
packages/cli/src/modules/onboard.ts:573
↓ 5 callers
Function
green
(s: string)
packages/cli/src/index.ts:23212
↓ 5 callers
Function
guardSync
(runtime: MiddlewareRuntime, adapter: string, work: () => T, fallback: () => T, wrapping = false)
packages/middleware/typescript/src/guard.ts:20
↓ 5 callers
Function
handler
(projected)
packages/middleware/python/tests/test_behavior.py:915
↓ 5 callers
Function
hasCmd
(cmd)
installer/install.js:324
↓ 5 callers
Function
hasFile
(path: string)
packages/cli/src/index.ts:2186
↓ 5 callers
Function
heartbeat
heartbeat is called on each silence tick, before a ping or keepalive.
proxy/internal/translate/translate.go:408
↓ 5 callers
Function
home
home writes a fake credential store: an index and 0600 secret files.
proxy/internal/pool/pool_test.go:17
↓ 5 callers
Function
hookCommandBasename
(token: string)
packages/cli/src/index.ts:8047
↓ 5 callers
Function
hookEntryCommand
(entry: Record<string, unknown>)
packages/cli/src/index.ts:7990
↓ 5 callers
Function
inScope
(id: ModuleId, only: ModuleId[] | undefined)
packages/cli/src/modules/apply.ts:139
↓ 5 callers
Function
injectRetrieveTool
(provider, routePath string, body []byte)
proxy/internal/gateway/retrieve_tool.go:52
↓ 5 callers
Function
intPtr
(v int)
engine/pixel/transform_anthropic.go:1542
↓ 5 callers
Method
is
is reports a member named name (its key decoded when it holds an escape; an escape only lengthens a key, so one no longer than name is compared as wri
proxy/internal/translate/jsonfast.go:178
↓ 5 callers
Function
isJSONString
(body []byte, span jsonSpan)
proxy/providers/openai/content_compress.go:628
↓ 5 callers
Function
itoa
(n int64)
proxy/internal/gateway/server.go:802
↓ 5 callers
Function
joinLines
joinLines is the inverse of splitLines.
engine/compressors/lineends.go:30
↓ 5 callers
Function
json
(path)
packages/cli/tests/claude-profiles.runtime.mjs:20
↓ 5 callers
Function
jsonChars
(value)
packages/subagent-tax/lib/analyze.mjs:12
↓ 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
labelOrDefault
(v, fallback string)
proxy/internal/gateway/proxy.go:2244
↓ 5 callers
Function
legacyFlagPath
(claudeDir)
src/hooks/caveman-config.js:586
↓ 5 callers
Method
lines
(t *testing.T)
proxy/internal/nativeruntime/drop_log_test.go:29
↓ 5 callers
Function
loadRuleset
(mode, hookDir)
src/hooks/caveman-config.js:852
↓ 5 callers
Function
logStoreWarning
(logger *slog.Logger, msg string, err error)
proxy/internal/store/trial_store.go:796
↓ 5 callers
Function
loopbackListen
loopbackListen reports whether addr binds only the local machine. It is the one test behind two decisions: whether a token on this listener deserves t
proxy/cmd/caveman-proxy/main.go:489
↓ 5 callers
Method
mode_of
(self, session_id)
tests/test_mode_tracker.py:375
↓ 5 callers
Function
modelsUpstream
modelsUpstream stubs a provider's read-only model catalog and records what path/method/headers the proxy forwarded.
proxy/internal/gateway/models_metadata_route_test.go:20
↓ 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
mustMkdir
(t *testing.T, dir string)
proxy/internal/store/detect_memory_health_test.go:29
↓ 5 callers
Function
nativeJournalPath
(agent: string)
packages/cli/src/index.ts:8546
↓ 5 callers
Function
nativeMutationsFor
(agent: NativeAgent, gw: string, mcpBinary: string | undefined, { plan = false } = {})
packages/cli/src/index.ts:10775
↓ 5 callers
Function
nativePolicyMode
()
packages/cli/src/index.ts:17474
↓ 5 callers
Function
nativeProfile
()
packages/cli/src/index.ts:17467
↓ 5 callers
Function
newCode
newCode returns the code compressor with default options (bodies elided, comments/docstrings kept) — the historical behavior.
engine/compressors/code_cgo.go:49
↓ 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:53
↓ 5 callers
Function
newShownModel
(src io.Reader, sent, asked string)
proxy/internal/gateway/route.go:1577
↓ 5 callers
Function
normalizedTaskType
(value string)
proxy/internal/nativeruntime/runtime.go:1090
↓ 5 callers
Method
notify
(method: string)
packages/pi-extension/src/recovery.ts:294
↓ 5 callers
Function
objectStringField
(body []byte, obj jsonSpan, field string)
proxy/providers/anthropic/content_compress.go:259
↓ 5 callers
Function
objectWith
objectWith renders o with member key's value replaced by value (appended when o has none); every other member keeps its bytes.
proxy/internal/translate/messages.go:391
↓ 5 callers
Method
observe
observe records one gap of class; negative means the stream never came back.
proxy/internal/gateway/cache_warm_table.go:157
↓ 5 callers
Method
observeSession
observeSession extracts every n-gram of tool signatures in the session's call order and books the output tokens the span consumed.
proxy/internal/store/detect_procedures.go:60
↓ 5 callers
Function
openAITestOptions
(model string)
engine/pixel/transform_openai_test.go:285
↓ 5 callers
Method
originals
originals counts stored original bodies (credit-only rows excluded).
proxy/internal/middleware/runtime_test.go:85
↓ 5 callers
Function
outcomeAt
(repo string, day int, tokens int64, turns, errors int)
proxy/internal/store/detect_outcomes_test.go:9
↓ 5 callers
Function
outcomeSink
outcomeSink groups scanned sessions by whether a commit overlapped them, and reports what each cohort cost. It emits nothing unless git could actually
proxy/internal/store/detect_outcomes.go:154
↓ 5 callers
Method
pageRows
pageRows is the row count that fills the profile's canvas height.
engine/pixel/density.go:217
↓ 5 callers
Function
parseJSONTOON
(input []byte)
engine/compressors/toon_encode.go:110
↓ 5 callers
Function
parseRetrieveCall
(provider, routePath string, respBody []byte)
proxy/internal/gateway/retrieve_tool.go:392
↓ 5 callers
Function
passiveAttempt
(runtime: MiddlewareRuntime, adapter: string, reason: string, logicalCallId: string = crypto.randomUUID())
packages/middleware/typescript/src/common.ts:107
↓ 5 callers
Function
passthrough
()
packages/sdk/typescript/src/index.ts:1663
↓ 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
Method
preflight
Nonthrowing discovery; caller cancellation still propagates.
packages/sdk/python/caveman_cloud/middleware/async_runtime.py:92
↓ 5 callers
Method
prepare
(self, body)
packages/middleware/python/caveman_middleware/_native.py:347
↓ 5 callers
Function
procedureSinks
procedureSinks emits at most a handful of distillation candidates, ranked by how much re-derivation they represent.
proxy/internal/store/detect_procedures.go:148
↓ 5 callers
Function
projectId
()
packages/cli/src/index.ts:23128
↓ 5 callers
Function
providerUsesOpenAITools
(provider string)
proxy/internal/gateway/retrieve_tool.go:346
↓ 5 callers
Function
quote
(t *testing.T, value string)
proxy/providers/gemini/content_compress_test.go:47
↓ 5 callers
Function
quoteHookPath
( path: string, platform: NodeJS.Platform = process.platform, )
packages/cli/src/index.ts:7880
↓ 5 callers
Function
rawObject
rawObject renders a top-level body: members sorted by key, values copied as they are (each already valid JSON).
proxy/internal/translate/jsonfast.go:362
↓ 5 callers
Function
raw_server
A raw socket server: handler(conn) runs per accepted connection on its own thread.
packages/sdk/python/tests/test_middleware_transport.py:84
↓ 5 callers
Function
readIndex
()
packages/cli/src/modules/provider-logins.ts:60
↓ 5 callers
Function
readJson
(path: string)
packages/cli/src/learn-autopilot.ts:91
↓ 5 callers
Function
readJson5Lenient
(path: string)
packages/cli/src/index.ts:7427
↓ 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:93
↓ 5 callers
Function
recoverPendingNativeInstallUnlocked
(agent: NativeAgent)
packages/cli/src/index.ts:10737
↓ 5 callers
Method
recoverTool
(args json.RawMessage)
browse/session.go:374
↓ 5 callers
Function
recovery_args
Model-written ``caveman_retrieve`` arguments, as an object or as keywords. Anything but an object with a string ``handle`` (``None``, a list, a st
packages/middleware/python/caveman_middleware/_guard.py:67
↓ 5 callers
Method
remember
remember writes a pause the person can act on (a refused key, a used-up allowance, a billing limit) to $CAVEMAN_HOME/route-state.json, where `caveman
proxy/internal/cloudlink/link.go:1444
↓ 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
repairNativeAgent
(target: NativeAgent, { quiet = false }: { quiet?: boolean } = {})
packages/cli/src/index.ts:11528
↓ 5 callers
Method
requestContext
(parent context.Context)
browse/cdp.go:114
↓ 5 callers
Function
resolveCapabilities
({ forStart = false }: { forStart?: boolean } = {})
packages/cli/src/index.ts:4667
↓ 5 callers
Function
resolveCredentials
(meta: Partial<Config>)
packages/cli/src/index.ts:22894
↓ 5 callers
Method
responsesSignature
responsesSignature is the thinking signature that carries a Responses reasoning item's encrypted_content back to the route that wrote it.
proxy/internal/translate/messages_responses.go:30
↓ 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:138
↓ 5 callers
Function
retroTextLine
(t *testing.T, timestamp, text string)
proxy/internal/store/learn_retro_test.go:373
↓ 5 callers
Function
retroToolResultLine
(t *testing.T, payload string)
proxy/internal/store/learn_retro_test.go:359
↓ 5 callers
Function
runGitIn
(t *testing.T, root string, args ...string)
proxy/internal/repointel/index_test.go:16
↓ 5 callers
Function
runPixelRender
(args []string)
engine/cmd/caveman-engine/main.go:312
↓ 5 callers
Method
run_cli
(self, args, cwd, module=False)
tests/test_compress_cli.py:15
↓ 5 callers
Function
saveTelemetryConfig
(telemetry: TelemetryConfig)
packages/cli/src/index.ts:1117
↓ 5 callers
Function
scanJSONValue
(body []byte, start int)
proxy/providers/anthropic/splice.go:103
↓ 5 callers
Method
scanSession
(ref sessionRef, since time.Time, emit func(turnEvent), deadline *behaviorDeadline)
proxy/internal/store/session_source.go:23
↓ 5 callers
Function
send
(_)
packages/middleware/python/tests/test_behavior.py:237
← previous
next →
1,101–1,200 of 12,391, ranked by callers