Agent harness · Go
Chwal
A review desk that keeps a change, its revision and the agent session in view.
Review a pinned revision
This change opens the revision you selected. See what happens when a newer commit lands.
- Revision in review
8de2af1- Branch head
8de2af1
Both references start on the same commit.
Patch in review
func revisionForReview(selected, latest Change) string {
− return latest.Revision
+ return selected.Revision
}
Read the surrounding code
package review
type Change struct {
Revision string
}
func revisionForReview(selected, latest Change) string {
return selected.Revision
}
Draft a review note
Harness for the next run
A harness pairs a named setup with a model route. Choose one before starting an agent review.
- Selected harness
- Patch review
- Model route
- Local runtime
Which change am I actually reviewing?
I can start from a Gitea pull request, a local commit or the edits in a working tree. The desk keeps that scope in view as I move between the patch and the whole file. Writing a review and posting it are separate decisions.
The harness also tracks agent sessions and local model processes. When a run finishes, its trace gives me somewhere to check what happened before I send a comment back.
Project evidence
At revision 6c9fef2efe the review tests distinguish pending edits from commits. TestGiteaPRScopeAndComments exercises the pull-request scope and its comments.