Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,599 in github.com/alibaba/open-code-review
⨍
Functions
7,599
◇
Types & classes
815
↓ 18 callers
Method
one
(t *testing.T)
internal/llm/raw_test.go:42
↓ 18 callers
Function
rawRequest
rawRequest builds an *http.Request with the given body and context for middleware tests.
internal/llm/raw_test.go:69
↓ 18 callers
Function
renderMarkdown
(markdown string, width int)
cmd/opencodereview/markdown.go:38
↓ 18 callers
Function
saveTest
(t *testing.T, s Store, a Auth)
internal/chatgptauth/auth_test.go:33
↓ 17 callers
Function
IsEnabled
IsEnabled returns true when telemetry has been initialized with exporters.
internal/telemetry/provider.go:73
↓ 17 callers
Function
LoadDefault
LoadDefault parses the embedded tool definitions shipped with this build.
internal/config/toolsconfig/toolsconfig.go:26
↓ 17 callers
Method
MarkFailed
MarkFailed records that the item failed. class must be a valid, specific failure class — an empty or unknown-string class is rejected rather than down
internal/session/manifest.go:763
↓ 17 callers
Method
RegisterSelected
RegisterSelected records an item in the selected set (the coverage denominator). It must be called once per item during the pre-dispatch pass, after f
internal/session/manifest.go:519
↓ 17 callers
Function
SessionTaskKey
SessionTaskKey derives the prompt-cache affinity key for one task conversation within a session. Prompt caches match on prefixes, and OCR's task types
internal/llm/sessionkey.go:65
↓ 17 callers
Method
SetError
SetError records an error for this task record, writes an llm_error entry to the JSONL stream, and increments the session-level LLM failure counter.
internal/session/history.go:571
↓ 17 callers
Method
String
String renders a one-line human-readable estimate, matching scan.Estimate's format so diff and scan warnings read consistently. Money is intentionally
internal/agent/estimate.go:94
↓ 17 callers
Method
displayModels
()
cmd/opencodereview/provider_tui.go:2770
↓ 17 callers
Function
fileReadToolCallResponse
(callID, args string)
internal/reviewtask/loop_test.go:66
↓ 17 callers
Function
log
(msg)
scripts/github-actions/post-review-comments.js:136
↓ 17 callers
Function
newFakeLLM
newFakeLLM returns a server that succeeds on the first attempt for every file. rateLimitOnce and hardFail are set by the caller before use.
cmd/opencodereview/retry_fake_llm_test.go:58
↓ 17 callers
Function
reviewItemFingerprint
(mode string, d model.Diff)
internal/agent/agent.go:952
↓ 17 callers
Method
set
(key: string, value: string)
extensions/vscode/src/extension/services/ConfigService.ts:89
↓ 17 callers
Method
str
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraftTest.kt:72
↓ 16 callers
Function
ListSessions
ListSessions enumerates all persisted sessions for the given repository directory, sorted by StartTime descending (most recent first). Missing directo
internal/session/list.go:118
↓ 16 callers
Method
Manifest
Manifest returns the run's coverage builder, or nil for legacy/scan sessions that did not opt in via SessionOptions.Operation. Callers must be nil-saf
internal/session/history.go:214
↓ 16 callers
Method
Native
Native extracts the replay state of the first choice, if any.
internal/llm/client.go:390
↓ 16 callers
Function
NewCommentWorkerPool
NewCommentWorkerPool creates a pool with the given concurrency limit. workerCount <= 0 defaults to 8.
internal/reviewtask/pool.go:36
↓ 16 callers
Function
NewLLMClient
--- Factory --- NewLLMClient creates the appropriate client based on the resolved endpoint protocol. protocol dispatch (canonical names from protocol.
internal/llm/client.go:498
↓ 16 callers
Method
SetResponse
SetResponse records the LLM response in the most recent TaskRecord of the given type. It uses actual token usage from the API response when available,
internal/session/history.go:509
↓ 16 callers
Function
check
(output, kotlinOutput string)
internal/llm/gen/check.go:30
↓ 16 callers
Function
gitCommitFile
gitCommitFile writes a file and commits it, returning after the commit lands.
cmd/opencodereview/delegate_exec_test.go:53
↓ 16 callers
Function
newAgentForTest
(t *testing.T, tpl template.ScanTemplate)
internal/scan/agent_test.go:24
↓ 16 callers
Function
okAttempt
()
internal/llm/retry_report_test.go:34
↓ 16 callers
Function
prepareCodeTools
(ctx context.Context, input Input)
internal/behaviortask/code.go:39
↓ 16 callers
Function
resolveCheckpointRange
({ github, owner, repo, prNumber, enabled = false, sticky = true, fullReview = false, // githu
scripts/github-actions/post-review-comments.js:3407
↓ 16 callers
Function
startFakeLLM
startFakeLLM starts srv and points the OCR_LLM_* endpoint resolution at it, with HOME/XDG_CONFIG_HOME redirected so the developer's real config and se
cmd/opencodereview/retry_fake_llm_test.go:283
↓ 16 callers
Function
useTranslation
()
pages/src/i18n/context.tsx:70
↓ 16 callers
Function
writeConfigJSON
(t *testing.T, cfg configFile)
internal/llm/resolver_keycmd_test.go:19
↓ 15 callers
Function
Dir
Dir returns OCR_HOME when non-empty, otherwise ~/.opencodereview. Overrides must be absolute. It does not create the directory or migrate existing dat
internal/ocrhome/home.go:16
↓ 15 callers
Function
LoadScanDefault
LoadScanDefault parses the embedded scan_template.json.
internal/config/template/template.go:261
↓ 15 callers
Function
NewProvider
NewProvider creates a Provider that enumerates the repository at repoDir. If paths is non-empty each element must be a repo-relative path (file or dir
internal/scan/provider.go:55
↓ 15 callers
Method
Read
Read returns the full content of a file path (relative to RepoDir), resolved according to the active review mode. - Workspace: reads directly from the
internal/tool/filereader.go:72
↓ 15 callers
Method
Run
(ctx context.Context, messages []llm.Message, taskKey string)
internal/llmloop/loop.go:289
↓ 15 callers
Method
Warnings
()
cmd/opencodereview/shared.go:855
↓ 15 callers
Function
build
(comments, **extra)
examples/gerrit_ci/post_review_test.py:47
↓ 15 callers
Function
ckArgs
(over = {})
scripts/github-actions/post-review-comments.test.js:4187
↓ 15 callers
Method
dispatchSubtasks
dispatchSubtasks groups items into batches per the configured strategy, then processes batches sequentially while running files within each batch conc
internal/scan/agent.go:541
↓ 15 callers
Function
http_error
Build an HTTPError suitable for mocking urlopen.
examples/gitlab_ci/post_review_test.py:91
↓ 15 callers
Function
mustJSON
--- helpers ---
internal/session/resume_test.go:851
↓ 15 callers
Function
setColor
setColor pins the resolved color decision for one test and restores the previous state afterwards. Tests capture stdout through a pipe, which is not a
cmd/opencodereview/color_test.go:29
↓ 14 callers
Method
CallTool
CallTool implements intent.LLMClient.
acp/internal/intent/llm/client.go:66
↓ 14 callers
Method
CompletionsWithCtx
CompletionsWithCtx sends a Responses API request and maps the result back to the shared ChatResponse shape. The deferred finalizeRequest is this clie
internal/llm/responses_client.go:118
↓ 14 callers
Function
Dynamic
Dynamic creates a Tool with the given name for dynamically discovered tools (e.g. MCP).
internal/tool/definitions.go:56
↓ 14 callers
Method
Enumerate
Enumerate returns one ScanItem per reviewable file. Binaries are emitted with empty Content + IsBinary=true so previews can show them as excluded.
internal/scan/provider.go:100
↓ 14 callers
Function
NewClient
()
internal/chatgptauth/oauth.go:35
↓ 14 callers
Function
NewFileFind
(fr *FileReader)
internal/tool/file_find.go:29
↓ 14 callers
Function
ParseCommentsWithPath
ParseCommentsWithPath is like ParseComments but uses defaultPath as a fallback when individual comment objects omit the path field. repair is non-nil
internal/tool/code_comment.go:86
↓ 14 callers
Function
PrepareInput
(ctx context.Context, input Input)
internal/behaviortask/prepare.go:17
↓ 14 callers
Method
RunManifest
RunManifest returns the frozen v1 coverage result for review runs. Scan remains legacy and returns nil.
cmd/opencodereview/shared.go:876
↓ 14 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/opencodereview/retry_fake_llm_test.go:150
↓ 14 callers
Method
SetAgentConnection
(c interface { SessionUpdate(context.Context, acp.SessionNotification) error })
acp/internal/adapter/agent.go:39
↓ 14 callers
Method
ValidateOptions
ValidateOptions verifies that this session can be resumed in the requested review mode at all. It deliberately does not compare the ref text the user
internal/session/resume.go:279
↓ 14 callers
Function
anthropicClient
(url string, c *RetryCollector, extra map[string]string)
internal/llm/retry_observer_test.go:71
↓ 14 callers
Method
cancel
()
extensions/vscode/src/extension/services/CliService.ts:198
↓ 14 callers
Method
close
Closes the panel. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/ConfigPanelHost.kt:23
↓ 14 callers
Function
groupDiffs
groupDiffs calls the LLM with file metadata (no diff content) to produce semantic groups. Falls back to one-file-per-group on any error.
internal/agent/grouping.go:68
↓ 14 callers
Function
loadCommonContext
loadCommonContext validates the working directory, loads the embedded template, raises MaxToolRequestTimes when maxTools exceeds the default, resolves
cmd/opencodereview/shared.go:112
↓ 14 callers
Function
mockManifest
(state session.TerminalState)
cmd/opencodereview/emit_run_result_test.go:62
↓ 14 callers
Function
modelIdxForName
(t *testing.T, m providerTUIModel, name string)
cmd/opencodereview/provider_tui_test.go:1568
↓ 14 callers
Function
newModelTUI
newModelTUI builds a model-only TUI for tests. It has no config path or existing config, so add/delete/persist operations are unavailable — use newMod
cmd/opencodereview/provider_tui.go:2713
↓ 14 callers
Function
readJSONLRecords
(t *testing.T, path string)
internal/session/persist_test.go:148
↓ 14 callers
Function
render
(page)
internal/viewer/static/pager.js:46
↓ 14 callers
Function
rightKey
()
cmd/opencodereview/provider_tui_test.go:30
↓ 14 callers
Function
runRequest
(t *testing.T, runner Runner, ctx context.Context, request Request)
acp/internal/orchestrator/runner_test.go:255
↓ 14 callers
Function
sessionJSONLPath
(t *testing.T, repoDir, sessionID string)
internal/session/persist_test.go:199
↓ 14 callers
Function
taskDoneResponse
()
internal/reviewtask/loop_test.go:62
↓ 13 callers
Function
LoadSummary
LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
internal/session/list.go:155
↓ 13 callers
Function
NewFileReadDiff
(dm DiffMap)
internal/tool/file_read_diff.go:54
↓ 13 callers
Function
NormalizeProtocol
NormalizeProtocol canonicalizes protocol names. It is case-insensitive and trims whitespace. Empty string is returned as-is (the caller decides the de
internal/llm/protocol.go:45
↓ 13 callers
Method
ReasoningContent
ReasoningContent extracts the reasoning content of the first choice, if any.
internal/llm/client.go:382
↓ 13 callers
Function
ResolveEndpointWithModelOverride
ResolveEndpointWithModelOverride is a compatibility wrapper around ResolveEndpointWithOptions for callers that only override the model.
internal/llm/resolver.go:97
↓ 13 callers
Method
Session
Session returns the session history associated with this Agent.
internal/scan/agent.go:186
↓ 13 callers
Method
Shutdown
Shutdown rejects new work, cancels active turns and waits for reader cleanup.
acp/internal/adapter/session.go:85
↓ 13 callers
Method
apply
* Apply a suggestion, allowed only in workspace mode. Delete the marked range when suggestionCode is absent. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:245
↓ 13 callers
Method
buildAnthropicParams
buildAnthropicParams converts the shared ChatRequest into Anthropic SDK parameters.
internal/llm/client.go:1560
↓ 13 callers
Method
buildResponsesParams
buildResponsesParams converts the shared ChatRequest into Responses API parameters. Mapping notes: - Multiple system messages are concatenated into I
internal/llm/responses_client.go:429
↓ 13 callers
Function
captureStderr
captureStderr swaps os.Stderr for a pipe around fn and returns what was written. Output here is tiny, so reading after the writer is closed avoids any
internal/llm/test_stderr_test.go:15
↓ 13 callers
Function
cloneProviderEntry
cloneProviderEntry deep-copies a ProviderEntry so callers (rollback paths, map cloning) can safely mutate the returned value without aliasing the orig
cmd/opencodereview/provider_tui.go:1318
↓ 13 callers
Function
collectCustomProviders
(cfg *Config)
cmd/opencodereview/provider_tui.go:252
↓ 13 callers
Function
defaultConfigPath
Default config file location: ~/.opencodereview/config.json
cmd/opencodereview/config_cmd.go:102
↓ 13 callers
Function
extractRepoLinks
(content)
scripts/github-actions/check-plugin-contract.js:288
↓ 13 callers
Function
finishManifestFlow
(t *testing.T, a *Agent)
internal/agent/manifest_integration_test.go:146
↓ 13 callers
Function
initPreviewRepo
(t *testing.T)
internal/agent/preview_run_test.go:22
↓ 13 callers
Function
loadBackgroundFile
(path string)
cmd/opencodereview/background_file.go:66
↓ 13 callers
Function
newTestClient
(name string, tools []*mcp.Tool)
internal/mcp/provider_test.go:14
↓ 13 callers
Function
requireIntent
requireIntent fails unless r is a runnable intent and returns its argv.
acp/internal/intent/fake_test.go:70
↓ 13 callers
Function
resolveLocale
(raw: string)
extensions/frontend/src/shared/i18n.ts:953
↓ 13 callers
Function
run
(number, repo, background, env, offline)
skills/open-code-review/scripts/review_pr.py:202
↓ 13 callers
Function
sanitizeTerminal
(s string)
cmd/opencodereview/output.go:275
↓ 13 callers
Function
scanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:304
↓ 13 callers
Function
seedRmSessionRecorded
(t *testing.T, repoDir, sessionID, branch string)
cmd/opencodereview/session_rm_test.go:326
↓ 13 callers
Method
selectFiles
selectFiles is the review's one deterministic pre-dispatch selection: for every changed file it applies the static path/extension gates, the deletion
internal/agent/selection.go:43
↓ 13 callers
Function
testRequest
()
acp/internal/intent/llm/client_test.go:19
↓ 13 callers
Function
writeOCRScript
(t *testing.T)
acp/internal/orchestrator/runner_test.go:296
↓ 12 callers
Method
Await
Await blocks until all submitted work has completed and returns aggregated results from every Submit call so far. A panic in submitted work is recove
internal/reviewtask/pool.go:115
← previous
next →
201–300 of 7,599, ranked by callers