How to collaborate with intelligent agents
Shen Translation is a translation team under 36Kr, focusing on sectors including technology, business, workplace and life, with a core focus on introducing cutting-edge new technologies, fresh perspectives and emerging trends from overseas.
Editor's note: Still worrying about AI writing garbage code and saving costs by using cheaper models? The latest industry consensus from frontline practitioners is to let go of code perfectionism, only review core files, let agents release versions asynchronously and prove their own validity. This article is translated and compiled.
Always use the latest, most powerful model. Other choices are most likely a waste of time. If a model has a 10% chance of making mistakes, and you cannot predict which 10% of outputs are flawed, you will end up having to retry over and over again. Would you really want to hire a generalist who costs half as much but inexplicably underperforms by 20% from time to time? Who is still using Opus 4.5 now? See, no one is.
Stop worrying about the piles of AI-generated slop in your codebase. "It will turn your codebase into an unmaintainable mess" — that claim might have held true six months ago. What about now? I am not convinced it will produce garbage code. Even if it does, I am not convinced the end result will be unmaintainable.
Frame your prompts to state "what you want" instead of "how to do it". Describing the outcome you want rather than how you plan to achieve it often yields far better results. For example: "Make the bytecode compiler and virtual machine as fast as possible. Do not stop until the speed is doubled." Or: "This is how it should work in the end."
Give agents full visibility of the entire Software Development Life Cycle (SDLC). What curbs hallucinations? Tool calls. Tools grant agents access to the real world. Anything the agent cannot see, it will make up. So let it run everything it builds end-to-end: read production logs, perform deployments, observe canary releases, roll out versions, toggle feature flags, triage bug reports, and send emails to customers. Everything you can see, the agent should be able to see too.
Equip it with all the tools required for every step of the SDLC. We have custom plugins for processing bug reports, sending emails to users, answering "Is our system healthy?", and granting feature flag permissions.
Evaluate the knowledge available to the agent. Knowledge keeps accumulating in the codebase: AGENTS.md files, skills, scripts, documentation. But do agents actually make use of them? Launch five blind-test agents, split them into control group and experimental group, and you will find out immediately. Agents are extremely good at running experiments.
Local development feels awkward right now. Every agent should be able to install and run everything needed to complete tasks on its own. This is easy on remote machines, but very awkward in local development environments, and it is hard to avoid resource conflicts when you want agents to run end-to-end tests.
Do not iterate back and forth with the agent round by round — let it build the tools for iteration. Instead of saying "Let's try this... no that does not work, try that instead", say: "Generate 20 variants, then make a small page that lets me combine and test them." This applies not only to the solution space, but also to the problem space: "Give me 4 hypotheses for why it is slow, then verify all 4 of them."
Demand irrefutable proof from it. This is the biggest game-changer. Agents are exceptionally good at producing evidence: end-to-end demos, demo videos, data comparisons before and after changes. You need to gradually build trust and intuition for this practice. Write down scenarios that "do not count as proof" in your AGENTS.md file.
Do not wait for agents — let them wait for you. If you are still worrying about Time To First Token (TTFT), you are most likely using it the wrong way. Use asynchronous operations more. Assign them larger, more ambitious tasks. Process in batches instead of going back and forth.
Automation, scheduled tasks, wake-up triggers and heartbeats are killer features. You do not realize how essential they are until they get turned off. Keep using them consistently: "Check the logs in two hours." "Let me know after the launch." "Run a check at 9 a.m. every day."
Stop manually managing context. Every second you spend wondering "is it using 300,000 or 380,000 tokens right now" is wasted time. Context compaction works surprisingly well, so do not manage context manually. One thread corresponds to one task: some threads only have 46 messages, while others have 3714.
Threads are the company's memory. (At Amp) "Why did we do this in the first place?" The more the team uses Amp, the more knowledge accumulates. The association between threads and git commits is a disruptive change that also avoids duplicated work.
Do not let agents write content intended for human readers for you. Exceptions: debugging steps, incident reports, some documentation — these types of content are mostly mechanical, and the experience barely changes no matter which human reads them.
Only review code with a large blast radius. I will review the core files, which are fewer than 5 in total. I will also review database migrations. As for whether to use closures or classes, whether the types are neater, variable naming, or even code duplication: I no longer care. Does it work? Can I understand it at the architecture diagram (boxes and arrows) level? Has the agent run end-to-end tests? Will I still be able to modify it a month later? If all the answers are yes, I might take a quick look at the code.
Translator: boxi.