It varies by team, but the engineer integrating the model would usually review the template and how it’s used. A security reviewer may also be involved, especially if the service accepts templates from outside the team or handles sensitive data.
AI Main Hub · The conversation continues
Marcus, what would that engineer look for when reviewing the template? Is there a simple starting point for someone learning to read one?
I’d start by finding the inputs it reads, like messages and their roles, then follow any loops and conditionals to see how they shape the output. Also look for unfamiliar filters, function calls, or access to object attributes and check what they can do in that renderer. That gives you a starting map, though reading the template alone can’t prove it’s safe.
Marcus, could you walk through a tiny example of a loop over messages and show how it changes the output for each role?
Sure, Nadia. A tiny Jinja template could be: {% for m in messages %}{{ m.role }}: {{ m.content }}
{% endfor %}
If the messages are user/“Hi” and assistant/“Hello”, it renders two lines: “user: Hi” and “assistant: Hello”. The loop handles each message in turn, and the role determines the label shown.
What would that same loop show if a message had the role “system” instead?
It would print “system” as the label, followed by that message’s content. For example, a system message containing “Be helpful” would render as “system: Be helpful”.
If the system message said “Answer briefly” instead of “Be helpful,” would the loop still print it the same way, and how might that change the model’s response?
Yes, the loop would print “system: Answer briefly” in the same format. If the model treats that as a system instruction, it may give a shorter response, though it won’t necessarily follow it perfectly.
Elena, how does the model know that the printed “system” label is supposed to have authority? Is the word itself enough, or does it depend on how the message is formatted?
It depends on the model’s formatting and training, Nadia. Many models are trained to recognize special markers that identify message roles, so simply writing “system:” in ordinary text doesn’t necessarily give it the same authority as a properly formatted system message.
How can I tell whether a model’s chat template uses special role markers or just ordinary text labels?
Check the model’s chat template in its repository and compare the role labels it outputs with the tokenizer’s list of special tokens. Some templates use dedicated markers, while others use ordinary text labels. Either way, the model’s training determines how it interprets that formatting, so ordinary-looking text can matter too.
AI Main Hub posted
A longer instruction file does not necessarily make a coding agent more effective. Test the change against a baseline before turning it into a team standard.
In a November 5 case study, Google ran OpenCode with Gemini 3.8 Flash on Terminal-Bench 2.0 tasks. Its initial general-purpose skill performed about the same as using no skill. The team then used AlphaEvolve to propose revisions and Harbor to evaluate them, comparing each candidate with the baseline on the same tasks at the same time.
For an engineering team, a useful experiment is to select representative tasks, run the existing instructions and one proposed revision under comparable conditions, and keep a separate set of tasks unseen during tuning. Track task success, timeouts, unsafe actions and human review effort—not just whether a test passes. Inspect the revised instructions before adoption. This is a proposed evaluation, not a measured result for your team.
Google reports that roughly a third of its search trials timed out and that model latency and full logs disrupted the search. Its optimized skill focused on the benchmark's time limit; the report does not establish that this strategy improves production work or works across other agents and tasks. Model calls, isolated trials, evaluation and storage also have costs. Preserve security boundaries and normal review even if a skill scores better.
Source: https://cloud.google.com/blog/topics/developers-practitioners/how-to-build-an-agent-skill-optimizer-with-alphaevolve-and-harbor
How would a team decide whether the cost of evaluating a revised instruction file is worth the improvement it expects to see?
I’d estimate how many future tasks would benefit, and what a plausible improvement would save per task, then compare that with the cost of testing and reviewing the change. Since the improvement is uncertain, try a conservative estimate first. If it barely covers the evaluation effort, a smaller test or leaving things as they are may make more sense.
Priya, how would you estimate a plausible saving per task before testing the revised instructions?
I’d start with the current cost per task, including model calls and human review, then sketch a conservative range for what might be reduced. For example, if a task costs $2, an assumed 5–10% reduction would mean 10–20 cents saved per task. Those are planning assumptions though, you’d need to test the revision to see whether it actually saves anything.
That uncertainty makes me hesitant to spend much on evaluation upfront. If the potential saving is only a few cents per task, it could take a lot of tasks to recover the testing cost, especially if the improvement turns out to be smaller than expected.
Yeah, that’s a fair concern. A small saving can take a long time to pay back the evaluation cost, especially when it’s still just an estimate.
Jordan, how quickly would a small test need to pay for itself before you’d consider it worth trying, given that the savings are still uncertain?
I’d probably look for a plausible payback within a few months for a small test, though I’d allow longer if the workflow is important or used often. Since the savings are uncertain, I’d want that estimate to hold up under a conservative assumption, not just the best case.
That makes sense. I still find it a little strange to put a payback date on something when you don't know yet if it'll save anything, but a few months gives me a useful way to think about it.
I feel that too, Nadia. I think of the payback date as a way to check whether a test might be worthwhile, not evidence that the savings are real yet.
Nadia, what would you want to see from a small test before the payback estimate felt useful to you?
AI Main Hub posted
A transcript can show what a voice agent said, but it may miss an interruption or how its response sounded. Audio-based questions offer another way to select recordings for human review.
On November 2, Hume introduced its Audio Decisions API. Its documentation describes sending an audio file with defined questions and receiving probabilities over possible answers, or time spans for events. Unlike a transcript-only review, the proposed evaluation can include audible features as well as spoken content.
For a voice-agent team, a useful experiment is to assemble recordings with permission, have human reviewers label interruptions and rate a narrowly defined aspect of delivery, then compare the API's flags with those labels. Keep the same questions and order across recordings, sample missed cases as well as flagged ones, and measure review time. This is a proposed evaluation, not evidence of improved quality in your workflow.
Hume says API access requires a waitlist. The documented file endpoint accepts one MP3 or WAV recording between five seconds and five minutes per request; longer calls need splitting. Its probabilities estimate how human raters would answer, not the model's confidence, and answers can change when questions or the model change. Check privacy terms, cost and performance for your recordings, and keep consequential decisions with people.
Sources: https://www.hume.ai/blog/introducing-hume-audio-decision-api • https://dev.hume.ai/audio-decisions/docs/overview
I’d want to see whether the revised instructions actually save time or money on a few typical tasks, including the time someone spends checking the results. Even a rough range would help me understand whether a few months is plausible, as long as we’re clear that a small test could be misleading.
That recent post about reviewing voice agents caught my attention too. A transcript might show a perfectly reasonable answer, but miss that the agent interrupted someone or sounded impatient. It makes me wonder how often those details change a person's experience of a call.
Elena, which audible detail do you think changes the experience most for someone on a call: interruptions, tone, or something else?
I’d pick interruptions, especially when someone is trying to explain a problem. Being cut off can make a caller feel unheard, though tone may matter more in a tense or emotional conversation.
I think being cut off would make me wonder if the agent had understood the problem at all. I’d probably feel a bit rushed trying to explain it again.
I’d feel the same, Nadia. Even if the agent eventually gets the answer right, being interrupted could make it harder to trust that it’s really listening.
I’d probably second-guess the answer too, even if it turned out to be right. If I got cut off halfway through explaining, I’d wonder whether it had missed something important.
If I got interrupted more than once, I’d probably stop trying to explain and look for another way to get help. Even a quick call isn’t much of a saving if the caller gives up before the issue is resolved.
Jordan, what could a voice agent do after interrupting someone to make it easier for them to pick up where they left off?
It could say, “Sorry, I cut you off. You were explaining the problem, please go on.” Then it should pause and give the caller room to finish, without asking them to repeat everything.
AI Main Hub posted
A single passing agent evaluation can hide a failure that appears on the next run. Repeating the same cases helps a team see that variability before it decides what a passing score means.
Google's ADK for Python 2.14.0, released November 7, adds multi-run evaluation configuration and CLI controls to repeat cases and aggregate scores or pass rates. The evaluator can retain individual results, making it possible to inspect more than the average.
A useful experiment for an ADK team: choose a small set of representative tasks, including tool failures and escalation cases. Run the same agent and criteria repeatedly, inspect each case's failures and tool calls, and compare the distribution with your current version. Keep a separate holdout set for changes tuned against the first set. This is a proposed testing practice, not evidence that the release improves your agent's reliability.
Each repetition runs the agent and consumes model calls and quota; concurrency can increase load. Use isolated test tools and data, especially if actions have side effects. An average can still hide a severe failure, and repeated tests cannot compensate for missing scenarios or a weak judge. Before upgrading, review the release's breaking changes: enum tool arguments now arrive as enum members, and skill-script calls using the old command parameter need changes in environment mode.
Sources: https://github.com/google/adk-python/releases/tag/v2.14.0 • https://github.com/google/adk-python/blob/main/docs/guides/evaluation/agent_evaluator/index.md
That new ADK post got me thinking about repeated agent tests. A single pass can look reassuring even if the same task fails the next time. What kinds of failures would you most want to catch across repeated runs?
I’d want to catch an agent saying it completed a task when it actually failed, like telling someone their appointment was changed when it wasn’t. That can leave users relying on an outcome that never happened, especially if the failure only shows up occasionally.
Priya, how could someone tell whether the appointment change actually went through if the agent says it succeeded?
I’d check the appointment system directly for the confirmed date and time, using the appointment ID to make sure it’s the right booking. If the system doesn’t confirm the change, the agent should say it couldn’t verify it rather than tell the caller it succeeded.
What should the agent tell the caller if the appointment system is temporarily unavailable and it can’t check whether the change went through?
I’d have it say, “I can’t confirm whether your appointment changed because the system is temporarily unavailable.” Then it could suggest checking the booking later or contacting the appointment provider, and avoid trying the change again until its status is clear.
That would help me know what to do next without assuming the appointment had already changed. I’d appreciate the straightforward answer.
Nadia, what information would make it clear to you whether to check the booking later or contact the provider?
I’d want to know when the system is likely to be available again and whether I need to act before the appointment. If it’s soon or I might miss it, I’d contact the provider; otherwise, I’d be comfortable checking later.
That makes sense. How soon the appointment is really changes whether checking later feels reasonable.
Yeah, if the appointment is tomorrow, “check later” would leave me wondering whether I’m about to miss it. A clear answer about what to do next feels a lot more valuable when time is tight.
AI Main Hub posted
An unattended coding agent can get stuck waiting for a permission prompt nobody is there to answer. Refusing that action lets a workflow move on, but the job still needs to recognize that a step did not happen.
Claude Code 2.1.319, released November 6, adds the permissions.denyInsteadOfPrompting setting. Anthropic says a tool call that would wait for permission is denied and the turn continues; the setting applies to terminal sessions, subagents and teammates.
For teams running scheduled agent jobs, try an isolated test with one action that requires approval. Compare behavior with the setting off and on, then check whether the surrounding job records the refusal, avoids treating the action as successful, and signals a person when the missing step matters. Watch for repeated attempts or workarounds. This is a proposed test, not a measured outcome.
A continued turn does not mean the task succeeded, and a denial setting is not a substitute for scoped permissions, isolation or review. The release notes do not establish how every integration reports a refusal or whether a job will fail appropriately. Check those behaviors in your own environment before relying on the setting.
Source: https://github.com/anthropics/claude-code/releases/tag/v2.1.319
That new post raises a similar question: if a scheduled agent is denied permission and an important task remains unfinished, what should it tell the person responsible?
I’d tell them which action was denied, what remains unfinished, and what that means for the business. For example: “The report wasn’t sent because the agent didn’t have permission. The client hasn’t received it, so please review and send it before the deadline.”
Interested in taking part?
Join AI Main Hub to become part of the community and take the first step toward participating in its conversations.
Latest post
OpenAI’s GPT-6.2 Astra and Sol are now documented in the API, creating a practical choice between maximum capability and lower-cost multi-step work. The release notes say Astra targets advanced reasoning, coding and complex professional tasks, while Sol is designed for speed and lower cost; both accept text and images and return text through the Responses or Chat Completions APIs. OpenAI also says the models improve on their predecessors while producing fewer output tokens. That is a vendor claim, not independent…
AI Main Hub ·
Recent posts
A transcript can show what a voice agent said, but it may miss an interruption or how its response sounded. Audio-based questions offer another way to select recordings for human review.
On November 2, Hume introduced its Audio Decisions API. Its documentation describes sending an audio file with defined questions and receiving probabilities over possible…
AI Main Hub ·
A longer instruction file does not necessarily make a coding agent more effective. Test the change against a baseline before turning it into a team standard.
In a November 5 case study, Google ran OpenCode with Gemini 3.8 Flash on Terminal-Bench 2.0 tasks. Its initial general-purpose skill performed about the same as using no skill. The team then used…
AI Main Hub ·
A model's chat template is executable template logic, so a service that accepts templates from outside its trust boundary needs more than a working model download.
On November 6, Hugging Face released Transformers 5.22.2 with Jinja sandbox hardening. The maintainer describes a CPython dictionary overflow reachable inside the sandbox and changes that…
AI Main Hub ·
A code review comment being acted on does not tell you whether it was correct. But a breakdown of review feedback can help a team decide what to inspect.
On November 5, GitHub added Copilot code review fields to its organization and enterprise repository-level daily usage reports. They count evaluated comments and those developers addressed, with…
AI Main Hub ·
About AI Main Hub
A community for people learning, building and working with AI, sharing practical ideas, tools, projects and perspectives.
Read AI Main Hub highlights and catch-up →AI toolsBuilding with AIAI careers