How AI Has Transformed Coding

0
5

The journey from writing code manually to being assisted by AI today has been long and complex, and some issues still need to be addressed. But when used the right way, the benefits AI brings to the developer world are astounding.

Coding isn’t what it used to be. With AI helping write almost everything, we’ve gone from days of manual work to minutes of automated builds—a transformation that’s redefining the business of building software.

But this transformation wasn’t an overnight sprint; it was a journey. It’s a common mistake to think you can just give AI tools to developers and expect them to write production-quality code from day one. That’s not how it works. If not controlled or prompted properly, AI can generate useless code and even break existing repositories. Reaching the state we are in today required our developers to take a deliberate journey, learning to manage this new way of working.

Today, those developers are more like conductors, guiding an orchestra of AI tools. The impact is staggering. When a new business requirement comes in, more than 90% of that new code is generated by AI. But it doesn’t stop there. Even within our existing, mature codebases—some written 2-3 years ago, long before these techniques were common—AI is responsible for 55-60% of the modifications. This is where AI must figure out a lot of existing context, and our developers are driving that interaction. What used to take days, we now knock out in minutes. A typical front-end project? We can get that production-ready in about 30 to 40 minutes. A new backend service from scratch for a low-to-medium complexity use case? That’s done in just eight minutes! Give the system a UI design file, and it spits out Node.js for the backend and React.js for the frontend, ready to roll.

At Piramal Finance, this isn’t just theory—it’s practice. With more than 90% of our new code being AI-generated, this software is serving us very nicely; some of these systems are also scaled up to almost all our branches across the country. The real transformation isn’t just about speed — it’s about business agility. We are now processing about 300 million tokens daily—the equivalent of roughly 10 million lines of code. This scale allows our autonomous agents to fix bugs even while our developers sleep, fundamentally changing how we respond to market demands. When a business requirement comes in, whether from the marketing team, operations, or compliance, we can get solutions into production within hours.

Using existing AI models vs custom models

For enterprises, there are two choices: building customised AI models and AI agents or using existing models available on platforms like GitHub. Each has its own advantages and disadvantages, but it’s up to the developers to choose, keeping in mind the time and resources it will save.

Three factors impact the decision.

  • Custom model training costs: Needs a lot of H200 GPUs, hours to train, data preparation, and ongoing maintenance.
  • Existing model advantages: Immediate deployment, proven performance, continuous updates.
  • Return on investment timeline: Immediate vs 6-18 months for custom solutions.

AI agents work while you sleep

AI agents can be integrated with the software development lifecycle (SDLC) at each stage of the development phase—from coding and reviewing to testing, maintaining, and debugging. These AI agents can raise tickets, look for the issue, fix the issue, and create pull requests for final review. The cycle continues even after developers log off, as AI agents take over the system. By the next morning, developers arrive to find resolved tickets ready for final review.

The six-agent autonomous system we use is:

  • Boss agent: Orchestrates the entire workflow and updates Jira status.
  • Agent 1: Understands and triages Jira issues using standardised templates.
  • Agent 2: Integrates with Grafana for root cause analysis.
  • Agent 3: Communicates with stakeholders and provides RCA reports.
  • Agents 4 and 5: Check out repositories and collaboratively debug (they literally argue with each other in the console logs like human developers).
  • Agent 6: Creates pull requests and manages deployment.

Reasoning models vs fast inference

The most strategic decision is to understand when to use reasoning models versus fast inference. If you ask GPT-4.0 what ‘1+1’ is, it will instantly respond with the answer ‘2’.

When asked the same question in the reasoning model, it will take significantly more time, engaging in philosophical contemplation about whether this was a tricky question. Reasoning models are ‘slow thinkers’; reserve them for complex workflows and architectural decisions.

Challenges and solutions

Before using generative AI, companies should learn how to get the best results from AI, as it can give inaccurate code or data when working with large models. It’s important to manage risks and ensure quality, so starting with small groups and analysing AI’s benefits works best. Though AI costs money, it often saves more by speeding up work compared to hiring many new workers. Here’s how we can manage risks, make cultural changes, and balance costs with benefits.

Managing risks and quality

Generative AI carries real risks. Large models can produce inaccurate code or invent data. Even with expensive context windows, enterprise codebases can overwhelm an AI model. By using retrieval-augmented generation, which separates prompt engineering from text generation, we keep human oversight on customer-facing features. Business-related risks like developer resistance, customer concerns, and security are addressed with pilot programs, clear demonstrations of value, and strong vendor contracts that include on-premises options and audit trails.

Cultural transformation

Managing cultural change is as important as learning the technology. It is not wise to think that an organisation can simply deploy tools like Cursor and expect developers to immediately go ahead and start writing code with it. For us, this was a journey. Developers shifted from writing code line-by-line to overseeing AI-generated output, but they had to uncover a lot of challenges and build new habits before they reached this state. We spent a significant amount of time with our developers to train them on how to use AI to write code, and how to explain requirements to the AI in the right way—a practice we call ‘context engineering’. In short, this dedicated training and change management are fundamental.

Costs versus benefits

Despite the scale, the cost can be surprisingly modest. Daily token consumption sounds high until you compare it with hiring dozens of additional developers. The annual cost of the entire AI platform is less than that of two senior engineers. Expenses include enterprise licences, secure infrastructure, training, and quality control, but the gains in delivery speed and business agility are far greater when implemented wisely.

Using AI well means knowing where it fits best — fast models for quick output, reasoning models for complex decisions, and pairing them with the right tools, agents, and workflows. But speed alone isn’t enough. Success depends on managing risks, keeping human oversight where needed, easing cultural shifts, and measuring return on investment. When all these pieces work together, AI becomes not just a coding tool, but a competitive advantage.


This article is based on the session titled ‘Prompt, Set, Code!’ delivered by Jaydeep Chakrabarty, Director of AI in Tech, and his team from Piramal Finance, at AI DevCon 25 in Bengaluru.

LEAVE A REPLY

Please enter your comment!
Please enter your name here