frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

I Cancelled Claude: Token Issues, Declining Quality, and Poor Support

https://nickyreinert.de/en/2026/2026-04-24-claude-critics/
1•y42•1m ago•0 comments

Is the Novelty Budget Dead?

https://simonshine.dk/articles/is-the-novelty-budget-dead/
1•sshine•4m ago•0 comments

PGO Build TPC-C Analysis MariaDB v11.8.6 TideSQL

https://tidesdb.com/articles/pgo-build-tpc-c-analysis-mariadb-v11-8-6-tidesql/
1•alexpadula•5m ago•0 comments

LLMs – What Experienced Practitioners See

https://dr-knz.net/llms-in-practice.html
1•knz42•6m ago•1 comments

Ask HN: How does Google crawls x.com website?

1•iaziz786•7m ago•0 comments

Games for Change

https://www.gamesforchange.org/
1•csmillie•9m ago•0 comments

What Anthropic's Mythos Means for the Future of Cybersecurity

https://spectrum.ieee.org/ai-cybersecurity-mythos
2•Brajeshwar•11m ago•0 comments

Refuse to let your doctor record you

https://buttondown.com/maiht3k/archive/why-you-should-refuse-to-let-your-doctor-record/
4•speckx•12m ago•0 comments

Space Reactor 1

https://en.wikipedia.org/wiki/Space_Reactor%E2%80%911_Freedom
1•hansmayer•14m ago•0 comments

Intel stock hits new all-time highs for first time since 2000

https://cryptobriefing.com/intel-stock-all-time-high-since-2000/
2•mgh2•14m ago•0 comments

Content credentials – hardware signing of photo and video cameras

https://contentcredentials.org/
1•sveme•14m ago•0 comments

Why I'm Done Making Desktop Applications

https://www.kalzumeus.com/2009/09/05/desktop-aps-versus-web-apps/
3•claxo•16m ago•1 comments

Six things I'll remember when I think about Tim Cook's version of Apple

https://arstechnica.com/gadgets/2026/04/six-things-ill-remember-when-i-think-about-tim-cooks-vers...
1•01-_-•21m ago•0 comments

UK Biobank health data listed for sale in China, government confirms

https://www.bbc.com/news/articles/cpvxgl3n138o
1•01-_-•21m ago•1 comments

What I learned asking 11 AI models to grade each other's AI predictions

https://shimin.io/journal/what-i-learned-asking-11-ai-models-to-grade-each-other/
1•recurrence•22m ago•0 comments

Why High-Testosterone Men Don't Perform for the Crowd

https://www.nature.com/articles/s41386-023-01570-y
1•bilsbie•22m ago•0 comments

El Salvador Adds New Tools in National Health App to Track and Treat (DoctorSV)

https://ticotimes.net/2026/04/19/el-salvador-adds-new-tools-in-national-health-app-to-track-and-t...
1•catlikesshrimp•23m ago•1 comments

Asia's Billionaires Are Bankrolling a Push for More Babies

https://www.bloomberg.com/news/articles/2026-04-24/asia-s-billionaires-offer-cash-incentives-to-b...
1•snidane•24m ago•0 comments

Rubbing testosterone gel on men's upper arms eliminates the audience effect

https://www.psypost.org/rubbing-testosterone-gel-on-mens-upper-arms-eliminates-the-audience-effec...
1•bilsbie•24m ago•0 comments

Show HN: Tarot Down Detector – a status page as a tarot reading

https://down.artemistarot.app/tarot-down-detector
2•suzgoldblatt•28m ago•0 comments

The Design of Design – Gordon L. Glegg(1969)

https://annas-archive.gl/md5/ea8f706c8ba56aaa741d5b45245ba25d
1•num42•29m ago•0 comments

You know what consciousness is: you live in soul land

https://aeon.co/essays/you-know-what-consciousness-is-you-live-in-soul-land
1•speckx•29m ago•0 comments

Unfounded Health Concerns Are Powering a Solar Backlash

https://www.propublica.org/article/michigan-solar-farms-health-concerns-st-clair-county
2•Brajeshwar•30m ago•0 comments

Printing a Check for Free

https://www.check.supply/check-printer
1•pfista•30m ago•0 comments

Ask HN: Anyone else get fatigued by interaction with LLMs?

3•yesitcan•31m ago•4 comments

Show HN: PrivateClaw – AI agents running in confidential VMs you can verify

https://privateclaw.dev
5•lambence•34m ago•0 comments

NMail Is Neat

https://nate.mecca1.net/posts/2026-04-23_nmail-is-neat/
1•01nate•37m ago•1 comments

Cloudflare Agents Week: Infrastructure for Running AI Agents at Scale

https://www.youtube.com/watch?v=GE5oiUQPl1Q
1•emot•39m ago•1 comments

