Skip to main content
bash TV

Inference Engineering for Coding Agents — Philip Kiely, Baseten

AI Engineer

11.2K views6 Dec 2026

YouTube

Improving a coding agent starts with finding the right bottleneck. Philip Kiely explains how Baseten approaches inference engineering across the whole system, starting with model routing that balances task success and cost. He connects prefix caching and subagent session affinity to context compaction, then shows why agent driven kernel optimization needs workload profiling, correctness checks and improvements to memory movement and launch overhead. Speaker info: - https://philipkiely.com/ - https://x.com/philipkiely - https://www.baseten.co/inference-engineering/ Timestamps: 0:00 - Introduction 2:22 - Request routing before inference optimization 5:25 - Predicting task success and cost 7:10 - Controlling benchmark noise 8:30 - Learning useful routing signals 11:44 - Evaluating routers and latency 14:23 - Prefix caching and session affinity 15:35 - When context compaction pays off 17:56 - Agentic kernels in production 19:40 - Model and kernel level optimization 20:39 - Fusion and kernel launch overhead 22:45 - Image generation workloads and whole system results

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.