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
↓ 311 callers
Method
Close
()
browse/session.go:35
↓ 210 callers
Function
resolve
(index: int)
packages/sdk/python/tests/test_trace_continuity.py:172
↓ 206 callers
Method
Run
Run validates full population, prepares equivalent bodies, then dispatches replay.
cacheengine/cachebench/replay.go:464
↓ 188 callers
Method
String
String returns the class name, or "S?" for an unknown class.
engine/safety/safety.go:65
↓ 158 callers
Function
test
(name, fn)
tests/test_mcp_shrink.js:20
↓ 135 callers
Method
Compress
Compress returns the compressed bytes with ok=true on success. On any parse problem (malformed input, an unsupported shape) it returns (nil-or-input,
engine/compressors/compressor.go:30
↓ 133 callers
Method
Get
Get returns the bytes at key, or ErrNotFound.
shared/platform/objectstore/objectstore.go:46
↓ 121 callers
Method
get
(self, artifact_id: str)
packages/sdk/python/caveman_cloud/core.py:1330
↓ 120 callers
Function
String
(body []byte, span Span)
proxy/providers/jsonsplice/jsonsplice.go:84
↓ 117 callers
Method
write
(job captureJob)
proxy/internal/gateway/capture.go:218
↓ 110 callers
Method
replace
replace returns the input with all matches replaced by [REDACTED:<name>].
shared/platform/redact/redact.go:90
↓ 95 callers
Method
Set
(value string)
cacheengine/cmd/cache-replay/main.go:38
↓ 87 callers
Method
ok
(self)
packages/sdk/python/caveman_cloud/core.py:108
↓ 79 callers
Method
Handler
Handler returns the standalone HTTP handler: health, metrics, and the proxy catch-all. Unlike the managed gateway it serves no SDK/OTLP endpoints — th
proxy/internal/gateway/server.go:496
↓ 71 callers
Function
OpenMemory
OpenMemory returns a fresh in-memory store.
engine/ccr/store_wasm.go:41
↓ 68 callers
Method
Count
Count returns a local token estimate for b.
engine/tokens/tokens.go:21
↓ 68 callers
Function
New
New constructs an engine while preserving legacy one-result API. Invalid configuration makes every operation return its stored error; prefer NewChecke
cacheengine/engine.go:39
↓ 67 callers
Method
resolve
()
proxy/internal/gateway/capture.go:268
↓ 61 callers
Method
Error
()
engine/compressors/compressor.go:204
↓ 61 callers
Function
Open
Open opens (creating if needed) the SQLite database at path and migrates the schema. logger may be nil.
proxy/internal/store/store.go:265
↓ 61 callers
Function
max
(kinds: readonly string[])
packages/agent/src/cli.ts:1319
↓ 60 callers
Function
Path
(home string, port int)
proxy/internal/runstate/runstate.go:64
↓ 60 callers
Method
max
()
packages/agent/src/budget.ts:816
↓ 60 callers
Function
print
(value: unknown)
packages/cli/src/index.ts:14588
↓ 59 callers
Method
Error
()
proxy/internal/gateway/prefix_stability_test.go:78
↓ 58 callers
Method
Error
()
mem/cmd/cavemem/main_test.go:308
↓ 58 callers
Function
New
New builds an engine with the default compressor registry. store backs CCR recovery and stats and may be nil — without it the engine still detects and
engine/engine.go:36
↓ 58 callers
Function
New
(baseURL string)
proxy/providers/openai/openai.go:10
↓ 58 callers
Method
Scan
(dest ...any)
mem/store.go:619
↓ 58 callers
Method
close
Release the optional background refresh timer. Mirrors the Python `close()`.
packages/sdk/typescript/src/index.ts:1211
↓ 58 callers
Function
serveBody
(t *testing.T, srv *Server, path, body string, headers map[string]string)
proxy/internal/gateway/live_zone_test.go:118
↓ 54 callers
Method
last
(t *testing.T)
proxy/internal/gateway/server_test.go:69
↓ 53 callers
Method
write
(w *bufio.Writer, resp rpcResponse)
mcp/server.go:232
↓ 52 callers
Method
Bytes
()
cacheengine/cmd/cache-replay/main.go:147
↓ 52 callers
Function
mark
(state: "ok" | "bad" | "warn")
packages/cli/src/index.ts:14663
↓ 50 callers
Method
Valid
Valid reports whether c is a registered class.
engine/safety/safety.go:59
↓ 49 callers
Method
encode
(self, *args, **kwargs)
tests/test_compress_safety.py:117
↓ 48 callers
Function
String
(name, fallback string)
shared/platform/env/env.go:14
↓ 47 callers
Function
New
(baseURL string)
proxy/providers/anthropic/anthropic.go:24
↓ 47 callers
Function
New
New constructs a standalone proxy Server.
proxy/internal/gateway/server.go:445
↓ 40 callers
Method
Format
Format renders a rollup as a stable, human-readable string.
engine/evals/fixtures/sample.go:70
↓ 40 callers
Method
kill
Latch this client off. Every later `decide()` returns the caller's baseline.
packages/sdk/typescript/src/index.ts:1188
↓ 40 callers
Function
newAdapter
(t *testing.T)
proxy/providers/bedrock/bedrock_test.go:16
↓ 39 callers
Function
newTestPrefixCache
()
proxy/internal/gateway/prefix_stability_test.go:41
↓ 37 callers
Method
Optimize
Optimize applies provider-native cache metadata or returns copied original bytes on every unsupported or unsafe path. It makes no network call.
cacheengine/native.go:18
↓ 33 callers
Method
QueryRow
(context.Context, string, ...any)
shared/platform/postgresconfig/postgresconfig.go:212
↓ 32 callers
Method
ExtractCompressible
ExtractCompressible returns only the request's cache-cold live-zone text segments and a reassemble fn that byte-splices replacements into the original
proxy/providers/adapter.go:323
↓ 32 callers
Function
which
(cmd: string)
packages/cli/src/index.ts:14806
↓ 31 callers
Function
cavemanHome
()
packages/cli/src/index.ts:8948
↓ 31 callers
Function
flagFrom
(values: string[], name: string, fallback: string)
packages/cli/src/index.ts:12850
↓ 30 callers
Method
decide
Decide what to run for ``task_family``. Synchronous, local, total. Performs no network I/O and never raises — a garbage context, a broken
packages/sdk/python/caveman_cloud/core.py:2398
↓ 30 callers
Function
dim
(s: string)
packages/cli/src/index.ts:14657
↓ 27 callers
Method
Write
(p []byte)
browse/session.go:394
↓ 27 callers
Function
sha256
(path)
packages/cli/tests/openclaw-wrap.runtime.mjs:12
↓ 27 callers
Method
trace
Run a block inside a trace. The trace allocates a ``trace_id`` (32 lowercase hex) and a root ``span_id`` (16 lowercase hex) with the
packages/sdk/python/caveman_cloud/core.py:354
↓ 26 callers
Function
New
(store *ccr.Store)
proxy/internal/nativeruntime/runtime.go:142
↓ 26 callers
Method
ResolveUpstreamURL
(ctx context.Context, req *http.Request, route RouteContext)
proxy/providers/adapter.go:307
↓ 26 callers
Function
optimizeRequest
(provider, model, endpoint, epoch, body string)
cacheengine/native_test.go:15
↓ 26 callers
Function
str
(v: unknown)
packages/cli/src/index.ts:8608
↓ 25 callers
Function
apply
(t *testing.T, body string, policy providers.TransformPolicy)
proxy/providers/openai/cache_key_test.go:17
↓ 24 callers
Method
Handle
(_ context.Context, request Request)
proxy/internal/nativeruntime/runtime.go:204
↓ 24 callers
Function
ParseUsageBytes
ParseUsageBytes extracts token usage from a complete provider response body, whether a single JSON document (non-stream) or an SSE / newline-delimited
proxy/providers/adapter.go:794
↓ 24 callers
Method
Pick
(f Features, pool []Candidate, alpha float64)
proxy/routing/routing.go:15
↓ 24 callers
Function
agent
(options: { id: string; instructions: string | FileSource; model: Auto | string | Model<Api>; reasonin
packages/agent/src/index.ts:87
↓ 24 callers
Function
newRetroFixture
(t *testing.T)
proxy/internal/store/learn_retro_test.go:114
↓ 23 callers
Method
BuildLearnPlanWithRetro
BuildLearnPlanWithRetro is BuildLearnPlan plus the opt-in retrospective pass. With retro disabled the two are the same code path and the same output b
proxy/internal/store/learn.go:90
↓ 23 callers
Method
ListSessionObjects
(sessionID string, limit int)
engine/ccr/store_wasm.go:172
↓ 23 callers
Method
ParseUsage
(ctx context.Context, responseHeaders http.Header, streamOrBody io.Reader)
proxy/providers/adapter.go:324
↓ 23 callers
Method
Remember
Remember stores text durably and returns it with a content-addressed id. Remembering identical current text twice is idempotent (same id, stored once)
mem/store.go:166
↓ 23 callers
Method
send
(self, prompt)
tests/test_mode_tracker.py:38
↓ 22 callers
Method
Complete
(context.Context, ModelRequest)
engine/evals/quality.go:41
↓ 22 callers
Function
Default
Default returns the engine's shared default counter: the o200k_base BPE tokenizer (the GPT-4o-family encoding), used across every content type. If the
engine/tokens/tokens.go:92
↓ 22 callers
Function
_refresh_with
(client: RuntimePolicyClient, payload: Any, captured: list[dict[str, Any]] | None = None)
packages/sdk/python/tests/test_runtime_policy.py:107
↓ 22 callers
Method
flag_value
(self)
tests/test_mode_tracker.py:54
↓ 22 callers
Function
fn
(url, init)
packages/graders/tests/grade.runtime.mjs:799
↓ 22 callers
Function
turnText
(n int)
proxy/internal/gateway/prefix_stability_test.go:152
↓ 21 callers
Function
Field
(body []byte, object Span, name string)
proxy/providers/jsonsplice/jsonsplice.go:30
↓ 21 callers
Method
Len
Len reports how many objects are stored (test helper for ZDR assertions).
shared/platform/objectstore/memory.go:102
↓ 21 callers
Function
New
(baseURL string)
proxy/providers/gemini/gemini.go:33
↓ 21 callers
Method
Query
(context.Context, string, ...any)
shared/platform/postgresconfig/postgresconfig.go:211
↓ 21 callers
Function
Root
(body []byte)
proxy/providers/jsonsplice/jsonsplice.go:21
↓ 21 callers
Function
_make_cave
()
packages/sdk/python/tests/test_runtime_policy.py:79
↓ 21 callers
Function
invokedAs
()
packages/cli/src/index.ts:437
↓ 21 callers
Function
invokedCommand
(legacyVerb: string, groupedTail = "")
packages/cli/src/index.ts:442
↓ 21 callers
Function
openRetroTestStore
(t *testing.T)
proxy/internal/store/learn_retro_test.go:123
↓ 21 callers
Method
runtime_policy
A local runtime-policy client for this project. The client pulls the project's published policy bundle (``GET /sdk/v1/runtime-policy`
packages/sdk/python/caveman_cloud/core.py:870
↓ 21 callers
Function
stableStringify
(value: unknown)
packages/agent/src/context-ir.ts:334
↓ 20 callers
Function
Open
Open ignores path (there is no filesystem) and returns an in-memory store.
engine/ccr/store_wasm.go:34
↓ 20 callers
Method
Record
(RequestRecord)
proxy/internal/gateway/server.go:69
↓ 20 callers
Function
run
run drives the server with the given JSON-RPC request lines and returns the decoded responses plus whatever the server logged (which must be empty on
mcp/server_test.go:32
↓ 19 callers
Function
NewRepetition
NewRepetition returns the default repetition (run-length) compressor.
engine/compressors/repetition.go:38
↓ 19 callers
Function
_client_holding
(bundle: str)
packages/sdk/python/tests/test_runtime_policy.py:654
↓ 19 callers
Function
explicitProfile
()
cacheengine/planner_test.go:10
↓ 19 callers
Method
exporter
Create a one-call OTel exporter bound to this Cave's gateway config. The exporter ships spans to the gateway's OTLP endpoint (``POST
packages/sdk/python/caveman_cloud/core.py:611
↓ 19 callers
Function
fileBytes
(path: string)
packages/cli/src/index.ts:5826
↓ 19 callers
Function
invokePath
(model, action string)
proxy/providers/bedrock/bedrock_test.go:21
↓ 19 callers
Function
runCli
(argv, options = {})
packages/cli/tests/_cli.mjs:44
↓ 19 callers
Function
tool
( options: ToolOptions<TSchema, unknown> | StandardToolOptions<unknown, unknown, unknown> | Standard
packages/agent/src/primitives.ts:123
↓ 18 callers
Method
ExtractStabilizable
(body []byte, meta providers.RequestMetadata)
proxy/providers/azureopenai/content_compress_test.go:29
↓ 18 callers
Function
Parse
Parse dispatches to the per-format parser. An unknown/misspelled format returns an error (fail-closed) — it never silently passes through. On any par
shared/platform/importers/importers.go:71
next →
1–100 of 7,561, ranked by callers