Bhuvnesh Arya (@Bhuvneshdot) header
Bhuvnesh Arya (@Bhuvneshdot) profile picture

Software Architect @wescocorp • Ex - @Siemens • Building AI production system • Sharing engineering notes

Bengaluru
Joined January 2021
Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)Photo by Bhuvnesh Arya (@Bhuvneshdot)
When intelligence becomes that cheap. Judgment becomes even more expensive.
1
6
1,235
An agent's task can get more complex as it executes. Given that, model selection can't always be a one-time decision. An agent may start with a straightforward task. Then encounter an unexpected dependency. Hit an execution failure. Or require deeper reasoning. The model that was sufficient for the initial step may not be sufficient for what comes next. This is where adaptive model orchestration becomes interesting. - Faster, lower-cost models can handle routine execution. - Stronger reasoning models can be introduced when complexity increases. - Model selection can adapt as the task progresses. - The orchestrator can return to cheaper models once deeper reasoning is no longer needed. Model routing becomes part of the execution loop, rather than a decision made only at the beginning. The architectural challenge lies in determining when to switch models, balancing reasoning capability against latency, cost, and execution reliability. This makes model orchestration less about selecting the best model for a task upfront, and more about allocating the right capability at each stage of execution.
1
51
WebMCP could change how AI agents interact with websites. Today, agents often rely on screenshots, DOM inspection, and simulated clicks to navigate web applications. It works, but it can be fragile when UI layouts or application state change. WebMCP introduces a different approach: websites can expose their functionality as structured tools that agents can discover and invoke. Here's the idea: - A website registers JavaScript functions as tools. - Each tool exposes a description and structured input schema. - An agent can discover available tools instead of guessing UI interactions. - The tool executes within the page's context, using the application's existing logic and state. Think of a shopping website exposing "searchProducts", "addToCart", or "checkout" as tools instead of expecting an agent to navigate buttons and forms for every action. The interesting architectural shift is that the website becomes an interface not only for humans, but also for agents. That doesn't eliminate browser automation. Agents can still fall back to visual interaction when a site doesn't expose tools for a task. The bigger question is how developers decide which capabilities to expose, how permissions should work, and where user confirmation belongs. WebMCP is still evolving, but it's a development worth watching as websites begin designing explicitly for agent interaction. Link in the comment.
3
76
AI Engineering Certifications: 1. AWS Certified AI Practitioner aws.amazon.com/certification… 2. AWS Machine Learning Engineer – Associate aws.amazon.com/certification… 3. Google Cloud Professional ML Engineer cloud.google.com/learn/certi… 4. Databricks Generative AI Engineer Associate databricks.com/learn/certifi… 5. NVIDIA Generative AI LLMs Associate nvidia.com/en-us/learn/certi… 6. NVIDIA Generative AI LLMs Professional nvidia.com/en-us/learn/certi… 7. Azure AI Apps and Agents Developer Associate learn.microsoft.com/en-us/cr… 8. OCI Generative AI Professional education.oracle.com/oracle-…
2
106
LLM judges can prefer the first answer simply because it appears first. When evaluating two model responses, we often ask a judge to compare them and select the better one. But the order of responses can influence the judgment. For example: - Run evaluation with Response A followed by Response B. - Reverse the order and run it again. - Compare whether the judge still selects the same response. If the winner changes frequently, the evaluation is sensitive to presentation order rather than just response quality. This becomes particularly important when comparing models, prompts, or agent implementations where small score differences determine which version gets promoted. One way to measure this is position consistency: how often the judge produces the same winner when the response order is reversed. A benchmark score is only useful if the evaluation process itself is reasonably stable. Otherwise, a model improvement might just be an evaluation artifact.
2
2
138
Have you come across the term "Codebase Cognitive Debt"? AI may be accelerating code production faster than our ability to understand the code we produce. When AI makes implementation cheap, it's easy to accumulate: • Multiple implementations of the same logic • Abstractions nobody intentionally designed • Dependencies introduced without understanding their impact • Large changes that are difficult to review • Code that works, but nobody on the team can confidently explain The interesting part is that this isn't necessarily traditional technical debt. The code may be clean. Tests may pass. The architecture may even look reasonable. But the team's understanding of the system is falling behind the system itself. That gap becomes particularly important when debugging production issues, making architectural changes, or onboarding someone into the codebase. AI can reduce the cost of creating software. But what happens when the cost of understanding it starts increasing? Are teams beginning to experience this already?
2
75
AI coding tools are making it easier to write code. But I'm curious whether they're making developers better at understanding code. With AI, generating a service, implementing an API, writing tests or refactoring an existing module can take minutes instead of hours. The bottleneck is slowly shifting. It's becoming less about how quickly we can write code and more about how quickly we can: • Understand what the AI generated • Identify assumptions it made • Spot edge cases it missed • Validate architectural decisions • Debug when multiple generated components interact A developer can generate 1,000 lines of code quickly. But reviewing, understanding and maintaining those 1,000 lines is still an engineering responsibility. I think this is one of the most interesting changes AI is bringing to software engineering. Are AI coding tools increasing developer productivity, or are they shifting more of the effort toward code review and validation?
3
97
Looks like having right skill file is the only skill left in IT.
2
62
Vercel's AI Gateway report says 22.2% of requests involving tool calls account for 58.9% of token volume. The gap is getting bigger. In October 2025, tool-call requests accounted for 11.4% of requests and 31.6% of tokens. By April 2026: • 22.2% of requests involved tool calls. • 58.9% of all tokens came from those requests. Tool-using requests are roughly 2.6× more token-heavy than other requests. The report also shows how model usage is evolving across providers. Google accounts for 38% of token volume, while Anthropic captures 61% of AI Gateway spend. OpenAI accounts for 13% of token volume and 12% of spend. The reason is easy to see in an agent workflow. A normal chat might involve one model call. An agent can involve planning, tool execution, observing results, retries and another model decision. The request count may look reasonable while token consumption grows significantly. For AI systems in production, tracking request volume alone can hide the real workload. Token consumption per workflow and the number of model turns are becoming equally important metrics. Source report link in the first comment.
3
3
122
80% of Whitefield traffic is due to U-turns.
1
108
Lot of these transactions are in news. Are we going forward or backward?
Wipro buying BP F&A GCC, taking Over 3,000 Employees. Earlier today, Cognizant news of buying S&P GCC. Why is this happening? My PoV included in Reuter news. This is happening because of AI led-disruptions and leaders in global headquarters think monetizing GCCs and rebadging employees to IT service providers is a better option than layoffs. IT companies are taking these carveouts with a guaranteed 3-5 year outsourcing deal and also hoping such takeovers would result in more businesses going forward with both existing and new clients. reuters.com/world/india/indi…
94
An AI agent with 50 available skills doesn't necessarily need all 50 loaded into its context. Yet many agent implementations load large amounts of tool descriptions, instructions and reference material before the actual task even begins. Consider a coding agent with skills for: - Database migrations - API development - Frontend components - Infrastructure deployment - Security reviews - Test generation If the user asks it to write a database migration, how much of the frontend and infrastructure knowledge does it actually need at that moment? Every unnecessary instruction consumes context tokens. As the available capabilities grow, the initial context can become increasingly expensive. There is an interesting architectural concept here: Dynamic Skill Loading. Instead of loading every skill upfront, the agent discovers and loads relevant skill instructions when the task requires them. Worth exploring if you're building agents with large skill libraries.
4
2
4
242
Adding 10 subagents to a task doesn't mean it will finish 10 times faster. This is a familiar problem in distributed systems, and we're seeing the same trade-offs emerge in multi-agent architectures. Imagine an orchestrator splitting a research task across 10 subagents. Each agent works independently, but they may still compete for shared resources: - Multiple agents calling the same external API. - Several agents retrieving overlapping documents. - Concurrent writes to shared state. - Repeated work because task boundaries aren't clearly defined. - The orchestrator waiting for multiple dependent results before proceeding. More parallel execution can actually increase total execution time when coordination and contention outweigh the work being parallelized. This is similar to what happens in distributed systems when adding more workers doesn't improve throughput because the bottleneck moves to a shared resource. A few design practices help manage this: 1. Task partitioning: Assign clearly defined, independent tasks to subagents. Avoid overlapping responsibilities. 2. Concurrency limits: Control how many agents can execute simultaneously instead of spawning everything at once. 3. Resource budgets: Apply limits to model calls, tokens, API requests and execution time. 4. Shared-state management: Define which agent owns a resource and how concurrent updates are handled. 5. Dependency-aware execution: Execute independent tasks in parallel, but preserve ordering when one task depends on another. 6. Result aggregation: Avoid sending every intermediate output to the orchestrator. Return structured, relevant results. 7. Failure isolation: A failed subagent should not automatically trigger retries across the entire workflow. One useful way to think about multi-agent orchestration is through the same principles used in distributed workload management: Throughput depends on more than the number of workers. It also depends on contention, coordination and the capacity of shared resources. The objective is to maximize useful parallel work, not the number of agents running.
2
4
285
The hidden cost of distributed systems isn't always network communication. It's coordination. A service call may take 5 ms, but the business operation behind it might require coordination across 4 services, 3 data stores and multiple independent state transitions. Consider a simple order workflow: - Order Service creates an order. - Inventory Service reserves stock. - Payment Service authorizes payment. - Shipping Service schedules delivery. Now introduce a failure. Payment succeeds, but the order service times out before recording the result. Should the payment be retried? What if the inventory reservation has already expired? What if the customer submits the same request again? Each service may be working correctly in isolation, but the overall business operation is now in an uncertain state. This is where distributed systems become difficult. The engineering challenges extend beyond communication latency: 1. State ownership: Which service is authoritative for each business entity? 2. Coordination: How are multi-service operations executed without assuming a shared transaction? 3. Idempotency: How are duplicate requests and message deliveries handled? 4. Recovery: How does the workflow continue or compensate after partial failure? 5. Consistency: Which state transitions must be immediately consistent, and which can converge asynchronously? Adding more services creates more independent execution and failure boundaries. Those boundaries need explicit ownership and recovery semantics. A distributed system is only as reliable as its ability to coordinate state transitions when individual components fail.
3
1
3
193
If you're aiming for an AI engineering job in 2027, get comfortable with these 50 terms. 1/ Agents • Agent Handoff • Idempotency Key • Agent-to-Agent Communication • MCP (Model Context Protocol) • Irreversible Steps • Tool Allowlist • Checkpointed State • Loop Detection Fingerprint • Escalation Policy • Tool Side-effect Class 2/ Workflows • Durable Execution • Compensating Transaction • Saga Orchestration • Human-in-the-Loop Gate • Replay vs Resume • Side-effect Isolation • Exactly-once Semantics • Workflow Determinism • Approval Boundary • Working vs Durable State 3/ RAG • Hybrid Retrieval (RRF) • ACL-aware Retrieval • Groundedness Score • Lost-in-the-Middle • Query Rewrite • Reranker Cutoff • Chunk Boundary Leakage • Embedding Drift • Negative Document Filtering • Citation Grounding 4/ Evals • Golden Set Drift • LLM-as-Judge Calibration • Pass@k Reliability • Faithfulness vs Relevance • Online Eval Signals • CI Regression Gate • Trajectory Eval • Inter-rater Agreement • Eval Slice Analysis • Regression Attribution 5/ Production • Retry Budget • Prompt Injection Boundary • Model Routing • Trace Attribution • Per-request Cost Budget • Circuit Breaker for Tools • Shadow Prompt Rollout • Observability Span • Token Budget Guardrail • Context Compaction
11
3
87
6,272
GPT-5.2 scored 58.7% with the OpenAI Agents SDK, compared with 53.5% with the Claude Agent SDK. That's a 5.2 percentage-point difference using the same model. But the more surprising result comes from Claude Opus 4.5, which scored 71.3% with the Claude Agent SDK versus 47.1% with the OpenAI Agents SDK. In AGENCYBENCH, researchers compared three agent scaffolds across 10 representative scenarios. Here are the results: GPT-5.2: - Custom scaffold: 57.4% - Claude Agent SDK: 53.5% - OpenAI Agents SDK: 58.7% Claude Opus 4.5: - Custom scaffold: 50.8% - Claude Agent SDK: 71.3% - OpenAI Agents SDK: 47.1% Kimi K2 Thinking: - Custom scaffold: 50.5% - Claude Agent SDK: 44.6% - OpenAI Agents SDK: 37.7% The differences are worth looking at. Claude Opus 4.5 improved by 20.5 percentage points with the Claude Agent SDK compared with the custom scaffold. GPT-5.2 performed best with the OpenAI Agents SDK, while Kimi K2 Thinking performed best with the custom scaffold. There isn't one framework that produces the best results across all three models. This has important implications for agent architecture. The framework influences how models interact with tools, manage context, process feedback and execute multi-step workflows. That means selecting an LLM and selecting an agent framework cannot be treated as completely independent decisions. The combination needs to be evaluated against the actual tasks the system must perform. A model's benchmark score alone doesn't tell you how well it will perform inside a production agent. Source research paper link in the first comment.
1
2
102
Everyone talks about Human-in-the-Loop (HITL) for AI agents. But there's one important question: At what point should a human actually intervene? Consider an agentic workflow processing 10,000 operational actions. If every action requires human approval, and each review takes just 30 seconds, that's: 10,000 approvals × 30 seconds = 83.3 hours of human review. Now imagine only 1% of those actions require escalation. That's 100 approvals, or just 50 minutes of review time. The difference is significant. In e-commerce, routine operations such as checking order status, validating delivery details or processing eligible low-value refunds can happen autonomously within predefined policies and limits. In cybersecurity, agents can continuously analyse alerts, correlate events and perform pre-authorized containment actions. Waiting for human approval at every operational step defeats much of the speed that agentic systems are designed to provide. A better approach is to introduce human intervention at different levels of risk: 1. Low-risk operations: Agents execute routine, reversible actions within predefined policies. 2. Exception handling: Uncertainty, conflicting information, unusual transactions or policy violations trigger escalation. 3. Critical decisions: High-impact financial actions, permanent account restrictions and significant security decisions require human approval. 4. Governance: Humans periodically review agent behaviour, failures and autonomy boundaries. The architecture also needs clear escalation thresholds, timeout handling and audit trails so that an agent doesn't continue with a risky action simply because human approval is unavailable. Human oversight should be based on the consequence and risk of an action, not on every individual tool call. The goal is to let agents operate at machine speed within defined boundaries, while bringing humans into decisions where their judgment actually matters.
28
2
12
473
Go in depth, breadth will follow.
One Honest Opinion: Don't measure your AI learning by the number of tools you know. Do it by the complexity and usability of the problem you can solve.
2
4
221
Your AI agent reduces 50,000 tokens of conversation history to a 5,000-token summary. That's a 90% reduction in context. But what if it also removes the one instruction that changed the entire task? Consider this scenario: An agent is executing a 20-step workflow. - Step 3: The user asks it to contact a supplier. - Step 12: The user cancels that instruction. - Step 18: The agent summarizes its conversation history. - Step 20: The agent resumes execution. If the summary retains the original instruction but loses the cancellation, the agent may contact the supplier anyway. The context is smaller, but the task state is now incorrect. This is a subtle risk in long-running AI agents. Four design practices can help prevent this: 1. Current state: Maintain the latest task status separately from conversational summaries. 2. Instruction history: Track changes, cancellations and approvals as explicit events. 3. Decision priority: Preserve the latest valid instruction rather than relying on frequency or recency alone. 4. Action validation: Before executing an external action, verify that the instruction is still valid and authorized. There is an important distinction between summarizing conversation history and maintaining workflow state. A summary helps the model understand what happened. Structured state tells the system what is currently true. For agents that execute long-running workflows or interact with external systems, both are necessary. Saving 90% of the tokens is useful. Preserving the correct decision is essential.
3
4
204
Claude Opus 4.5 fell from 96% to 14.7% as the context grew from 8K to 256K tokens. That's an 81.3 percentage-point drop. ChatGPT-5.2 Medium also fell, from 72% to 21.3%. And other models show similarly steep declines. The LOCA-bench report evaluates how AI agents perform as their working context grows while completing tasks involving tools and external services. Here is how some models performed: Claude Opus 4.5: 8K: 96.0% 16K: 84.0% 32K: 84.0% 64K: 65.3% 96K: 45.3% 128K: 34.0% 256K: 14.7% ChatGPT-5.2 Medium: 8K: 72.0% 16K: 70.7% 32K: 60.0% 64K: 52.0% 96K: 44.0% 128K: 38.7% 256K: 21.3% Other models, from 8K to 256K: Gemini 3 Flash: 64.0% → 17.3% DeepSeek V3.2 Thinking: 78.7% → 6.7% MiniMax M2.1: 69.3% → 5.3% GLM-4.7: 76.0% → 5.3% Kimi K2 Thinking: 74.7% → 2.7% There are two things worth noticing. First, a larger context window doesn't guarantee that an agent can use all that information effectively. Second, model performance isn't the whole story. How the agent manages its growing context also matters. For production AI systems, this has architectural implications. Instead of continuously appending every tool response, conversation and intermediate result to the context, systems need to manage what stays relevant. Some approaches worth considering: - Summarising completed interactions. - Keeping structured workflow state outside the context window. - Retrieving relevant history when needed. - Removing redundant tool outputs. - Separating persistent memory from temporary working context. The interesting engineering question is how much context an agent should carry forward, not simply how much its model can accept. One caveat: these are LOCA-bench agent task accuracy results under controlled environment growth. They are not a universal measure of long-context performance. Source report link in the first comment.
6
3
151
Source: LOCA-bench: Benchmarking Language Agents Under Controllable and Extreme Context Growth Research paper: arxiv.org/abs/2602.07962
23