85 points taubek 10 hours ago 95 comments

williadc 9 hours ago | parent

There's no goal mentioned in this article as why 98% of the code needs rewriting.

HarHarVeryFunny 9 hours ago | parent

Yeah - code rewrites are generally a thing to be avoided since the requirements of older production code is typically not fully documented, even if it originally had been. Production code accumulates bug fixes, performance tweaks, special cases, additional requirements, etc, with documentation and test suites not always being updated in sync.

Your rewritten codebase will presumably look much cleaner and more maintainable that what it's aiming to replace, but it's easy to miss the purpose/necessity of all of the old "cruft" which need not be just poor coding but rather later enhancements not anticipated by the original design whose implementation was therefore crufty.

Does anyone here work at Cisco, and have any insight as to why a rewrite is considered necessary and might be expected to succeed?

add-sub-mul-div 9 hours ago | parent

AI has electrolytes!

classified 9 hours ago | parent

The hardware it runs on has capacitors as its components and some of them do in fact contain electrolytes.

analognoise 9 hours ago | parent

It’s what the shareholders crave!

yako21000 9 hours ago | parent

They also seem to crave everything that has the word AI in it.

daveguy 18 minutes ago | parent

These are references to an excellent, hilarious, and sadly more relevant than ever, movie:

Idiocracy (2006): https://en.wikipedia.org/wiki/Idiocracy

vonneumannstan 9 hours ago | parent

Somebody needs a promo packet. Duh

entrope 1 hour ago | parent

Because it's Cisco?

We had to turn off a bunch of on-by-default features in the system I'm deploying now because IOS matches too aggressively and decides that arbitrary UDP datagrams are DHCP requests or PTP packets that need rewriting (and then dropping when they turn out to not be DHCP/PTP). I have to think that an AI rewrite with a today-good model would recognize the lax checks and do them better.

DonHopkins 52 minutes ago | parent

It's got tabs instead of spaces. Yuck!

Hikikomori 39 minutes ago | parent

It's what Cisco does, as they've done several times before.

oceansky 28 minutes ago | parent

It is not in Rust.

nitwit005 24 minutes ago | parent

No goal, and no results, but a younger guy was enthused about AI!

InsideOutSanta 23 minutes ago | parent

It's because the old bits are starting to stink a bit from age. Get those stinky bits out of here, I say! Let the AI make some new bits!

alwa 9 hours ago | parent

Rewrite it in service of… what exactly?

rustyhancock 9 hours ago | parent

It says "legacy" code.

Legacy code is typically a euphemism for old unmaintained code, no one knows how it works so it can be edited, and it probably doesn't align with current work practices.

Not to say a rewrite is necessary right, but avoiding rewrites of working code is how we ended up with more COBOL code than COBOL programmers in 2026.

rafram 9 hours ago | parent

If nobody knows how the old code works, how will anyone know how the new code (written by an autonomous agent) works?

rustyhancock 9 hours ago | parent

Regression tests?

I think people are assuming the worst but AIs most helpful contribution beyond churning out code is explaining the code base.

Who knows if they will do a good or bad job that's down to the engineers and not the tools imo.

rafram 9 hours ago | parent

Why is that better than having the agent(s) write regression tests or explanations of the old codebase?

paimapi 7 hours ago | parent

I think this is actually the opposite in practice. LLMs generate better tests than they are at assessing which tests are effective (and, inferentially, how a system should behave). See: https://arxiv.org/abs/2410.21136

That said, there's also research pointing to LLMs encoding existing bugs as test requirements: https://arxiv.org/abs/2607.05139

That CS PHD researcher, Konstantinou, in particular, has written a lot on this: https://arxiv.org/search/cs?searchtype=author&query=Konstant...

mlmonkey 2 hours ago | parent

At my previous place, we had to write unit tests to cover each and every line of code. So if you add 10 lines of code, you ended up writing 100 lines of unit tests, mocking this service and that service, etc.

