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
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/store/prefix_stability_e2e_test.go:50
Method
Authenticate
(ctx context.Context, r *http.Request)
proxy/internal/gateway/server_test.go:42
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/gateway/middleware_ops_test.go:70
Method
Authenticate
(context.Context, *http.Request)
proxy/internal/gateway/models_metadata_route_test.go:39
Method
AutoOffered
AutoOffered reports whether Auto is in the agents' pickers: signed in with the routing module on.
proxy/internal/cloudlink/link.go:576
Method
AutoOffered
()
proxy/internal/gateway/chatgpt_auto_test.go:29
Function
BenchmarkAskParts5MB
The link's share of the per-request work on a 5 MB body (it runs while compression does, inside the 800 ms budget): parse, ask text, declared request.
proxy/internal/cloudlink/route_effort_test.go:253
Function
BenchmarkDeepSchema
BenchmarkDeepSchema: a schema nested 3000 levels (a tool's may come from any MCP server) costs linear time, under 5 ms a request, in both walks.
proxy/internal/translate/bench_test.go:181
Function
BenchmarkElisionGateOnLargeDistinctPayload
The gate runs on the proxy hot path, so its cost has to stay bounded on the worst realistic input: a large payload with no repetition at all, where ev
engine/compressors/redundancy_test.go:156
Function
BenchmarkExtractCompressible
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:110
Function
BenchmarkExtractCompressibleChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:268
Function
BenchmarkExtractCompressibleResponses
(b *testing.B)
proxy/providers/openai/content_compress_test.go:292
Function
BenchmarkExtractStabilizable
(b *testing.B)
proxy/providers/gemini/content_compress_test.go:122
Function
BenchmarkExtractStabilizableChat
(b *testing.B)
proxy/providers/openai/content_compress_test.go:280
Function
BenchmarkInspectRequest
BenchmarkInspectRequest is the request metadata read every request starts with.
proxy/internal/gateway/hotpath_bench_test.go:217
Function
BenchmarkMiddlewarePreparation
Profile the same 100 KiB log body as the local HTTP benchmark. These component timings diagnose work; only performance.mjs measures queueing and round
proxy/internal/middleware/benchmark_test.go:19
Function
BenchmarkNative
BenchmarkNative is the harness path's hygiene on a body with nothing to strip (every request to Anthropic's, OpenAI's or a chat API): it must cost a s
proxy/internal/translate/bench_test.go:156
Function
BenchmarkParseUsageStream
BenchmarkParseUsageStream is the usage read of a finished Messages stream.
proxy/internal/gateway/hotpath_bench_test.go:235
Function
BenchmarkPayloadAdversarial4MiB
BenchmarkPayloadAdversarial4MiB owns the throughput regression signal. Run it after any pattern change and compare against a saved baseline with bench
shared/platform/redact/payload_test.go:400
Function
BenchmarkPayloadTypicalRequest
BenchmarkPayloadTypicalRequest is the shape that actually runs in production: a JSON chat request with one email in it.
shared/platform/redact/payload_test.go:414
Function
BenchmarkProviderPrefixEvidence
BenchmarkProviderPrefixEvidence is the frozen-prefix digest every request to an adapter with prefix evidence pays.
proxy/internal/gateway/hotpath_bench_test.go:198
Function
BenchmarkProxyHandler
BenchmarkProxyHandler is one record-mode Messages request through the whole handler against an in-process upstream, wired as the binary ships (rows fi
proxy/internal/gateway/hotpath_bench_test.go:132
Function
BenchmarkRecord
BenchmarkRecord is one request row into a file-backed store, one caller (serial) or eight at once (parallel, run with -cpu 8).
proxy/internal/store/record_batch_test.go:28
Function
BenchmarkRecordBatch
BenchmarkRecordBatch is the async writer's insert: rows a few at a time, one transaction each, reported per row.
proxy/internal/store/record_batch_test.go:56
Function
BenchmarkRequestAccounting
BenchmarkRequestAccounting is the request token count record() runs after the response: a pass-through request, so both sides are the same bytes.
proxy/internal/gateway/hotpath_bench_test.go:177
Function
BenchmarkRouteEffort5MB
The route stage's per-request work on a 5 MB Claude Code-shaped body (messages first, output_config last) whose session replays two marks.
proxy/internal/gateway/route_effort_test.go:537
Function
BenchmarkServeRecordMode
BenchmarkServeRecordMode is the shipped wiring end to end: record mode, real SQLite spend store, in-process upstream. c=1 is one caller; c=8 is eight
proxy/internal/standalone/hotpath_bench_test.go:51
Function
BenchmarkTransformCOGS
(b *testing.B)
proxy/providers/anthropic/cogs_bench_test.go:85
Function
BenchmarkTranslate
BenchmarkTranslate is Request plus Serve per direction and body size; the ms/100k-tok metric is the time scaled to a 100k-token body.
proxy/internal/translate/bench_test.go:122
Method
BuildLearnSimulation
BuildLearnSimulation evaluates only content observed in the selected scan window. It never invokes retro, projects future turns, or prices tokens.
proxy/internal/store/learn_simulate.go:34
Method
CachedPrefixComponents
CachedPrefixComponents is the adapter form of the package function; a token count is never cached, so it has no cached prefix.
proxy/providers/anthropic/content_compress.go:107
Method
Choices
(scope string, ids []string)
proxy/internal/store/middleware_postgres.go:435
Method
Choices
Choices looks each id up in turn: SQLite runs in process, so a lookup costs no round trip.
proxy/internal/store/middleware.go:639
Method
Close
Close is a no-op.
engine/ccr/store_wasm.go:46
Method
Close
Close releases a valid connection. A quarantined connection is deliberately retained until process exit: SQLite close could replay its obsolete journa
engine/ccr/store_generation.go:187
Method
Close
()
proxy/internal/store/middleware_postgres.go:62
Method
Close
()
proxy/internal/gateway/compress_test.go:99
Method
Close
()
proxy/cmd/caveman-proxy/main.go:1330
Method
Close
()
browse/session_test.go:56
Method
Close
()
browse/cmd/caveman-browse/main.go:510
Method
Close
()
shared/platform/kms/kms_test.go:373
Method
Complete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:62
Method
Complete
(_ context.Context, req ModelRequest)
engine/evals/quality.go:337
Method
Complete
(context.Context, evals.ModelRequest)
engine/evals/harness_test.go:321
Method
Compress
(in []byte)
engine/simulate_test.go:18
Method
Compress
(input []byte)
engine/compressors/axtree.go:35
Method
Compress
(input []byte)
engine/compressors/tabular.go:72
Method
Compress
(input []byte)
engine/compressors/html.go:43
Method
Compress
(input []byte)
engine/compressors/repetition.go:43
Method
Compress
(input []byte)
engine/compressors/diff.go:29
Method
Compress
(input []byte)
engine/compressors/text.go:39
Method
Compress
(input []byte)
engine/compressors/json_strategy.go:30
Method
Compress
(input []byte)
engine/compressors/toolschema.go:91
Method
Compress
(input []byte)
engine/compressors/searchresult.go:36
Method
Compress
(input []byte)
engine/compressors/code_nocgo.go:33
Method
Compress
(input []byte)
engine/compressors/code_cgo.go:58
Method
Compress
(input []byte)
engine/compressors/testreport.go:26
Method
Compress
(input []byte)
engine/compressors/log.go:81
Method
Compress
(input []byte)
engine/compressors/config.go:46
Method
Compress
(input []byte)
engine/compressors/terminal.go:58
Method
Compress
(input []byte)
engine/compressors/toolschema_annotations.go:414
Method
Compress
Compress is the query-agnostic transform (identical to CompressQuery with an empty query).
engine/compressors/json.go:70
Method
Compress
([]byte, engine.Options)
mcp/engine_tools_retrieve_test.go:21
Method
Compress
(in []byte, o engine.Options)
mcp/server_test.go:96
Method
CompressQuery
(input []byte, query string)
engine/compressors/tabular.go:75
Method
CompressQuery
(input []byte, query string)
engine/compressors/text.go:43
Method
CompressQuery
(input []byte, query string)
engine/compressors/json_strategy.go:35
Method
CompressQuery
(input []byte, query string)
engine/compressors/searchresult.go:40
Method
CompressQuery
(input []byte, query string)
engine/compressors/log.go:85
Method
CompressQuery
(input []byte, query string)
engine/compressors/config.go:49
Method
CompressQuery
CompressQuery biases array selection toward elements relevant to query via the shared deterministic BM25. An empty query behaves exactly like Compress
engine/compressors/json.go:74
Method
CompressSegment
(segment []byte)
proxy/internal/standalone/standalone.go:434
Method
CompressSegment
([]byte)
proxy/internal/standalone/provider_routes_test.go:16
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:73
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_e2e_test.go:167
Method
CompressSegment
(seg []byte)
proxy/internal/store/prefix_stability_openai_e2e_test.go:57
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:316
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/cache_prefix_invariant_test.go:1381
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/pixel_test.go:26
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/compress_test.go:83
Method
CompressSegment
(segment []byte)
proxy/internal/gateway/chatgpt_test.go:25
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/estimate_test.go:24
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/live_zone_test.go:62
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:103
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/prefix_stability_test.go:544
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:62
Method
CompressSegment
(seg []byte)
proxy/internal/gateway/toolschema_strip_test.go:86
Method
CompressSegmentQuery
CompressSegmentQuery runs the same engine path with latest-user relevance context. Only query-aware compressors consume it; every other content type k
proxy/internal/standalone/standalone.go:455
Method
CompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/chatgpt_test.go:33
Method
CompressSegmentQuery
(segment []byte, query string)
proxy/internal/gateway/compression_query_test.go:91
Method
CompressSegmentType
(segment []byte, contentType string)
proxy/internal/standalone/standalone.go:443
Method
CompressSegmentType
(seg []byte, contentType string)
proxy/internal/gateway/compress_test.go:48
Method
CompressWithMetadata
(input []byte, _ string)
engine/compressors/toon.go:26
Method
CompressWithMetadata
(input []byte, query string)
engine/compressors/json.go:78
Method
ContentType
()
engine/simulate_test.go:16
Method
ContentType
()
engine/compressors/axtree.go:32
Method
ContentType
()
engine/compressors/tabular.go:70
Method
ContentType
()
engine/compressors/html.go:40
Method
ContentType
()
engine/compressors/repetition.go:40
Method
ContentType
()
engine/compressors/diff.go:26
← previous
next →
7,901–8,000 of 12,391, ranked by callers