Repository navigation
Adaptive Prompt Cache Keep-Alive for Multi-Model Orchestration #49708
PhysicalClue611
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Motivation
I currently use Gemini 4 Neon via Antigravity as my orchestrator for requirements analysis, architecture, task delegation, and review, while Codex serves as my execution worker.
My orchestrator sessions frequently accumulate 300–800K tokens. After delegating tasks, the orchestrator may remain idle for an extended period. Returning to the conversation after prompt-cache eviction can incur substantial quota consumption.
This is a structural problem for multi-model orchestration workflows.
Proposal: Adaptive Prompt Cache Management
T3 Code is uniquely positioned to manage prompt-cache lifecycles at the session layer, rather than requiring users to maintain external keep-alive scripts.
I would propose three complementary capabilities:
1. Cache Telemetry
2. Adaptive Keep-Alive
3. Quota-Aware Circuit Breaker
Automatically suspend keep-alive when:
Keep-alive should be disabled by default and should never generate indefinite background requests.
Validation
Whether model-level keep-alive actually extends Antigravity's server-side cache lifetime requires controlled testing. A transport heartbeat alone does not establish that prompt caching has been preserved.
The objective should be measurable net quota savings, not merely higher cache-hit rates.
Why T3 Code?
As coding workflows increasingly separate planning and orchestration from execution, different models have fundamentally different session lifecycle requirements.
Execution workers can operate with relatively short-lived contexts. Orchestrators need persistent, expensive context across multiple delegation and review cycles.
I believe prompt-cache lifecycle management should become a first-class capability of multi-provider agent orchestration platforms.
I'd be interested in the maintainers' thoughts on whether this fits T3 Code's architecture and roadmap.
Related discussions in the issue tracker: #49705, #45567 and #43125.
All reactions