The Fall of the Theorem Economy

https://davidbessis.substack.com/p/the-fall-of-the-theorem-economy
3•fuglede_•40m ago•1 comments

Anthropic's product team moves faster than anyone else [video]

https://www.youtube.com/watch?v=PplmzlgE0kg
1•iamflimflam1•41m ago•0 comments
Open in hackernews

Ask HN: How are you using AI code assistants on large messy legacy code bases?

3•thinkingtoilet•1h ago
My company is starting to explore AI coding. I am a dev with 20+ years of experience and I am tasked with trying to help see how we can use this tool to help our company. I have only used Claude so my experience is limited to that.

As you might guess, I find AI to be extremely good at some things and actively terrible at others. A lot of the things I read and demos I watch all have to do with reasonable code bases. Our code base is not reasonable. It's over 20 years old, coded by a multitude of different developers with different coding styles, design patterns, etc... What you would expect from a small company that has been slowly growing for decades. I also work in the medical field so slow evolving old code bases are the norm.

One of the reasons the AI fails constantly is that it has no context of the entire code base. It simply can't keep that context in scope for every session. So it actively adds bloat to the system unless it's guided by a skilled developer who already knows the system. I am using memories where I can but it has to regularly read huge chunks of code and that uses a lot of tokens. I regularly hit my limit on a Pro account.

What are your experiences with this? Any tips or tricks to improve output and cost? Any help is most appreciated. Thanks!

Comments

mc7alazoun•1h ago
I've been in a similar position; where I was tasked to refactor a messy LARGE codebase that was created by a bunch of different previous team members. Here's what I would recommend: - If your codebase contains sensitive or IP related code make sure to remove that before interacting with your AI assistant of choice - Upload the repo/codebase to Claude Code (or codex or whatever you prefer); and ask it to analyse it: the good, the bad and the ugly - Based on the analysis ask the AI assistant to create an .md file with all recommendations/optimisations required to improve code (make sure to have all relevant tests included in the refactoring loop) - Note the before outcomes/outputs; do the refactoring using Claude Code again or whatever tool you prefer; then check after outcomes/outputs to make sure nothing did break

Usually it's an iterative process; if done correctly you could end up with a much better codebase. Good luck!

thinkingtoilet•1h ago
Do you recall how much it cost to review your code base? I worry it's going to be hundreds of dollars just for it to review the thousands of files, let alone organize it all and create suggestions.
mc7alazoun•48m ago
Not thousands of files in my cases .. The Claude 5x Max plan was enough! I'd suggest splitting your code review into reasonable sized chunks .. don't try to do it all at once.
rocketpastsix•55m ago
Start small with it. Pick a contained area and have Claude run through it with you. Have it ask you questions and collab with it. Then have it save any output to a document that can be referenced later.
Someone1234•55m ago
Part of why you're hitting your limit is that Claude's Pro subscription is completely unusable with the current usage limits. I legitimately mean it when I say, you should cancel.

But to the actual question: A lot of people's gut instinct on how to solve this doesn't work. They start going down the road of "well, if I teach the AI about my legacy codebase, it will be smarter, and therefore more efficient." But all you wind up doing is consuming all of your available context, with irrelevancies, and your agent gets dumber and costs more.

What you actually need to do is tackle it the same way a human would: Break it down into smaller problems, where the agent is able to keep the "entire problem" within context at once. Meaning 256K or less (file lengths + prompt + outputs). Then of course use a scratchpad file that holds notes, file references, constraints, and line numbers. That's your compaction protection. Restart the chat with the same scratchpad when you move between minor areas.

Context is your primary-limited resource. Fill it only with what should absolutely need to be there, and nothing else at all.

sdevonoes•38m ago
Just go the old way. You will save a lot of time, and gain a lot of knowledge.

In my company we have tried using claude for exactly the same task you have. The results were bad. We discovered a few interesting things, but most of the stuff was wrong: we had to dif through the code base the old way to confidently accept/reject what Claude was telling us. So we could have save a lot of time and money simply by doing it ourselves. As an upside we also learned about the codebase so now people rely on us for that (that feels good too)

4l3x4f1sh3r•25m ago
Preparation: Let it explore small parts of the code and ask it to write .md documentation. It will pick it up and read it later. Create an AGENTS.md file and put in your coding principles. Let it always update its documentation. Do that until the whole repo is in good shape.

Then for execution: Use plan mode. Let it always write a plan first, check it, correct it and only then allow it to implement it.

Try to break big tasks down in small substeps. As small as possible. Let it implement changes iteratively. Let it do a lot of local git commits. Both Codex and Claude Code use this as documentation as well.

Basically, treat it like a junior developer working under you.

Make sure appropriate tests are written for every code change.

thinkingtoilet•5m ago
I'm using memories for things like coding style and preferences. Is using AGENTS any better?