Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
2,775 in github.com/alibaba/open-code-review
⨍
Functions
2,775
◇
Types & classes
260
↓ 2 callers
Function
LoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:31
↓ 2 callers
Function
LoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:71
↓ 2 callers
Method
LoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:36
↓ 2 callers
Method
MergeBase
MergeBase returns the computed merge-base commit hash for range mode.
internal/diff/git.go:101
↓ 2 callers
Method
Name
Name returns the tool's identifier name.
internal/tool/definitions.go:59
↓ 2 callers
Function
NewCommentWorkerPool
NewCommentWorkerPool delegates to llmloop.NewCommentWorkerPool.
internal/agent/agent.go:38
↓ 2 callers
Function
NewToolResultMessage
NewToolResultMessage creates a tool-role message with the given result. Uses the OpenAI Chat Completions format: role="tool" with tool_call_id and pla
internal/llm/client.go:78
↓ 2 callers
Function
OfName
(name string)
internal/tool/definitions.go:24
↓ 2 callers
Function
ParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:31
↓ 2 callers
Function
PhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:50
↓ 2 callers
Function
PrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:104
↓ 2 callers
Function
PrintToolCallFinished
PrintToolCallFinished prints a line when a tool finishes successfully. Example: [ocr] ✔ file_read "internal/config/rules/loader.go" (12ms)
internal/telemetry/events.go:98
↓ 2 callers
Method
ProjectSummary
ProjectSummary returns the markdown project-level summary produced after all batches finish. Empty when SkipSummary is set, PROJECT_SUMMARY_TASK is ab
internal/scan/agent.go:103
↓ 2 callers
Function
Quiet
Quiet replaces stdout with io.Discard and returns a cleanup function. Usage: defer stdout.Quiet()() WARNING: Quiet must ONLY be called from the mai
internal/stdout/stdout.go:30
↓ 2 callers
Method
RecordReviewItemReused
RecordReviewItemReused records that this run reused a checkpoint from another session.
internal/session/history.go:171
↓ 2 callers
Method
RefValue
RefValue returns the git ref that should be used for reading file contents in range or commit mode. Returns ("", false) for workspace mode.
internal/tool/filereader.go:43
↓ 2 callers
Method
ResumeInfo
()
cmd/opencodereview/shared.go:261
↓ 2 callers
Function
RuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:9
↓ 2 callers
Method
RunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:69
↓ 2 callers
Method
SessionID
SessionID returns the persisted session identifier so callers can show it in JSON output or failure diagnostics. Returns "" when no session was create
cmd/opencodereview/shared.go:257
↓ 2 callers
Function
SessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:18
↓ 2 callers
Function
StartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:84
↓ 2 callers
Method
Stream
Stream acquires the semaphore, starts a git command, and passes its stdout as an io.Reader to consume. The semaphore is held for the full duration. co
internal/gitcmd/runner.go:90
↓ 2 callers
Method
ToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:163
↓ 2 callers
Method
ToolDefsByPhase
ToolDefsByPhase returns the parsed tool definitions filtered by phase. planOnly=true returns only tools with plan_task:true. planOnly=false returns on
internal/config/toolsconfig/toolsconfig.go:45
↓ 2 callers
Method
WriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:131
↓ 2 callers
Method
addNextMessage
addNextMessage extends the conversation with the assistant message and tool responses, applying three-zone compression at the soft (60%) and warning (
internal/llmloop/loop.go:437
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1562
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2576
↓ 2 callers
Method
adjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:10
↓ 2 callers
Function
allTools
()
internal/tool/definitions.go:33
↓ 2 callers
Method
apply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:138
↓ 2 callers
Function
applyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:141
↓ 2 callers
Function
applyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:143
↓ 2 callers
Function
applyProviderField
(entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:410
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:31
↓ 2 callers
Function
applyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:202
↓ 2 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:453
↓ 2 callers
Method
applySessionStart
(rec resumeRecord)
internal/session/resume.go:137
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:998
↓ 2 callers
Function
authHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1039
↓ 2 callers
Method
beginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:883
↓ 2 callers
Method
blurCPStep
()
cmd/opencodereview/provider_tui.go:1298
↓ 2 callers
Method
blurManualStep
()
cmd/opencodereview/provider_tui.go:1630
↓ 2 callers
Function
branchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:102
↓ 2 callers
Function
budgetTestTemplate
()
internal/scan/budget_test.go:46
↓ 2 callers
Function
buildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:101
↓ 2 callers
Method
buildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:750
↓ 2 callers
Function
buildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:758
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:216
↓ 2 callers
Function
buildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:351
↓ 2 callers
Function
buildFilterCommentsJSON
buildFilterCommentsJSON serializes comments into a JSON array with generated IDs.
internal/agent/agent.go:708
↓ 2 callers
Function
buildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:183
↓ 2 callers
Function
buildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:3
↓ 2 callers
Function
buildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:677
↓ 2 callers
Function
buildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:73
↓ 2 callers
Method
cancel
()
extensions/vscode/src/extension/services/CliService.ts:157
↓ 2 callers
Method
checkEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:51
↓ 2 callers
Function
checkMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:72
↓ 2 callers
Function
clamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:311
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1211
↓ 2 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1477
↓ 2 callers
Function
copyLlmComments
(in []model.LlmComment)
internal/session/resume.go:202
↓ 2 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:199
↓ 2 callers
Function
copyProvider
(p Provider)
internal/llm/providers.go:352
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:271
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:492
↓ 2 callers
Function
countLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:288
↓ 2 callers
Method
countReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:812
↓ 2 callers
Function
counterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:170
↓ 2 callers
Method
cursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:474
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2562
↓ 2 callers
Method
customAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:875
↓ 2 callers
Function
describeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:37
↓ 2 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:207
↓ 2 callers
Function
describeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:239
↓ 2 callers
Function
describeStatus
(s session.Summary)
cmd/opencodereview/session_cmd.go:229
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:108
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:173
↓ 2 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:200
↓ 2 callers
Method
dispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:51
↓ 2 callers
Function
download
(url, maxRedirects = 10)
scripts/install.js:90
↓ 2 callers
Function
emitError
(file, message)
scripts/github-actions/check-translation-sync.js:201
↓ 2 callers
Method
emitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:40
↓ 2 callers
Function
emitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:281
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:622
↓ 2 callers
Function
estimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:42
↓ 2 callers
Function
expandShortFlags
expandShortFlags replaces standalone -X args with their long equivalents. Only triggers when the arg is exactly -N (single char after dash).
cmd/opencodereview/flags.go:80
↓ 2 callers
Function
extFromPath
(path string)
internal/scan/agent.go:368
↓ 2 callers
Method
extFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:858
↓ 2 callers
Function
extractBlockText
(block ContentBlock)
internal/llm/client.go:103
↓ 2 callers
Function
extractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:58
↓ 2 callers
Function
extractCodeBlock
extractCodeBlock extracts the content of the first fenced code block from text. Returns empty string if no code block is found.
internal/diff/relocation.go:79
↓ 2 callers
Method
falsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:174
↓ 2 callers
Function
filterByPaths
filterByPaths keeps only entries whose path equals a user-supplied path (for exact files) or lies under it (for directories).
internal/scan/provider.go:273
↓ 2 callers
Method
filterDiffs
filterDiffs drops diffs that should not be reviewed based on user-configured include/exclude patterns and default extension/path filters.
internal/agent/agent.go:833
↓ 2 callers
Method
filterScanItems
filterScanItems drops items that should not be reviewed under the standard reviewability rules (binary, extension allowlist, user include/exclude, def
internal/scan/agent.go:298
↓ 2 callers
Function
findLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:68
← previous
next →
501–600 of 2,775, ranked by callers