Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,373 in github.com/alibaba/open-code-review
⨍
Functions
3,373
◇
Types & classes
315
↓ 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:83
↓ 2 callers
Function
OfName
(name string)
internal/tool/definitions.go:27
↓ 2 callers
Function
OpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:294
↓ 2 callers
Function
ParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:34
↓ 2 callers
Function
PhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:53
↓ 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:107
↓ 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:101
↓ 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:114
↓ 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:33
↓ 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:46
↓ 2 callers
Method
RemoteIdentity
RemoteIdentity returns a stable, credential-free identity string for the repository's "origin" remote, suitable for hashing into the run manifest's re
internal/diff/git.go:391
↓ 2 callers
Method
ResumeInfo
()
cmd/opencodereview/shared.go:306
↓ 2 callers
Function
RuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:12
↓ 2 callers
Method
RunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:72
↓ 2 callers
Function
SessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:25
↓ 2 callers
Method
SetExecution
SetExecution sets the non-secret execution provenance.
internal/session/manifest.go:398
↓ 2 callers
Method
SetParentRunID
SetParentRunID links this run to the session it resumed from. It only records the direct parent; the parent's input is never copied into this run.
internal/session/manifest.go:361
↓ 2 callers
Method
SetRepository
SetRepository sets the redacted repository identity.
internal/session/manifest.go:373
↓ 2 callers
Function
StartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 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:93
↓ 2 callers
Method
ToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:168
↓ 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:48
↓ 2 callers
Method
Warnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:217
↓ 2 callers
Method
WriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:136
↓ 2 callers
Function
_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Returns a dict:: {'success': bool, 'data': response or None,
examples/gitlab_ci/post_review.py:390
↓ 2 callers
Function
_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:116
↓ 2 callers
Function
_get_header
Case-insensitive header lookup. urllib normalizes response header keys to title-case (e.g. 'Retry-After'), but this defensive check also hand
examples/gitlab_ci/post_review.py:363
↓ 2 callers
Function
addBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:27
↓ 2 callers
Function
addDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:21
↓ 2 callers
Function
addModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:51
↓ 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:492
↓ 2 callers
Function
addOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:32
↓ 2 callers
Function
addProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:55
↓ 2 callers
Function
addToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:59
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1565
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2579
↓ 2 callers
Method
adjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callers
Function
allTools
()
internal/tool/definitions.go:36
↓ 2 callers
Method
apply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 2 callers
Function
applyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:144
↓ 2 callers
Function
applyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:146
↓ 2 callers
Function
applyProviderField
(entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:516
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callers
Function
applyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:210
↓ 2 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:679
↓ 2 callers
Function
applySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:571
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1001
↓ 2 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:318
↓ 2 callers
Function
authHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1042
↓ 2 callers
Method
beginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:886
↓ 2 callers
Method
blurCPStep
()
cmd/opencodereview/provider_tui.go:1301
↓ 2 callers
Method
blurManualStep
()
cmd/opencodereview/provider_tui.go:1633
↓ 2 callers
Function
branchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 2 callers
Function
budgetTestTemplate
()
internal/scan/budget_test.go:49
↓ 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:135
↓ 2 callers
Method
buildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:1337
↓ 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:924
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:250
↓ 2 callers
Function
buildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:354
↓ 2 callers
Function
buildFilterCommentsJSON
buildFilterCommentsJSON serializes comments into a JSON array with generated IDs.
internal/agent/agent.go:1295
↓ 2 callers
Function
buildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:186
↓ 2 callers
Function
buildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callers
Function
buildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:711
↓ 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:843
↓ 2 callers
Function
buildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callers
Function
build_badge
Build the category/severity badge for a comment.
examples/gitlab_ci/post_review.py:72
↓ 2 callers
Function
canonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:413
↓ 2 callers
Method
checkEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:55
↓ 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:75
↓ 2 callers
Function
chunkArray
(items, size)
scripts/github-actions/post-review-comments.js:761
↓ 2 callers
Function
clamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 2 callers
Function
classifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:994
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1214
↓ 2 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1480
↓ 2 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:202
↓ 2 callers
Function
copyProvider
(p Provider)
internal/llm/providers.go:361
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:293
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:719
↓ 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:291
↓ 2 callers
Method
countReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:1399
↓ 2 callers
Function
counterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:173
↓ 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:477
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2565
↓ 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:878
↓ 2 callers
Function
describeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:40
↓ 2 callers
Function
describeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:1950
↓ 2 callers
Function
describeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:347
↓ 2 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:333
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:111
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:326
↓ 2 callers
Method
dispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callers
Function
download
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callers
Function
emitError
(file, message)
scripts/github-actions/check-translation-sync.js:204
↓ 2 callers
Method
emitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callers
Function
emitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:209
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:286
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:772
↓ 2 callers
Function
estimateDiffCost
estimateDiffCost projects token usage for reviewing the given diffs. It is the diff-path analogue of scan.estimateCost and is used for the pre-review
internal/agent/estimate.go:73
← previous
next →
601–700 of 3,373, ranked by callers