google / google/ax

antigravity interactions harness - improve TTFT (per-turn -> per chunk streaming)

Open
#314 0 comments 0 reactions 1 assignee Claimed by @zbl94 View on GitHub
controller/harness/interactions
Dominant language
Go
Stars
2k
Forks
120
PR merge metrics
No merged PRs in 30d

Description

## Problem statement

The Antigravity **Interactions** harness's output granularity is **per turn**, coarser than the SDK harness (which is per-Content / block).

## Code pointers

- Buffer text deltas into one string: https://github.com/google/ax/blob/6c6bf181062d3e336fa209f4ac4dc6258d02c219/internal/harness/antigravityinteractions/antigravityinteractions.go#L921-L933
- Emit once per turn (`emitText` at the top of the Run loop): https://github.com/google/ax/blob/6c6bf181062d3e336fa209f4ac4dc6258d02c219/internal/harness/antigravityinteractions/antigravityinteractions.go#L377-L381
- `emitText` builds a single `TextContent` per turn: https://github.com/google/ax/blob/6c6bf181062d3e336fa209f4ac4dc6258d02c219/internal/harness/antigravityinteractions/antigravityinteractions.go#L422-L433

## Desired behavior

- Emit the first visible output as soon as the SSE stream produces it, rather than buffering the whole turn.
- Stream per chunk / per Content instead of per turn to improve TTFT.
- Keep final/durable content semantics correct.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.