The Era Where AI Handles Pull Request Fixes and Cleans Up Old Code on Its Own—A Structural Change Begins That Reduces Development Costs from 400,000 Yen to 50,000 Yen per Month
Related Articles
Is There Still a Need for Humans to Handle Code Fixes That Were Outsourced?
To get straight to the point, the new features introduced by Anthropic’s “Claude Code” have the potential to fundamentally change the cost structure of system development for small and medium-sized enterprises (SMEs).
The world is beginning to take shape where AI can “automatically finish” most of the tasks that were previously outsourced to engineers for 400,000 yen a month, such as fixing pull requests, addressing CI failures, and resolving merge conflicts. In terms of monthly costs, this could mean just a few tens of thousands of yen for API usage fees.
This isn’t just a story about how “amazing AI is.” It’s about how decision-making in SMEs changes when costs drop by an order of magnitude.
—
Claude Code’s New Features Targeting “Routine Tasks”
Let’s break down the new features of Claude Code announced by Anthropic in June 2025.
Claude Code Hooks allow custom scripts to be inserted into the lifecycle of coding agents. For example, it can automatically run a linter every time a file is edited or inject specific rules before launching sub-agents, all achievable with just a few lines of code. Tasks that were previously communicated verbally by humans as “please do this before the review” can now be embedded as a system. This eliminates the need for personalization.
Claude Approvals is a feature that allows pre-approval rules to be set when agents edit files or execute commands. Controls can now be established, such as “editing files in this directory is okay, but requests to external APIs require approval.” In other words, companies can control the scope of what AI is allowed to handle. It’s not left unchecked.
PR Steward (automation of pull request management) operates Claude Code on GitHub Actions, automatically fixing CI check failures and resolving merge conflicts. The cycle where a human points out “the CI is failing” in Slack and an engineer spends 30 minutes fixing it—this cycle will disappear.
What happens when these features are combined? The loop of code review → modification instructions → modification → re-review → approval, which consumed the most time in development settings, will be largely automated.
—
Cost Estimation: Outsourced Engineer at 400,000 Yen vs AI at 50,000 Yen
Let’s think about the numbers specifically.
When a local SME outsources system modifications, the going rate for a freelance engineer is typically between 400,000 and 600,000 yen per month. How much of that time is actually spent writing “new value-generating code”?
Based on industry surveys and on-the-ground insights, it can be estimated that 30-40% of an engineer’s working hours are spent on routine tasks such as responding to reviews, fixing CI issues, resolving conflicts, and investigating existing code. This means that out of the 400,000 yen, approximately 120,000 to 160,000 yen is being spent on “tasks that do not generate new value.”
The usage fee for the Claude Code API is only a few tens of thousands of yen per month, even with heavy usage (based on Anthropic’s pricing structure). If AI can replace 70% of routine tasks, then the 120,000 yen worth of work could be replaced with just 30,000 to 50,000 yen.
What’s even more important is that this doesn’t mean “engineers will become unnecessary.” If engineers are freed from routine tasks, they can focus on design decisions and implementing business logic—in other words, the work that only humans can truly do. With the same 400,000 yen, engineers can now deliver 1.5 times the value they did before.
Alternatively, a new option could emerge: the development that was previously outsourced for 400,000 yen a month could now be managed in-house by non-engineers and AI for just 50,000 to 100,000 yen. With Claude Code Hooks and Approvals, rules can be set for AI to perform tasks, and humans only need to approve them. Even without specialized programming knowledge, it has become possible to manage routine modifications.
—
Cleaning Up Old Code—The “Technical Debt” Begins to Dissolve
There is another troublesome issue with SME systems: unused old code.
In systems created ten years ago, there are countless functions that no one touches. No one knows if they can be deleted. As a result, maintenance costs continue to rise, leading to systems that are “too scary to touch.”
A study titled RepoClean published on arXiv evaluated the ability of coding agents to identify and remove unnecessary code within repositories. To be honest, the results showed that even the best models had a resolution rate of only 23%. It is still a work in progress.
However, this number should not be interpreted as “it’s still unusable.” If 23% can be cleaned up automatically, then humans can concentrate on the remaining 77%.
Cleaning up technical debt has previously been something that was “better to do, but postponed because it doesn’t directly contribute to revenue.” The costs were simply too high. Hiring external engineers for just code investigation could cost tens of thousands of yen.
Now, simply instructing an AI agent to “list the unnecessary code in this repository” can yield candidates in just a few hours. While it’s not perfect, the investigation costs are now less than one-tenth of what they would be if done from scratch by humans.
This “one-tenth” is crucial. As costs decrease, cleaning up technical debt that was previously untouched becomes a rational business decision.
—
Quality Control of AI-Generated Code—Avoiding “You Get What You Pay For”
In the era of AI writing code, there is another point to consider: quality control.
There is a risk that code generated by AI may contain security vulnerabilities. Research is underway to automatically detect code generated by LLMs, and the detection accuracy at the function level for GPT-3.5 generated code has a high AUC-ROC score of 0.96. This means that it can accurately determine whether “this code was written by AI” with considerable precision.
What does this mean in practice? It becomes possible to focus security reviews specifically on code written by AI. There is no need for humans to review all code. Human resources can be concentrated only on the high-risk areas. This is also a change in cost structure.
—
The True Meaning for SMEs—The Barriers to “In-House Production” Disappear
Let’s summarize the discussion from the perspective of a local SME owner.
Until now, system development was something to be “outsourced.” The reason is simple: there was no budget to hire engineers. 400,000 yen per month multiplied by 12 months equals 4.8 million yen annually. For local SMEs, this is a significant fixed cost.
But what if the cost of AI tools drops to 50,000 yen per month? That’s 600,000 yen a year. 4.8 million yen versus 600,000 yen. This difference fundamentally changes decision-making.
Of course, not everything can be completed solely by AI. Design decisions, organizing business requirements, and final security checks—human work will remain. However, this could mean that instead of “hiring a full-time engineer,” it might suffice to “have an expert review a few times a month.” This could be a spot contract for 50,000 to 100,000 yen per month.
Even when totaled, that would be 100,000 to 150,000 yen per month. Annually, that’s 1.2 to 1.8 million yen. This is less than one-third of the previous outsourcing costs, and it results in a system that can be controlled in-house.
—
So, What Should We Do?
Here are three things to do immediately.
1. Try out Claude Code. You can start with a monthly subscription. Begin with small internal scripts or tool modifications. Before integrating it into larger systems, get a feel for the “areas that can be entrusted to AI.”
2. Visualize the “routine task costs” of your own systems. How much of the monthly fees paid to outsourcing companies goes to reviews, modifications, and investigations? This will give you a benchmark for the “amount that can be replaced by AI.”
3. Consider “in-house production” as an option. If you previously thought, “we can’t do it because we don’t have engineers,” recognize that the premise has changed. AI writes the code, and humans make the decisions—this division of labor is becoming a reality.
There’s no need to wait for technological evolution. Now that costs have dropped by an order of magnitude, there are fewer reasons not to act. Start small and find the “areas where 400,000 yen can become 50,000 yen” for your company. That’s the first step.
JA
EN