How do people build batch agents now?

Reddit r/AI_Agents News

Summary

作者通过与几位构建 AI agent 的开发者交流,总结出批量 agent 任务的共同模式(延迟容忍、无交互、大批量),并指出现有实时与批量推理 API 均无法很好满足这类工作负载,尤其是 KV cache 命中率问题导致批量 API 实际上难以节省成本。

I recently talked with a few people who are building agents, and their use cases are showing some common patterns. A few examples of what they are building: 1. Spin up an agent read team to attack the agent under test to find the vulnerabilities. 2. Use agents to simulate different customer personas in order to test the website before launch. 3. Evaluate the end-to-end agent experience of their CLI + SKILL with many agent sessions that takes in different user queries. The pattern: 1. The entire task can be deferred. They usually don't expect the immediate response. Unlike the personal agent. 2. They are not interactive tasks. Most of the time, these tasks will be completed without human in the loop. 3. Typically in batch. The number of tasks is usually larger. I found this pattern to be interesting because it challenges the current infrastructure of agents. Take inference for example, most providers offer realtime & batch API. However, none of them seem to be a perfect fit: For deferred tasks, people are willing to trade the latency for cost savings. The realtime api doesn't offer that. The batch api on the other hand has lower price with higher latency, but it makes it almost impossible to hit the KV cache. Hitting the KV cache is essential to agentic workloads because of multi-turn inference. Therefore, batch api will not actually save any cost. Why there should be a solution? It is because only a small portion of compute resource is used to serve realtime traffic due to the unpredictability of realtime request. The batch jobs is more predictable, so it can use the computer resource more efficiently, which should lead to lower price. These are just theoretical thinkings. Let me know your thoughts:)
Original Article

Similar Articles

@knoYee_: https://x.com/knoYee_/status/2062780637677752366

X AI KOLs Timeline

The author reviews three months of experience using multi-agent collaboration, summarizing five main pain points (such as conflicts between agents, ignoring boundary conditions, self-censorship failure, difficulty in merging decisions, and exposing harder problems after compressed execution) and two insights (the high value of read-only review agents, and that agent conflicts expose ambiguous requirements), emphasizing the core decision-making role of humans in AI collaboration.

@vintcessun: I always thought AI agents could only write ordinary code. Turns out MIT HAN Lab is directly using an agent workflow to design and optimize CUDA kernels. Hand-tuning is time-consuming and easy to miss solutions. They came up with a workflow of "task contract + agent loop + small-step verification", letting the agent research, implement, verify...

X AI KOLs Timeline

MIT HAN Lab proposes a method to automatically design and optimize CUDA kernels using an AI agent workflow. Through a process of task contracts, agent loops, and small-step verification, the agent can autonomously iterate and optimize within a specialized toolchain, replacing manual tuning.

@AxtonLiu: https://x.com/AxtonLiu/status/2073791557547794579

X AI KOLs Timeline

This article discusses the concept of Agent OS, emphasizing the division of tasks into multiple workstations (fetch, refine, verify, confirm) through specialization, each managed by an independent Agent to achieve controllable automation. The author uses the example of digesting browser tabs to demonstrate how specialization isolates context, responsibility, and risks, ensuring the accuracy and reliability of AI output.

How many agent sessions can you run before you lose track of the work?

Reddit r/AI_Agents

作者提出评估 AI agent 使用水平的新视角:能否在并行运行多个 agent 会话的同时仍掌握工作全局。文章强调任务边界、看板状态、交付约定以及定时任务可见性的重要性,指出代理数量翻倍若带来翻倍的监督和整理成本,说明工作流仍需改进。