Once AI came along, I became like Captain Picard (RIP) and would just sit back and let the AI write all unit tests. "Try harder, make sure coverage is 100%". It was very exhilarating to sit back and watch the models churn away, creating 100s of lines of unit tests. Of course, I checked them all manually before submission ;-)

LoganDark 9 hours ago | parent

I don't think no one knows how it works. I just think the people using the word "legacy" for it are boneheaded.

Refreeze5224 9 hours ago | parent

As much as I dislike AI, having worked on Cisco gear for years, I can't imagine AI can put out a worse product. If the re-write is full of bugs and security holes and static SSH keys, then it has not changed at all.

Aperocky 9 hours ago | parent

The problem with rewrites are that even if the rewrites are ultimately good it will tend to first create bugs on an existing thing that are presently churning in a stable state.

icedchai 8 hours ago | parent

It's sad to hear how Cisco has fallen. I remember working on some early ISP networks in the 90's. Cisco was everywhere!

benjojo12 8 hours ago | parent

Just because something is/was widely deployed does not mean it was good

icedchai 8 hours ago | parent

True. There were few (no other?) options for routers back then. I have fond memories of locking myself out of an ISP's core router then having to power cycle it.

runjake 7 hours ago | parent

It doesn't, but Cisco was great and they've just evolved into a laughing stock. Their stuff is really bad these days.

And they've overstretched their product line to too many things, trying to be the "be all" company. Fortinet is making the same mistake, but they're earlier in that process.

I mean, it's not really a mistake on their parts, their primary goal is to get rich and they are succeeding.

Citation: I've been working with Cisco technologies since the mid-1990s. At my current job, we are a few weeks away from phasing out the last of our Cisco junk. And since people will ask: to Juniper/Mist and Arista.

ThePinion 22 minutes ago | parent

I was curious but wasn't going to ask, so thank you for adding it!

hnlmorg 1 hour ago | parent

So was Oracle and Microsoft Windows.

If history has taught us anything. It’s that the measure of a successful product is usually more to do with its sales people.

kotaKat 7 hours ago | parent

They didn't even need the AI to make thousands of hot bricks nationwide. Here's just one of the latest hits...

https://www.cisco.com/c/en/us/support/docs/field-notices/743...

"Cisco Access Points That Are Running, Or Have Run, Releases 17.12.4, 17.12.5, 17.12.6, or 17.12.6a May Exhaust Flash Space, Preventing Upgrades"

Recovery path basically involves either factory resetting every single AP or up to, if it's already bricked, Cisco TAC + you having to console into every single bricked AP you have to pass a secret challenge/response at the bootloader to flash a recovery image :)

tw04 1 hour ago | parent

You don’t have very good imagination then. Cisco code is such a mess that there’s basically 0 chance he can even make a harness in 24 months, much less rewrite production code.

classified 9 hours ago | parent

So there's a real risk that Cisco might become history in just a few years. Taking that kind of risk with a rather unproven technology has to be psychosis. Or is that kind of belief a form of Religion?

m4rtink 9 hours ago | parent

Clear case of AI psychosis.

wmf 1 hour ago | parent

Many customers will definitely stick with the pre-sloppified versions of IOS.

Taikonerd 9 hours ago | parent

Does this one engineer have the domain knowledge to know WHY the old code was written the way it was, and what the graybeards would have done differently if they could start again now?

Otherwise he's just going to replicate all the legacy bugs and questionable design decisions.

classified 9 hours ago | parent

I have no doubts that there will also be new bugs.

koskokos 9 hours ago | parent

the premise does sound a lot like written by someone who is looking for hype and not sounding credible

sleepyguy 9 hours ago | parent

Looks like his startup was some kind of translation service. So yeah he is totally qualified. It's a miracle how Jeetu Patel was able to find Padmanabhan Krishnamurthy or even know that he was under employed languishing somewhere in the bowels of CISCO. I wonder if they know each other from India?

