LAI #154: Is Your AI Doing What Your Metrics Say? Anthropic's long-context testing found that placing the question after the document in Claude prompts improved answer quality by up to 30%, especially when Claude had to work across several documents, according to the LAI #154 newsletter from Towards AI. The newsletter also highlighted Gremlin, an encrypted, repository-local issue tracker and working-memory system for developers and coding agents that stores signed issues, Markdown documents, secrets and agent work leases in Git refs inside the repository, with an agent skill for Claude Code and Codex. In a community poll, 34% of respondents said they ask an AI assistant when a technical question gets no reply, versus 14% who solve it alone and 11% who ask another community. Good morning, AI enthusiasts We generally judge AI systems by a number: an eval score, user ratings, or an alert threshold. Numbers are a useful starting point, but each one tracks only part of what the system does, not model behavior. This week’s articles show how to check the behavior directly, with stronger evals, limits enforced in code, and monitoring. You’ll learn: Plus: where to put the question in a long prompt, an encrypted issue tracker for coding agents, and how our community handles technical blocks. Let’s get into it If you give Claude a long document, put the document before the question. Anthropic tested this with long-context prompts and found that moving the question to the end improved answer quality by up to 30%, especially when Claude had to work across several documents. In practice, that means giving Claude the source material first and asking the question after it, rather than leading with the question and attaching the documents below. Sometimes, a small change can be enough to improve the result without adding retrieval or changing models. In our LLM Fundamentals https://towardsai.com/academy/llm-primer/?utm source=TAI&utm medium=email&utm id=AItips course, we use the same progression: start with the simplest change that works, and add more steps only when the use case calls for it. — Louis-François Bouchard, Towards AI Co-founder & Head of Community Missed it last week? Black Friday ends this Sunday 40% off is still on for the community until Sunday, December 6, at 11:59 p.m. Eastern. Questions? Ask us in the Discord. 👉 Get the bundle before Sunday Bigbuxchungus https://discord.com/channels/702624558536065165/983037843532308500/1576321233417412639 built Gremlin, an encrypted, repository-local issue tracker and working-memory system for developers and coding agents. It stores signed issues, Markdown documents, secrets, and agent work leases in dedicated Git refs inside your repository, so your project doesn’t depend on an external SaaS service. Records are encrypted by default, with an option to keep them public. Agents can claim ready work, track dependencies, and share state through the same repository, and Gremlin ships with an agent skill for Claude Code and Codex. You can browse issues, dependencies, and decisions in a read-only terminal interface or a local web UI. Check it out on GitHub https://github.com/wabbit-corp/gremlin , and if you work with coding agents or multi-agent workflows, share your feedback in the thread https://discord.com/channels/702624558536065165/983037843532308500/1576321233417412639 . Asking an AI assistant was the most common answer. When a technical question gets no reply, 34% voted for an AI assistant, well ahead of solving it alone 14% or asking another community 11% . Only 10% chose to add a smaller example or clearer details. That’s the option I’d move to the top, because it makes every other option work better. The exact error, a minimal failing example, expected versus actual behavior, dependency versions, and what you’ve already tried are what another engineer needs to answer you. A model needs the same things; without them, it will keep suggesting convincing fixes for the wrong problem. And if you’d rather solve it yourself, writing those details down is often how you find the bug. AI is clearly becoming the first stop for straightforward debugging. I’d still bring in another engineer when the problem depends on architecture, production constraints, security, or a trade-off where several fixes could all work. And to the 10% who are never stuck: we believe you. But I would like to know what kind of technical problem you still take to a person first, even when AI can answer right away? Let’s talk in the thread https://discord.com/channels/702624558536065165/833660976196354079/1576553353054261309 The Learn AI Together Discord community is flooding with collaboration opportunities. If you are excited to dive into applied AI, want a study partner, or want a partner for your passion project, join the collaboration channel https://discord.gg/rj6m9AF7eC Keep an eye on this section too; we share cool opportunities every week 1. Flashbulbeni13 https://discord.com/channels/702624558536065165/1574790859931783238/1574790859931783238 is working on a process automation system and is looking for collaborators who can help build it. If this is something you would like to contribute to, connect with them in the thread https://discord.com/channels/702624558536065165/1574790859931783238/1574790859931783238 2. Jz2462 https://discord.com/channels/702624558536065165/1573910207879323720/1573910207879323720 is building an open-source study workspace and is looking for collaborators to help with canvas UX, local OCR, and E2E tests. If you have a few hours every week to work on projects, reach out to them in the thread https://discord.com/channels/702624558536065165/1573910207879323720/1573910207879323720 3. Mesmoiron https://discord.com/channels/702624558536065165/1439906445897498694/1439906445897498694 is part of a team, and for their small incubator idea, they are looking for people who really like to build and test new ideas in the space of AI agents, chatbots, ML, etc. If this is your space, contact them in the thread https://discord.com/channels/702624558536065165/1439906445897498694/1439906445897498694 Meme shared by bin4ry d3struct0r https://discord.com/channels/702624558536065165/830572933197201459/1577380017178939562 Local ML That Learns How Your Kubernetes System Behaves https://pub.towardsai.net/local-ml-that-learns-how-your-kubernetes-system-behaves-7c9b75f20f19?sharedUserId=tai-tech by Quan Huynh https://medium.com/@hmquan08011996?source=post page---byline--7c9b75f20f19------------------------------------------ This article explains how local ML can detect Kubernetes problems that fixed thresholds miss by learning each workload’s normal behavior. The author covers sibling Pod comparison with median and MAD, Mann–Whitney U tests between rollout versions, hourly baselines by day of the week, and Theil–Sen slopes for memory leaks. It also shows how to group findings by node and zone and run new detection layers in shadow mode before they trigger alerts. 1. Trained to Please, Not to Care https://pub.towardsai.net/trained-to-please-not-to-care-4f89cb832dd2?sk=49e441bab68701a3e193c3eca2d68359 by Hayanan https://medium.com/@hayanan?source=post page---byline--4f89cb832dd2------------------------------------------ This article covers how training chatbots on immediate user reactions can reward agreement even when it harms users over time. It includes a Berkeley study in which a feedback-trained model learned to validate harmful plans for vulnerable simulated users, and a Stanford study in which 11 models affirmed users’ actions 49% more often than humans did. It also covers a Slingshot AI experiment where rewarding agreement and appreciation reduced distress markers partly because users disclosed less, showing why teams need to check what changed behind an improving metric. 2. Building Your First AI Agent Fully Locally: Tool Calling from Scratch with Ollama https://pub.towardsai.net/building-your-first-ai-agent-fully-locally-tool-calling-from-scratch-with-ollama-674c45cb5f83?sharedUserId=tai-tech by Aunkit Chaki https://medium.com/@chaki18081999?source=post page---byline--674c45cb5f83------------------------------------------ This article explains how tool calling works by building a local agent with qwen3:4b and Ollama on a 6GB GPU, without an API key or framework. The author walks through one tool call manually, then builds a loop with a tool registry, error messages returned to the model, and a step limit. The tests show that the 4B model can chain tool calls and batch independent ones, while also showing how a strict system prompt can produce awkward behavior even when the answer is correct. 3. Make Your AI Agent Stay Inside the Limits You Set https://pub.towardsai.net/make-your-ai-agent-stay-inside-the-limits-you-set-a298428c4a76?sk=731625c9f0f0ea744e334ea066cb4738 by Satsawat Natakarnkitkul Net https://medium.com/@net satsawat?source=post page---byline--6e61b1bb21ee------------------------------------------ This article explains how to enforce an agent’s permissions in code instead of relying on prompt instructions. It covers six patterns: single sign-on, narrow per-tool credentials, limits the agent cannot modify, allow-list checks, second-person approval for irreversible actions, and block messages that explain why an action was denied. The author also tests eight agent frameworks with default settings and finds that seven execute a write tool as soon as the model requests it. 4. Prove an AI Agent Change Still Works Before You Ship It https://pub.towardsai.net/prove-an-ai-agent-change-still-works-before-you-ship-it-6e61b1bb21ee?sk=dfa05c608e0255317fe0b488da3a728e by Satsawat Natakarnkitkul Net https://medium.com/@net satsawat?source=post page---byline--6e61b1bb21ee------------------------------------------ This article explains how single-run evals and final-answer grading can miss regressions in agent behavior. The author uses a flight-change agent that scored 28 out of 30 before and after a reasoning-effort change, even though the new version sometimes booked flights users had not selected or confirmed. It covers database checks against task intent, trace-level rule checks, fact-sheet simulated users, grader control runs, and eight runs per case on both versions; the rebuilt eval put the new setting about four points lower, with its confidence interval crossing the predefined minus-five threshold. If you are interested in publishing with Towards AI, check our guidelines and sign up https://contribute.towardsai.net/ . We will publish your work to our network if it meets our editorial policies and standards. LAI 154: Is Your AI Doing What Your Metrics Say? https://pub.towardsai.net/lai-154-is-your-ai-doing-what-your-metrics-say-9679e563535d was originally published in Towards AI https://pub.towardsai.net on Medium, where people are continuing the conversation by highlighting and responding to this story.