Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
↓ 2 callers
Method
BedrockContext
BedrockContext reports the AWS region and profile a Bedrock client resolved, so callers can show what a request actually used. ok is false for every o
internal/llm/client.go:1361
↓ 2 callers
Method
CallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callers
Method
CanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callers
Function
CheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callers
Function
CheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:41
↓ 2 callers
Function
ClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callers
Function
Complete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callers
Function
CountTokensForModel
(text string, modelName string)
internal/llm/client.go:576
↓ 2 callers
Function
DisplayAddr
DisplayAddr rewrites a wildcard listen address (empty host, 0.0.0.0, or ::) to a localhost form so printed URLs are always openable in a browser. Non-
internal/viewer/hostguard.go:122
↓ 2 callers
Function
EndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
↓ 2 callers
Method
Error
()
acp/internal/testutil/stub.go:98
↓ 2 callers
Function
ErrorWriter
()
internal/stdout/style.go:15
↓ 2 callers
Function
Eventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:33
↓ 2 callers
Function
Fail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 callers
Method
FilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:212
↓ 2 callers
Function
FormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:66
↓ 2 callers
Function
GroupRules
GroupRules groups the given file paths by their resolved rule content. Files are placed in the same group only when their source, matched pattern, and
internal/delegate/rulegroup.go:27
↓ 2 callers
Method
GroupingPlan
GroupingPlan picks how to partition a change set. Two thresholds cooperate, and they answer different questions. GroupingMinFiles asks whether the par
internal/config/template/template.go:130
↓ 2 callers
Function
HomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callers
Function
InitEmbeddedLoader
InitEmbeddedLoader configures tiktoken to use embedded BPE data instead of fetching from network. The package init already calls it, so callers only n
internal/llm/embedded_loader.go:34
↓ 2 callers
Function
IntentResult
IntentResult wraps a runnable intent.
acp/internal/intent/result.go:50
↓ 2 callers
Function
IsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:77
↓ 2 callers
Method
IsTransition
IsTransition reports whether the resume changed provider or model, which is the condition that required an explicit flag to be accepted.
internal/session/resume_identity.go:209
↓ 2 callers
Function
ItemID
ItemID is the single, canonical derivation of a manifest item_id. It is content-independent: it is derived from the operation, the input mode and the
internal/session/manifest.go:201
↓ 2 callers
Method
LLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:552
↓ 2 callers
Function
LoadDetailAt
LoadDetailAt reads a session found by its saved path, even when its original checkout no longer exists or its metadata does not record a repository.
internal/session/list.go:165
↓ 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:74
↓ 2 callers
Method
LoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:50
↓ 2 callers
Method
Logout
(context.Context, acp.LogoutRequest)
acp/internal/adapter/agent.go:55
↓ 2 callers
Method
Message
Message renders the repair as a single warning line.
internal/tool/comment_args_repair.go:266
↓ 2 callers
Function
NewWorkspaceCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:26
↓ 2 callers
Function
OpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:358
↓ 2 callers
Function
OpenLocalFile
OpenLocalFile opens an existing regular file contained within root and returns its canonical path. The caller must close the file on success.
acp/internal/adapter/workspace/files.go:23
↓ 2 callers
Function
ParseGitVersion
(s string)
internal/gitcmd/version.go:50
↓ 2 callers
Function
PhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:52
↓ 2 callers
Method
PlanRequired
PlanRequired reports whether a group warrants the plan phase based on its churn profile. Two thresholds cooperate: PlanModeLineThreshold gates on the
internal/config/template/template.go:70
↓ 2 callers
Method
Preset
Preset returns the knob set for e.
internal/config/template/effort.go:50
↓ 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:117
↓ 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:126
↓ 2 callers
Function
RawLoggingEnabled
()
internal/llm/raw.go:26
↓ 2 callers
Method
RawOutputText
()
internal/llm/client.go:335
↓ 2 callers
Method
Read
(p []byte)
acp/internal/orchestrator/internal_test.go:19
↓ 2 callers
Method
Read
(p []byte)
acp/cmd/ocr-acp/stdio.go:22
↓ 2 callers
Method
RecordToolCall
(name string)
internal/llmloop/loop.go:163
↓ 2 callers
Method
RecordToolFailure
(number int64, name, taskKey, errMsg string, rec *session.TaskRecord, rawArguments string, duration time.Dura
internal/llmloop/loop.go:174
↓ 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:475
↓ 2 callers
Function
ResultRoot
ResultRoot follows the CLI contract: review paths are relative to the Git root; scan paths are relative to --repo, or the process cwd when omitted.
acp/internal/adapter/workspace/root.go:19
↓ 2 callers
Method
ResumeInfo
()
cmd/opencodereview/shared.go:794
↓ 2 callers
Method
ReviewRounds
ReviewRounds returns the effective per-group round count, never below 1.
internal/config/template/template.go:57
↓ 2 callers
Function
ReviewedPaths
ReviewedPaths returns the paths a run actually decided on, or nil when the run recorded no manifest - nil tells Compare to treat every unmatched befor
internal/session/compare.go:152
↓ 2 callers
Method
RoundTrip
(req *http.Request)
internal/llm/chatgpt_transport_test.go:10
↓ 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:462
↓ 2 callers
Method
Sealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:604
↓ 2 callers
Method
Snapshot
Snapshot returns the current count of stored comments. Pair with Since / ReplaceSince to operate on the comments added between two points in time (e.g
internal/tool/comment_collector.go:56
↓ 2 callers
Function
StartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 2 callers
Method
String
()
internal/gitcmd/version.go:22
↓ 2 callers
Method
String
()
acp/internal/orchestrator/resolve.go:208
↓ 2 callers
Method
Summary
Summary returns a reproducible one-line description of the endpoint that never contains the token.
acp/internal/intent/llm/resolve.go:167
↓ 2 callers
Method
ToolCalls
ToolCalls returns per-tool call counts accumulated during scan.
internal/scan/agent.go:238
↓ 2 callers
Method
ToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:141
↓ 2 callers
Method
ToolFailures
ToolFailures returns failed registered-tool calls accumulated during scan.
internal/scan/agent.go:241
↓ 2 callers
Function
ValidateOpenMode
ValidateOpenMode rejects unknown --open values instead of silently treating them as auto, so a typo like --open=yes is reported rather than ignored.
internal/viewer/browser.go:30
↓ 2 callers
Method
WithRepo
WithRepo returns a copy bound to a session workspace without mutating the shared parser used by other sessions.
acp/internal/intent/parser.go:76
↓ 2 callers
Function
WithWorkspaceSides
(definitions []llm.ToolDef)
internal/config/toolsconfig/comparison.go:19
↓ 2 callers
Method
Write
(p []byte)
acp/internal/orchestrator/streams.go:35
↓ 2 callers
Method
WriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:138
↓ 2 callers
Function
_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:681
↓ 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:778
↓ 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:729
↓ 2 callers
Function
_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:120
↓ 2 callers
Function
_get_header
Case-insensitive header lookup.
examples/gitlab_ci/post_review.py:660
↓ 2 callers
Function
_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:671
↓ 2 callers
Method
_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1112
↓ 2 callers
Function
_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1158
↓ 2 callers
Method
abort
()
acp/internal/adapter/transport/connection.go:37
↓ 2 callers
Function
addBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:29
↓ 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:36
↓ 2 callers
Function
addDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:23
↓ 2 callers
Function
addModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:63
↓ 2 callers
Function
addProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:67
↓ 2 callers
Method
addToolResult
(toolName, arguments, result string, ok bool, duration time.Duration)
internal/session/history.go:567
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1712
↓ 2 callers
Method
adjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callers
Function
agentPluginNameProblem
(name)
scripts/github-actions/check-plugin-contract.js:584
↓ 2 callers
Function
allTools
()
internal/tool/definitions.go:36
↓ 2 callers
Function
anthropicMessagesURL
(rawURL string)
acp/internal/intent/llm/client.go:238
↓ 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:971
↓ 2 callers
Method
apply
(a *Auth, refresh bool)
internal/chatgptauth/oauth.go:199
↓ 2 callers
Method
applyAt
(a *Auth, refresh bool, now time.Time)
internal/chatgptauth/oauth.go:203
↓ 2 callers
Function
applyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:143
↓ 2 callers
Method
applyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1234
↓ 2 callers
Function
applyDedupGroupsWithCheckpoints
( rawJSON string, originals []model.LlmComment, )
internal/scan/agent.go:1078
↓ 2 callers
Function
applyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:270
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callers
Function
applySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:791
↓ 2 callers
Method
args
(example, patchPath string)
internal/delegate/instructions_test.go:193
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1114
↓ 2 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:453
↓ 2 callers
Function
assertValidation
(value, expectedValid)
scripts/github-actions/action-contract.test.js:361
← previous
next →
1,301–1,400 of 7,169, ranked by callers