Do AI Agents Really Evolve? A Practical Test with Batch File Processing
This article examines whether AI agents truly self-iterate and evolve, or whether the claim conflates model weight updates with in-task behavioral adjustments. Using a batch file processing scenario—downloading and renaming 176 videos from a structured table—it compares two agent execution paths, highlights why small local models fail, and proposes verifiable engineering metrics such as first-pass rate, self-correction rate, and delivery cleanliness. It also offers practical recommendations for building reliable agents.
1. The Question: Are AI Agents Really Evolving?
Over the past couple of years, claims that AI agents can self-iterate and self-evolve have kept appearing. From an engineering perspective, however, such statements often blur two distinct layers: updates to model weights, and an agent’s behavior when it adjusts its strategy based on feedback during a single task run. The former depends on training and alignment pipelines; the latter depends on context, tool calls, and verification loops. Packaging the latter as the former is a common substitution in current marketing.
The most effective way to judge whether an agent truly has iteration capability is not to watch a demo video, but to put it into a real task that is detail-dense and unforgiving, then observe its execution trace, output quality, and self-correction after failure. Batch file processing happens to be exactly such a touchstone.
2. Task Design: Why Batch File Processing Is a Good Evaluation Scenario
Consider this requirement: you have a structured table containing 237 user authentication records, 176 of which include video URLs generated during a face verification step. You need to download each video to local storage and rename it according to the rule “Name-IDNumber.Extension”.
The complexity is not in the act of downloading, but in the following details:
- Quantity and completeness: all 176 objects must be present; missing one means task failure.
- Inconsistent extension casing: the same batch may contain both lowercase and uppercase video suffixes. If the script normalizes everything to lowercase, the original format information is erased.
- Strict naming convention: separators, field order, and whether the ID number includes a check digit cannot be changed arbitrarily.
- Long runtime and interruption risk: batch network requests take a long time, and a mid-way failure requires resumability rather than starting over.
- Delivery cleanliness: the output directory should contain only the deliverables themselves.
These five points form a natural multi-dimensional scorecard that evaluates an agent’s planning, tool use, exception handling, and delivery awareness at the same time.
3. Comparing Two Execution Paths in Practice
The test used two typical agent execution paths. Both called a general-purpose large model of the same tier, and each run cost on the order of 1 yuan, so the difference did not come from model capability but from the agents’ engineering wrappers.
Plan A’s strategy was: analyze the table structure, automatically write a download script, then execute, verify, and wrap up. The final result:
- All 176 videos downloaded successfully.
- Naming strictly followed the “Name-IDNumber” convention.
- Video suffixes with different casing were preserved as-is.
- The target directory contained only the 176 video files, with no leftover scripts, logs, or intermediate copies.
Plan B also chose the code execution route, and its output was equally correct in quantity, naming, and suffix handling, but the directory additionally retained two files: the download script and a copy of the data source. The business result was usable, but the delivery standard was not met—in a formal pipeline, this would require an extra round of manual cleanup.
The difference may look minor, but it actually exposes the maturity of an agent’s “task boundary awareness”: whether it understands the distinction between deliverables and process artifacts, and whether it proactively performs an output self-check before finishing.
4. Key Finding: Why Small Local Models Fail Collectively
One phenomenon worth recording from the test is that when the same task was given to locally deployed small-parameter models, almost all of them failed, and the failure modes were highly consistent:
- Collapse at the planning stage: unable to decompose a natural-language requirement into a step sequence of “read table → filter non-empty URLs → download one by one → rename → verify count”.
- Unstable tool calls: generated scripts contained guessed field names and path concatenation errors, and the model did not read error logs to self-correct.
- No verification loop: even when some downloads failed, it did not retry, and the task ended once it “looked finished”.
- Rapid context degradation: as items piled up, early constraints were lost, and naming rules drifted midway.
The root cause is not parameter count itself, but these models’ insufficient capability in long-range instruction following, structured output stability, and error recovery. The reliability ceiling of an agent depends on whether the base model can consistently produce executable structured decisions. Engineering wrappers can only amplify capability; they cannot create it out of thin air.
5. Turning “Self-Iteration” into Verifiable Engineering Metrics
If you must evaluate iteration capability, use the following observable metrics instead of vague statements:
- First-pass rate: the proportion of runs that satisfy all constraints without human intervention.
- Self-correction rate: the proportion of cases where the agent can autonomously locate and fix an error after one occurs.
- Constraint retention: the end-to-end consistency rate of hard constraints such as naming and format in long tasks.
- Delivery cleanliness: the number of process files left in the output directory.
- Cost per task: with calls at a common general-model tier, cost is typically kept in a very low range.
The verification logic can be as simple as this:
import osdef verify(dir_path, expected):files = [f for f in os.listdir(dir_path) if os.path.isfile(os.path.join(dir_path, f))]assert len(files) == expected, f"Count mismatch: {len(files)}/{expected}"for name in files:stem, ext = os.path.splitext(name)assert ext in {".mp4", ".MOV"}, f"Unexpected suffix: {name}"assert len(stem.split("-")) == 2, f"Invalid naming: {name}"
What truly reflects “evolution” is an agent returning to the previous step to fill in missing items after an assertion fails, rather than repeatedly outputting the same faulty script.
6. Recommendations for Engineering Implementation
- Write hard constraints as machine-verifiable assertions, not just in prompts.
- Require the agent to run a self-check before finishing and output a verification report.
- Explicitly separate the working directory from the delivery directory, and write process files to a temporary area.
- For download tasks, add concurrency control, timeout retries, and resumable execution.
- When handling sensitive data such as face data, process it within a private network environment first, clean up outputs promptly after they land, and use common cloud capabilities such as object storage, logging services, and monitoring alerts for traceability and auditing.
- For model selection, prefer general-model tiers with stable structured output for long-range tool-calling scenarios; small local models are better suited to short-range tasks such as classification and extraction.
7. Conclusion
Most of the “iteration” AI agents currently exhibit is feedback correction at the execution layer, not self-evolution at the capability layer. The value of tasks like batch file processing lies in laying out planning, tool use, exception recovery, and delivery standards all at once. Whoever can deliver clean, complete, and verifiable output without human intervention is closer to engineering usability; as for self-evolution, it still needs to be answered by returning to the training and evaluation systems themselves.