oblio 8 hours ago | parent

The entire story sounds very weird.

greenavocado 1 hour ago | parent

They met each other by chance and began work rewriting the entire company's codebase over a firm handshake

sleepyguy 9 minutes ago | parent

You forgot to mention the translation company he helped found was also acquired by this same CEO. :))

forgotpwd16 1 hour ago | parent

His startup was acquired by Cisco so not weird for Cisco's CPO to know the startup's founder/CEO. That said, not sure how knowledge on speech translation means he's totally qualified on rewriting infra/networking/cybersecurity (Cisco's primary fields of operation) code. Unless the legacy code expected to be rewritten is constrained on related services/solutions, e.g. CVP or/and WebEx.

greggh 15 minutes ago | parent

He doesnt need that when he has Ponytail https://github.com/DietrichGebert/ponytail

Right? ...

piker 9 hours ago | parent

Is this like a PR piece for the guy? It's odd to see him singled out in a piece that would be normally be about the company, the CEO or the decision itself.

koskokos 9 hours ago | parent

It does sound strange, like it was written by PR people. Tools are good but usually it is more subtle than asking one guy to rewrite everything. And of course any code written yesterday is legacy but it does not mean it should be rewritten.

m4rtink 9 hours ago | parent

Seems like preparing who to blame if/once the effort fails. ;-)

dmortin 9 hours ago | parent

Misleading title, someone should fix it. 98% of legacy code. Check out the full title of the article.

loloquwowndueo 9 hours ago | parent

Does Cisco have non-legacy code?

hangrybear666 9 hours ago | parent

My favorite description of JAVA is that it's a language where you are deploying instant legacy code.

DonHopkins 36 minutes ago | parent

"Java is a DSL for taking large XML files and converting them to stack traces." -Andrew Back

https://www.reddit.com/r/programming/comments/eaqgk/java_is_...

"XML is like violence: if it doesn't solve your problem, you aren't using enough of it." -Chris Maden

https://www.reddit.com/r/ProgrammerHumor/comments/1mbgih/xml...

"XML is a giant step in no direction at all" -Erik Naggum

https://quotefancy.com/quote/1643080/Erik-Naggum-XML-is-a-gi...

balderdash 9 hours ago | parent

We have an embedded system in one of product offerings that was largely developed using a bunch of “antiquated” technologies (over the past twenty years) and over the past year the two software devs that maintained it have retired. This normally would have big problem, but the entire codebase was re-written, documented, and modernized in a matter of about 3 months (for about $20k in tokens, and a mid level developer spending 50% of their time on it over that period). So it doesn’t surprise me to think a company like Cisco has piles of situations like this.

petra 8 hours ago | parent

That's really interesting.

What have been achieved using this port?

And how did you make sure the port is correct?

m4rtink 9 hours ago | parent

I guess Cisco decided it has not alienated its customers enough till now & its finally time to get people running for the woods - at least if those peoples would like their network to continue working.

g-b-r 3 hours ago | parent

If only internet users could run for the woods

Taikonerd 9 hours ago | parent

There also seems to be some weird hero-worship from the CEO, directed at this 27-YO engineer? Like, "he is the one who can save us."

g-b-r 3 hours ago | parent

Both Indians, and Indians on average seem to have gone more heavily on careless AI than the worst American psychotics

eudamoniac 11 minutes ago | parent

Indians have always been stereotyped for sycophancy and slavish adherance to spec over common sense, so it makes sense that that would go with being AI pilled.

DonHopkins 47 minutes ago | parent

Maybe his blood boy's high on gourmet cannabis and Oreos.

https://www.youtube.com/watch?v=hBA0AH-LSbo

Aperocky 9 hours ago | parent

Unless they also have 750K tests like sqlite do, I can't imagine this will go well, even if/especially if the legacy code warrants a refactor.

