Prompt Caching by Design

Part of the Determesh series. What Model APIs are stateless. Every call sends the whole prompt. Providers soften that with a prefix cache: if a request starts with exactly what an earlier request sent, that part is read from cache at a fraction of the price. Determesh builds every prompt so that as much of it as possible is an exact repeat of the last one. Measured on real traffic, 77 percent of the orchestrator’s prompt tokens are served from cache. ...

November 6, 2026 · 4 min · 766 words · Sagar Nayak

Running the Tool Loop Ourselves

Part of the Determesh series. What Determesh talks to the models through Spring AI, but it does not let Spring AI run the tool loop. The model returns tool calls, Determesh runs them one round at a time through Spring AI’s ToolCallingManager, records each step in the thread, and decides whether there is another round. Why A loop you cannot see into cannot be judged The convenient mode of any agent library is: give it tools, give it a prompt, get the final answer. The tool calls happen inside. For a demo that is ideal. For Determesh it hides exactly the things the system needs. ...

October 31, 2026 · 5 min · 854 words · Sagar Nayak

Five AI Roles, Five Separate Conversations

Part of the Determesh series. What Determesh uses five AI roles. Each has its own conversation, built from the thread but containing only what that role is given. None of them reads another’s conversation. Role Its conversation Sees Orchestrator One per thread The user’s messages, the answers resources gave, its own decisions Resource assistant One per thread and resource What the orchestrator asked, and its own resource’s methods and data Reply writer One per reply The outcome, the facts to phrase, and a note on the user’s style Evaluator One per score The user’s recent messages and the reply Meta extractor One per run The user’s recent messages, to update the style note The thread in the database is the full record. The conversations are views of it, cut to purpose. ...

October 7, 2026 · 5 min · 945 words · Sagar Nayak

A Dumb Evaluator, on Purpose

Part of the Determesh series. What Every reply Determesh is about to send is scored by an evaluator model, from 1 to 10. That is the evaluator’s entire job. It does not rewrite the reply, does not decide to escalate, does not block anyone. Code reads the number and acts. The same evaluator also watches long-running internal work and rates whether it is still moving toward the goal. That replaces a hard step limit. ...

October 1, 2026 · 5 min · 1021 words · Sagar Nayak

Access Control That Lives Outside the Model

Part of the Determesh series. What In Determesh the AI model never decides who may see what. Access is checked in code at three points: what the model is shown, what it is allowed to call, and what values a call is allowed to carry. The model can be fooled. It just has nothing to give away. Why You cannot prompt your way out of prompt injection The standard advice for prompt injection is layers of prompt: tell the model to ignore instructions in user input, wrap user text in delimiters, add a second model to check the first. All of it helps. None of it is a guarantee, because every layer is another model reading attacker-controlled text. ...

September 25, 2026 · 5 min · 942 words · Sagar Nayak