K2: Agentic SDLC Solution for Engineering Leaders
About a year ago, Mahathi made a decision that many companies our size discuss and few carry through. Instead of subscribing to off-the-shelf platforms for the way we run ourselves, we began building our own: an employee work hub, payroll systems, an internal CRM and other tools that followed.
The reasoning was practical. Subscriptions are a recurring cost, and a vendor’s product rarely matches the way a company actually works. Building gave us control over both. What we had not fully appreciated was how much software we had also agreed to maintain.
Every platform produced defects and enhancement requests. Our CEO, Vishwa Ganapati, developed a habit. When something came in, he would walk over to my desk and we would talk through what had broken, what it touched and what shipping a safe change required. I would solve the problem, then automate the method so the next similar ticket would not begin from zero.
After enough rounds, that automation had a shape. Vishwa gave it a name: K2, short for Krishnan Two. The joke stayed, and so did the system. That origin still explains K2 better than a product description can. It began as a set of engineering habits formed under real maintenance pressure, on systems our own company relies on every day. Those habits became our approach to an Agentic SDLC.
01 Why is Agentic SDLC more than the model?
Most conversations about AI in engineering begin with the model: which one writes better code, which assistant feels faster, which vendor is ahead. Model quality matters, but it does not decide whether an organisation can trust a change enough to merge it.
A capable model can still receive an incomplete requirement, work from stale context or propose a change the business never authorised. Giving that model broad repository access without a defined process creates a liability. Put it inside a workflow with scoped permissions, scanned diffs, branch-only changes, required tests, bounded retries and human approval, and the risk changes materially.
The durable engineering work therefore sits around the model. Teams need to decide what the agent may read, which files it may change, what evidence it must produce and who can stop the work. Those decisions form the operating structure of an Agentic SDLC. A better model can improve output. It cannot answer the governance questions for you.
02 What is an Agentic SDLC
We did not use the term while we were building K2, but the industry now has one for the pattern: an Agentic SDLC, or agentic software development lifecycle.
In a conventional software development lifecycle, people perform requirements analysis, design, implementation, testing and review while tools assist them. In an Agentic SDLC, agents carry out more of those connected activities and people supervise the system around them. The stages still matter. The allocation of work changes.
That distinction matters because pointing an agent at a ticket is not a lifecycle. Without planning, testing, review and approval, a team has automated the production of code while allowing the delivery process to disappear.
K2 connects the stages and makes supervision part of the design. The agent can move through the work, but two decisions remain permanently with people: approval of the plan and approval of the merge. That is the governing principle of our Agentic SDLC.
03 Where do people sit in Agentic SDLC workflow
K2’s Agentic SDLC rests on one rule: nothing autonomous ships. The workflow deliberately slows down at two points because those are the points where authority matters.
The first gate comes after planning. Before code is written, the system produces one plan that names the files it intends to touch, the risks it sees and the tests it proposes. A person can approve the plan, narrow it or send it back. Without approval, implementation does not begin.
The second gate comes before the merge. The approver examines what was actually built, the test evidence, the review findings and any remaining concern. Approval of a plan does not make the final code acceptable automatically. A person still decides whether the change belongs in the repository.
K2 changes who performs much of the work. It does not transfer decision authority to the agent. Front-loading the thinking also makes implementation less dramatic. In production engineering, boring execution is usually a sign that the preparation was sound.
04 Where do token costs accumulate in an Agentic SDLC
A model incurs token costs in two directions. Input tokens cover everything sent to it: the ticket, system instructions, repository context, relevant files, earlier messages, tool output, test failures and the current diff. Output tokens cover what it generates, including the plan, code, tests, explanations and review findings. Every model call contains some combination of both.
The cost grows quickly when each stage rebuilds the same understanding. Planning may inspect broad repository context to locate the change. Implementation then receives much of that context again. Testing reconstructs the expected behaviour, while review needs the specification and enough code to judge the result. Large source files, long tool logs and repeated conversation history can consume more input tokens than the code change itself. The next ticket can repeat the cycle.
K2 uses a repository map and cognitive engine to select and reuse the context needed for planning, coding and testing. This reduces the number of times the full codebase has to be rediscovered and resent as input. Review is intentionally different: it receives the specification and diff with fresh context so that it can check the result independently. That review still consumes tokens, but a well-scoped package costs less than repeatedly sending the whole repository.
Shared context is not free. The repository map has to be generated, stored and refreshed as the code changes. Its value depends on its accuracy and on how tightly the workflow retrieves context for each task. Where a model provider supports cached input, repeated context may be billed differently, but it still needs to be measured rather than assumed away.
Retries multiply the spend. A fix cycle adds the latest prompt context, failure output, revised diff and the model’s response. A review cycle adds another set of input and output tokens. K2 limits the workflow to three fix cycles and two review cycles before escalation. Deterministic verification runs as scripts, which avoids model tokens for those checks but still uses runner time and infrastructure.
An honest cost per ticket therefore records input tokens, output tokens, cached input where applicable, model tier, call count, loop count, execution cost and human review time. Failed and escalated tickets belong in the calculation. Without them, a low token figure can describe an efficient model call while hiding an expensive delivery process.
05 How is security handled in Agentic SDLC
Security and procurement teams tend to raise the same objections to an Agentic SDLC. They are sensible objections, and each needs an enforceable answer rather than a promise about model behaviour.
- Will the agent access credentials or sensitive configuration K2 is designed to exclude credentials, API keys, tokens and other sensitive configuration from context, and to scan every diff before it moves forward. Teams still need to verify where sensitive data could enter and how a failed scan is handled.
- Will it push directly to the main branch It cannot. Changes arrive through branches and pull requests, and repository permissions must enforce that route.
- Will it widen the scope quietly Implementation is restricted to the files named in the approved plan. If more files are needed, the ticket returns to an authorised planning step.
- Will it claim a test passed without proving the fix For a defect, the required test must fail before the change and pass afterward. The sequence shows that the test detects the original problem.
- Will it approve its own work Two reviewers with fresh context execute the code independently. Their findings inform the human merge decision; they do not replace it.
- Will it keep retrying indefinitely Hard limits stop the work after three fix cycles and two review cycles, then escalate it to a person.
These answers have one feature in common. They describe properties of the system in which the model operates. The organisation can inspect permissions, branch protection, tests, review evidence and escalation records. Trust rests on mechanisms that can be checked.
06 Can Agentic SDLC really scale for large organizations?
We built K2 for a company of our size, but the pattern becomes more relevant as an organisation grows. Larger software estates carry more maintenance work, more variation between teams and more people who need evidence before a change can move.
Maintenance is a natural place to begin. Defects, dependency updates and small enhancements compete with roadmap work and often arrive with clearer acceptance criteria than a new product initiative. A supervised Agentic SDLC gives the organisation a way to test which tickets can move through a repeatable process and which still require a different approach.
The ticket record also changes the audit conversation. K2 records the approved plan, named approvers, scanned diff, test evidence, review findings, loop counts and cost. That record is produced during the work instead of being reconstructed months later. In a regulated environment, such traceability can support review, though an audit trail by itself does not establish compliance.
Shared repository context can make system knowledge easier to reuse across teams and handovers. It does not replace engineers or documentation, and it is only as dependable as its maintenance and access controls.
Scale also creates a less obvious constraint: human review capacity. More agent activity can produce more plans and pull requests for people to assess. Teams need to measure those approval queues before assuming that additional automation will increase completed work.
07 What does Agentic SDLC readiness require
Most of the technical prerequisites are familiar. The organisation needs Git-based version control, a pull-request workflow, branch protection, continuous integration that can run tests in a clean environment, appropriate credential and key management, and a model endpoint that meets its data-handling requirements.
It also needs a test suite, or an agreed way to build coverage on the paths being changed. The fail-before-and-pass-after rule cannot provide evidence if the relevant behaviour cannot be tested.
The less common prerequisites are organisational. Both gates need named approvers with the time and authority to reject work. The pilot needs a representative repository, an engineering sponsor and early involvement from security and compliance where relevant.
An assessment should begin with discovery: the repository estate, toolchain, branch and CI posture, test coverage, ticket flow, credential handling and current approval process. A supervised pilot can then run real tickets through both gates while measuring elapsed time, loops, interventions, cost and review effort.
The duration should follow the repository and the evidence required. One well-prepared team working in one repository is different from a multi-repository estate with mixed toolchains and a formal security review. A credible assessment defines the work before promising a calendar.
08 Why does an Agentic SDLC matter in the insurance industry
Insurance software changes can touch policy administration, claims, billing and regulatory reporting. The engineering question is therefore wider than whether an AI agent can produce working code. The team must be able to show what requirement authorised the change, which files were in scope, how the behaviour was tested and who approved the result.
An Agentic SDLC can make that evidence part of the ticket itself. In K2, the record links the approved plan, resulting diff, test evidence, independent review and the people who accepted the plan and merge. This gives engineering, security and operational owners a common record to inspect when a change affects a business-critical insurance system.
That record does not establish regulatory compliance or authorise a production release by itself. An insurer still has to fit the workflow into its existing segregation of duties, data-handling rules, change controls and release process. The practical benefit is narrower and more useful: every proposed use of AI-assisted engineering can be evaluated against evidence produced while the work is done.
09 What did a year of K2 actually teach us
The name turned out to be more accurate than the joke intended. K2 began as one engineer’s attempt to avoid solving the same maintenance problem twice. Its value came from writing the habits down, connecting them and making the approval points difficult to bypass.
The most useful starting point remains a real ticket. Define the expected behaviour, identify the acceptable change boundary and decide what evidence would justify a merge. Then see whether the workflow can produce that evidence consistently.
Some tickets will reveal unclear requirements. Others will expose weak tests, stale context, review bottlenecks or limits in the implementation approach. Those outcomes belong in the evaluation because they show what has to improve before the workflow expands.
Models will keep improving. What they will not supply is the operating system around them: permissions, scope, tests, approvals, evidence and a stopping point when the work is not good enough. That scaffolding is less exciting than the model. It is also the part of an Agentic SDLC that an engineering organisation has to own.
10 What question should an engineering leader ask next
The useful question is not whether an agent can produce a plausible change. It is whether an Agentic SDLC can produce changes your team can understand, verify and authorise, with enough evidence to decide where the approach belongs next.
K2 began with the practical responsibility of maintaining software our company uses. That is still the standard: can the system help us change real software without giving up the judgment, traceability and accountability that production engineering requires?
Discuss a K2 readiness assessment with Mahathi’s engineering team. Contact Mahathi Infotech
Frequently Asked Questions
Quick answers related to this article and how Mahathi Infotech supports insurance technology initiatives.
An AI coding assistant typically helps with individual tasks, such as writing or explaining code. An agentic SDLC connects activities across planning, implementation, testing and review. In K2, people approve the plan before implementation and approve the completed change before it is merged.
Defects, dependency updates and small enhancements with clear acceptance criteria are practical starting points. Suitability depends on repository readiness, test coverage and a manageable change scope. Work involving unclear requirements or broad architectural changes needs further assessment before entering the workflow.
K2 uses a repository map and shared context to reduce repeated codebase discovery during planning, coding and testing. It also limits fix and review cycles. Evaluating the total cost requires including model usage, infrastructure, failed attempts, escalations and human review time.
K2 stops and escalates the work to a person after reaching its limits of three fix cycles and two review cycles. This prevents indefinite retries and gives engineers an opportunity to reassess the requirements, test failures or implementation approach before proceeding.
K2 can support those teams by linking approved plans, code changes, test evidence, review findings and named approvers. This creates a record for evaluating changes to important systems. Insurers must still apply their own data-handling requirements, change controls and production release approvals.