insane_dreamer 9 hours ago | parent

rewriting code is the easy part

it's the testing in real world usage to shake out all the edge cases and bugs that's hard and that you can't just write unit tests for

emoII 9 hours ago | parent

Well they say the last 20% of the work takes 80% of the time so if he gets the prototype in 4 weeks, which I have no doubt he will be able to do, and assuming that prototype is the first 80% of work, then he should be able to do this in 20 weeks. He even has some margin! Looking forward to seeing the results

blobbers 9 hours ago | parent

I mean, this is going to be easy. I've worked on Cisco gear before and this will be a simple job for AI. The big question is what the goal is... so you've rewritten new C++ code or ported to a newer version of Linux? Or you've unified the codebase of the Catalyst + Meraki switches?

Not clear to me what he's doing. Re-implement switching? Simplify features? Reduce LoC? Add test coverage? Either way, AI in that world will be helpful. I'm sure it'll spot all kinds of problems in opaque drivers that are hard to follow from MF specs.

g-b-r 3 hours ago | parent

The goal is to use AI, full stop

bijowo1676 1 hour ago | parent

Cisco is losing to competitors in some features/products, for example to juniper mist.

rewrite can be done to quickly refactor and/or close the feature parity, improve the UI/UX for end customer, add missing features or integration needs

raincom 9 hours ago | parent

'98% of the company's legacy code' is very vague. How many code bases? How each code base is connected to any supported Cisco product? How many KLOC the company's legacy code?

orthogonal_cube 17 minutes ago | parent

These are good questions that we won’t get answers to anytime soon.

I’d love to know what internal services and tools that are included in this, as well as any deliverables that shipped as software products to customers.

If it’s legacy code for IOS firmware, however, I’d be very worried.

petra 9 hours ago | parent

I think Cisco is an interesting use case for AI, because it's code, probably:

-Works according to a defined specification

-Within the bounds of that specification, has a lot of code written to optimize speed, cost, latency, etc - all measureable goals

-Written in c, with all it's weakness

-Given limitless engineering work, some could be ported to better hardware

-the new system could be automatically compared to the old system for functional correctness

All those factors fit well with agent based development.

Btw, many of them are true in general to embedded systems.

pphysch 8 hours ago | parent

The first and last bullets are extremely optimistic. How do you possibly simulate all the weird interdependent behavior in real world networks?

petra 8 hours ago | parent

Given that a Cisco switch can be replaced with some other company's switch(at least in theory, idk), without weird unknown cases interfering, why would this be a problem ?

Cyph0n 8 hours ago | parent

Not that straightforward. Similar to CPUs and other HW, there are errata and interop quirks between devices.

There are also tight time budgets (basically SLAs) that must be met along with memory considerations (both in SW and on the NPU/HBM), not to mention how the device needs to respond to load and various failure scenarios.

bijowo1676 1 hour ago | parent

there is software to simulate any arbitrarily complex network: GNS3, eve-ng, Cisco Modeling labs, etc

wil421 8 hours ago | parent

Manufacturers can’t even maintain OIDs between releases. I hope the AI will help. Ciena isn’t any better than Cisco, they broke their OIDS for the switches we use and we have to wait until mid 2027.

mkjs 8 hours ago | parent

It's way more complicated than that. Bear in mind many of the network protocols in use today are decades old and have been constantly evolving, but there has generally been a consideration to maintain interoperability.

Then consider that not all vendors implement the standards identically, because the standards can be a bit woolly and in some cases followed rather than lead live implementations.

There will be a bunch of code that looks useless, but is actually there because of specific interoperability scenarios.

petra 8 hours ago | parent

That's a good point.

I wonder whether AI is any good at looking at that code,running the system, and documenting those edge cases?

mkjs 8 hours ago | parent

I'm probably not describing the scale of the issue adequately. Lots of these bugs only show up when you have a specific bit of hardware on a specific version of code, and it's connected to another specific bit of hardware running another specific version of code.

