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
↓ 5 callers
Function
hasCmd
(cmd)
installer/install.js:324
↓ 5 callers
Function
hasFile
(path: string)
packages/cli/src/index.ts:2214
↓ 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:8367
↓ 5 callers
Function
hookEntryCommand
(entry: Record<string, unknown>)
packages/cli/src/index.ts:8310
↓ 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
inlineText
(n *html.Node)
engine/compressors/html_table.go:357
↓ 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
isJSONArray
(data []byte, span jsonsplice.Span)
proxy/providers/bedrock/cache_points.go:304
↓ 5 callers
Function
isJSONString
(body []byte, span jsonSpan)
proxy/providers/openai/content_compress.go:647
↓ 5 callers
Function
isSelfServer
(name: string, cfg: CodemodeServerConfig)
packages/cli/src/codemode.ts:51
↓ 5 callers
Function
itoa
(n int64)
proxy/internal/gateway/server.go:860
↓ 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
jsonResponse
(r *http.Request, status int, body string)
proxy/internal/standalone/e2e_cost_bench_test.go:678
↓ 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:2730
↓ 5 callers
Function
legacyFlagPath
(claudeDir)
src/hooks/caveman-config.js:586
↓ 5 callers
Method
line
(s string)
engine/compressors/html_table.go:31
↓ 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:497
↓ 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:22
↓ 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:8889
↓ 5 callers
Function
nativeMutationsFor
(agent: NativeAgent, gw: string, mcpBinary: string | undefined, { plan = false } = {})
packages/cli/src/index.ts:11310
↓ 5 callers
Function
nativePolicyMode
()
packages/cli/src/index.ts:18104
↓ 5 callers
Function
nativeProfile
()
packages/cli/src/index.ts:18097
↓ 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:1634
↓ 5 callers
Function
normalizedTaskType
(value string)
proxy/internal/nativeruntime/runtime.go:1091
↓ 5 callers
Method
notify
(method: string)
packages/pi-extension/src/recovery.ts:294
↓ 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
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
parseJsoncObject
(text: string)
packages/cli/src/harnesses/shared.ts:55
↓ 5 callers
Function
parseRetrieveCall
(provider, routePath string, respBody []byte)
proxy/internal/gateway/retrieve_tool.go:461
↓ 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:23878
↓ 5 callers
Function
providerUsesGeminiTools
(provider, routePath string)
proxy/internal/gateway/retrieve_tool.go:410
↓ 5 callers
Function
providerUsesOpenAITools
(provider string)
proxy/internal/gateway/retrieve_tool.go:415
↓ 5 callers
Function
quoteHookPath
( path: string, platform: NodeJS.Platform = process.platform, )
packages/cli/src/index.ts:8200
↓ 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:7784
↓ 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:11272
↓ 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:12087
↓ 5 callers
Method
reply
()
proxy/internal/gateway/cache_prefix_invariant_test.go:263
↓ 5 callers
Method
requestContext
(parent context.Context)
browse/cdp.go:114
↓ 5 callers
Function
resolveCapabilities
({ forStart = false }: { forStart?: boolean } = {})
packages/cli/src/index.ts:4728
↓ 5 callers
Function
resolveCredentials
(meta: Partial<Config>)
packages/cli/src/index.ts:23644
↓ 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
Method
rewriteRequest
rewriteRequest is compressRequest with the new-compression veto exposed: allowNew=false still substitutes every replacement already emitted, because t
proxy/internal/gateway/proxy.go:1757
↓ 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:360
↓ 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:1145
↓ 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
↓ 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
Method
server
(t *testing.T)
proxy/internal/cloudlink/route_effort_test.go:107
↓ 5 callers
Function
sessionActivePath
(claudeDir, sessionId)
src/hooks/caveman-config.js:607
↓ 5 callers
Function
setModel
setModel replaces the value of the top-level "model" string and leaves every other byte as it was. ok is false when there is no such string field.
proxy/internal/gateway/route.go:251
↓ 5 callers
Method
setup
(self)
packages/sdk/python/tests/test_middleware_transport.py:31
↓ 5 callers
Function
sha256
tests/middleware-e2e/harness.mjs:16
↓ 5 callers
Function
sharedComponents
sharedComponents is how many leading cached-prefix components every conversation of an agent shares: system and tools in a CachedPrefixInspector split
proxy/internal/gateway/raw_pin.go:307
↓ 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:327
↓ 5 callers
Method
space
()
proxy/providers/inspect.go:143
↓ 5 callers
Method
spans
(body []byte)
proxy/internal/gateway/route.go:340
↓ 5 callers
Function
splitWrappedLinesIntoReadablePages
(lines []string, maxLines, maxChars int)
engine/pixel/render.go:244
← previous
next →
1,201–1,300 of 13,382, ranked by callers