Chapter 19. The machines learn to code (2022-2026)
One sentence, three years
In June 2024 Infosys filed its annual report on Form 20-F with the US Securities and Exchange Commission, a document in which a misleading statement carries legal risk. Among its risk factors, in a passage about wages and productivity, was a new sentence: ‘Due to the attention created by the code generation capabilities of AI technologies, clients have demanded higher commitments around productivity improvements.’1 The sentence came back the next year and the year after, changed each time in small ways, and the changes trace the arrival of the problem. In the report filed on 1 July 2025 one phrase changed: clients ‘have started demanding higher commitments around productivity improvements’.2 In the report filed on 15 June 2026, for the year to March 2026, the cause was widened. The sentence now began ‘Due to the attention created by evolving AI technologies’, and the clients were still demanding.3
The sentences on either side explain what the demand meant. Before it, in both later reports, Infosys said that ‘due to competitive market conditions and pricing pressures, we are committing to higher productivity improvements in our contracts with our clients’. After it, the company warned that failing to deliver those improvements ‘may impact our profitability’.4 Read together, the three sentences describe a mechanism. Clients hear that machines can write code. They ask for contracts that assume fewer hours of human work. The vendor promises the savings in advance and carries the loss if they do not arrive.
The 2026 report added a passage that had not appeared before. In its review of operations, Infosys described what its clients were doing: ‘large technology platforms continue to expand their service layers, while clients themselves are selectively insourcing capabilities as AI improves productivity and reduces dependency on external labor-based models’.5 An ‘external labor-based model’ is a fair description of what Infosys had sold since its founding in 1981. Here the company named, in a regulatory filing, the threat this chapter is about.
Its competitors’ filings moved the same way. Wipro’s report for the year to March 2026 added a risk factor: ‘AI-driven automation, efficiency gains and increased client self-service may reduce demand for certain services we provide and may adversely affect pricing, margins, service levels or the mix of services delivered.’6 It listed ‘outcome-based pricing’, meaning charging for a result delivered rather than for the hours spent on it, among the strategies firms were likely to adopt, and predicted that ‘Hiring will shift from volume to skills, emphasizing AI fluency, domain expertise, and productivity-based workforce models’.7 Cognizant, which is registered in the United States but employs most of its staff in India, wrote in its annual report for 2025 that ‘demand for some services that we currently perform for our clients may be reduced’ as AI evolved.8 All three also told investors, at length, that AI would create new kinds of work. But risk factors are written for lawyers rather than customers, which is why they are useful here. By 2026 three of the largest employers of Indian software engineers had told an American regulator that the machines threatened the volume of work they sold.
That volume was the whole of the bargain this book has followed. For forty years the Indian software industry had sold the time of people who write code, priced by the hour and the head, and the colleges had grown to supply the heads. This chapter covers the years in which machines learned to write usable code, from 2022, when the pandemic hiring boom ended, to the autumn of 2026. When code became cheap to produce, both halves of the arrangement were exposed at once. The evidence for what happened is recent, thin in places and contested on the point that matters most, which is cause.
The tools on the desk
The same filings record which tools the engineers were given. Infosys’s report for the year to March 2025 named one, GitHub Copilot, and claimed that Infosys was ‘among the top GSIs in adoption’, a GSI being a global systems integrator.9 A year later the list was longer: ‘We utilize leading AI solutions like Github Copilot, Cursor, Claude Code and Devin to name a few.’10 All four are commercial products that use AI models to write or change code. Claude Code is made by Anthropic, which also makes the AI model that assisted with the research and drafting of this book, and the reader should weigh this chapter with that in mind; here it is treated like the other three, as a tool a company reported using. Infosys said it had ‘infused AI throughout our software development lifecycle’ and used its own platforms for what it called ‘Agentic software engineering’, meaning software agents that carry out programming tasks over several steps.11
Wipro gave a count. In the year to March 2025, ‘over 20,000 associates’ in its delivery teams were ‘leveraging AI developer tools, boosting our overall productivity’.12 A year later the same sentence said ‘over 60,000’.13 Wipro reported more than 240,000 employees at 31 March 2026, so on its own figures about a quarter of its workforce was using such tools; how the productivity was measured, the filing does not say.14 Cognizant gave its staff ‘leading vibe coding tools’, meaning tools that let a person describe a program in ordinary language and have a model write it, and reported that they had produced ‘more than 30,000 prototypes’.15 The phrase thus entered an American annual report as a way of training a workforce of whom about 256,900, out of roughly 351,600 at the end of 2025, were in India.16
Every company also claimed that its workforce was being trained in AI, and none defined what training meant. The largest claim came from the National Association of Software and Service Companies (Nasscom), the industry’s lobby group, which said that 2 million of the industry’s 5.95 million direct employees had been ‘upskilled in AI’.17 The companies’ own counts ran into the hundreds of thousands.18 They show what the firms wanted investors and clients to believe, which was that their workforces were being remade rather than replaced.
The price of an hour
By 2026 the business press had a name for what Infosys had set out in 2024. Payal Ganguly’s report for Forbes India on 11 May 2026 called it ‘AI-led deflation, characterised by a productivity-based pricing structure demanded by customers and the passing on of productivity benefits to enterprises’.19 She quoted HCL Technologies’ (HCLTech’s) chief executive, C. Vijayakumar, on his company’s earnings call: ‘A $100 million deal would be much less today, maybe $80 million, just on a rough ballpark.’ Winning the same revenue, he added, took ‘at least 25-30 percent more effort’.20 K. Krithivasan, chief executive of Tata Consultancy Services (TCS), was more hopeful on his own call: ‘Our expectation is AI will be net accretive.’21 Salil Parekh of Infosys said that his company was signing multi-year deals priced on productivity.22
Who gained from a saved hour depended on the contract. A time-and-materials contract names the people and their rates; a fixed-price contract names only the price. Under the first, a saving in hours passes to the client, because the client pays for fewer hours. Under the second, the vendor keeps it, which is why Infosys had set out before 2002 to win more fixed-price work (Chapter 11). The evidence from 2026 suggests that both forms were being squeezed. Clients would not pay for hours that a machine could save, and under the productivity commitments Infosys described, the vendors had to promise the savings before they had made them.
There was a third form, and it was growing. Global capability centres (GCCs), the Indian offices that multinational companies own and staff themselves, employed about 2.36 million people by the year to March 2026, by the count of Nasscom and the consultancy Zinnov, and their revenue was already close to what the two had projected for 2030.23 Those figures come from an industry body and from a consultancy that sells its services to GCCs, and they are not measured on the same basis as Nasscom’s totals for the industry. What they suggest is a shift in who employed India’s engineers. The client was moving its work in house, and the house was often in Bengaluru (Bangalore until 2014) or Hyderabad. That was the ‘selectively insourcing’ of which Infosys had warned, seen from the other side. A parent company that does the work in its own centre keeps whatever saving the tools produce, where the client of a services firm has to bargain for it.
This, in the book’s reading, is where the bargain began to come apart. A firm that sells hours earns more only by selling more of them, which is why the industry had to keep hiring. A tool that shortens the hour does not merely make the firm more efficient. It hands the client a reason to buy fewer hours, and a captive centre a reason not to buy them from outside at all. Writing and testing code had passed early the test that the economist Alan Blinder proposed in 2006 (Chapter 14): work that can be sent down a wire without losing quality is exposed, however skilled the person who does it, and that is how so much of it came to India. The filings of 2024 to 2026 show the same work being repriced in the light of what machines could do.
The class of 2026
The colleges asked a simpler question: would the entry-level job survive? The evidence is mixed, and it is easy to read too much into it.
At Infosys, offers of employment, which include experienced hires as well as graduates, had collapsed to 26,975 in the year to March 2024, when 2,436,929 people applied, about 90 applicants for each offer. They recovered to 83,207 and then 87,286 in the next two years, while applications rose to 4,457,748 and 5,884,480, about 54 and 67 for each offer on the book’s calculation.24 In April 2026 Business Standard reported that TCS had given ‘a fresher hiring number of 25,000’ for the year to March 2027, against the roughly 40,000 that the paper said TCS usually took from engineering colleges.25 Krithivasan’s own words, to the Press Trust of India earlier that month, put the figure in a different light: ‘We have made 25,000 offers for freshers in FY27. Clarity on demand will lead to more hiring.’26 On his account the 25,000 were offers already made, not a ceiling, and TCS had reportedly hired more than 44,000 freshers the year before.27
The other firms were uneven. Infosys said in April 2026 that it would add 20,000 freshers in the coming year, keeping its annual target, a plan for graduate hires that measures something different from its offers of all kinds.28 Wipro’s chief human resources officer, Saurabh Govil, declined to give a figure: ‘Hiring will be as per demand.’29 HCLTech’s chief people officer, Ramachandran Sundararajan, said: ‘Given the current environment, it is difficult to provide a number.’30 Krithivasan added, in the newspaper’s paraphrase, that freshers take ‘up to nine months to come on the floor, while a lateral can deliver immediately’.31 The complaint that graduates arrive unready is as old as the industry. What may have changed was that some of the junior work a fresher used to learn on was the work for which the companies now described AI tools. Infosys’s 2024 report spoke of ‘a code assistant’ for ‘tasks like coding, testing, and documentation’.32 This is the kind of documented, standardised work Chapter 11 described, and the kind the tools were built for.
The dates, though, warn against a simple story. Infosys’s offers had already collapsed in the year to March 2024, and the delayed joining dates began in 2022.33 Yet the company’s first annual report to mention the ‘code generation capabilities of AI technologies’ was the one filed in June 2024, and the first coding tool it named in a filing, GitHub Copilot, appeared in the report filed in July 2025; Wipro’s first count of staff using such tools covered the year to March 2025.3435 On the companies’ own records, the slowdown in graduate hiring began before AI coding tools were a reported part of their work. Business Standard itself blamed the conflict in West Asia for the gloomy outlook of 2026.36 On the evidence available AI is at most one of several possible causes, alongside the end of the pandemic boom, weak demand from clients and geopolitics. On this book’s reading, what the tools changed was the reason to expect the rung to come back.
What the slowdown felt like on a campus is documented by Yashraj Sharma of Rest of World, in a report published on 9 December 2025. Rishabh Mishra joined the Indian Institute of Information Technology, Design and Manufacturing in Jabalpur in 2022 with what the reporter called ‘the most predictable dream in global tech’: to ‘study computer science, write code, and one day make it to Silicon Valley’.37 His course was due to end in May 2026. Among his 400 classmates, according to the article, fewer than 25 per cent had secured job offers.38 ‘It is really bad out there,’ Mishra said.39 Some classmates were thinking of further study before looking for work. He was doubtful: ‘But after one year, if you return to the job market, your degree is even more irrelevant.’40 Another student named in the report, Nishant Kaushik, who had studied computer science at a well-ranked college in eastern India, had decided to look for jobs in sales or marketing instead.41 Rest of World framed its report around AI and cited a finding by the consultancy EY that Indian IT services firms had cut entry-level roles by 20-25 per cent because of automation and AI.42 One college in one year is a single data point. It is also a real student, in his own words, at the moment the argument about AI reached the campuses.
Those who did get jobs found that the starting salary had barely moved. Udit Hinduja of ThePrint reported in September 2025 on an unnamed TCS fresher in Ahmedabad who shared a room with three colleagues he had met in training, on a monthly salary of Rs 24,000 (about $270 at the year’s average rate). ‘I’m lucky that I had some savings to buy a bike, otherwise I would have to walk to work,’ he said.43 Neeti Sharma, chief executive of the staffing firm TeamLease Digital, told the same reporter that starting salaries for science and engineering graduates had been Rs 2-2.5 lakh a year in 2014 and were Rs 3-3.5 lakh (about $3,400-4,000) ‘today’, ‘not even enough to cover inflation over the last decade’.44 The entry-level hour had always been the cheapest the industry sold. On the argument of this chapter, it was also the one a machine could most easily replace.
A stall, not a collapse
The fear in 2025 and 2026 was that the machines would empty the offices. The headcount figures do not show that. They show a stall after the boom and bust of the pandemic years.
Infosys had 317,240 employees at 31 March 2024, 323,578 a year later and 328,594 at 31 March 2026.45 Wipro reported ‘more than’ 232,000, 230,000 and 240,000 at the same dates.46 At Cognizant, voluntary attrition in technology services, the share of staff who chose to leave in a year, fell from 25.6 per cent in 2022 to 15.9 per cent in 2024 and 13.9 per cent in 2025, figures consistent with fewer outside offers.47 Nasscom estimated 135,000 net additions across the industry in the year to March 2026, taking direct employees to 5.95 million, while revenue rose 6.1 per cent to $315 billion: the non-linearity with which the prologue began.48 Nasscom’s figures are an industry body’s estimates and are revised.49
TCS was the exception. Avik Das of Business Standard, compiling the companies’ results in April 2026, reported that the five largest firms’ combined headcount fell by 6,981 in the year to March 2026, after rising by 12,718 the year before. TCS’s net headcount fell by 23,460, while Infosys, Wipro and HCLTech added people.50 Part of that fall was the result of a decision announced on a Sunday the summer before.
July 2025
On Sunday 27 July 2025 TCS said, in a statement printed by Business Standard, that it was ‘on a journey to become a future-ready organisation’. Its initiatives included ‘deploying AI at scale for our clients and ourselves’ and ‘realigning our workforce model’. ‘We will be releasing associates from the organisation whose deployment may not be feasible,’ it said. ‘This will impact about 2 per cent of our global workforce, primarily in the middle and the senior grades, over the course of the year.’51 The paper put the number at about 12,260 of TCS’s 613,069 employees.52 The company said it would provide, in Deccan Herald’s paraphrase, ‘appropriate benefits, outplacement, counselling, and support’ to those affected.53
Krithivasan explained the decision to the business website Moneycontrol. Reuters quoted him: ‘This is not because of AI giving some 20% productivity gains. We are not doing that. This is driven by where there is a skill mismatch, or, where we think that we have not been able to deploy someone.’54 Outlook Business, relaying the same interview, reported him saying that ‘Some people, especially at senior levels, find it difficult to transition to tech-heavy roles’, and that ‘This is not a question of demand. It is about us being future-ready.’55 He described a move away from ‘waterfall’ project management, in which a project passes through fixed stages under layers of managers, towards agile methods that needed fewer such layers.56 Shritama Bose and Ujjaini Dutta of Reuters Breakingviews wrote that he was seeking to play down fears of an ‘AI-induced jobs armageddon’, and offered a reading of their own: TCS’s headcount had risen 36 per cent since 2020, and while revenue per employee had risen 20 per cent, costs per employee had risen by a quarter.57 On this reading the cut was about cost after over-hiring. The IT & ITES Democratic Employees Association (IIDEA), a union, offered a third: ‘What we are witnessing is not transformation but cost-cutting masquerading as future-readiness.’ It accused TCS of targeting experienced, better-paid staff.58
The three explanations are not exclusive, and AI could sit behind any of them. A skill mismatch can arise because clients want AI work; costs matter more when clients demand AI-driven discounts. No published record shows which roles were cut, or why, in enough detail to decide between them. Whether AI caused the TCS cuts remains an open question.
The bench
What the cut felt like is known from reporting in Bengaluru, almost entirely through employees who would not give their names. Anisha Reddy of South First reported on 2 August 2025 that more than 100 TCS employees had approached unions in the previous week.59 Lenil Babu, secretary of the Karnataka State IT/ITeS Employees Union (KITU), told her: ‘So far, we have filed complaints with the Additional Labour Commissioner of Karnataka on behalf of 15 employees who were already let go. But another 100 have approached us after being put on the bench.’60
The bench is where an engineer waits, still employed and paid, between projects. In the industry’s long boom, time on the bench was a normal part of a career and a cost the firms absorbed, because a firm that sells hours needs people ready to bill. South First reported that a new TCS policy, in force from 12 June 2025, allowed an employee at most 35 days a year without a project and required at least 225 billable days.61 The reporter saw an email sent to one employee: ‘Your prolonged un-allocation without any productive assignment is a matter of concern to the company and the company views this matter very seriously.’62 The Nascent Information Technology Employees Senate (NITES), a union based in Pune, said the policy ‘frames lack of allocation as a personal failure of the employee’.63 TCS told South First that the restructuring was being planned with due care so that service to clients would not be affected.64
Korah Abraham of The News Minute reported on 7 August 2025 how the resignation meetings worked, again from anonymous accounts. A Bengaluru employee in middle management alleged: ‘They offered three months’ pay as an incentive to resign. But if someone refuses, they’re told they’ll be terminated without compensation, and won’t receive a relieving letter.’65 A relieving letter is the document an Indian employer gives a departing employee, and the next employer usually asks to see it. Two employees said they had been asked to switch off their phones and leave them on the table before meeting human resources staff.66 A woman who had resigned said she would have fought the case if she could have afforded to: ‘I come from a financially poor background.’67 One employee estimated that more than 300 people had been made to resign from a single Bengaluru campus in a week.68
TCS denied that it had forced people out. When NITES wrote to the chief minister of Maharashtra in the autumn, claiming that about 2,500 employees in Pune had been made to resign or abruptly removed, the company replied: ‘The misinformation shared here is inaccurate and purposefully mischievous. Only a limited number of employees have been affected by our recent initiative to realign skills in our organisation.’ Those affected, it said, ‘have been provided due care and severance’.69
KITU had taken its case to the state. It filed an industrial dispute on 29 July, two days after the announcement, accusing TCS of illegal mass retrenchment. Its argument was that the company was pushing people to resign so as to avoid the government approval that the Industrial Disputes Act requires before a firm with more than 100 employees retrenches workers.70 Karnataka’s labour minister, Santosh Lad, told reporters that his department was looking into the union’s letter, but added: ‘We cannot act in a hurry.’71 On Wednesday 6 August two managers from TCS’s human resources department sat down at the Labour Office in Bengaluru across from three KITU officials, among them its general secretary, Suhas Adiga, and its president, V.J.K. Nair. The Additional Labour Commissioner, G. Manjunath, presided as conciliation officer. The meeting ended without agreement, and a further round was set for 8 September.72
The company’s own figures, two months later, sharpened the dispute. On the investor call after its results for the quarter to September, TCS’s new chief human resources officer, Sudeep Kunnumal, said that ‘the 20,000 headcount (reduction) is a factor of voluntary and involuntary attrition’; and, as Deccan Herald reported, he hinted that the involuntary part was 6,000 employees who had been ‘released’. Headcount had fallen from 613,069 at the end of June to 593,314 at the end of September.73 KITU and two other unions read that as a confession: ‘By openly accepting that it has retrenched 6,000 employees, TCS has admitted to a violation of the Industrial Disputes Act’.74 The company called the departures realignment; the unions called them retrenchment by another name. The word that decided which law applied was the one the two sides could not agree on.
The regulator’s answer
The All India Council for Technical Education (AICTE), the regulator that approves engineering colleges, responded with announcements. On 23 December 2024 it declared 2025 the ‘Year of Artificial Intelligence’, with a campaign called ‘AI for All’, AI laboratories and workshops for teachers across what it said were more than 14,000 colleges with 40 million students.75 On 6 June 2025 its chairman, T.G. Sitharam, told the Press Trust of India that AI would be brought into the model curricula of every branch of engineering, information technology and management. ‘A committee of experts has been constituted to suggest necessary revisions in the model curriculums,’ he said.76 No circular making AI part of every branch, and no revised model curriculum, has been located. The regulator announced the change; whether the colleges carried it out is not on record.
The state builds a model
The Indian state answered the AI question as it had answered identity and payments, by building. The IndiaAI Mission was launched in March 2024 with an outlay of Rs 10,372 crore (Rs 103.7 billion, about $1.25 billion at the year’s average rate), for computing capacity, data, models and research.77 It selected twelve organisations and consortia to build foundation models, the large general-purpose models on which applications are built.78 The first was Sarvam AI, founded in August 2023 by Vivek Raghavan and Pratyush Kumar, both graduates of the IITs.79 On 26 April 2025, according to the trade journal tele.net, Sarvam was chosen to build ‘an open source 120 billion parameter’ model (parameters are the adjustable values in a model, a rough measure of its size).80 The minister for electronics and information technology, Ashwini Vaishnaw, said: ‘We are confident that Sarvam’s models will be competitive with global models.’81
At the India AI Impact Summit in February 2026 Sarvam unveiled two models, Sarvam-30B and Sarvam-105B, the larger of them smaller than the 120 billion parameters announced in 2025.82 Debarghya Sil of Inc42 judged the models competitive in their size class and strong on Indian languages, but behind the frontier models of OpenAI, Anthropic, Google and Meta in ‘raw reasoning depth’.83 Raghavan called the launches a ‘significant first step’.84 The state was not trying to replace the services industry with a model of its own. It was trying to make sure that the country that had supplied so much of the world’s programming labour owned some of the machines that were starting to do it.
More coders than ever
In October 2025 GitHub, the code-hosting service, projected in its annual Octoverse report, as The Register reported it, that India would have 57.5 million or more developers on the platform by 2030, overtaking the United States, and said that 80 per cent of new users began using its AI coding assistant in their first week.85 A GitHub account is not a job, and the projection is not a count of engineers. But the two numbers belong together. More Indians were writing code than at any point in the history this book has traced, and most of the newest of them were writing it with a machine at their elbow. The industry built on selling their hours had told its regulator that clients would buy fewer of them. For half a century the problem had been how to make enough engineers. Now it was who would pay for their time.
As of October 2026
The account above rests on documents that will date quickly. What follows records where the numbers, the forecasts and the American visa stood when the book went to press.
In the year to March 2026 two of the largest firms shrank in dollar terms. According to Forbes India, TCS’s revenue fell 0.5 per cent in US dollars and Wipro’s 0.32 per cent.86 At the same time the companies reported growing AI revenue: TCS an annualised figure above $2.3 billion by the end of the year, HCLTech $620 million of what it called ‘Advanced AI’ revenue, and Infosys $275 million in a single quarter.87 Nasscom made its first estimate of the industry’s AI revenue, at $10-12 billion.88 Each company defines AI revenue its own way, so the figures cannot be added up or compared, and Gaurav Vasu of the research firm UnearthInsight put it at under 5-7 per cent of the top five firms’ revenue.89 Vijayakumar spoke of a deflationary effect of 3 to 5 per cent on HCLTech’s guidance for the year to March 2027.90 The brokers were blunter. A report by Motilal Oswal Financial Services, dated 4 May 2026, estimated that 12-15 per cent of the sector’s revenue faced ‘direct AI-driven displacement risk’, and said: ‘The cost of delivering an outcome has fallen sharply; these savings are currently being extracted almost entirely by enterprise buyers through productivity demands and vendor price pressure.’91 Kotak Securities expected the industry’s revenue growth to stay ‘range-bound at 3 percent’.92
The route to America narrowed at the same time. On 19 September 2025 President Donald Trump signed Proclamation 10973, which said the H-1B programme, the visa that had carried Indian engineers to client sites since the 1990s, had been ‘deliberately exploited to replace, rather than supplement, American workers’, and that ‘Information technology (IT) firms in particular have prominently manipulated the H-1B system’.93 From 21 September, for twelve months, it barred the entry of H-1B workers whose petitions were not ‘accompanied or supplemented by a payment of $100,000’.94 The traffic was already falling: the National Foundation for American Policy, a pro-immigration research group, counted 4,573 initial-employment approvals in the US fiscal year 2025 for the top seven Indian-based companies, 70 per cent fewer than in 2015.95 On 18 September 2026 Proclamation 11069 extended the restriction for another year, and claimed that ‘the largest IT staffing and outsourcing firms’ had cut ‘their combined H-1B registrations from 24,946 to 2,055, a 92 percent decrease’.96 Those are a party’s figures, offered to justify the policy.
The courts then stopped the fee without striking down either proclamation. On 8 June 2026 Judge Leo T. Sorokin of the federal district court in Massachusetts, in a suit brought by twenty states, held that the agencies’ policy ‘imposes a tax on H-1B petitions without the requisite delegation by Congress’ and vacated it.97 The First Circuit refused to suspend his order pending appeal.98 A federal court in Washington, DC, had upheld the fee in 2025, and that ruling too was on appeal.99 On 30 September 2026 Judge Haywood S. Gilliam Jr. in the Northern District of California barred the agencies from enforcing their policies under both proclamations until they had gone through the formal process of public notice and comment.100 By mid-October the $100,000 could not be collected, three appeals were pending, and the Department of Homeland Security had proposed a fee of about $103,000 through the process the courts said had been skipped.101
The factory, meanwhile, had not stopped. By TCS’s quarterly results as reported, about 14,000 freshers joined in the April-June quarter of 2026 and about 10,000 in July-September, and its headcount had risen for three quarters in a row, to 598,056.102 Its chief human resources officer put the policy in five words: ‘We are hiring for demand’.103 In the long boom the firms had carried the bench as the cost of always being ready to bill. Now the largest of them was hiring only for the work in hand.