Execution (3): Adding AI Features to Your Product

Execution (3): Adding AI Features to Your Product#

A chip floating above an open product box, a scale weighing coins against a cloud, and a warmly glowing cache drawer

If the previous chapter was about “building a product with agents,” this chapter is about “putting AI inside the product.” They are different problems. The former is about the tools I use; the latter is about the structure and cost of my product calling a model on behalf of its users. In a one-person startup, mixing the two breaks your cost structure, and separating them simplifies your design.

I Dug Into Prompt Caching and Found That Hit Rate Isn't the Goal

I Dug Into Prompt Caching and Found That Hit Rate Isn’t the Goal#

2026-08-05

Prompt content stacked like geological strata by change frequency, with the lower layers reused from cache

It Started With “Where Does This Actually Happen?”#

I knew prompt caching reduced costs. My understanding went about as far as: when you send the same system prompt repeatedly, it gets cheaper from the second request onward.

But the more I thought about it, the stranger it seemed. If caching happens in some relay layer outside the model, then from the model’s point of view nothing is saved. And yet the savings are said to reach 90%. Would that mean most of the cost of using an LLM (Large Language Model) comes not from the model itself but from the layer around it?

© 2026 Ted Kim. All Rights Reserved. | Email Contact