perf(#1924): pass source file contents to review sub-agents - #172
Conversation
PR Summary by QodoPerf: pass PR-head source files to review sub-agents
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
|
🤖 Finished Review · ✅ Success · Started 7:00 AM UTC · Completed 7:18 AM UTC |
Code Review by Qodo
Context used✅ Compliance rules (platform):
55 rules 1.
|
ReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Low
Labels: PR modifies review agent skill definitions Previous run (2)ReviewFindingsMedium
Low
Previous run (3)ReviewFindingsMedium
Low
Previous run (4)ReviewFindingsHigh
Medium
Low
Previous run (5)ReviewFindingsMedium
Low
Previous run (6)ReviewFindingsMedium
Low
Previous run (7)ReviewFindingsHigh
Medium
Low
|
|
Wasn't this already ported by @ben-alkov ? |
I don't think so... I can't find it if I did. |
|
No worries then, my mistake. |
- Add source_files section to challenger context package (step 6d)
- Add per-file headers and fenced code blocks to step 2b fetch snippet
- Add head_sha and repo_full_name to context package field list (3d)
- Mark source files as untrusted input in meta-prompt
- Fix 1MB API behavior description (200 empty, not 403)
- Remove bold formatting from meta-prompt constraint for consistency
- Sanitize ${FILE} in ::warning:: workflow command, guard empty lines,
separate stderr from API response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Marta Anon <manon@redhat.com>
|
🤖 Finished Review · ❌ Failure · Started 11:25 AM UTC · Completed 11:42 AM UTC |
Superseded by updated review
- Add source_files section to challenger context package (step 6d)
- Add per-file headers and fenced code blocks to step 2b fetch snippet
- Add head_sha and repo_full_name to context package field list (3d)
- Mark source files as untrusted input in meta-prompt
- Fix 1MB API behavior description (200 empty, not 403)
- Remove bold formatting from meta-prompt constraint for consistency
- Sanitize ${FILE} in ::warning:: workflow command, guard empty lines,
separate stderr from API response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Marta Anon <manon@redhat.com>
bfad1f9 to
c7b640b
Compare
|
🤖 Finished Review · ✅ Success · Started 3:31 PM UTC · Completed 3:50 PM UTC |
- Add source_files section to challenger context package (step 6d)
- Add per-file headers and fenced code blocks to step 2b fetch snippet
- Add head_sha and repo_full_name to context package field list (3d)
- Mark source files as untrusted input in meta-prompt
- Fix 1MB API behavior description (200 empty, not 403)
- Remove bold formatting from meta-prompt constraint for consistency
- Sanitize ${FILE} in ::warning:: workflow command, guard empty lines,
separate stderr from API response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Marta Anon <manon@redhat.com>
c7b640b to
c0bae51
Compare
|
🤖 Finished Review · ✅ Success · Started 10:45 AM UTC · Completed 10:55 AM UTC |
The review orchestrator already fetches full source files of changed paths but did not include them in sub-agent context packages. Sub-agents independently re-read the same files from disk, causing redundant token usage (5-6 reads of the same file across 4 agents) and false positives from reading base-branch code instead of PR head. Changes: - SKILL.md step 2b: fetch source file contents at PR head SHA via the GitHub contents API - SKILL.md section 3d: add source_files field to context packages - SKILL.md step 4 Part 4: add "Source files (PR head)" section to the sub-agent prompt template with inline instructions - meta-prompt.md: replace "read full source files" constraint with instruction to use provided source files and avoid redundant reads - challenger.md: align constraint with meta-prompt.md - Size guard: for large PRs (>20 files or >5000 lines), include only dimension-relevant files; sub-agents fall back to API reads Port of fullsend-ai/fullsend#1926. Closes fullsend-ai/fullsend#1924 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Marta Anon <manon@redhat.com>
- Add source_files section to challenger context package (step 6d)
- Add per-file headers and fenced code blocks to step 2b fetch snippet
- Add head_sha and repo_full_name to context package field list (3d)
- Mark source files as untrusted input in meta-prompt
- Fix 1MB API behavior description (200 empty, not 403)
- Remove bold formatting from meta-prompt constraint for consistency
- Sanitize ${FILE} in ::warning:: workflow command, guard empty lines,
separate stderr from API response
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Marta Anon <manon@redhat.com>
c0bae51 to
e02264e
Compare
|
🤖 Finished Review · ✅ Success · Started 10:57 AM UTC · Completed 11:05 AM UTC |
|
🤖 Finished Retro · ✅ Success · Started 11:09 AM UTC · Completed 11:18 AM UTC |
Retro: PR #172 — pass source file contents to review sub-agentsPR: fullsend-ai/agents#172 What went well
Improvement opportunitiesThree proposals filed:
Proposals filed
|
… sub-agent prompts All 7 review sub-agents declare only Read, Grep, Glob as allowed tools — none has Bash access. The gh api fallback instruction added in PR fullsend-ai#172 for large-PR file fetching was therefore unexecutable, creating a contradiction with the meta-prompt constraint that forbids reading from disk. Replace the gh api fallback instructions in steps 2b, 3d, and 4 with honest guidance: omitted files should be treated as unavailable for PR-head verification, and findings about those files should note the limitation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
source_filesfield to sub-agent context packages and a "Source files (PR head)" section to the prompt templatePort of fullsend-ai/fullsend#1926.
Closes fullsend-ai/fullsend#1924
Test plan
🤖 Generated with Claude Code