MCPcopy
hub / github.com/openclaw/clawsweeper / localReviewAdditionalPrompt

Function localReviewAdditionalPrompt

src/commit-sweeper.ts:410–416  ·  view source on GitHub ↗
(
  baseSha: string,
  headSha: string,
  baseBranch: string,
)

Source from the content-addressed store, hash-verified

408export const LOCAL_REVIEW_WEB_SEARCH_CONFIG = 'web_search="disabled"';
409
410export function localReviewAdditionalPrompt(
411 baseSha: string,
412 headSha: string,
413 baseBranch: string,
414): string {
415 return `This is a LOCAL pre-PR review of the COMMITTED range ${baseSha.slice(0, 8)}..${headSha.slice(0, 8)} (your branch vs ${baseBranch}) on a clean checkout — no staged or untracked changes. Review code correctness, bugs, and security; ignore PR metadata. This review is offline: do not run gh, use web search, access URLs, or make any network request. Use only the local checkout and git history.`;
416}
417
418// Local, offline pre-PR review of a whole branch: reviews the committed range
419// merge-base(base, HEAD)..HEAD as a single unit, reusing the Commit Sweeper engine.

Callers 2

localReviewCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected