Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
↓ 3 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:581
↓ 3 callers
Function
addOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:34
↓ 3 callers
Function
addOutputPathFlag
addOutputPathFlag registers --output/-o: write results to a UTF-8 file instead of stdout. "" or "-" keeps stdout; a real path is created lazily on the
cmd/opencodereview/shared_flags.go:44
↓ 3 callers
Function
addRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:19
↓ 3 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2794
↓ 3 callers
Function
analysisTestContext
(test *testing.T, repo string)
cmd/opencodereview/analysis_test.go:87
↓ 3 callers
Method
apiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:995
↓ 3 callers
Method
append
(message string)
acp/internal/adapter/presentation/progress_format.go:27
↓ 3 callers
Method
apply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 3 callers
Function
applyExtraHeaders
applyExtraHeaders copies configured headers but never lets them clobber the auth or content headers the client manages.
acp/internal/intent/llm/client.go:282
↓ 3 callers
Function
applyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:270
↓ 3 callers
Function
applyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:69
↓ 3 callers
Function
applyProviderField
(providerName string, entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:806
↓ 3 callers
Function
applyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:237
↓ 3 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:880
↓ 3 callers
Function
applySessionStart
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:759
↓ 3 callers
Function
assertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:109
↓ 3 callers
Function
author
(login, typename)
scripts/github-actions/post-review-comments.test.js:6642
↓ 3 callers
Function
branchRefCandidates
Builds branch ref candidates for `rev-parse --verify`: add the origin/ prefix and swap main with master. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:135
↓ 3 callers
Function
buildGroupingIndex
buildGroupingIndex scans the grouping request messages for the numbered file list and returns an index→path map. reqMessages is the raw JSONL value (a
internal/viewer/store.go:349
↓ 3 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:957
↓ 3 callers
Function
buildToolInputSchema
(params map[string]any)
internal/llm/client.go:1718
↓ 3 callers
Function
buildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:698
↓ 3 callers
Function
buildWorkspaceFiles
* Builds the workspace file list, matching the OCR CLI's workspace mode: * `diff HEAD` first, falling back to `diff --cached` when it is empty (no HE
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:86
↓ 3 callers
Function
callGroupingLLM
(ctx context.Context, diffs []model.Diff, client llm.LLMClient, modelName string, task *template.LlmConversati
internal/agent/grouping.go:172
↓ 3 callers
Method
capture
capture runs a git command and returns its stdout and stderr. With combined set, stderr is folded into the same pipe so relative write order is preser
internal/gitcmd/runner.go:302
↓ 3 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:246
↓ 3 callers
Function
checkAgentPluginManifests
(specs, readJson, listDirs, readFile)
scripts/github-actions/check-plugin-contract.js:661
↓ 3 callers
Function
checkResponseStatus
checkResponseStatus turns unsuccessful response objects into errors. The Responses API can return these states with HTTP 200, so the SDK does not reje
internal/llm/responses_client.go:213
↓ 3 callers
Function
citedObservations
(markdown string)
internal/behaviortask/validate.go:16
↓ 3 callers
Function
classifyAttempt
classifyAttempt maps an observation to an ErrorClass and FailurePhase. A non-2xx status is the strongest available fact, so it decides the class befo
internal/llm/retry_report.go:182
↓ 3 callers
Function
client
(pages, comparisons = [])
scripts/github-actions/check-pr-commit-policy.test.js:57
↓ 3 callers
Function
cloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1345
↓ 3 callers
Method
closeWrite
closeWrite drops the parent's copy of the write end so that EOF becomes visible once every child copy is closed.
internal/gitcmd/runner.go:190
↓ 3 callers
Method
command
(ctx context.Context, repoDir string, args ...string)
internal/gitcmd/runner.go:121
↓ 3 callers
Function
commit
(index, message = "fix: keep CI running")
scripts/github-actions/check-pr-commit-policy.test.js:34
↓ 3 callers
Function
commitShowNameStatusArgs
* Arguments for `git show --name-status` when listing files changed by one commit. * * `--diff-merges=first-parent` is required: a plain `git show`
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:192
↓ 3 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:1364
↓ 3 callers
Method
configPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1627
↓ 3 callers
Function
contains
(list []string, want string)
internal/scan/provider_more_test.go:146
↓ 3 callers
Function
countSessionFiles
(t *testing.T, repoDir string)
cmd/opencodereview/review_resume_more_test.go:225
↓ 3 callers
Method
cpAmbientProtocol
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:201
↓ 3 callers
Function
cpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:205
↓ 3 callers
Method
customProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:226
↓ 3 callers
Function
customStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callers
Function
decodeResult
(args []string, stdout []byte)
acp/internal/orchestrator/decode.go:15
↓ 3 callers
Function
deleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:281
↓ 3 callers
Function
diagnosticText
(text string, auth *Auth)
internal/chatgptauth/api_error.go:37
↓ 3 callers
Function
diff_inventory
Build a diff inventory for ``path`` from ``{new_line: (type, old_line)}``.
examples/gitlab_ci/post_review_test.py:64
↓ 3 callers
Function
diffsChurn
diffsChurn returns the set's aggregate churn and its largest single-file churn. Both feed Template.PlanRequired; the aggregate alone feeds Template.Gr
internal/agent/agent.go:1408
↓ 3 callers
Function
diffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:157
↓ 3 callers
Function
displayURL
displayURL builds the URL to print and hand to the browser. The host comes from the requested address, not from the listener: net.Listen resolves a h
internal/viewer/server.go:164
↓ 3 callers
Function
emitAnnotation
(level, file, message, line)
scripts/github-actions/check-plugin-contract.js:736
↓ 3 callers
Function
emitError
(file, message, line)
scripts/github-actions/check-plugin-contract.js:741
↓ 3 callers
Function
emptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:19
↓ 3 callers
Function
envFunc
(values map[string]string)
acp/internal/intent/llm/resolve_test.go:11
↓ 3 callers
Function
executeDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:235
↓ 3 callers
Function
extractHeadingInfo
(markdown: string)
pages/src/utils/headingId.ts:80
↓ 3 callers
Function
fakeProbe
(map)
scripts/github-actions/check-plugin-contract.test.js:193
↓ 3 callers
Function
findLinesByExistingCode
Find [existingCode] in file content with a sliding window; return 1-based line numbers, or null when no match exists. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:69
↓ 3 callers
Function
findTestToolCall
findTestToolCall returns the model's call to the self-test tool, ignoring any other tool it asked for. An empty name belongs to a task that offers no
cmd/opencodereview/llm_cmd.go:201
↓ 3 callers
Function
finish
()
scripts/github-actions/action-contract.test.js:75
↓ 3 callers
Method
focusCPStep
()
cmd/opencodereview/provider_tui.go:1461
↓ 3 callers
Method
forShell
* Adds a shell prefix for a command (Windows: cmd.exe /c). Only for fixed-argument commands (--version and * the like); commands that carry user
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:98
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:2393
↓ 3 callers
Function
formatLocateNote
Prepend a relocation note to the comment body to indicate that its line number was inferred. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:125
↓ 3 callers
Function
generate
(output, kotlinOutput string)
internal/llm/gen/main.go:57
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:98
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:94
↓ 3 callers
Method
getCommitFiles
List files changed in a single commit relative to its parent.
extensions/vscode/src/extension/services/GitService.ts:240
↓ 3 callers
Function
getDocTitle
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:126
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:2131
↓ 3 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1153
↓ 3 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1739
↓ 3 callers
Function
hasReviewLimitWarning
hasReviewLimitWarning reports whether a declared review limit — the tool-request round budget or the aggregate token budget — was reached. llmloop rec
cmd/opencodereview/output.go:91
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:51
↓ 3 callers
Function
helperArgv
helperArgv is the argv that re-execs this test binary as the helper.
internal/viewer/browser_exec_test.go:46
↓ 3 callers
Function
helperCmdStderr
helperCmdStderr is helperCmd with the child also writing msg to stderr.
internal/viewer/browser_exec_test.go:57
↓ 3 callers
Function
hostGuard
hostGuard returns a middleware that rejects requests whose Host header is not on the allowlist. This blocks DNS-rebinding attacks against the local vi
internal/viewer/hostguard.go:88
↓ 3 callers
Function
inheritedPipe
inheritedPipe registers a nonblocking duplicate with Go's poller. Closing an inherited blocking os.Stdout cannot reliably interrupt a system write.
acp/cmd/ocr-acp/stdio_unix.go:18
↓ 3 callers
Function
initMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:616
↓ 3 callers
Function
initOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics. Unlike the gRPC path this uses WithEndpointURL rather than WithEndpoint, so
internal/telemetry/exporter.go:153
↓ 3 callers
Function
initOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callers
Function
isChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:21
↓ 3 callers
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2898
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:623
↓ 3 callers
Function
isErrorStatus
isErrorStatus reports whether an observed HTTP status proves the attempt failed on its own. Status 0 means no response was received, so it proves noth
internal/llm/retry_report.go:172
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:442
↓ 3 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2902
↓ 3 callers
Function
itemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:137
↓ 3 callers
Function
killUnixProcessGroup
(pid int, kill func(int, syscall.Signal) error)
acp/internal/orchestrator/process/process_unix.go:45
↓ 3 callers
Function
listBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1545
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2114
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:172
↓ 3 callers
Method
list_notes
(self)
examples/gitlab_ci/post_review_test.py:170
↓ 3 callers
Function
loadLanguageContent
(language: Language)
pages/src/content/docs/index.ts:79
↓ 3 callers
Function
loadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff.
internal/config/rules/system_rules.go:119
↓ 3 callers
Function
loadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:262
↓ 3 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:194
← previous
next →
1,101–1,200 of 7,390, ranked by callers