Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,484 in github.com/alibaba/open-code-review
⨍
Functions
7,484
◇
Types & classes
809
↓ 726 callers
Method
Error
()
internal/llm/client.go:1033
↓ 634 callers
Method
Run
(ctx context.Context, request Request)
acp/internal/orchestrator/types.go:144
↓ 222 callers
Method
Close
()
internal/llm/raw.go:116
↓ 176 callers
Function
newProviderTUI
(cfg *Config, configPath string)
cmd/opencodereview/provider_tui.go:264
↓ 174 callers
Function
New
New creates a new SessionHistory with the given repo directory.
internal/session/history.go:165
↓ 137 callers
Method
String
String renders a one-line human-readable estimate. Money is intentionally omitted — pricing varies per provider/model and we don't want to imply a pre
internal/scan/estimate.go:107
↓ 122 callers
Method
Add
Add appends a comment to the collector.
internal/tool/comment_collector.go:25
↓ 122 callers
Function
captureStdout
(t *testing.T, fn func())
cmd/opencodereview/output_helpers_test.go:487
↓ 115 callers
Method
Set
(w RawWriter)
internal/llm/raw.go:130
↓ 109 callers
Method
get
()
internal/llm/raw.go:136
↓ 100 callers
Method
Update
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:2920
↓ 94 callers
Function
NewCommentCollector
NewCommentCollector creates an empty collector.
internal/tool/comment_collector.go:20
↓ 93 callers
Function
NewRegistry
NewRegistry creates an empty, mutable registry.
internal/tool/definitions.go:90
↓ 93 callers
Function
clearAllEnv
--- Provider-based resolution tests ---
internal/llm/resolver_test.go:268
↓ 91 callers
Method
WithTimeout
WithTimeout overrides the natural-language parse timeout.
acp/internal/intent/parser.go:69
↓ 90 callers
Method
Finalize
Finalize marks the session as complete, sets the end time, and persists the final summary record. When a frozen manifest was stored via SetFinalManife
internal/session/history.go:359
↓ 90 callers
Function
ResolveEndpoint
ResolveEndpoint resolves an endpoint without per-run overrides.
internal/llm/resolver.go:91
↓ 83 callers
Method
Get
Get returns the provider registered under name.
internal/tool/definitions.go:103
↓ 82 callers
Method
Execute
Execute runs the tool with the given arguments and returns the result string.
internal/tool/definitions.go:80
↓ 76 callers
Method
Write
(rec RawRecord)
internal/llm/raw.go:115
↓ 75 callers
Function
New
New creates a new Agent from the given arguments.
internal/agent/agent.go:211
↓ 75 callers
Function
NewTextMessage
NewTextMessage creates a message with simple string content.
internal/llm/client.go:224
↓ 69 callers
Function
New
New creates a Runner that allows at most maxConcurrent simultaneous git subprocesses. If maxConcurrent <= 0 the default (16) is used.
internal/gitcmd/runner.go:146
↓ 69 callers
Function
run
({ result, stderr = "", opts = {}, githubOpts = {} })
scripts/github-actions/post-review-comments.test.js:419
↓ 68 callers
Method
Parse
Parse routes one prompt. A leading slash selects the deterministic parser; anything else goes to the LLM.
acp/internal/intent/parser.go:84
↓ 59 callers
Function
setConfigValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:638
↓ 58 callers
Function
NewRunner
(deps Deps)
internal/reviewtask/task.go:70
↓ 57 callers
Method
Err
Err returns the first error encountered while creating or writing the underlying file, or nil if none occurred. Text-mode rendering drops the per-writ
cmd/opencodereview/shared.go:681
↓ 57 callers
Function
testMeta
()
internal/llm/retry_meta_test.go:12
↓ 56 callers
Method
Done
()
acp/internal/orchestrator/termination_test.go:25
↓ 55 callers
Function
NewRetryCollector
NewRetryCollector returns an empty collector.
internal/llm/retry_report.go:267
↓ 55 callers
Function
setTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
internal/session/test_home_test.go:13
↓ 54 callers
Function
t
(locale: SupportedLocale, key: string)
extensions/frontend/src/shared/i18n.ts:941
↓ 52 callers
Method
String
()
internal/viewer/browser_exec_test.go:101
↓ 52 callers
Function
setTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
cmd/opencodereview/delegate_exec_test.go:87
↓ 51 callers
Method
Freeze
Freeze prevents further mutations. Call once setup is complete.
internal/tool/definitions.go:109
↓ 50 callers
Method
Register
Register adds a tool provider. Panics if the registry is frozen.
internal/tool/definitions.go:95
↓ 50 callers
Function
makeGithub
(opts = {})
scripts/github-actions/post-review-comments.test.js:103
↓ 49 callers
Function
comment
One OCR comment as ``ocr review --format json`` emits it.
examples/gitlab_ci/post_review_test.py:45
↓ 48 callers
Function
makeTemplateWithFullScan
()
internal/scan/agent_test.go:36
↓ 47 callers
Method
Error
()
internal/chatgptauth/oauth.go:79
↓ 46 callers
Method
GetOrCreateFileSession
GetOrCreateFileSession returns the FileSession for the given file path, creating one if it doesn't exist yet.
internal/session/history.go:275
↓ 45 callers
Function
NewAgent
NewAgent creates a scan Agent from the given args. The Session is auto-created (review_mode = full_scan) when not supplied.
internal/scan/agent.go:130
↓ 45 callers
Function
NewResolver
NewResolver builds a Resolver with the following priority: 1. Custom rule file specified via --rule flag (first match wins) 2. Project-local .opencode
internal/config/rules/system_rules.go:299
↓ 44 callers
Method
View
()
cmd/opencodereview/provider_tui.go:3126
↓ 43 callers
Method
ExtractText
ExtractText returns the concatenated text content from a Message's Content field. Handles both plain string and content block array formats.
internal/llm/client.go:251
↓ 43 callers
Function
saveConfig
(path string, cfg *Config)
cmd/opencodereview/provider_cmd.go:438
↓ 42 callers
Method
Name
()
internal/mcp/client.go:184
↓ 42 callers
Function
NewCodeSearch
(fr *FileReader)
internal/tool/code_search.go:29
↓ 41 callers
Function
emitRunResult
emitRunResult is the post-LLM-run finalization shared by `ocr review` and `ocr scan`: resolves comment line numbers, records telemetry, restores stdou
cmd/opencodereview/shared.go:817
↓ 41 callers
Function
enterKey
()
cmd/opencodereview/provider_tui_test.go:22
↓ 40 callers
Method
Since
Since returns a copy of all comments stored at index ≥ start. Returns nil when no new comments have been added since the snapshot.
internal/tool/comment_collector.go:64
↓ 40 callers
Function
loadOrCreateConfig
(path string)
cmd/opencodereview/config_cmd.go:578
↓ 40 callers
Function
str
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:90
↓ 39 callers
Function
NewAgent
(binary string, runner orchestrator.Runner, parsers ...*intent.Parser)
acp/internal/adapter/agent.go:31
↓ 39 callers
Function
msg
(role, text string)
internal/llmloop/compression_test.go:13
↓ 38 callers
Function
Writer
Writer returns the current progress writer, possibly styled, redirected or discarded.
internal/stdout/stdout.go:18
↓ 37 callers
Function
NewOpenAIClient
NewOpenAIClient creates a new OpenAI-compatible LLM client. ExtraHeaders are applied per request (not baked into the SDK client) so SessionKeyTemplate
internal/llm/client.go:606
↓ 37 callers
Function
NewOpenAIResponsesClient
NewOpenAIResponsesClient creates a client for the OpenAI Responses API. URL normalization mirrors NewOpenAIClient: cfg.URL is forced to end in respons
internal/llm/responses_client.go:42
↓ 37 callers
Function
inputValues
(overrides = {})
scripts/github-actions/action-contract.test.js:171
↓ 37 callers
Function
makeFixture
()
scripts/github-actions/action-contract.test.js:224
↓ 37 callers
Function
mockFs
(resultText, stderrText)
scripts/github-actions/post-review-comments.test.js:52
↓ 37 callers
Function
removeFixture
(fixture)
scripts/github-actions/action-contract.test.js:276
↓ 37 callers
Function
resultDescription
(result)
scripts/github-actions/action-contract.test.js:306
↓ 37 callers
Function
runPostReviewComments
({ github, context, core, fs, // The pull request everything below posts to. action.yml resolves it
scripts/github-actions/post-review-comments.js:78
↓ 37 callers
Function
writeJSONL
(t *testing.T, path string, lines ...string)
internal/viewer/store_test.go:13
↓ 36 callers
Function
NewState
NewState returns an empty clarification state.
acp/internal/intent/state.go:29
↓ 36 callers
Function
initTestGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:17
↓ 35 callers
Function
LookupProvider
LookupProvider returns the preset provider by name. The returned Provider has its own copy of the Models slice.
internal/llm/providers.go:518
↓ 35 callers
Function
newBuilderWith
newBuilderWith registers a set of selected items on a fresh builder and sets a valid input mode so Finalize passes the mandatory-mode check.
internal/session/manifest_test.go:24
↓ 35 callers
Function
setupTestRepo
(t *testing.T)
internal/tool/code_search_test.go:105
↓ 34 callers
Method
CompletionsWithCtx
(ctx context.Context, req ChatRequest)
internal/llm/client.go:94
↓ 34 callers
Method
RunMainTask
(ctx context.Context, messages []llm.Message, taskKey string)
internal/reviewtask/task.go:118
↓ 34 callers
Method
add
(event responses.ResponseStreamEventUnion)
internal/llm/responses_client.go:291
↓ 34 callers
Function
parseReviewFlags
parseReviewFlags provides test compatibility: parses args through a fresh cobra command instance and returns the resulting reviewOptions.
cmd/opencodereview/compat_test.go:18
↓ 33 callers
Function
mustFinalize
mustFinalize finalizes and fails the test on an unexpected validation error.
internal/session/manifest_test.go:36
↓ 33 callers
Function
runGitTest
runGitTest runs a git command in dir and fails the test on error.
internal/diff/git_test.go:21
↓ 33 callers
Function
runStep
(step, values, fixture, extraEnv = {}, options = {})
scripts/github-actions/action-contract.test.js:296
↓ 32 callers
Function
int
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:99
↓ 32 callers
Function
newTestParser
newTestParser builds a parser with a permissive repo and the given LLM.
acp/internal/intent/fake_test.go:62
↓ 32 callers
Method
warn
warn reports the first capture failure on stderr; later failures stay silent so a degraded sink cannot spam every subsequent record.
internal/session/raw_writer.go:109
↓ 31 callers
Method
Content
Content extracts the text content from the first choice, falling back to reasoning content.
internal/llm/client.go:347
↓ 31 callers
Method
Output
Output executes a git command and returns stdout only.
internal/gitcmd/runner.go:387
↓ 30 callers
Method
Comments
Comments returns all collected comments.
internal/tool/comment_collector.go:32
↓ 30 callers
Method
Freeze
Freeze builds an immutable report after the run is done. It is a deterministic read and may be called again with the same runID to give independent co
internal/llm/retry_report.go:477
↓ 30 callers
Method
MarkCompleted
MarkCompleted records that the item's subtask completed. Whether it produced comments does not affect completion.
internal/session/manifest.go:750
↓ 30 callers
Method
models
()
cmd/opencodereview/provider_tui.go:526
↓ 30 callers
Function
setTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
internal/config/rules/test_home_test.go:13
↓ 30 callers
Function
setupEnabledTelemetry
(t *testing.T)
internal/telemetry/events_test.go:40
↓ 29 callers
Function
NewRunner
NewRunner returns a Runner bound to the given dependencies.
internal/llmloop/loop.go:81
↓ 29 callers
Function
ResolveLineNumbers
ResolveLineNumbers populates StartLine/EndLine on each comment by matching the ExistingCode against the corresponding file's diff hunks (primary), or
internal/diff/resolver.go:16
↓ 29 callers
Function
fixture
(test *testing.T)
internal/behaviortask/runner_test.go:46
↓ 29 callers
Function
stepNamed
(name)
scripts/github-actions/action-contract.test.js:209
↓ 28 callers
Method
AppendTaskRecord
AppendTaskRecord adds a new task record to the file session for the given file path and task type. It auto-assigns the RequestNo based on existing rec
internal/session/history.go:402
↓ 28 callers
Method
Error
()
acp/internal/orchestrator/types.go:129
↓ 28 callers
Function
NewRunner
NewRunner creates a runner with the documented resource limits.
acp/internal/orchestrator/types.go:158
↓ 28 callers
Method
NewSession
(_ context.Context, p acp.NewSessionRequest)
acp/internal/adapter/session.go:26
↓ 28 callers
Method
RecordReviewItemDone
RecordReviewItemDone persists the file-level checkpoint used by resume.
internal/session/history.go:292
↓ 28 callers
Method
dispatchSubtasks
dispatchSubtasks runs the Plan + Main phases for each file group concurrently.
internal/agent/agent.go:646
↓ 28 callers
Function
newTestDeps
(client llm.LLMClient)
internal/reviewtask/loop_test.go:96
next →
1–100 of 7,484, ranked by callers