After running hundreds of Agent sessions, I left three system rules
<!doctype html>
Machine-assisted translation. Read the Chinese original.
After running hundreds of Agent sessions, I left three system rules.
It can be parallel, but the task must be narrow; it can fail, but it must be downgraded; judgment and action need determinism access control.
One day in early September, I asked the self-built DeepSeek harness (hereinafter referred to as DSH) to run a round of competitive information scanning. Dozens of sub-agents were grabbing data, and one of them suddenly found that the built-in search tool began to return to HTTP 402 - the quota was used up. It didn't stop and wait for me. It flipped through the old scripts in the workspace, found two free search paths, and then completed its part of the task.
Let's explain the background first. DSH is a set of research pipelines in the resident background. The model is deepseek-v4.1-flash. The main usage is to fan out: a main agent disassembles the research task and sends sub-agents with role settings to work in parallel; each session is recorded in an event-by-event log. Who did what, which tool was adjusted, and which step failed can be reconciled later. From mid-August to now, there are 336 session catalogs. In these hundreds of sessions, quota exhaustion, review hallucinations, and 449 empty mail accidents have all been hit once, leaving three rules in the end. They do not bind DeepSeek, and any self-built agent system is still established.
Rule 1: It can be parallel, but the task must be narrow.
I grouped the number of sub-agents by day from the conversation record: 108 on September 8, 71 on September 24, and 53 on September 19. The division of labor can be seen in the naming - demand-validation researcher, primary-source documentation researcher. A round of competitive product scanning was removed, and a split body only took care of a company's public records on a source. After checking, he handed in the structured field and left. The narrow task also brings a by-product: failure becomes cheaper. A split body is checked and smashed, and a rerun is an API call. There is no need for people to clean up on the spot, and it does not pollute the output of other split bodies.
When is it worth opening to three digits? My judgment criteria are that three can be established at the same time: the task can be neatly cut into a narrow problem that does not depend on each other (one company, one source and one role); it doesn't matter if a single sub-task fails, and the cost of starting is close to zero; the result can be mechanically combined, and the main agent only summarizes. The three standards correspond to three costs: cutting cost, retry cost, and consolidation cost. Which one can't be paid, the fan out will be stuck at any level. If any of the three articles is not valid, fanning out is amplifying the chaos: when the task boundary is not cut cleanly, multiple split bodies will overlap the same object, and the conflict fields in the merging stage will need to be manually adjudicated. At this time, it is faster to open a few fewer. The economic account fanned out is not in the number of split bodies, and the task of each split body is so narrow that there is no need to judge.
The practice that can be taken away: cut the task first, and then talk about parallel. Cut each sub-task to the extent that the executor does not need to judge - the object is fixed, the source is fixed, and the output field is fixed; the task that can't be cut is left to a single session to do slowly, and opening a hundred splits can't save it.
Rule 2: You can fail, but you must be downgraded.
Back to the 402 at the beginning. The built-in web_search is a quota system, and it is normal to run out during large-scale scanning. The self-help path of the sub-agent is the working area..research/Two scripts in the directory: esearch.sh adjusts the search API of Oriental Fortune to parse the date, title, media name, link and summary; brss.sh requests Bing's RSS interface to parse the title, link and description. The quality of the source is worse than that of the full-volume web page search, but there is no quota. Financial information and Chinese web pages each occupy one, and the output format follows the needs of the sub-agent, so as not to waste the context window that is originally tight.
I added a hard discipline to this path: for any material obtained by downgrade retrieval, the output report must have a "retrieval restriction statement", stating which downgrade path is used and what coverage is missing. The credibility of the conclusions supported by the downgrade search has been discounted, and people who read the report (often a week apart) have the right to know this discount. The cost of honest marking is a paragraph, and the cost of not marking is to treat local sources as full evidence.
This rule only cares about one kind of problem: external dependence is gone, and whether the task can continue. In the early days of the system, it was luck that the system could survive by turning over the old scripts by itself. The 402 that time, it happened to rely on the fact that there were two old scripts lying in the work area, and turning "just in" into "inevitable" was what this rule should do. But not all failures depend on failure - in one kind of accident, the tools are all good, and the bad thing is that the action itself has no access control, which is the third rule.
What can be taken away: preset the downgrade path for each type of task (which backup link is hung by the main tool, and how to mark the discount on the downgrade material). The survivability of the system is not how smooth the normal path is, but whether the downgrade path exists in advance.
Rule 3: Judgment and action need definite access control.
Another assembly line of DSH is three-stage: ChatGPT comes out, DeepSeek lands, and ChatGPT reviews. In the third paragraph, I made an agreement--The review opinions must be verified mechanically before implementation.。
The source is the actual test record of 2026-08-16. The two consecutive rounds of review of the sample2 task reported "badge Markdown grammar damage", and the mechanical verification gave 4/4: the badge format all matched the standard style, the brackets matched and balanced, and the damage pattern claimed by the review appeared 0 times in the product. Judged as a false report, rejected, and the product did not move. In the same batch of tests, the first round of review of sample1 caught a real bug - the abstract generator skipped the subdirectory file, resulting in the lack of source code of the abstract. After the repair, the second round of review passed.
The same review model can not only catch real bugs, but also create problems that do not exist at all. If you take all the review opinions as instructions, you will change the code for illusions; if you take it as a wind, you will miss the real bug. The reliable dividing line is mechanical verification: if the reviewer says that it is bad, it will use regulars, tests and practice to verify that the bad method does not exist. If it exists, it will be repaired according to priority, and if it does not exist, it will be rejected.
The lesson of the judgment side comes from the illusion of judging, and the lesson of the action side comes from 449 empty emails. On August 22, a sub-agent carried out the task of sending letters for the external project, sending 449 empty body emails. In hindistance, this is not a downgrade failure: the SMTP channel is good, and the sending action is also "successful", but the bad one is that there is no gate control to stop it. "The text is empty, why is it still sent"? The conversation records of the next two days were all accident recovery: the SMTP channel was verified 323/323 one by one, and reissued according to the grade the next day (3 apologies, 10 explanations, and 310 text reissues), and then the text non-empty verification and evidence ledger were added to the letter-sending tasks. This kind of accident has the same origin as the evaluation illusion: the agent's self-narration will be wrong, the agent's action will also be wrong, and once the action is external, the error will directly fall into the other person's inbox. The downgrade saved the tools, and the action could not be saved without defense.
Therefore, access control should be samelized on each type of judgment and action. I fixedly run four ways: mechanical verification before the review opinion enters the execution queue (regular, test, actual run); preflight before sending an email into the sending queue (the text is not empty, the number of recipients is expected, the preview is kept in the file); the data is written before schema verification, and the field is not complete and refuses to write; the external action is dry-run first and then done. The common point of the four is that it is checked with deterministic code, not to send another agent to take a look. The verification itself is not expensive, a regular rule plus a test run; the expensive version is the version without access control - change the code for the illusion once, miss a real bug online, or send an empty email to 449 people.
Practice that can be taken away: the judgment and action are first entered into the access control queue, and then entered the execution queue. The access control is written as a check that can run automatically (regular rule, test, diff comparison, schema verification, preflight). Don't rely on the human eye to check it - the human eye check it again, which is equivalent to introducing another reviewer who will make mistakes.
Border
The three rules control the three types of risks of parallelization, downgrade, judgment and action, and cannot control "what to study". 1M The context window sounds big. What is really difficult in a two-week study is the continuity of judgment. At present, I still do it myself. The downgrade path solves the survival problem of quotas, and the deterministic access control solves the credibility problem of review and action, but the machine has not answered the topic selection for me. This is also the reason why I wrote three rules at the system level - the model is changed every half a year, and the skeleton of the system will be used for many years. The operation and maintenance layer has also paid the tuition fee (macOS permission locked the log, the service failed to pull up repeatedly with the exit code 78, and the data was moved out of ~/Documents and eradicated), but it was a one-time pit, which was gone after repair, and it was not worthy of the rules.
These three rules are all system-level: if you change DeepSeek, it will still work. If you only change the model and don't make rules, the bills of quotas, illusions and empty mail will come again.