Lots of this stuff should work in theory, you only find out that it doesn't in practice when you try it on real hardware. And there are thousands of bits of hardware.

Cyph0n 8 hours ago | parent

I worked at Cisco on one of the IOS-XR teams. It’s way more complex than you think it is.

This whole thing sounds like a deluded vanity project birthed in an ivory tower.

eudamoniac 9 minutes ago | parent

That describes everything Jeetu is involved in. I'm very glad to have recently left Cisco.

causal 8 hours ago | parent

I suspect we are approaching a world where this makes sense to do annually. Opus 5.5 is good enough to improve on most codebases, and Opus 7 will no doubt be good enough to improve on that.

simonw 8 hours ago | parent

"According to a report by Fortune" - here's that report: https://fortune.com/2026/10/30/cisco-president-jeetu-patel-g...

Fortune's source was the CEO himself:

> “I’ve given him unlimited tokens because he’s going to refactor code,” Patel told Fortune at a small roundtable dinner. “So I’m like, you can go, you can go nuts.”

I think that Fortune story is better than the Tom's Hardware one. It ties the Cisco anecdote into a larger trend of some people deliberately hiring younger, less experienced developers for their AI projects - because they are more likely to be "AI native".

rasz 8 hours ago | parent

more like AI naive

simonw 7 hours ago | parent

Sadly, I think the label "AI naïve" is better applied to the many experienced professionals who refuse to engage with AI systems as a matter of principle - or who tried out ChatGPT in 2024, saw it make howlingly obvious errors, and wrote off the entire category.

I frequently find myself in conversations with people who are resistant to AI and turn out to have a very skewed idea of what it can and cannot do.

1970-01-01 8 hours ago | parent

Cisco that powers more than half of the backbone of all things online? Are we trying to lose control of AGI as soon as it emerges??

masfuerte 8 hours ago | parent

When this rewrite breaks the internet AGI won't be able to take over. It's very forward-thinking.

mr_roboto 8 hours ago | parent

He'll pull it off, get feature complete, and spend a year or two with better models as they are released ironing it out. We just did an experiment, in four weeks generated 3500 commits, 200k sloc with a 1:1.15 ratio of production to test code and it all works very well. We are well on our way from 10x to 100x.

Ancalagon 7 hours ago | parent

Did you check with the end user as to how well its actually working? My prior company is doing this and their platform has gone to latency/bug hell.

mr_roboto 7 hours ago | parent

It is for internal use and so far so good. We are finding bugs and we just point the models at it with a strict red-first TDD approach and they've done very well fixing them. It certainly isn't perfect but the issues are very similar to what you get with a team of humans doing the same thing.

The main takeaway though is we had one person, in a single month, do the equivalent of at least a couple years of work for a small team. We view bugs and performance issues as a currently inevitable part of the process and we are dealing with them with models just like we do with humans on every other project already. Overall though it is representing an absolutely massive speedup. If you work in an environment where the models make egregiously more mistakes than your human counterparts then I am quite jealous.

greenchair 55 minutes ago | parent

and if you enable dangerously_skip_permissions you can probably even get to 1000x

rasz 8 hours ago | parent

Maybe Stanford found some more of their stolen code being used by Cisco. /s Cisco origins is a fascinating subject.

bluegatty 8 hours ago | parent

ha ha .. that sounds like an Onion article. To be fair - if they did a narrow refactor to focus on fixing only obvious and known issues, they probably might be able to pull it off because a ton of that code is hairballs.

cheevly 7 hours ago | parent

Shocking to realize how many on HN do not realize that this is NOT a tall order, and has not been a feat for at least six months.

g-b-r 3 hours ago | parent

Shocking how many on HN do not realize how devastating this can be

jeffybefffy519 49 minutes ago | parent

its never unlimited....

snov 29 minutes ago | parent

What's so special about the other 2%, is it good?