Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,238 in github.com/alibaba/open-code-review
⨍
Functions
4,238
◇
Types & classes
393
↓ 2 callers
Function
RuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:12
↓ 2 callers
Method
RunManifest
RunManifest returns the immutable coverage snapshot produced for this review, or nil when manifest construction failed. The scan path deliberately ret
internal/agent/agent.go:423
↓ 2 callers
Method
RunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:72
↓ 2 callers
Method
Sealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:545
↓ 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:182
↓ 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:222
↓ 2 callers
Method
WriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:136
↓ 2 callers
Function
_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:591
↓ 2 callers
Function
_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Used for reads and note writes (discussions go through the idempotency-a
examples/gitlab_ci/post_review.py:688
↓ 2 callers
Function
_compute_retry_delay
Compute a retry delay (seconds) for a failed attempt, or None if not retryable. Order: Retry-After header -> wait-until-reset (primary limit exha
examples/gitlab_ci/post_review.py:639
↓ 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.
examples/gitlab_ci/post_review.py:570
↓ 2 callers
Function
_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:581
↓ 2 callers
Method
_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1019
↓ 2 callers
Function
_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1065
↓ 2 callers
Function
addBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:27
↓ 2 callers
Function
addColorFlags
addColorFlags registers the color control. It is persistent on the root command so every subcommand inherits identical behavior, and so `ocr --color=n
cmd/opencodereview/color.go:35
↓ 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:52
↓ 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:673
↓ 2 callers
Function
addProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:56
↓ 2 callers
Function
addToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:60
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1685
↓ 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
apiKeyCmdForStep
apiKeyCmdForStep returns the api_key_cmd already configured for the provider the API-key step is editing, reading the same config entry loadExistingAP
cmd/opencodereview/provider_tui.go:970
↓ 2 callers
Method
apiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:985
↓ 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
Method
applyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1224
↓ 2 callers
Function
applyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:166
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:789
↓ 2 callers
Function
applySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:573
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1110
↓ 2 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:318
↓ 2 callers
Method
attemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:56
↓ 2 callers
Function
authHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1124
↓ 2 callers
Method
beginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:917
↓ 2 callers
Method
blurCPStep
()
cmd/opencodereview/provider_tui.go:1421
↓ 2 callers
Method
blurManualStep
()
cmd/opencodereview/provider_tui.go:1755
↓ 2 callers
Function
branchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 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:136
↓ 2 callers
Function
buildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 2 callers
Method
buildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:1563
↓ 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:944
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:257
↓ 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:1488
↓ 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:861
↓ 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 (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:144
↓ 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:436
↓ 2 callers
Function
captureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:18
↓ 2 callers
Function
checkAPIKeyRequirement
checkAPIKeyRequirement decides whether a provider selection may be saved with no api_key. It mirrors the resolver's precedence (static api_key -> api_
cmd/opencodereview/provider_cmd.go:243
↓ 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
classifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 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:1111
↓ 2 callers
Function
classifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1329
↓ 2 callers
Function
codeCommentResponse
(reasoning, content string)
internal/llmloop/loop_execute_more_test.go:54
↓ 2 callers
Function
colorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:86
↓ 2 callers
Function
commitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 2 callers
Function
commitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 2 callers
Function
completeSessionIDs
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:77
↓ 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:509
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:320
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:832
↓ 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:1625
↓ 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:508
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2746
↓ 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:909
↓ 2 callers
Function
decodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:627
↓ 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:2017
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:121
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 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
emptyResponse
()
internal/llmloop/retry_identity_test.go:55
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:368
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:909
↓ 2 callers
Function
errBedrockNotConfigurable
errBedrockNotConfigurable explains why the two url+token strategies reject the bedrock protocol. Both describe a single HTTP endpoint and carry no pla
internal/llm/resolver.go:241
↓ 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 →
801–900 of 4,238, ranked by callers