qodoloop
Qodoloop
Fix every actionable Qodo finding on a PR, answer each thread, resolve it, and keep going until Qodo has nothing left to say (or a finding needs a human call).
Inputs
- PR number (optional): detect from the current branch if not given.
- Include optional findings (optional, default off): Qodo tags each finding "Review recommended" (actionable) or "Optional" (informational/lower-confidence). By default only "Review recommended" findings count toward done; pass
--include-optionalto also fix and resolve the optional ones.
How Qodo actually posts (verified against a live install: don't assume otherwise)
Qodo runs as qodo-code-review[bot] and posts two independent things per review pass, not one:
- A rollup issue comment titled
<h3>Code Review by Qodo</h3>: human-readable, all findings in one place. A separate<h3>PR Summary by Qodo</h3>comment is a plain description, not a review: ignore it. While running, Qodo posts<h3>Qodo is busy working</h3>as its own comment (not an edit of a prior one). - A formal PR review (
state: COMMENTED) carrying one inline review comment per finding, each a real, resolvable GitHub review thread at the finding's file/line: same machinery as any human inline comment.
Use the inline threads as the source of truth. They carry isResolved state natively (fetch via GraphQL, see references/graphql-queries.md), so "done" is answerable directly instead of re-parsing the rollup's HTML on every iteration. Each thread's body contains a <details><summary>Agent Prompt</summary> (or **Agent Prompt**) section with a ready-made fix spec, and a severity badge image whose alt text is Remediation recommended or Informational (recommended ↔ "Review recommended", informational ↔ "Optional").
Qodo has no check run to poll: there is nothing in gh pr checks to wait on. Completion means a new qodo-code-review[bot] comment/review appears after your push; poll comments, not checks.