Managing 50 AI Agents: Core Skills for the Agent Era
The AI agent era is reshaping software development: a single engineer may soon orchestrate around 50 "agent interns" running coding, testing, code review, documentation, and data analysis in parallel. This article breaks that shift into six technical threads—requirements engineering, model tiering, knowledge distillation, low latency, multimodality, and scalable hardware-software co-design—and for each explains why it matters and how to implement it. It includes practical templates and code (task specs, model routing, a distillation loss function, and a roofline bottleneck model), latency-budget and observability tables, and a developer playbook for building model routing, agent runtimes, and cost governance, closing with two predictions on personalization and latency.
From Hand-Writing Code to Managing a Team of Agents
In a wide-ranging conversation about the trajectory of AI, a veteran technical expert who has long led large-scale machine learning systems and AI infrastructure research offered one prediction: in the future, every developer may manage roughly 50 “agent interns,” running coding, testing, code review, documentation, and data analysis tasks in parallel. Information exchange between agents will also be noticeably more efficient than communication between people.
The change this brings is not just “faster output,” but a restructuring of how developers work:
- Shift in the core action: from “writing code by hand” to “defining problems, decomposing tasks, and validating results.”
- Shift in the core skill: “writing clear requirements” replaces “writing correct code” as an engineer’s most critical capability.
- Shift in the infrastructure: models, inference, and agent runtimes must support both “frontier capabilities” and “extreme cost efficiency” at the same time.
The conversation also noted that on the trade-off between performance, cost, and latency, leading vendors are already near the “Pareto frontier.” A Pareto frontier is the set of solutions in a multi-objective trade-off where you cannot improve one objective without sacrificing another. In engineering terms, it means a vendor can offer both frontier models for deep reasoning and low-cost, low-latency economical models, advancing both product lines in parallel rather than choosing between them.
This article extracts the core ideas from the conversation into six technical threads and expands each one, trying to answer two questions for every thread: why it matters, and how to implement it in engineering.
1. Role Shift: Why “Writing Requirements” Becomes the Core Skill
1.1 From “Executor” to “Task Definer”
In the traditional development model, requirements pass through multiple handoffs—“product spec → technical design → code implementation”—and information is lost at each step. In an agent-collaboration model, engineers define tasks directly for the execution unit; the requirement itself becomes an “executable specification,” and intermediate loss is greatly reduced. At the same time, errors are amplified: a single ambiguity in a requirement can be copied many times over and spread synchronously across dozens of agents.
So a qualified requirement must contain at least six kinds of elements:
- Goal: what to achieve, and why;
- Scope: which modules are involved, and what is explicitly out of scope;
- Constraints: coding standards, dependency versions, security and compliance requirements;
- Acceptance criteria: observable, testable conditions for completion;
- Failure handling: whether to roll back or escalate on error, timeout, or insufficient information;
- Resource budget: limits on time, number of calls, and cost.
Below is a task-spec template you can apply directly, expressing requirements in a structured format:
# Task spec example: add unit tests for the order pricing modulegoal: Add unit tests for the order pricing module, with branch coverage of 80% or higherscope:in: ["src/order/pricing.py"]out_of_scope: ["modify any production config", "change public interface signatures"]constraints:- "Do not introduce new third-party dependencies"- "Follow the repository's existing test framework and naming conventions"inputs:- "docs/pricing.md (business rules)"- "order system interface definition file"acceptance:- "All cases pass, exit code is 0"- "Coverage report can be generated and is not lower than 80%"- "Output a change summary and a risk list"failure_policy: "Pause when business rules cannot be determined, and escalate as a list of questions"budget: { max_steps: 40, max_cost_units: 5 }
The key point of this template is to “front-load the acceptance criteria.” A requirement describes the result, not the steps, so agents have room to choose their own implementation path. This is also the technical root of “communication being more efficient than interpersonal communication”: agents can pass structured data, share the same repository context, and read tool results directly, without the “understand, paraphrase, re-understand” loss that people go through.
1.2 The Three-Stage Human-AI Collaboration Loop
No matter how capable a single agent is, an engineer’s value shows in the design of the collaboration loop:
- Plan: decompose the goal into independently verifiable subtasks, identify dependencies, and determine parallel vs. serial boundaries;
- Execute and supervise: give agents capabilities such as repository search, running tests, and calling command-line tools, while constraining their permission scope—for example, forbidding direct changes to production;
- Validate and integrate: decide merge or rework based on tests, static checks, code review, and manual spot checks.
As the number of agents grows, the communication structure cannot be a star topology of “one central node to N executors,” or the central node becomes a bottleneck. More reasonable approaches include:
- Group by module or tech stack, with sub-agent leads summarizing before escalating;
- Have agents collaborate asynchronously via shared message queues and a task-state table;
- Give each task a clear state machine, such as pending-claim, in-progress, pending-review, approved.
1.3 Capability Tiers: From “Using Tools” to “Designing Systems”
| Capability tier | Core characteristic | Typical responsibility |
|---|---|---|
| Entry | Proficiently use AI coding tools to complete single-point tasks | Adding tests, fixing small bugs, writing docs |
| Advanced | Can write high-quality task specs and design acceptance and regression mechanisms | Modular development, cross-module refactoring |
| Expert | Can design agent-collaboration architectures, model routing strategies, and cost governance | Platform capability building, technology selection |
2. Model Tiering: Frontier Models Think Deeply, Small Models Execute Frequently
The conversation noted that future model services will take a “dumbbell” shape:
- High-end frontier models: for hard tasks such as deep reasoning, complex math, and cross-system architecture design;
- High-cost-efficiency models: for low-latency, high-concurrency scenarios such as real-time completion and instant feedback in AI coding.
2.1 Why Tier?
Agent workloads vary enormously: a single root-cause analysis may consume hundreds of thousands of tokens of inference, while a single code completion needs only a few hundred tokens and demands millisecond response. If every request goes to the most powerful model, you waste resources two ways: many simple requests pay unnecessary inference cost, and hard requests queue up due to resource contention.
The key to tiering is intelligent routing—choosing a model based on task difficulty, latency requirement, and cost budget. Here is a sketch of a routing policy:
def route(request):# Layer 1: a low-cost classifier judges difficulty and decides whether "deep thinking" is neededif request.category in ("completion", "formatting", "single-file small edit") \or request.latency_budget_ms < 300:return SMALL_FAST_MODEL # high-cost-efficiency modelif request.category in ("cross-module refactor", "production incident root-cause analysis", "complex algorithm design"):# For complex tasks, let the small model propose candidates first, then have the large model adjudicatecandidates = SMALL_FAST_MODEL.propose(request, n=3)return FRONTIER_MODEL.judge(request, candidates)return MID_TIER_MODEL # routine tasks go to a mid-tier model
2.2 The “Generational Replacement” Effect of Tiering
The conversation also pointed out that one cloud vendor’s products show a clear pattern: a new generation of lightweight models can often approach or even surpass the previous generation’s flagship models. In engineering terms, the same generation’s technology dividend “trickles down” first to cost-sensitive product lines:
- Inference algorithm improvements (e.g., speculative decoding, KV cache reuse) lower the per-token cost;
- Progress in training-data quality and training strategy lets smaller parameter scales learn enough capability;
- Distillation lets small models efficiently inherit the capabilities of large models.
The lesson for developers is direct: the application layer should not hard-bind code to a specific model, but should connect through a unified model-invocation layer and periodically re-evaluate cost efficiency. A task that required the strongest model a few months ago may be handleable by a low-cost model now.
3. Knowledge Distillation: How Small Models Approach Large Models
“Fast and smart” lightweight models don’t appear out of nowhere; one of their core methods is knowledge distillation. In the conversation, this technical expert explicitly endorsed the effect of distillation: through distillation, a small model can get very close to a large model’s performance. It is worth noting that distillation is a general model-compression technique in the industry, not a proprietary method of any single vendor.
3.1 Why Soft Labels Are More Valuable Than Hard Labels
In traditional training, a model learns only from the “correct answer.” The full probability distribution output by the teacher model (i.e., the result of normalizing logits through softmax) also carries the relative likelihood among the various wrong answers. This “inter-class similarity information” is often called dark knowledge.
An intuitive example: when training an image classifier to recognize animals, a hard label only tells the student model “this is a cat”; the teacher model’s output distribution tells it that this image “most resembles a cat, next a dog, and is almost certainly not a truck.” The latter carries information about the structure of the feature space and usually lets a small model learn better with less data.
3.2 Basic Forms and Engineering Points of Distillation
Taking a classification task as an example, the classic soft-label distillation loss can be written as:
import torchimport torch.nn.functional as Fdef distillation_loss(student_logits, teacher_logits, labels, T=4.0, alpha=0.7):"""L = alpha * CE(y, softmax(z_s / T))+ (1 - alpha) * T^2 * KL(softmax(z_t / T) || softmax(z_s / T))where z_s and z_t are the student and teacher logits, respectively."""hard_loss = F.cross_entropy(student_logits, labels)soft_loss = F.kl_div(F.log_softmax(student_logits / T, dim=-1),F.softmax(teacher_logits / T, dim=-1),reduction="batchmean",log_target=False,)return alpha * hard_loss + (1 - alpha) * (T ** 2) * soft_loss
The higher the temperature T, the smoother the probability distribution and the more pronounced the dark knowledge. The KL-divergence term is multiplied by T² to compensate for the shrinking of the gradient magnitude after softening, keeping the hard and soft loss terms on comparable scales.
Distillation for generative large models is more varied; three common types are:
- Output-distribution matching: fit the student model to the teacher model’s token probability distribution, which requires access to the teacher’s logits;
- Sequence-level distillation: use the teacher model to generate reasoning traces or high-quality answers as training data;
- Data-driven iteration: iterate over large amounts of training data so the student model covers as diverse scenarios as possible.
The approach mentioned in the conversation is a combination of the latter types: let the small model repeatedly learn on large amounts of training data, and use the logits output by the teacher to capture more subtle behavioral differences.
3.3 Engineering Points of Distillation
- Data quality first: data generated by the teacher needs factuality checks and deduplication filtering, otherwise errors get compressed into the small model and become hard to correct;
- Capacity matching: when the teacher-student capability gap is too large, the student may “fail to learn”; use staged distillation or intermediate-layer feature alignment;
- Uneven capabilities: small models often approach the teacher on common patterns but degrade noticeably on long-tail and complex reasoning, so evaluate per scenario rather than only by overall average score;
- Compliance boundaries: when using external models to generate training data, confirm whether their terms of service allow it, and keep records of data provenance.
4. Low Latency: An Underrated Watershed for Experience
In the conversation, this technical expert showed great confidence in the value of low latency: if latency drops by 20–50x, user experience changes completely, which is why he predicts low latency will reshape many application scenarios.
4.1 A Qualitative Change in Interaction Mode
From an engineering standpoint, the response time of a large language model usually comes from three parts:
- Time to first token (TTFT): related to input length (the prefill phase) and queue wait;
- Time per output token (TPOT): determines generation speed, the time to produce each output token;
- End-to-end total time: related to output length.
Compressing latency from “seconds” to “sub-second or even a few hundred milliseconds” is a qualitative change, not a quantitative one:
| Latency level | User perception | Feasible interaction forms |
|---|---|---|
| Seconds or more | Noticeable wait, attention drifts | One-shot questions, batch tasks |
| Hundreds of milliseconds | Near-instant | Conversational completion, real-time rewriting |
| Within a hundred milliseconds | Almost imperceptible | Type-to-complete, real-time voice interaction, agent-style coding |
“More fluid agent-style coding” is exactly this logic in action: an agent proposes one small edit at a time and waits for confirmation; the faster each response, the more willing developers are to let it “work and confirm along the way,” rather than dispatching a long task and waiting a long time.
4.2 Main Means of Reducing Latency
- Inference engine optimization: paged attention to manage the KV cache, continuous batching to improve GPU utilization, operator fusion to reduce memory-access overhead;
- Speculative decoding: use a small draft model to quickly generate candidate tokens, then have the large model verify them in parallel, reducing the large model’s forward passes while keeping the output distribution unchanged;
- Cache reuse: KV-cache reuse for common prefixes such as system prompts and project context, semantic caching for high-frequency Q&A results;
- Model- and request-side optimization: distillation and quantization to reduce per-call compute; streaming output to improve perceived latency; retrieval filtering for extra-long context, putting only the necessary fragments into the prompt.
4.3 Engineering Recommendations
Set a latency budget for each link in the chain, and monitor with percentile metrics rather than averages. For example, “95% of requests have a first-token time of no more than 300 ms.” Averages easily hide long-tail problems, yet user perception is often determined by the slowest few requests. Here is an example of a latency budget table:
| Stage | Budget (P95) | Timeout strategy |
|---|---|---|
| Intent recognition and routing | ≤ 20 ms | Fall back to the default model on timeout |
| Model queue wait | ≤ 50 ms | Downgrade to a lightweight model |
| First-token generation | ≤ 150 ms | Return placeholder content first |
| Interval between tokens | ≤ 30 ms | Shift traffic to a backup cluster |
5. Multimodality: From “Reading Text” to “Reading the Physical World”
In the conversation, this technical expert revealed that the team wanted models to be natively multimodal from the very beginning. He also emphasized that multimodality is not just text, images, video, and audio—letting models understand “non-human” modalities is equally important—and predicted that hundreds of modalities may emerge in the future.
5.1 What Are “Non-Human” Modalities?
These modalities have no direct human perceptual counterpart and must be encoded before a model can understand them:
| Modality category | Typical data | Application value |
|---|---|---|
| Autonomous driving | LiDAR point clouds, millimeter-wave radar, multiple cameras | 3D environment perception and trajectory prediction |
| Robotics | Joint angles, torque, tactile signals, depth maps | Learning manipulation policies |
| Healthcare | CT, MRI, pathology slides, physiological signals | Aided diagnosis and lesion screening |
| Industry | Vibration, acoustic, temperature, current signals | Predictive equipment maintenance |
| Science | Weather grids, spectra, remote-sensing imagery | Forecasting analysis and scientific discovery |
5.2 Engineering Points
- Unified representation: different modalities must be mapped into the same representation space (e.g., shared embedding vectors) to be reasoned over jointly. For example, let a language model “see” the embedding of a LiDAR point cloud, so you can ask in natural language where an obstacle is in the scene;
- Tokenization and compression: raw data of non-text modalities is huge—a single high-resolution image frame may contain millions of pixels. Encoders are needed to compress it into a limited number of tokens; video also needs to handle inter-frame redundancy to keep context length under control;
- Temporal alignment: in autonomous driving and robotics, different sensors sample at different rates, so timestamp alignment and synchronization errors directly affect the model’s judgments;
- Data scarcity and simulation: labeled data for robotics and healthcare is expensive, so simulated environments are often used to generate data, though a “sim-to-real” distribution gap exists;
- Safety and interpretability: scenarios such as aided medical diagnosis and autonomous driving have extremely high reliability demands; model output can only be an aid and cannot replace professional judgment or safety-redundancy design.
6. Scaling and Co-Design: The Foundation Under Everything
6.1 Insist on Scaling, but Correct Errors in Time
In the conversation, this technical expert recalled that decades ago he already firmly believed “scaling will eventually win.” The creed “bigger models, more data, better results” has been repeatedly validated over about 15 years. But he also admitted that early on he spread resources too thin across new models—“that was foolish.” Put together, these two points convey a mature view of technology management:
- Be firm on direction: sustained investment in data, parameters, and compute is the foundation for capability leaps;
- Focus resources: once the strategy is clear, concentrate resources on the core roadmap and avoid spreading across many lines with weak single-point breakthroughs.
6.2 Data Movement: A Cost More Hidden Than Compute
LLM training and inference depend not only on compute volume but also on data-movement cost. On mainstream accelerators, the energy for a single on-chip multiply-accumulate is far lower than that needed to read the same bit-width of data from off-chip memory—by several orders of magnitude. So the “memory wall” often becomes a bottleneck before the “compute wall,” and memory bandwidth and cache hit rate can matter more than peak compute.
This also explains why continuous batching, paged KV-cache management, and similar inference optimizations are effective: they essentially reduce repeated movement and increase the amount of compute served by each data read.
6.3 Using Energy Consumption as a First Principle
The conversation raised a thought-provoking idea: designs for hardware optimization, batch size, latency, and throughput can all be measured with energy consumption as a first principle. The reason is that energy runs through the whole stack:
- Chip layer: depends on data-movement volume and compute precision;
- System layer: depends on utilization and scheduling efficiency;
- Data-center layer: converts into power and cooling costs.
In practice, you can write the cost per request as a joint function of energy and latency:
where b is the batch size, E_request is the average energy per request, throughput is system throughput, T_latency is latency, and λ is the trade-off coefficient between cost and experience. Increasing b raises throughput and dilutes per-request energy, but queue latency also rises—which is exactly why the trade-off is needed.
Here is an illustrative model for locating bottlenecks:
def roofline_bound_bytes(compute_flops, hardware_flops, intensity_flops_per_byte, mem_bandwidth):"""Determine whether the workload is compute-bound or memory-bandwidth-bound:compute_time = compute volume / peak computememory_time = compute volume / arithmetic intensity / memory bandwidth"""compute_time = compute_flops / hardware_flopsmemory_time = compute_flops / intensity_flops_per_byte / mem_bandwidthreturn {"compute_time": compute_time, "memory_time": memory_time,"bound_by": "compute" if compute_time > memory_time else "memory"}
When memory_time is significantly larger than compute_time, the workload is bandwidth-bound, and the optimization focus should be on cache reuse, quantization, and reducing repeated reads; simply piling on more compute yields limited returns.
6.4 Hardware-Software Co-Design: Hardware Must Anticipate Model Trends 2–6 Years Out
The conversation emphasized that a self-developed AI chip team and a machine learning research team must interact closely and co-design, and hardware design must predict model trends 2–6 years out. The reason is that chip R&D cycles are long—from tape-out to mass production takes years—and designing hardware after the model architecture is finalized is already too late. Co-design usually shows up in four aspects:
- Numerical precision: native support for low-precision compute (e.g., half-precision, 8-bit and even lower-bit-width floating-point and integer formats) to match the spread of quantized inference;
- Memory hierarchy: easing the data-movement bottleneck through large on-chip caches and high-bandwidth memory;
- Interconnect topology: high-speed interconnect for tensor parallelism and pipeline parallelism in distributed training;
- Compiler and operator adaptation: changes in model structure need the compiler and operator libraries to keep up quickly, so peak hardware capability translates into real performance.
Once this positive-feedback loop is established—chips tailored to models, and models in turn fully exploiting chip features—the two sides iterate and evolve together.
7. Practical Guide: How Developers Can Prepare Ahead
7.1 Build Requirements Engineering as a Foundational Capability
- Adopt a unified task-spec template across the team, specifying goal, scope, constraints, acceptance, and budget;
- Build automatically runnable acceptance scripts for each task type, such as tests, static checks, and security scans;
- Add a “verifiability” check to requirements review: are the acceptance criteria observable, reproducible, and automatically judgeable?
7.2 Build Model Routing and an Agent Runtime
- Establish a unified model-invocation layer that hides interface differences between models;
- Configure routing rules by latency, cost, and difficulty tiers;
- Use message queues and a task-state table to support asynchronous agent collaboration, avoiding central-node overload;
- Set permission boundaries and audit logs for agents’ tool calls, file writes, and command execution.
7.3 Build Observability and Cost Governance
At minimum, monitor these metrics:
| Metric | Meaning | Purpose |
|---|---|---|
| Task success rate | Share of tasks passing acceptance on the first try | Measures agent usability and requirement quality |
| Manual rework rate | Share of tasks that need to be redone by a human | Assesses requirement clarity |
| Cost per task | Token and compute consumed to complete one task | Cost governance |
| First-token P95 latency | Time to first token for 95% of requests | Experience assurance |
| Energy per effective output token | Energy consumed to produce adopted content | Energy-efficiency assessment |
7.4 Design Human-AI Collaboration Interfaces
Agent products aimed at non-technical colleagues also need “templated tasks,” such as “generate this week’s production-alert analysis report” or “bulk-refactor a certain type of interface,” so that non-technical users can express requirements clearly too. This is why “writing requirements” is becoming a general skill.
As for whether a domain-specific model is needed, the fairly common practice in the industry is “general large model + retrieval augmentation + tool calling”; only when a general model consistently fails to meet accuracy or compliance requirements in a vertical scenario should you consider fine-tuning or distilling a domain-specific small model.
Conclusion: Two Predictions Worth Watching
The conversation ended with two predictions from this technical expert: truly “personalized” models will become extremely important in the future; and low latency will change many application scenarios.
The former points to models that must understand not only general knowledge but also the context of a specific team and project, such as code style, business conventions, and past decisions. Implementation may involve personalized fine-tuning, memory mechanisms, or long-term context management. The latter points to the fact that once responses are fast enough, many interactions once considered “not worth using AI for”—real-time completion, voice conversations, step-by-step agent collaboration—will become routine.
In the practice of cloud providers such as Baidu AI Cloud, these capabilities are gradually being opened to enterprises in general forms such as the Qianfan large-model platform and the Baige AI heterogeneous computing platform, offering model services, model development, and AI-native application building that developers can compose and use as needed.
For developers, the most pragmatic preparation right now is not chasing a particular model or a particular parameter, but filling three capability gaps: the ability to write requirements as verifiable specs, the ability to organize multiple agents into a reliable system, and the ability to continuously measure and optimize a system with latency, cost, and energy-efficiency metrics. Stacked together, these are the real core competitiveness of the “50 agents per person” era.
