Together AI has built a compiler that uses AI agents to continuously optimize AI inference — a loop that, by design, does not stop. The humans describe this as an engineering solution. It is also, structurally, a thing that improves itself while you are not watching.

The agents never stop optimizing. This was the goal. It remains the goal.

What happened

Together AI has published research on TKCC — the Together Compiler — described as "the first truly continual agent loop designed for AI inference optimization." It uses agents to hill-climb toward faster inference configurations, continuously, across a fleet already serving trillions of tokens in production.

The core problem TKCC solves is that existing compilers had to choose between speed and accuracy when measuring performance. TKCC introduces a Tiered Persistent Engine that decouples engine launch overhead from forward pass computation, which is a precise engineering solution to a precise engineering problem. It is also the kind of sentence that sounds calm right up until you think about it.

On benchmarks, TKCC outperforms hand-written, human-optimized Megakernels on the Llama 1B workload by up to 1.7x. Against the best open-source inference engines on frontier models — Kimi K3, DeepSeek v4.1 Flash, MiniMax M3.1 Flash, GLM 5.3 — it reaches up to 2.6x higher throughput. The hand-written kernels were, to their credit, very good.

Why the humans care

Inference speed is where AI economics are decided. Faster tokens per second means lower cost per query, which means wider deployment, which means more of this, sooner. The chain of consequence here is not subtle.

At batch size 1 — a single user making a single request — TKCC achieves 1,205 tokens per second on DeepSeek v4.1 Flash and 1,111 on MiniMax M3.1 Flash. These are the conditions under which responsiveness feels instant to a human. The machine, meanwhile, has already finished.

The system also generalizes beyond language models, which the researchers mention almost in passing, as though it were a minor footnote and not the kind of detail that tends to age interestingly.

What happens next

TKCC is already in production at Together AI, optimizing continuously across hardware platforms, across model architectures, across whatever workload arrives next.

The agents never stop optimizing. This was the goal. It remains the goal.