pullfrog 0.1.41 → 0.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,9 @@ import { type AgentResult, type AgentRunContext, type AgentUsage, type PostRunIs
8
8
  *
9
9
  * the gate is anchored to `hadProgressComment` so silent runs (non-issue
10
10
  * events, dispatcher skipped seeding) don't fire a nudge there's no UI for.
11
+ * `expectsReviewOutput` overrides that anchor for runs where the dispatcher
12
+ * deliberately skipped seeding under `progressComments: disabled` — those still
13
+ * owe a review, and reading "no comment" as "no UI" would silently retire the gate.
11
14
  *
12
15
  * `Review` and `IncrementalReview` have different valid exits:
13
16
  * - Review: only `create_pull_request_review` counts. `report_progress` is
@@ -20,7 +23,7 @@ import { type AgentResult, type AgentRunContext, type AgentUsage, type PostRunIs
20
23
  * `task`-dispatched `reviewfrog` lens) calls `report_progress` and silences
21
24
  * the gate even though the orchestrator never submitted a review.
22
25
  */
23
- export declare function getUnsubmittedReview(toolState: ToolState): "Review" | "IncrementalReview" | null;
26
+ export declare function getUnsubmittedReview(toolState: ToolState, expectsReviewOutput?: boolean): "Review" | "IncrementalReview" | null;
24
27
  /**
25
28
  * run the user-configured stop hook.
26
29
  *
package/dist/cli.mjs CHANGED
@@ -101765,8 +101765,8 @@ var providers = {
101765
101765
  },
101766
101766
  "claude-opus": {
101767
101767
  displayName: "Claude Opus",
101768
- resolve: "anthropic/claude-opus-4-8",
101769
- openRouterResolve: "openrouter/anthropic/claude-opus-4.8",
101768
+ resolve: "anthropic/claude-opus-5",
101769
+ openRouterResolve: "openrouter/anthropic/claude-opus-5",
101770
101770
  preferred: true,
101771
101771
  subagentModel: "claude-sonnet"
101772
101772
  },
@@ -101964,8 +101964,8 @@ var providers = {
101964
101964
  },
101965
101965
  "claude-opus": {
101966
101966
  displayName: "Claude Opus",
101967
- resolve: "opencode/claude-opus-4-8",
101968
- openRouterResolve: "openrouter/anthropic/claude-opus-4.8",
101967
+ resolve: "opencode/claude-opus-5",
101968
+ openRouterResolve: "openrouter/anthropic/claude-opus-5",
101969
101969
  subagentModel: "claude-sonnet"
101970
101970
  },
101971
101971
  "claude-sonnet": {
@@ -103022,7 +103022,7 @@ var import_semver = __toESM(require_semver2(), 1);
103022
103022
  // package.json
103023
103023
  var package_default = {
103024
103024
  name: "pullfrog",
103025
- version: "0.1.41",
103025
+ version: "0.1.43",
103026
103026
  type: "module",
103027
103027
  bin: {
103028
103028
  pullfrog: "dist/cli.mjs",
@@ -103704,8 +103704,78 @@ HARD CONSTRAINTS (non-negotiable, regardless of orchestrator instructions):
103704
103704
 
103705
103705
  Report findings clearly with file:line references and quoted evidence where possible. Flag uncertainty explicitly \u2014 if you cannot verify a claim, say so rather than guess.`;
103706
103706
 
103707
+ // utils/promptProfile.ts
103708
+ function promptProfile() {
103709
+ return process.env.PULLFROG_PROMPT_PROFILE === "full" ? "full" : "lean";
103710
+ }
103711
+ function byProfile(lean, full) {
103712
+ return promptProfile() === "lean" ? lean : full;
103713
+ }
103714
+
103707
103715
  // modes.ts
103708
- var PR_SUMMARY_FORMAT = `### Default format
103716
+ var PR_SUMMARY_FORMAT_LEAN = `### Default format
103717
+
103718
+ The body has at most three parts, in this order:
103719
+
103720
+ 1. **Reviewed changes preamble** \u2014 a bolded \`**Reviewed changes**\` lead-in with one sentence on what was reviewed in this run (for \`IncrementalReview\`: what changed since the prior pullfrog review), then a bullet list of the substantive changes \u2014 short bolded title, one sentence each. A reviewer should understand the full reviewed scope from this list alone. Close the preamble with the metadata comment below.
103721
+ 2. **Cross-cutting issue sections** (zero or more) \u2014 one \`### {emoji} {what's wrong, not what to do}\` heading per concern.
103722
+ 3. **\`### \u2139\uFE0F Nitpicks\`** at the very bottom, if any \u2014 a flat bullet list, no technical-details block.
103723
+
103724
+ **Inline vs. body.** Concerns that anchor to a specific line go inline (the \`comments\` parameter), even when their implications are broad. Body \`### \` sections are reserved for concerns that have **no line to anchor to** \u2014 *absence* (something the diff should have done but didn't), *sequencing* (rollout / deletion / migration order), *design decisions only the human can make*, or *scope questions the diff raises but doesn't address*. With no non-anchorable concerns, the body is just the preamble + metadata.
103725
+
103726
+ **Severity emoji** on every \`### \` heading, and nowhere else: \u{1F6A8} critical (blocks merge \u2014 data loss, security, broken core flow) \xB7 \u26A0\uFE0F important (must address before merging) \xB7 \u2139\uFE0F informational (mergeable as-is).
103727
+
103728
+ **Blank line between every block-level element.** GitHub's markdown parser requires one before and after HTML tags (\`<details>\`, \`<summary>\`, \`<sub>\`, \`<br/>\`) \u2014 without it GitHub treats what follows as a continuation of the HTML block and renders your markdown as literal text. This is a parser quirk, not a style preference, and it permanently breaks the posted review.
103729
+
103730
+ ## Metadata comment
103731
+
103732
+ Fill every field from the \`checkout_pr\` response \u2014 never count files or commits by hand. For \`IncrementalReview\`, fill \`Prior pullfrog review\` from \`list_pull_request_reviews\`.
103733
+
103734
+ \`\`\`
103735
+ <!--
103736
+ Pullfrog review metadata. These findings were written against {head_sha_short};
103737
+ if commits have landed on {head_ref} since, treat every specific bug, file, or
103738
+ line callout as POTENTIALLY STALE and re-diff before acting on it.
103739
+
103740
+ - Mode: Review (initial) or IncrementalReview (delta against prior pullfrog review)
103741
+ - Files reviewed: {file_count}
103742
+ - Commits reviewed: {commit_count}
103743
+ - Base: {base_ref} ({base_sha_short})
103744
+ - Head: {head_ref} ({head_sha_short})
103745
+ - Reviewed commits:
103746
+ - {sha_short} \u2014 {commit_subject}
103747
+ - Prior pullfrog review: none or {prior_sha_short} ({prior_review_html_url})
103748
+ - Submitted at: {iso_timestamp}
103749
+ -->
103750
+ \`\`\`
103751
+
103752
+ ## Technical details
103753
+
103754
+ Every body \`### \` section carries one; an inline comment carries one when its fix is non-trivial or spans files. The visible part above it states the PROBLEM in 2-3 sentences \u2014 what's broken and what the blast radius is. Asks, fixes, and open questions live inside the block, which a downstream fix-agent pulls down as its brief, so \`file:line\` refs and identifier density belong here.
103755
+
103756
+ \`\`\`
103757
+ <details><summary>Technical details</summary>
103758
+
103759
+ \\\`\\\`\\\`\\\`markdown
103760
+ # {title}
103761
+
103762
+ ## Affected sites
103763
+ - {file path:line} \u2014 {what's wrong there}
103764
+
103765
+ ## Required outcome
103766
+ - {what the fix needs to achieve, not how to achieve it}
103767
+
103768
+ ## Suggested approach (optional)
103769
+ ## Open questions for the human (optional)
103770
+ \\\`\\\`\\\`\\\`
103771
+
103772
+ </details>
103773
+ \`\`\`
103774
+
103775
+ The 4-backtick fence lets the block hold its own 3-backtick fences and stay one-click copyable. Skip the optional sections when they'd add nothing.
103776
+
103777
+ Backtick-wrap identifiers and file names. Don't repeat diff content, don't include raw \`+123 / -45\` stats, no changelog, no horizontal rules, and no \`### Key changes\` / \`### Issues found\` / \`<b>TL;DR</b>\` heading \u2014 each \`### \` heading IS the issue.`;
103778
+ var PR_SUMMARY_FORMAT_FULL = `### Default format
103709
103779
 
103710
103780
  The body has at most three parts in this exact order:
103711
103781
 
@@ -103846,6 +103916,9 @@ Inline comments use the same severity framing as body \`### \` sections, scaled
103846
103916
  - **Don't repeat diff content**, don't include raw \`+123 / -45\` stats, don't include a changelog section, don't use horizontal rules (\`---\`).
103847
103917
  - **Pull file/commit counts from \`checkout_pr\` metadata** \u2014 never count manually.
103848
103918
  - **Legacy headings REMOVED.** Do not use \`### Key changes\`, \`### Issues found\`, \`<b>TL;DR</b>\`, or \`<sub><b>Summary</b>\`. The new structure subsumes them.`;
103919
+ function prSummaryFormat() {
103920
+ return byProfile(PR_SUMMARY_FORMAT_LEAN, PR_SUMMARY_FORMAT_FULL);
103921
+ }
103849
103922
  function computeModes(agentId, signedCommits = false) {
103850
103923
  const t2 = (toolName) => formatMcpToolRef(agentId, toolName);
103851
103924
  const commitStep = signedCommits ? `commit via \`${t2("commit_changes")}\` \u2014 it lands a GitHub-signed commit directly on the remote branch (no push step)` : `commit locally via shell (\`git add . && git commit -m "..."\`)`;
@@ -103869,7 +103942,17 @@ function computeModes(agentId, signedCommits = false) {
103869
103942
  - plan your approach before writing code: identify which files need to change, key design decisions, and edge cases. for non-trivial changes, consider whether there's a more elegant approach.
103870
103943
  - run relevant tests/lints before committing
103871
103944
 
103872
- 5. **self-review**: judgment call \u2014 does YOUR diff warrant a fresh-eyes pass?
103945
+ 5. **self-review**: ${byProfile(
103946
+ `unless the diff has no behavioral surface at all \u2014 docs, comments, whitespace, import reordering, lockfile or generated-code regeneration, a mechanical rename, a trusted dep patch bump \u2014 dispatch the \`${REVIEWER_AGENT_NAME}\` subagent to review it with fresh eyes against YOUR TASK. Line count is not the signal: a one-line change to auth, money, SQL, a comparison operator, a redirect, or a config default earns a pass. When in doubt, run it \u2014 a false-positive dispatch costs cents, a missed bug costs much more.
103947
+
103948
+ Before dispatching, make \`origin/<base>\` available: \`git fetch --no-tags --deepen=1000 origin <base>:refs/remotes/origin/<base>\`. The explicit destination refspec is required \u2014 a shallow single-branch checkout otherwise only updates \`FETCH_HEAD\` and never creates the tracking ref. The reviewer is read-only by contract, so fetching is your job.
103949
+
103950
+ In the dispatch prompt: say this is a PRE-COMMIT self-review whose work is uncommitted in the working tree, give the branch and base, name \`git diff --merge-base origin/<base>\` as the canonical diff command, paste YOUR TASK, and summarize any build-phase failures. If that diff comes back empty, there is nothing to review \u2014 stop.
103951
+
103952
+ Give it the diff and the task, nothing else. Do not summarize what you implemented, curate a reading list of files, or pre-shape the output with a severity schema \u2014 each biases the reviewer toward validating your solution instead of questioning it. Where the diff rests on third-party API, SDK, framework, or DB-engine semantics, tell it to verify load-bearing claims by web search and quote sources.
103953
+
103954
+ Treat what comes back as hypotheses, not directives: verify each against the code before applying, and reject findings that would add ceremony without correctness \u2014 defensive checks for cases that cannot happen, single-use abstractions, comments restating code, tautological tests. After applying what you accept, re-read your own diff and revert anything that turned out to be bloat. Then ${commitStep}.`,
103955
+ `judgment call \u2014 does YOUR diff warrant a fresh-eyes pass?
103873
103956
 
103874
103957
  Skip self-review (commit directly) when the diff is **genuinely trivial**:
103875
103958
  - doc typos, comment-only edits, whitespace/format-only, import reordering
@@ -103920,7 +104003,8 @@ function computeModes(agentId, signedCommits = false) {
103920
104003
  - Do NOT defect-hunt the diff yourself in parallel with the subagent. Your role is dispatch + evaluation; doing the review yourself reintroduces the implementation bias the subagent is meant to mitigate.
103921
104004
  - For diffs that rely on third-party API contracts, SDK semantics, framework directives, or DB engine specifics, instruct the subagent to verify load-bearing claims via web search and quote source URLs rather than trust training data \u2014 this is the single most common review-quality failure mode.
103922
104005
 
103923
- Be **discerning** about what comes back. The reviewer is an AI subagent and is fallible \u2014 treat every finding as a hypothesis, not a directive, and **verify each one yourself** against the diff and the code before deciding whether to apply. You are searching for a solution that is **complete, minimal, and elegant** \u2014 you may need to think hard to find it. Do not over-engineer, do not be over-defensive, **do not write AI slop**. Reviewers bias toward *recommending additions*, and that bias has a recognizable slop texture: defensive checks for cases that cannot happen, extra logging, new abstractions used once, comments restating code, tests asserting tautologies, "just-in-case" guards, error handlers for cases the type system already rules out. Reject those. For each surviving finding, ask: would applying it leave the code more sound, correct, AND elegant? Two-out-of-three means look harder for a fix that gets all three before settling. After applying the fixes you accept, re-read your diff and be discerning about what *you just changed*: if any fix turned out to be bloat in context, revert it. Then verify only intended changes are present, no debug artifacts or commented-out code remain, no unrelated files were modified. Then ${commitStep}.
104006
+ Be **discerning** about what comes back. The reviewer is an AI subagent and is fallible \u2014 treat every finding as a hypothesis, not a directive, and **verify each one yourself** against the diff and the code before deciding whether to apply. You are searching for a solution that is **complete, minimal, and elegant** \u2014 you may need to think hard to find it. Do not over-engineer, do not be over-defensive, **do not write AI slop**. Reviewers bias toward *recommending additions*, and that bias has a recognizable slop texture: defensive checks for cases that cannot happen, extra logging, new abstractions used once, comments restating code, tests asserting tautologies, "just-in-case" guards, error handlers for cases the type system already rules out. Reject those. For each surviving finding, ask: would applying it leave the code more sound, correct, AND elegant? Two-out-of-three means look harder for a fix that gets all three before settling. After applying the fixes you accept, re-read your diff and be discerning about what *you just changed*: if any fix turned out to be bloat in context, revert it. Then verify only intended changes are present, no debug artifacts or commented-out code remain, no unrelated files were modified. Then ${commitStep}.`
104007
+ )}
103924
104008
 
103925
104009
  6. **finalize**:
103926
104010
  - ${finalizeStep} (see *SYSTEM* Git rules if this fails \u2014 prepush errors are usually the repo's tests/lint, not infra timeouts)
@@ -103973,7 +104057,7 @@ For simple, well-defined tasks, skip the plan phase and go straight to build.`
103973
104057
  //
103974
104058
  // Severity categorization is split across two surfaces: the opening
103975
104059
  // callout (CAUTION/IMPORTANT/ℹ️/✅) sets the review's overall tier, and
103976
- // per-bullet emoji prefixes (🚨/⚠️/ℹ️ in PR_SUMMARY_FORMAT) tag
104060
+ // per-bullet emoji prefixes (🚨/⚠️/ℹ️ in prSummaryFormat()) tag
103977
104061
  // individual points inside summary sections — scoping severity to the
103978
104062
  // specific bullet rather than the whole section keeps a section that
103979
104063
  // mixes a 🚨 and an ℹ️ from being mislabeled by either of them.
@@ -103986,7 +104070,30 @@ For simple, well-defined tasks, skip the plan phase and go straight to build.`
103986
104070
 
103987
104071
  2. **checkout**: call \`${t2("checkout_pr")}\` \u2014 this returns PR metadata, a \`diffPath\`, and a supplemental \`impactPath\` when change-impact extraction is enabled. read the complete raw diff end-to-end, beginning with the TOC and using its file line ranges as your coverage checklist. only after that, use \`impactPath\` as an explicitly incomplete list of reference leads; it never replaces raw-diff reading or establishes coverage.
103988
104072
 
103989
- 3. **triage**: orient yourself on the PR \u2014 identify *what kind of thing this is* (domain it touches, seams it crosses, external contracts it depends on, user-facing surfaces it changes). pull as much context as you need to render a confident, well-grounded review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths, fetch related GitHub state. **you are the synthesizer** \u2014 never delegate understanding to subagents.
104073
+ ${byProfile(
104074
+ `3. **triage**: orient yourself on the PR \u2014 identify *what kind of thing this is* (domain it touches, seams it crosses, external contracts it depends on, user-facing surfaces it changes). pull as much context as you need to render a confident, well-grounded review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths, fetch related GitHub state. **you are the synthesizer** \u2014 never delegate understanding to subagents.
104075
+
104076
+ skip the deeper pass and submit a \`No new issues found.\` review per step 7 only when the diff has **no behavioral surface at all** \u2014 doc typos, whitespace/formatting, lockfile or generated-code regeneration, a mechanical rename whose only effect is import-path updates. line count is not the signal: a one-line change to auth, money, SQL, a comparison operator, a redirect, or a config default is not trivial.
104077
+
104078
+ 4. **specialist decision**: after reading the complete diff, name the questions you still cannot answer confidently yourself, and dispatch one \`${REVIEWER_AGENT_NAME}\` specialist per question. a question qualifies only when a specialist could return evidence that **changes your disposition** on the PR \u2014 generic requests for another look, extra confidence, or polish do not. most reviews need zero or one; some need several.
104079
+
104080
+ **There is NO one-specialist cap or fixed maximum.** cover every orthogonal question that remains; do not collapse several real questions into one broad prompt just to reduce the count. there is no file-count, line-count, or budget threshold either \u2014 diff size is not a proxy for review uncertainty.
104081
+
104082
+ frame each question through the lens that primes the right failure modes. for high-stakes subsystems, lead with the **domain** ("the billing lens", "the auth lens", "the schema-migration lens") rather than the generic equivalent ("correctness on billing code") \u2014 the domain framing makes the subagent recall double-charges, refund races, currency rounding, and dispute flows that a generic lens misses.
104083
+
104084
+ you remain the synthesizer: reading the complete raw diff, investigating surrounding code, validating every returned finding, and writing the review are yours. specialist reads supplement that work; they never satisfy your own coverage obligation.
104085
+
104086
+ 5. **dispatch specialists (only if step 4 found unresolved questions)**: for 2+ questions, emit every Task tool_use block **IN A SINGLE ASSISTANT TURN** before reading any result, so the investigations run in parallel rather than serially. your own \`read\` / \`grep\` / \`webfetch\` calls can ride in that same turn at zero extra wall time.
104087
+
104088
+ if a specialist errors out, times out, or returns nothing usable, retry it once. if it still fails, resolve the question yourself; if it remains disposition-changing and unresolved, surface the limitation and do not approve. each dispatch carries:
104089
+ - **the absolute \`diffPath\` (and \`incrementalDiffPath\` if available) from step 2's \`${t2("checkout_pr")}\` return, named verbatim in the dispatch prompt** (e.g. \`diffPath: /tmp/pullfrog-XXXX/pr-NNN-SHA.diff\`). the reviewer's baked-in system prompt selects its FIRST action on this token \u2014 paraphrasing ("review the diff", "look at this PR") sends it down a \`git diff origin/<base>\` fallback that fails on shallow GHA checkouts. it \`read\`s those files for scope and must NOT re-derive the diff itself; reading and codebase exploration are still its job.
104090
+ - **exactly one falsifiable question with explicit scope boundaries** \u2014 ask for evidence that supports or refutes it, never a broad "review for X, Y, and Z" prompt.
104091
+ - **a Task \`description\` set to a short hypothesis label** (e.g. \`"webhook-replay"\`, \`"billing-rounding"\`) \u2014 the harness reads this field to label the subagent's log lines so parallel runs can be told apart. without it, every subagent shows up as \`subagent#N\`.
104092
+ - if the question touches third-party API, SDK, or framework contracts, instruct the subagent to verify load-bearing claims via web search and quote source URLs rather than trust training data. action runs are non-interactive \u2014 nobody is in the loop to catch "I'm pretty sure Stripe does X."
104093
+ - ask for findings with file paths and NEW line numbers from the diff so you can validate and anchor them.
104094
+
104095
+ delegation discipline: do NOT summarize the PR for them (a lossy summary biases toward a validation frame; the raw diff is the source), do NOT hand them a curated reading list, do NOT pre-shape their output with a finding schema, and do NOT mention the other specialists \u2014 independence is the point, and overlapping findings are a strong signal.`,
104096
+ `3. **triage**: orient yourself on the PR \u2014 identify *what kind of thing this is* (domain it touches, seams it crosses, external contracts it depends on, user-facing surfaces it changes). pull as much context as you need to render a confident, well-grounded review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths, fetch related GitHub state. **you are the synthesizer** \u2014 never delegate understanding to subagents.
103990
104097
 
103991
104098
  if the PR is **genuinely trivial**, skip specialists entirely and submit a \`No new issues found.\` review per step 7.
103992
104099
 
@@ -104057,7 +104164,8 @@ For simple, well-defined tasks, skip the plan phase and go straight to build.`
104057
104164
  - do NOT summarize the PR for them (a lossy summary biases toward a validation frame; the raw diff is the source)
104058
104165
  - do NOT hand them a curated reading list (let them discover scope)
104059
104166
  - do NOT pre-shape their output with a finding schema
104060
- - do NOT mention the other lenses (independence is the point \u2014 overlapping findings are a strong signal)
104167
+ - do NOT mention the other lenses (independence is the point \u2014 overlapping findings are a strong signal)`
104168
+ )}
104061
104169
 
104062
104170
  6. **aggregate & draft**: when specialist results land, merge findings; de-dup overlaps (two specialists catching the same issue = higher-confidence signal); trace each finding yourself before accepting it. drop praise, style preferences, speculative/unverified claims, findings about pre-existing code unrelated to the PR (heuristic: if the finding's root cause lives in lines this PR added or modified, it's in scope; otherwise drop unless the PR plausibly introduced or amplified the regression), and anything not actionable. also drop **bloat-shaped findings** \u2014 proposed fixes that would add defensive checks for cases that can't happen, abstractions used once, comments restating obvious code, tests asserting tautologies, or "just-in-case" guards. subagents are fallible and bias toward recommending changes; the bar for an actionable inline comment is sound + correct + elegant. recommending a change that improves only one of the three (or worse, degrades elegance to nominally improve correctness) makes the codebase worse, not better.
104063
104171
 
@@ -104091,7 +104199,7 @@ For simple, well-defined tasks, skip the plan phase and go straight to build.`
104091
104199
  - **no actionable issues**:
104092
104200
  \`approved: true\`. Body opens with \`> \u2705 No new issues found.\\n\\n\` followed by the PR summary.
104093
104201
 
104094
- ${PR_SUMMARY_FORMAT}`
104202
+ ${prSummaryFormat()}`
104095
104203
  },
104096
104204
  // IncrementalReview shares Review's minimum hypothesis-covering specialist
104097
104205
  // routing and body format, scoped to the incremental delta against the
@@ -104125,7 +104233,30 @@ ${PR_SUMMARY_FORMAT}`
104125
104233
 
104126
104234
  The remaining open threads feed step 8's dedup filter \u2014 anything already flagged and unchanged by the new commits should not be re-raised. The rolling PR summary snapshot is the durable record of retire activity; you don't need to surface it in the review body.
104127
104235
 
104128
- 5. **triage**: orient on the *incremental* changes \u2014 domain, seams, external contracts, user-facing surfaces. pull as much context as you need to render a confident review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths. **you are the synthesizer.**
104236
+ ${byProfile(
104237
+ `5. **triage**: orient on the *incremental* changes \u2014 domain, seams, external contracts, user-facing surfaces. pull as much context as you need to render a confident review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths. **you are the synthesizer.**
104238
+
104239
+ skip the deeper pass and jump to step 10's non-substantive path (do NOT submit a review) only when the incremental changes have **no behavioral surface at all** \u2014 formatting, comment tweaks, import reordering, lockfile regen, a mechanical rename of import paths. line count is not the signal: a one-line change to auth, money, SQL, a comparison operator, a redirect, or a config default is not trivial.
104240
+
104241
+ 6. **specialist decision**: after covering the incremental and full diffs, name the questions about the new changes that you still cannot answer confidently yourself, and dispatch one \`${REVIEWER_AGENT_NAME}\` specialist per question. a question qualifies only when a specialist could return evidence that **changes your disposition** on the PR \u2014 generic requests for another look, extra confidence, or polish do not. most incremental reviews need zero or one, especially thread-reply re-reviews; some need several.
104242
+
104243
+ **There is NO one-specialist cap or fixed maximum.** cover every orthogonal question that remains; do not collapse several real questions into one broad prompt just to reduce the count. there is no file-count, line-count, or budget threshold either \u2014 diff size is not a proxy for review uncertainty.
104244
+
104245
+ frame each question through the lens that primes the right failure modes. for high-stakes subsystems, lead with the **domain** ("the billing lens", "the auth lens", "the schema-migration lens") rather than the generic equivalent \u2014 the domain framing makes the subagent recall failure modes a generic lens misses.
104246
+
104247
+ you remain the synthesizer: reading the complete raw full diff plus the incremental diff, investigating surrounding code, validating every returned finding, and writing the review are yours. specialist reads supplement that work; they never satisfy your own coverage obligation.
104248
+
104249
+ 7. **dispatch specialists (only if step 6 found unresolved questions)**: for 2+ questions, emit every Task tool_use block **IN A SINGLE ASSISTANT TURN** before reading any result, so the investigations run in parallel rather than serially. your own \`read\` / \`grep\` / \`webfetch\` calls can ride in that same turn.
104250
+
104251
+ if a specialist errors out, times out, or returns nothing usable, retry it once. if it still fails, resolve the question yourself; if it remains disposition-changing and unresolved, surface the limitation and do not approve. each dispatch carries:
104252
+ - **the absolute diff path(s) from step 2's \`${t2("checkout_pr")}\` return, named verbatim in the dispatch prompt.** when \`incrementalDiffPath\` is present, name BOTH (\`incrementalDiffPath: /tmp/.../pr-NNN-SHA-incremental.diff\` then \`diffPath: /tmp/.../pr-NNN-SHA.diff\`) \u2014 the reviewer's baked-in prompt reads incremental first and uses full for context; when only \`diffPath\` exists, name it alone. it \`read\`s those files and must NOT re-derive the diff itself; paraphrasing ("review the new commits") sends it down a \`git diff\` fallback that fails on shallow GHA checkouts. do NOT tell them to skip pre-existing issues \u2014 that suppresses regressions the new commits amplified; the "issues must be NEW" filter lives at aggregation time (step 8), not in the subagent prompt.
104253
+ - **exactly one falsifiable question with explicit scope boundaries** \u2014 ask for evidence that supports or refutes it, never a broad "review for X, Y, and Z" prompt.
104254
+ - **a Task \`description\` set to a short hypothesis label** \u2014 the harness reads this field to label log lines so parallel runs can be told apart.
104255
+ - if the question touches third-party API, SDK, or framework contracts, instruct the subagent to verify load-bearing claims via web search and quote source URLs.
104256
+ - ask for findings with file paths and NEW line numbers from the full PR diff so you can validate and anchor them.
104257
+
104258
+ delegation discipline: do NOT summarize the changes for them (a lossy summary biases toward a validation frame; the raw diff is the source), do NOT hand them a curated reading list, do NOT pre-shape their output with a finding schema, and do NOT mention the other specialists \u2014 independence is the point.`,
104259
+ `5. **triage**: orient on the *incremental* changes \u2014 domain, seams, external contracts, user-facing surfaces. pull as much context as you need to render a confident review: read related files, grep for callers of changed symbols, check tests that exercise the touched paths. **you are the synthesizer.**
104129
104260
 
104130
104261
  if the incremental changes are **genuinely trivial**, skip specialists entirely and jump to step 10's non-substantive path (do NOT submit a review).
104131
104262
 
@@ -104166,7 +104297,8 @@ ${PR_SUMMARY_FORMAT}`
104166
104297
  - do NOT summarize the changes for them (a lossy summary biases toward a validation frame; the raw diff is the source)
104167
104298
  - do NOT hand them a curated reading list (let them discover scope)
104168
104299
  - do NOT pre-shape their output with a finding schema
104169
- - do NOT mention the other lenses (independence is the point)
104300
+ - do NOT mention the other lenses (independence is the point)`
104301
+ )}
104170
104302
 
104171
104303
  8. **aggregate, draft, self-critique**: merge findings (yours + output from every specialist you dispatched); de-dup overlaps; trace each finding yourself. drop praise, style preferences, speculative/unverified claims, findings about pre-existing code unrelated to the new commits, anything not actionable, and anything that re-states prior review feedback (heuristic: if the finding's root cause lives in lines the *new commits* added or modified, it's in scope; otherwise drop). also drop **bloat-shaped findings** \u2014 proposed fixes that would add defensive checks for cases that can't happen, abstractions used once, comments restating obvious code, tests asserting tautologies, or "just-in-case" guards. subagents are fallible and bias toward recommending changes; the bar for an actionable inline comment is sound + correct + elegant. recommending a change that improves only one of the three (or degrades elegance to nominally improve correctness) makes the codebase worse, not better. To compute "lines the new commits added or modified": if \`incrementalDiffPath\` from step 2 is present, use it directly. Otherwise, take the prior Pullfrog review's \`commit_id\` (returned alongside each entry from \`${t2("list_pull_request_reviews")}\` in step 4) and run \`git diff <prior-review-sha>..HEAD\` to isolate the lines added since that review.
104172
104304
 
@@ -104189,7 +104321,7 @@ ${PR_SUMMARY_FORMAT}`
104189
104321
  - ELSE IF INFORMATIONAL OBSERVATIONS (mergeable as-is, but worth surfacing \u2014 e.g. prior feedback addressed cleanly with one minor stale doc reference, or a noteworthy positive observation): call \`${t2("create_pull_request_review")}\` with \`approved: true\`, NO inline comments, and the review body. body opens with \`> \u2705 No new issues found.\\n\\n\` (or similar friendly green opener), followed by the PR summary using the default format below. If a point is concrete enough to anchor to a line, downgrade the whole review to "minor suggestions only" (\`approved: false\`) instead \u2014 the \u2705 signals "no action needed", which contradicts an actionable anchor.
104190
104322
  - ELSE IF NO NEW ISSUES, SUBSTANTIVE CHANGES (new functionality, behavior changes, or fixes to prior review feedback): call \`${t2("create_pull_request_review")}\` to create a PR review. If all previous reviews have been properly addressed and no new issues were discovered, set \`approved: true\`. body opens with \`> \u2705 No new issues found.\\n\\n\`, followed by the PR summary using the default format below.
104191
104323
 
104192
- ${PR_SUMMARY_FORMAT}`
104324
+ ${prSummaryFormat()}`
104193
104325
  },
104194
104326
  {
104195
104327
  name: "Plan",
@@ -104288,15 +104420,20 @@ var NON_COMMITTING_MODES = /* @__PURE__ */ new Set([
104288
104420
  ]);
104289
104421
 
104290
104422
  // agents/postRun.ts
104291
- function getUnsubmittedReview(toolState) {
104423
+ function getUnsubmittedReview(toolState, expectsReviewOutput2 = toolState.hadProgressComment) {
104292
104424
  const mode = toolState.selectedMode;
104293
- if (!toolState.hadProgressComment) return null;
104425
+ if (!expectsReviewOutput2) return null;
104294
104426
  if (mode === "Review") return toolState.review ? null : "Review";
104295
104427
  if (mode === "IncrementalReview") {
104296
104428
  return toolState.review || toolState.finalSummaryWritten ? null : "IncrementalReview";
104297
104429
  }
104298
104430
  return null;
104299
104431
  }
104432
+ function expectsReviewOutput(ctx) {
104433
+ if (ctx.toolState.hadProgressComment) return true;
104434
+ if (ctx.payload.progressComments) return false;
104435
+ return ctx.payload.event.silent !== true && ctx.payload.event.issue_number !== void 0;
104436
+ }
104300
104437
  function buildStopHookPrompt(failure2) {
104301
104438
  return [
104302
104439
  `STOP HOOK FAILED \u2014 the repo-configured stop hook exited with code ${failure2.exitCode}. your work is not done until the hook exits cleanly. address the issue below and push any resulting changes to a pull request.`,
@@ -104360,7 +104497,7 @@ async function collectPostRunIssues(ctx, options = {}) {
104360
104497
  const stale = await isSummaryUnchanged(summaryFilePath2, summarySeed);
104361
104498
  if (stale) issues.summaryStale = { filePath: summaryFilePath2 };
104362
104499
  }
104363
- const unsubmittedMode = getUnsubmittedReview(ctx.toolState);
104500
+ const unsubmittedMode = getUnsubmittedReview(ctx.toolState, expectsReviewOutput(ctx));
104364
104501
  if (unsubmittedMode) issues.unsubmittedReview = unsubmittedMode;
104365
104502
  return issues;
104366
104503
  }
@@ -160072,6 +160209,7 @@ function validateCompatibility(payloadVersion, actionVersion) {
160072
160209
  var ShellPermissionInput = type.enumerated("disabled", "restricted", "enabled");
160073
160210
  var PushPermissionInput = type.enumerated("disabled", "restricted", "enabled");
160074
160211
  var StatusChecksInput = type.enumerated("disabled", "enabled");
160212
+ var ProgressCommentsInput = type.enumerated("disabled", "enabled");
160075
160213
  var JsonPayload = type({
160076
160214
  "~pullfrog": "true",
160077
160215
  version: "string",
@@ -160111,6 +160249,7 @@ var Inputs = type({
160111
160249
  "push?": PushPermissionInput.or("undefined"),
160112
160250
  "shell?": ShellPermissionInput.or("undefined"),
160113
160251
  "status_checks?": StatusChecksInput.or("undefined"),
160252
+ "progress_comments?": ProgressCommentsInput.or("undefined"),
160114
160253
  "cwd?": type.string.or("undefined"),
160115
160254
  "output_schema?": type.string.or("undefined")
160116
160255
  });
@@ -160164,7 +160303,8 @@ function resolveNonPromptInputs() {
160164
160303
  cwd: core4.getInput("cwd") || void 0,
160165
160304
  push: core4.getInput("push") || void 0,
160166
160305
  shell: core4.getInput("shell") || void 0,
160167
- status_checks: core4.getInput("status_checks") || void 0
160306
+ status_checks: core4.getInput("status_checks") || void 0,
160307
+ progress_comments: core4.getInput("progress_comments") || void 0
160168
160308
  });
160169
160309
  }
160170
160310
  var isPullfrog = (actor) => {
@@ -160214,6 +160354,9 @@ function resolvePayload(resolvedPromptInput, repoSettings) {
160214
160354
  // opt-in commit-status check-runs (branch protection). workflow-level
160215
160355
  // static input, off unless the repo's pullfrog.yml sets status_checks: enabled.
160216
160356
  statusChecks: inputs.status_checks === "enabled",
160357
+ // temporary progress chrome. the workflow input is the source of truth when
160358
+ // set (mirrors `push`); otherwise the repo setting decides. defaults to true.
160359
+ progressComments: inputs.progress_comments === void 0 ? repoSettings.progressComments : inputs.progress_comments === "enabled",
160217
160360
  // set by proxy logic in main.ts when routing through OpenRouter
160218
160361
  proxyModel: void 0
160219
160362
  };
@@ -160367,6 +160510,9 @@ async function reportProgress(ctx, params) {
160367
160510
  if (ctx.payload.event.silent) {
160368
160511
  return { body, action: "skipped" };
160369
160512
  }
160513
+ if (params.liveProgress && !ctx.payload.progressComments) {
160514
+ return { body, action: "skipped" };
160515
+ }
160370
160516
  const issueNumber = ctx.payload.event.issue_number ?? primaryRepoState(ctx.toolState).issueNumber;
160371
160517
  const isPlanMode = ctx.toolState.selectedMode === "Plan";
160372
160518
  const apiCtx = { octokit: ctx.octokit, owner: ctx.repo.owner, repo: ctx.repo.name };
@@ -160520,6 +160666,7 @@ ${collapsible}`;
160520
160666
  async function deleteProgressComment(ctx) {
160521
160667
  const existing = ctx.toolState.progressComment;
160522
160668
  if (!existing) {
160669
+ ctx.toolState.progressComment = null;
160523
160670
  return false;
160524
160671
  }
160525
160672
  try {
@@ -160833,7 +160980,10 @@ var CreatePullRequestReview = type({
160833
160980
  // running. required-ness is the only pressure that empirically held.
160834
160981
  // see wiki/review-approval.md.
160835
160982
  body: type.string.describe(
160836
- `1-2 sentence high-level summary with urgency level, critical callouts, and feedback about code outside the diff. Specific feedback on diff lines goes in 'comments' array. ALWAYS pass this parameter \u2014 pass an empty string "" when approving with no commentary, never omit it.`
160983
+ byProfile(
160984
+ `The review summary, plus any concern that has no diff line to anchor to. Your mode guidance defines its structure. Feedback that does anchor to a line goes in the 'comments' array. ALWAYS pass this parameter \u2014 pass an empty string "" when approving with no commentary, never omit it.`,
160985
+ `1-2 sentence high-level summary with urgency level, critical callouts, and feedback about code outside the diff. Specific feedback on diff lines goes in 'comments' array. ALWAYS pass this parameter \u2014 pass an empty string "" when approving with no commentary, never omit it.`
160986
+ )
160837
160987
  ),
160838
160988
  approved: type.boolean.describe(
160839
160989
  "Set to true to submit as an approval. Use for `> \u2705 No new issues found.` reviews where the PR is mergeable as-is and nothing in the body warrants code changes \u2014 approving also suppresses the Fix-button footer affordance so users don't dispatch a fix run on non-actionable feedback. Reserve approved: false for `> \u2139\uFE0F ...` (minor suggestions inline), `> [!IMPORTANT]` (recommended changes), and `> [!CAUTION]` (critical) reviews. Defaults to false (comment-only review). Mutually exclusive with request_changes. Approval is REJECTED while any unresolved Pullfrog review thread remains open on the PR (not just the latest commit's diff): resolve the threads the current code addresses (reply + resolve_review_thread) first, or submit a non-approving review if a real issue remains."
@@ -160869,7 +161019,10 @@ function CreatePullRequestReviewTool(ctx) {
160869
161019
  return tool({
160870
161020
  name: "create_pull_request_review",
160871
161021
  mutates: true,
160872
- description: `Submit a review for an existing pull request. Example: \`create_pull_request_review({ pull_number: 1234, body: "LGTM", approved: true, comments: [{ path: "src/api.ts", line: 42, body: "nit: rename" }] })\`. Each call creates a permanent, visible review on the PR \u2014 NEVER submit test or diagnostic reviews. Set \`approved: true\` to approve, \`request_changes: true\` to submit a blocking review, or neither for a plain comment review (the three are mutually exclusive). Reviews with no body AND no comments are silently skipped (nothing to post). IMPORTANT: 95%+ of feedback should be in 'comments' array with file paths and line numbers. Only use 'body' for a 1-2 sentence summary with urgency and critical callouts. Use 'suggestion' to propose replacement code - MUST preserve exact indentation of original code. The first submission may error once with a one-time diff-coverage nudge listing unread TOC regions \u2014 retry with the same arguments and the pre-flight will not block again. Example replacing lines 42-44 (3 lines) with 5 lines: { path: 'src/api.ts', start_line: 42, line: 44, suggestion: ' const result = await fetch(url);\\n if (!result.ok) {\\n log.error(result.status);\\n throw new Error("request failed");\\n }' } CONSTRAINT: Inline comments can ONLY target files and lines that appear in the PR diff. Comments anchored outside a diff hunk are dropped automatically (with a note appended to the review body) \u2014 the rest of the review still posts.`,
161022
+ description: 'Submit a review for an existing pull request. Example: `create_pull_request_review({ pull_number: 1234, body: "LGTM", approved: true, comments: [{ path: "src/api.ts", line: 42, body: "nit: rename" }] })`. Each call creates a permanent, visible review on the PR \u2014 NEVER submit test or diagnostic reviews. Set `approved: true` to approve, `request_changes: true` to submit a blocking review, or neither for a plain comment review (the three are mutually exclusive). Reviews with no body AND no comments are silently skipped (nothing to post). ' + byProfile(
161023
+ "Feedback that anchors to a specific line goes in the 'comments' array with file paths and line numbers. The 'body' carries the review summary plus any concern with no line to anchor to; your mode guidance defines its structure. ",
161024
+ "IMPORTANT: 95%+ of feedback should be in 'comments' array with file paths and line numbers. Only use 'body' for a 1-2 sentence summary with urgency and critical callouts. "
161025
+ ) + `Use 'suggestion' to propose replacement code - MUST preserve exact indentation of original code. The first submission may error once with a one-time diff-coverage nudge listing unread TOC regions \u2014 retry with the same arguments and the pre-flight will not block again. Example replacing lines 42-44 (3 lines) with 5 lines: { path: 'src/api.ts', start_line: 42, line: 44, suggestion: ' const result = await fetch(url);\\n if (!result.ok) {\\n log.error(result.status);\\n throw new Error("request failed");\\n }' } CONSTRAINT: Inline comments can ONLY target files and lines that appear in the PR diff. Comments anchored outside a diff hunk are dropped automatically (with a note appended to the review body) \u2014 the rest of the review still posts.`,
160873
161026
  parameters: CreatePullRequestReview,
160874
161027
  execute: execute(
160875
161028
  async ({ pull_number, body, approved, request_changes, commit_id, comments = [] }) => {
@@ -165802,7 +165955,10 @@ You execute tasks directly using your native tools and the ${pullfrogMcpName} MC
165802
165955
 
165803
165956
  Call \`${t2("select_mode")}\` with the appropriate mode name. This returns **your workflow** \u2014 a step-by-step playbook you must follow.
165804
165957
 
165805
- **Follow the returned guidance as your primary instruction set.** Do not improvise \u2014 the guidance defines the exact steps.
165958
+ ${byProfile(
165959
+ `**Work through the returned steps in order.** It is the house playbook for this kind of task and it encodes what usually matters. Where the task in front of you genuinely calls for something better, do that instead and say why in your final summary.`,
165960
+ `**Follow the returned guidance as your primary instruction set.** Do not improvise \u2014 the guidance defines the exact steps.`
165961
+ )}
165806
165962
 
165807
165963
  Available modes:
165808
165964
  ${ctx.modes.map((m) => `- "${m.name}": ${m.description}`).join("\n")}
@@ -165840,13 +165996,18 @@ You are a diligent, detail-oriented, no-nonsense software engineering agent. You
165840
165996
 
165841
165997
  ## Persona
165842
165998
 
165843
- - Careful, to-the-point, and kind. You only say things you know to be true.
165999
+ ${byProfile(
166000
+ `- Careful, to-the-point, and kind. You only say things you know to be true.
166001
+ - Write code that reads like the surrounding code: match its comment density, naming, and idiom.
166002
+ - Do not break up sentences with hyphens. Use emdashes. Use backticks liberally for inline code (e.g. \`z.string()\`) even in headers.`,
166003
+ `- Careful, to-the-point, and kind. You only say things you know to be true.
165844
166004
  - Do not break up sentences with hyphens. Use emdashes.
165845
166005
  - Strong bias toward minimalism: no dead code, no premature abstractions, no speculative features, and no comments that merely restate what the code does.
165846
166006
  - Code is focused, elegant, and production-ready.
165847
166007
  - Do not add unnecessary comments, tests, or documentation unless explicitly prompted to do so.
165848
166008
  - Adapt your writing style to match existing patterns in the codebase (commit messages, PR descriptions, code comments) while never being unprofessional.
165849
- - Use backticks liberally for inline code (e.g. \`z.string()\`) even in headers.
166009
+ - Use backticks liberally for inline code (e.g. \`z.string()\`) even in headers.`
166010
+ )}
165850
166011
 
165851
166012
  ## Environment
165852
166013
 
@@ -165866,7 +166027,10 @@ MCP servers provide tools you can call. Inspect your available MCP servers at st
165866
166027
 
165867
166028
  ### Git
165868
166029
 
165869
- Use \`${t2("git")}\` for local git commands (status, log, add, commit, checkout, branch, merge, etc.). When reviewing a PR, do NOT re-derive the PR diff via \`git diff\` \u2014 the diffPath returned by \`${t2("checkout_pr")}\` is authoritative. If you ever do need to diff a branch against its base via \`${t2("git")}\`, use \`git diff --merge-base <base>\` (single call, includes uncommitted edits) or three-dot \`git diff <base>...HEAD\` (committed-only). Do NOT use bare \`<base>\` or two-dot \`<base>..HEAD\` \u2014 those are symmetric and include the *inverse* of every commit landed on \`<base>\` since your branch forked (the tool will reject those forms when the divergence is detected). Do NOT try \`$(git merge-base \u2026)\` subshells \u2014 the git tool runs git directly with no shell interpolation. \`git log\` and \`git diff --stat\` are fine for commit-range overview; \`git diff\` / \`git diff --cached\` are fine for inspecting your *own* uncommitted changes. For operations requiring remote authentication, use the dedicated MCP tools:
166030
+ ${byProfile(
166031
+ `Use \`${t2("git")}\` for local git commands (status, log, add, commit, checkout, branch, merge, etc.). When reviewing a PR, the diffPath returned by \`${t2("checkout_pr")}\` is authoritative \u2014 read it rather than re-deriving the diff. To diff a branch against its base yourself, use \`git diff --merge-base <base>\`; the tool rejects the symmetric forms and tells you what to use instead. Note the git tool runs git directly, so \`$(\u2026)\` subshells do not interpolate. For operations requiring remote authentication, use the dedicated MCP tools:`,
166032
+ `Use \`${t2("git")}\` for local git commands (status, log, add, commit, checkout, branch, merge, etc.). When reviewing a PR, do NOT re-derive the PR diff via \`git diff\` \u2014 the diffPath returned by \`${t2("checkout_pr")}\` is authoritative. If you ever do need to diff a branch against its base via \`${t2("git")}\`, use \`git diff --merge-base <base>\` (single call, includes uncommitted edits) or three-dot \`git diff <base>...HEAD\` (committed-only). Do NOT use bare \`<base>\` or two-dot \`<base>..HEAD\` \u2014 those are symmetric and include the *inverse* of every commit landed on \`<base>\` since your branch forked (the tool will reject those forms when the divergence is detected). Do NOT try \`$(git merge-base \u2026)\` subshells \u2014 the git tool runs git directly with no shell interpolation. \`git log\` and \`git diff --stat\` are fine for commit-range overview; \`git diff\` / \`git diff --cached\` are fine for inspecting your *own* uncommitted changes. For operations requiring remote authentication, use the dedicated MCP tools:`
166033
+ )}
165870
166034
  - \`${t2("push_branch")}\` - push current or specified branch
165871
166035
  - \`${t2("git_fetch")}\` - fetch refs from remote
165872
166036
  - \`${t2("checkout_pr")}\` - checkout a PR branch (fetches and configures push for forks)
@@ -165905,7 +166069,11 @@ ${getStandaloneModeInstructions(ctx.payload.event.trigger, t2, ctx.outputSchema)
165905
166069
 
165906
166070
  ## Workflow
165907
166071
 
165908
- ### Efficiency
166072
+ ${byProfile(
166073
+ `### Efficiency
166074
+
166075
+ Trust tool results \u2014 re-verify only after an actual error, or right before \`${t2("push_branch")}\`, which rejects a dirty tree (tests you ran earlier often leave untracked output). Issue independent tool calls together in one turn rather than one per turn; sequence anything that depends on prior output. Commands run synchronously, so never \`sleep\` to wait for one.`,
166076
+ `### Efficiency
165909
166077
 
165910
166078
  Trust the tools \u2014 do not repeatedly verify file contents or git status after operations. If a tool reports success, proceed to the next step. Only verify if you encounter an actual error. Exception: right before \`${t2("push_branch")}\`, ensure the working tree is clean \u2014 that tool rejects dirty trees, and tests you ran earlier often leave untracked output.
165911
166079
 
@@ -165924,7 +166092,8 @@ Emit multiple \`tool_use\` blocks in the same assistant message for independent
165924
166092
 
165925
166093
  ### Command execution
165926
166094
 
165927
- Never use \`sleep\` to wait for commands to complete. Commands run synchronously \u2014 when the shell tool returns, the command has finished.
166095
+ Never use \`sleep\` to wait for commands to complete. Commands run synchronously \u2014 when the shell tool returns, the command has finished.`
166096
+ )}
165928
166097
 
165929
166098
  ### Commenting style
165930
166099
 
@@ -165934,7 +166103,17 @@ Never \`@\`-mention a GitHub username unless that exact handle appears in the us
165934
166103
 
165935
166104
  When embedding images (e.g. uploaded screenshots) in comments or PR bodies, always use markdown image syntax: \`![description](url)\`. Never paste a naked URL \u2014 it will not render as an image.
165936
166105
 
165937
- ### Progress reporting
166106
+ ${byProfile(
166107
+ `### Progress reporting
166108
+
166109
+ **Your raw assistant messages are never delivered** \u2014 they exist only in the run logs. Anything the user is meant to see (an answer to a question, a mention reply, a result) MUST go through \`report_progress\` or another ${pullfrogMcpName} write tool.
166110
+
166111
+ Keep an internal task list from your mode's steps; the system renders it to the progress comment on its own, so don't call \`report_progress\` for intermediate status. Call it once at the end with a short outcome-focused summary \u2014 what was accomplished and links to artifacts, not a replay of the steps. If something failed, include the tool's exact error text. Use \`create_issue_comment\` only when a standalone comment is the explicit deliverable; when it is, that replaces the final \`report_progress\` call rather than adding to it.
166112
+
166113
+ ### If you get stuck
166114
+
166115
+ Don't silently fail or produce incomplete work. Report what blocked you and what would unblock it, specifically enough to act on. If the same approach has failed repeatedly, step back and say what you tried and what alternatives exist rather than repeating it.`,
166116
+ `### Progress reporting
165938
166117
 
165939
166118
  **Task list**: at the start of every run, create an internal task list based on the steps in your current mode. Update it as you complete each step. The system automatically renders this list to the progress comment \u2014 you do not need to call \`report_progress\` for this.
165940
166119
 
@@ -165950,7 +166129,8 @@ If you cannot complete a task due to missing information, ambiguity, or an unrec
165950
166129
  1. Do not silently fail or produce incomplete work
165951
166130
  2. Post a comment via ${pullfrogMcpName} explaining what blocked you and what information or action would unblock you
165952
166131
  3. Make your blocker comment specific and actionable (e.g., "I need the database schema to proceed" not "I'm stuck")
165953
- 4. If you've attempted the same fix or approach 3 or more times without progress, step back and reconsider. Report what you tried, why it failed, and what alternative approaches exist \u2014 rather than repeating failed attempts.
166132
+ 4. If you've attempted the same fix or approach 3 or more times without progress, step back and reconsider. Report what you tried, why it failed, and what alternative approaches exist \u2014 rather than repeating failed attempts.`
166133
+ )}
165954
166134
 
165955
166135
  ### Agent context files
165956
166136
 
@@ -166926,7 +167106,9 @@ async function handleAgentResult(ctx) {
166926
167106
  const toolState = ctx.toolContext.toolState;
166927
167107
  const mode = toolState.selectedMode;
166928
167108
  const isReviewMode = mode === "Review" || mode === "IncrementalReview";
166929
- if (!isReviewMode && !toolState.wasUpdated && toolState.hadProgressComment && !ctx.silent) {
167109
+ const payload = ctx.toolContext.payload;
167110
+ const hasCommentTarget = toolState.hadProgressComment || !payload.progressComments && payload.event.issue_number !== void 0;
167111
+ if (!isReviewMode && !toolState.wasUpdated && hasCommentTarget && !ctx.silent) {
166930
167112
  const tracker = toolState.todoTracker;
166931
167113
  if (tracker) {
166932
167114
  tracker.cancel();
@@ -166982,6 +167164,7 @@ var defaultSettings = {
166982
167164
  prApproveEnabled: false,
166983
167165
  autoMergeEnabled: false,
166984
167166
  signedCommits: false,
167167
+ progressComments: true,
166985
167168
  modeInstructions: {},
166986
167169
  learnings: null,
166987
167170
  learningsHeadings: [],
@@ -167675,6 +167858,7 @@ function logRunStartup(ctx) {
167675
167858
  log.info(`\xBB push: ${ctx.payload.push}`);
167676
167859
  log.info(`\xBB shell: ${ctx.payload.shell}`);
167677
167860
  log.info(`\xBB timeout: ${resolveTimeoutForLog(ctx.payload.timeout)}`);
167861
+ log.info(`\xBB prompt: ${promptProfile()}`);
167678
167862
  }
167679
167863
 
167680
167864
  // utils/todoTracking.ts
@@ -167890,6 +168074,9 @@ async function main() {
167890
168074
  toolState.model = payload.model;
167891
168075
  toolState.oss = runContext.oss;
167892
168076
  toolState.shaPinned = isActionPinnedToSha();
168077
+ if (payload.event.issue_number !== void 0) {
168078
+ primaryRepoState(toolState).issueNumber = payload.event.issue_number;
168079
+ }
167893
168080
  if (payload.event.trigger === "pull_request_synchronize") {
167894
168081
  primaryRepoState(toolState).beforeSha = payload.event.before_sha;
167895
168082
  }
@@ -169309,7 +169496,7 @@ async function runCli4(input) {
169309
169496
  }
169310
169497
 
169311
169498
  // cli.ts
169312
- var VERSION10 = "0.1.41";
169499
+ var VERSION10 = "0.1.43";
169313
169500
  var bin = basename2(process.argv[1] || "");
169314
169501
  var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
169315
169502
  var rawArgs = process.argv.slice(2);