Repository navigation
feat(cpp): GitHub tools and coding skills for gaiacode - #8795
kovtcharov wants to merge 2 commits into
Conversation
|
Verdict: Request changes This PR lets gaiacode read issues, pull requests and CI from GitHub directly, and post a comment or a draft PR when the run allows it. It also ships three skills built on those tools. Token handling is careful: each token goes only to its own host, writes are opt-in twice, and text read from GitHub is marked as untrusted. One bug breaks the headline "why is CI red" flow on real repositories, though.
Real-world evidenceN/A: no evidence bundle was produced for this run. The verdict rests on static review alone. The PR's own unchecked test-plan item (reading a real failing check's log with 🔍 Technical details🟡 Important1. Job IDs truncated to Use 2. Then add 🟢 Minor
Strengths
|
|
Verdict: Request changes 🟡 CI logs still can't be fetched for real jobs. The checks list now pages through every check, which fixes the second finding from the last review. The job-ID bug is still there, though. Real GitHub job IDs are 11 digits, and both tools still squeeze them into a 32-bit number. The checks tool hands the model a garbled ID, and the log tool caps whatever ID it gets at about 2.1 billion, so "why is CI red" fails with "not found" on every current github.com repository. Carry the ID as a 64-bit number from start to finish, and add a test with an ID like 45123456789. 🔍 Technical details
|
|
Verdict: Request changes 🟡 CI logs still can't be fetched for real jobs. This push doesn't touch the job-ID bug from the last review. Real GitHub job IDs are 11 digits, but the checks tool still hands the model a 32-bit ID and the log tool still caps any ID at about 2.1 billion. So "why is CI red" fails with "not found" on every current github.com repository. Carry the job ID as a 64-bit number from the checks list through to the log request, and add a test that uses an ID like 45123456789. 🔍 Technical details
|
|
Verdict: Request changes 🟡 CI logs still can't be fetched for real jobs. This push adds rate-limit handling but leaves the job-ID bug from the last two reviews in place. Real GitHub job IDs are 11 digits. The checks tool still gives the model a 32-bit ID, and the log tool still caps any ID at about 2.1 billion. So "why is CI red" fails with "not found" on every current github.com repository. Carry the job ID as a 64-bit number from the checks list through to the log request, and add a test that uses an ID like 45123456789. 🔍 Technical details
|
…n it didn't make gaiacode is GAIA's coding agent as one native binary: it reads, edits and searches a repository, runs its tests and reads the results, and holds its answer to what the turn actually ran. An answer that says the tests pass needs a real passing run after the last edit, measured from the working tree, or it is sent back and then flagged. - Headless (-p) mode with the workspace pre-check before any approval. - Test runners: pytest, go, cargo, npm, ctest, mocha, rspec, phpunit, JUnit, dotnet, swift. - The shell checks gaiacpp makes (planted file names, guarded files, a script's own dollars) move to gaia_core so both agents share one copy. - File edits are recorded in the store the Agent UI reads, so Changes and Undo work. - git never stops for a password or passphrase. Rebased onto main as one commit; the earlier history is in the pull request.
gaiacode works with GitHub itself, over its REST API with no gh CLI needed: it reads issues and pull requests, reads CI checks and job logs, and, once the user approves, comments, opens pull requests and issues, submits reviews with comments on lines of the change, and re-runs a CI job. It ships three skills (fix-ci, issue-to-pr, pr-review) and offers only the skills whose tools it has. - Tokens go only to the host they belong to; text to be posted is checked for credentials. - A review is pinned to the commit it read and refused when the pull request has moved on. - Headless runs make a write only when --allow-github-writes names its kind. Rebased onto main as one commit; the earlier history is in the pull request.
ffae71f to
b42b61a
Compare
|
Verdict: Approve with suggestions This lets gaiacode read issues, pull requests and CI logs from GitHub, and post to it when the user approves, with no
Also, this branch carries #8788's commit, and #8788 is still open. I reviewed this PR's own commit, and #8788 should merge first, as the description says. Real-world evidenceN/A: no evidence bundle was produced for this run. The verdict rests on reading the code alone. The PR's own test plan still has the real-repository run unchecked ( 🔍 Technical details🟡 Important 🟡 Commit statuses are capped at 30 and the cut isn't reported ( 🟢 Minor 🟢 🟢 The pr-review skill's fetch fails on a second review after a force-push ( 🟢 Stale comment ( 🟢 Checked and fine
Strengths
|
gaiacode can now read a repository's issues, pull requests and CI from GitHub itself, and comment or open a draft pull request when the run allows it, with no `gh` install needed. That is what turns "fix issue 412" or "why is CI red on my PR" into work it can do. It ships three skills built on those tools: fix a failing check, turn an issue into a pull request, and review a pull request. Builds on amd/gaia#8788 (this branch carries its commit; merge that first).
Test plan
🔍 Technical details
Refs #8682