Skip to content

✨ Improve agent context drill-downs#324

Merged
Robdel12 merged 1 commit into
mainfrom
rd/agent-context-usability
Jul 22, 2026
Merged

✨ Improve agent context drill-downs#324
Robdel12 merged 1 commit into
mainfrom
rd/agent-context-usability

Conversation

@Robdel12

Copy link
Copy Markdown
Contributor

Why

Large visual builds could only hand an agent the first ten actionable comparisons or the entire raw build payload. Focused comparison context also exposed the same Honeydiff evidence under a different shape, while transport failures collapsed useful configuration clues into a generic fetch failed message.

Approach

Keep the API authoritative and make the CLI projection easier to continue through. Compact build context now accepts an evidence offset, reports exact paging facts, and returns an executable next-page command without ranking or inventing evidence. Focused comparison context gains an agent JSON projection built from the existing normalizer, while raw and full JSON remain unchanged.

Network handling changes only genuine fetch failures. The error identifies the resolved API origin and underlying transport cause; token selection and authentication behavior are untouched.

Evidence

The CLI subprocess coverage exercises an unreachable API, the second page of an eleven-comparison build, and focused comparison normalization with real region geometry. The complete test suite, lint, type definitions, production build, package dry-run, and packaged skill validation all pass.

--offset pages the bounded agent projection rather than the HTTP response itself. Its purpose is to keep prompt context manageable while preserving API order and lossless raw access.

Let agents page bounded build evidence and normalize focused comparison context without changing raw API payloads. Surface the resolved API origin on network failures so configuration mistakes are immediately diagnosable.
@Robdel12
Robdel12 enabled auto-merge (squash) July 22, 2026 23:31
@Robdel12
Robdel12 merged commit 48c3ad5 into main Jul 22, 2026
28 of 30 checks passed
@Robdel12
Robdel12 deleted the rd/agent-context-usability branch July 22, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant