Kept chat
The whole conversation goes back to the model every turn; each reply is applied as it comes.
- Seconds for this step
- Seconds to first token
AXI · a layer on the host side
One job, 1,500 steps, run two ways on Gemini 3.8 Flash. The kept chat re-sends the whole conversation each turn. With AXI the host holds the exact state, the model proposes one change per step, a deterministic gate admits or refuses it, and the prompt is rebuilt short each step. The model is unchanged. Drag the slider to any turn.
Architecture by Rajnish Choubey; tests by Shalendra Gaur. AXI is for the company that runs the model, and the numbers here are about the state the host holds.
git clone https://github.com/gaurshalendra2412/axi-runtime cd axi-runtime/python PYTHONPATH=.:tests python3 tests/test_gemini_long_result.py
Recomputes the figures of this run from the saved replies: no API key, no model, no GPU. Expect 6/6 passed. Saved file: docs/results/axi_gemini_long_session_seed20261111_default.json, sha256 7ba26d2946ec20ddd8a2085f18c6a2eee9ac3fb02025209158ce67a91faf29c6. For the 4,000-request run: python3 quickstart_replay.py in the same folder. Test page: docs/GEMINI_LONG_TEST.md.
The whole conversation goes back to the model every turn; each reply is applied as it comes.
The host holds the exact state and rebuilds a short prompt each step; the gate checks every proposal.
One linear scale from 0 to 1,000,000 tokens. AXI's line sits at about 2,824 tokens on every turn, between 2,347 and 3,112. The kept chat's mean of 476,835 is over its 456 steps that were live model calls (turn 1 was read from file, with the same numbers as AXI's turn 1); over all 457 rows it is 475,797. The test page publishes 476,835 and the ratio 169.
Counted in nodes and edges against the oracle's state after each turn.
| Turn | Kept chat prompt | AXI prompt | Kept chat seconds | AXI seconds | Kept chat items off | AXI items off |
|---|