Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,917 in github.com/alibaba/open-code-review
⨍
Functions
4,917
◇
Types & classes
436
↓ 5 callers
Function
isMachineReadable
isMachineReadable reports whether the output format writes a structured document to stdout that must not be interleaved with progress text. Both json
cmd/opencodereview/shared.go:354
↓ 5 callers
Method
isUserAddedModel
(name string)
cmd/opencodereview/provider_tui.go:2737
↓ 5 callers
Method
isUserAddedOfficialModel
(name string)
cmd/opencodereview/provider_tui.go:498
↓ 5 callers
Function
loadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:96
↓ 5 callers
Method
loadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:516
↓ 5 callers
Function
loadTestTemplate
loadTestTemplate returns a validated default template for runtime tests.
cmd/opencodereview/shared_llmruntime_test.go:17
↓ 5 callers
Method
logicalRequestID
logicalRequestID computes the canonical logical_request_id for m under runID. Fields are NUL-terminated in a fixed order rather than concatenated, be
internal/llm/retry_meta.go:91
↓ 5 callers
Method
manifestItemID
manifestItemID derives the content-independent item_id for a diff, keyed on operation, input mode and the normalized old/new paths. RegisterSelected a
internal/agent/agent.go:1100
↓ 5 callers
Method
maybeRunDedup
maybeRunDedup, when the template has a DedupTask and the batch produced at least DedupMinComments comments, invokes the DEDUP_TASK LLM to merge near-d
internal/scan/agent.go:944
↓ 5 callers
Method
maybeRunProjectSummary
maybeRunProjectSummary runs the post-batch PROJECT_SUMMARY_TASK over the union of all collected comments. Best-effort: any error / empty input no-temp
internal/scan/agent.go:864
↓ 5 callers
Method
modelCount
()
cmd/opencodereview/provider_tui.go:626
↓ 5 callers
Function
newJSONToolCalls
(toolCalls map[string]int64, failures []llmloop.ToolFailureDetail)
cmd/opencodereview/output.go:288
↓ 5 callers
Method
officialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:241
↓ 5 callers
Function
openBrowserCandidates
openBrowserCandidates tries each candidate in turn. Every failure is reported, not just the first: with $BROWSER set to something uninstalled and no p
internal/viewer/browser.go:211
↓ 5 callers
Function
parentState
parentState builds a resumable parent: a v1 review manifest whose identity is parentIdentity, run on anthropic/claude, with one selected item. mutate
internal/session/resume_identity_test.go:25
↓ 5 callers
Function
parseShellRC
(path, modelOverride string)
internal/llm/resolver.go:755
↓ 5 callers
Method
planEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:84
↓ 5 callers
Method
post_seq
Drive post() over a sequence of per-call fake_urlopen outcomes. Each outcome is either the raw response body (bytes, returned) or an
examples/gerrit_ci/post_review_test.py:561
↓ 5 callers
Function
preserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:2307
↓ 5 callers
Function
rawPath
(home, repoDir, sessionID string)
internal/session/raw_writer_test.go:21
↓ 5 callers
Function
readCheckpointComment
({ github, owner, repo, prNumber, appSlug = "", log })
scripts/github-actions/post-review-comments.js:2422
↓ 5 callers
Function
resolveWorkingDirForSession
resolveWorkingDirForSession accepts an explicit --repo flag value and falls back to the current working directory. Unlike resolveRepoDir it does not r
cmd/opencodereview/session_cmd.go:398
↓ 5 callers
Method
resolvedModel
resolvedModel returns the model to persist, falling back to the in-session pick for the provider being finalized when result.model is empty.
cmd/opencodereview/provider_tui.go:99
↓ 5 callers
Method
reviewMode
()
internal/agent/agent.go:897
↓ 5 callers
Function
reviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:432
↓ 5 callers
Function
runLinksCheck
({ repoRoot = process.cwd(), minLinks = MIN_EXPECTED_LINKS, minFiles = MIN_EXPECTED_LINK_FILES, maxSca
scripts/github-actions/check-plugin-contract.js:683
↓ 5 callers
Function
runSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:98
↓ 5 callers
Function
sanitizeMarkdown
(s string)
cmd/opencodereview/background_file.go:116
↓ 5 callers
Function
setProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:789
↓ 5 callers
Function
sleep
(ms)
scripts/github-actions/post-review-comments.js:1173
↓ 5 callers
Function
splitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:109
↓ 5 callers
Function
splitPaths
(raw string)
cmd/opencodereview/scan_cmd.go:96
↓ 5 callers
Function
unsetCustomProvider
(configPath, name string)
cmd/opencodereview/config_cmd.go:239
↓ 5 callers
Function
unsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:262
↓ 5 callers
Function
userAgent
(provider string)
internal/llm/client.go:50
↓ 4 callers
Method
AwaitKey
AwaitKey blocks until every unit submitted under key so far has completed. It never touches the pool-wide WaitGroup, so it is safe to call while other
internal/llmloop/pool.go:146
↓ 4 callers
Method
CanonicalConfig
()
internal/config/rules/sniffer.go:29
↓ 4 callers
Function
Compare
Compare buckets the findings of an earlier run (before) against a later one (after). Matching is a multiset match on findingKey, so N identical findin
internal/session/compare.go:34
↓ 4 callers
Function
DefaultConfig
DefaultConfig returns a disabled default configuration.
internal/telemetry/config.go:32
↓ 4 callers
Method
Diffs
()
cmd/opencodereview/shared.go:631
↓ 4 callers
Method
HasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:227
↓ 4 callers
Method
HasPersistence
HasPersistence reports whether this session has a JSONL writer. A false value means no resumable session file exists, even though the run still has it
internal/session/history.go:229
↓ 4 callers
Function
IsReserved
IsReserved reports whether name matches any built-in tool name (including Unknown).
internal/tool/definitions.go:41
↓ 4 callers
Function
LoadGitignorePatterns
LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
internal/diff/gitignore.go:17
↓ 4 callers
Function
NewRemoteClient
NewRemoteClient connects to a remote MCP server via Streamable HTTP transport. Header values may contain $ENV_VAR references which are expanded at run
internal/mcp/client.go:71
↓ 4 callers
Function
NewResumeLineage
NewResumeLineage builds the lineage for an accepted resume of parent. It returns nil when there is nothing to record — no parent, or a parent with no
internal/session/resume_identity.go:168
↓ 4 callers
Function
ParseExtraHeaders
ParseExtraHeaders parses a string of comma-separated key=value pairs into a dictionary. Values may be double-quoted to include commas, e.g. X-Forwarde
internal/llm/resolver.go:851
↓ 4 callers
Function
ParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:34
↓ 4 callers
Method
ProjectSummary
ProjectSummary is the markdown project-level summary produced by scan's PROJECT_SUMMARY_TASK. Empty for review mode and for scans that skipped / faile
cmd/opencodereview/shared.go:642
↓ 4 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
↓ 4 callers
Function
RecordFilesReviewed
(ctx context.Context, n int64)
internal/telemetry/metrics.go:87
↓ 4 callers
Function
RecordLLMRequest
(ctx context.Context, model string, dur time.Duration, totalTokens int64, status string)
internal/telemetry/metrics.go:107
↓ 4 callers
Function
RecordToolResult
RecordToolResult sets the outcome of a tool execution on the span.
internal/telemetry/span.go:93
↓ 4 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
↓ 4 callers
Method
ResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/scan/agent.go:190
↓ 4 callers
Method
ReusableItem
ReusableItem returns the checkpoint for fingerprint only if the parent manifest also recorded that fingerprint as completed or reused. The manifest i
internal/session/resume.go:240
↓ 4 callers
Method
Session
Session returns the session history associated with this Agent.
internal/agent/agent.go:408
↓ 4 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:648
↓ 4 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
↓ 4 callers
Function
Shutdown
Shutdown flushes and shuts down all initialized providers. It should be called before process exit to ensure buffered data is exported.
internal/telemetry/shutdown.go:15
↓ 4 callers
Function
ToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:70
↓ 4 callers
Method
ToolFailures
ToolFailures returns failed tool calls ordered by their global call number.
internal/llmloop/loop.go:201
↓ 4 callers
Method
ToolFailures
()
cmd/opencodereview/shared.go:644
↓ 4 callers
Function
UseTestSessions
UseTestSessions redirects session persistence to the "test-sessions" subdirectory and raw captures to "test-raw", so that test runs do not pollute the
internal/session/testing.go:12
↓ 4 callers
Method
WaitBackground
WaitBackground blocks until every background job started by this Runner has returned. Background memory compression is the only such job, and cancelPe
internal/llmloop/loop.go:148
↓ 4 callers
Method
Warnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:170
↓ 4 callers
Method
_retry
(self, endpoint, data=None, method="GET")
examples/gitlab_ci/post_review.py:824
↓ 4 callers
Method
_versions
(self, *triples)
examples/gitlab_ci/post_review_test.py:1306
↓ 4 callers
Method
acquire
(ctx context.Context)
internal/gitcmd/runner.go:32
↓ 4 callers
Function
addRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 4 callers
Function
applyDedupGroups
applyDedupGroups parses the DEDUP_TASK output and returns the deduped comment slice. Returns (nil, false) when the response is malformed OR when the g
internal/scan/agent.go:1030
↓ 4 callers
Function
assertDeclined
assertDeclined is the shared assertion for a batch the repair must refuse: no comments, no repair description, and the parser's own wording handed bac
internal/tool/comment_args_repair_test.go:420
↓ 4 callers
Function
batchPaths
(b [][]model.ScanItem)
internal/scan/batch_test.go:21
↓ 4 callers
Function
buildBadgeImage
(comment)
scripts/github-actions/post-review-comments.js:1555
↓ 4 callers
Function
buildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:1586
↓ 4 callers
Function
buildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:581
↓ 4 callers
Method
cancel
()
extensions/vscode/src/extension/services/CliService.ts:161
↓ 4 callers
Function
canonicalRoot
── project-layer confinement tests ── canonicalRoot returns the canonical (symlink-resolved) form of dir, mirroring loadProjectRule's pathutil.Canonic
internal/config/rules/system_rules_test.go:1605
↓ 4 callers
Function
captureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1247
↓ 4 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/resolver_keycmd_test.go:154
↓ 4 callers
Function
cmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callers
Function
colorize
colorize wraps s in seq and a reset, or returns s untouched when color is off. Every escape sequence in the text output path is gated through here or
cmd/opencodereview/color.go:78
↓ 4 callers
Function
computeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1200
↓ 4 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:716
↓ 4 callers
Method
confirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:2985
↓ 4 callers
Method
confirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3023
↓ 4 callers
Method
customProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:233
↓ 4 callers
Method
dedupEnabled
()
internal/scan/agent.go:88
↓ 4 callers
Function
defaultAuthHeader
(protocol string)
internal/llm/resolver.go:801
↓ 4 callers
Function
describeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:565
↓ 4 callers
Function
diffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callers
Function
enforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:336
↓ 4 callers
Function
enforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:314
↓ 4 callers
Function
ensureMessagesSuffix
ensureMessagesSuffix appends /v1/messages to base URLs that lack a versioned path.
internal/llm/resolver.go:915
↓ 4 callers
Function
estimateCost
(items []model.ScanItem, planEnabled, dedupEnabled, summaryEnabled bool)
internal/scan/estimate.go:62
↓ 4 callers
Function
estimateDiffFileTokens
estimateDiffFileTokens projects the input+output token cost of reviewing a single diff (PLAN + MAIN_TASK rounds). It mirrors scan.estimateFileTokens b
internal/agent/estimate.go:55
↓ 4 callers
Method
executeGroupPlanPhase
executeGroupPlanPhase runs the plan phase for a file group.
internal/agent/agent.go:1693
↓ 4 callers
Function
expandSessionKeyInBody
expandSessionKeyInBody returns a copy of body with SessionKeyTemplateVar replaced by key in every string value, recursing into nested maps and slices.
internal/llm/sessionkey.go:122
↓ 4 callers
Function
expandSessionKeyInHeaders
expandSessionKeyInHeaders returns a copy of headers with every occurrence of SessionKeyTemplateVar in the values replaced by key. The input map is nev
internal/llm/sessionkey.go:108
↓ 4 callers
Method
explainError
explainError translates a Bedrock rejection into the action that fixes it. Two of these are actively misleading as the service words them: the API-key
internal/llm/client.go:1113
← previous
next →
501–600 of 4,917, ranked by callers