Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/openant-cli/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ var (
scanDiffBase string
scanPR int
scanDiffScope string
scanLLMReachability bool
)

func init() {
Expand Down Expand Up @@ -79,6 +80,7 @@ func registerScanFlags(cmd *cobra.Command) {
cmd.Flags().StringVar(&scanDiffBase, "diff-base", "", "Incremental mode: filter pipeline to units overlapping diff vs this ref (e.g. origin/main, HEAD~5)")
cmd.Flags().IntVar(&scanPR, "pr", 0, "Incremental mode against a GitHub PR number (requires gh; mutex with --diff-base)")
cmd.Flags().StringVar(&scanDiffScope, "diff-scope", "changed_functions", "Diff scope: changed_files, changed_functions, callers")
cmd.Flags().BoolVar(&scanLLMReachability, "llm-reachability", false, "Enable the LLM reachability review stage (Opus). Surfaces additional entry points and external-input sites beyond the structural pass. Off by default — enabling this may incur additional LLM cost (one Opus call per ~25 units).")
}

func runScan(cmd *cobra.Command, args []string) {
Expand Down Expand Up @@ -197,6 +199,9 @@ func runScan(cmd *cobra.Command, args []string) {
if manifestPath != "" {
pyArgs = append(pyArgs, "--diff-manifest", manifestPath)
}
if scanLLMReachability {
pyArgs = append(pyArgs, "--llm-reachability")
}

// Pass repository metadata from project context so reports don't show
// [NOT PROVIDED] placeholders.
Expand Down
Loading
Loading