frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: AI Flag Cleanup

3•GarethX•10h ago
Flag cleanup is one of the most annoying things about feature flags. Many vendors have created little helpers. Usually they’re CLI tools that highlight mentions of feature keys in your code, or some also show you which flags haven’t been accessed in a while. But these only make things less painful, you’re still on the hook to do the work.

So at Bucket (https://bucket.co) that’s the part we wanted to solve with AI, removing the flag code itself.

- How it works:

The cleanup bot operates as a GitHub integration with Bucket. When it runs, it searches for usage of the Bucket SDK in the codebase and identifies where specific feature keys are used. LLMs are employed to refactor the code to remove the flag and eliminate codepaths that become unreachable.

So all you should need to do is review and approve the PR. Once merged, the flag itself is archived in Bucket.

- The results:

We’ve been running this in production ourselves for a few months alongside a few early-access partners. We’re seeing consistently good PRs that can be merged without changes.

However, this wasn’t always the case. Early on in development, the range in quality of solutions generated by the LLM was an issue. Most attempts were fine, but then it would add a comment somewhere unrelated, remove whitespace or change the code formatting (even if you gave it rules to follow). Many of the early generated solutions failed CI due to unused imports, incorrect indentation, lone decoration not always getting cleaned up, or unused exports failing to be removed.

You can get a surprisingly long way with an LLM and a quick prompt, but getting good results, consistently, is where the real work is.

Some of the issues we were able to solve through better prompting and using different models, while others needed custom solutions. We wrote up how we went about building it here: https://bucket.co/blog/building-ai-flag-cleanup

- Try the beta:

We’re opening the beta up to everyone, but limiting it to React codebases for now.

If you’d like to try it out: - Sign up at https://bucket.co - Enable it: https://app.bucket.co/envs/current/settings/org-integrations

Let us know how you get on.

New drug could halt Alzheimer's

https://www.telegraph.co.uk/news/2025/07/28/new-drug-could-halt-alzheimers-disease/
1•wiry•34s ago•0 comments

ProtocolDepot – MCP Server Directory and Community

https://protocoldepot.dev/
1•joaoh82•3m ago•1 comments

Minnesota activates National Guard after St. Paul cyberattack

https://www.bleepingcomputer.com/news/security/minnesota-activates-national-guard-after-st-paul-cyberattack/
2•krunck•5m ago•0 comments

SharePoint Server Vulnerabilities Now Exploited to Deliver Ransomware

https://zeldasecurity.com/sharepoint-server-ransomware-vulnerabilities/
1•zeldasecurity•6m ago•1 comments

Claude Code vs. Cursor: My First Impressions

https://www.aiengineering.report/p/claude-code-vs-cursor-my-first-impressions
1•waprin•10m ago•0 comments

Webflow Down for >31 Hours

https://status.webflow.com
28•philip1209•15m ago•1 comments

How JIT builds of CPython work

https://savannah.dev/posts/how-your-code-runs-in-a-jit-build/
2•mariuz•17m ago•0 comments

'bitchat? now on the App Store

https://twitter.com/jack/status/1949780445446512780
1•janandonly•19m ago•0 comments

Large-scale study uncovers 57 genetic hotspots into stuttering origins

https://news.vumc.org/2025/07/28/large-scale-study-defines-genetic-architecture-of-stuttering/
1•nixass•20m ago•0 comments

Innovation starts with consumers, not academia

https://lemire.me/blog/2025/07/16/innovation/
1•zffr•21m ago•1 comments

Toshiba MG11 series hard drive

https://storage.toshiba.com/enterprise-hdd/cloud-scale-capacity/mg11-series
2•AureliusMA•21m ago•1 comments

Debugging Hell: Spark Tomcat and Proxies

https://sumantopal07.medium.com/bug-which-took-months-to-debug-bbd12e0eba9d
1•Sumanto•22m ago•0 comments

Researcher is a relic term from academia – Elon Musk

https://twitter.com/elonmusk/status/1950254103474446728
1•amrrs•24m ago•0 comments

Microsoft Nears OpenAI Agreement for Ongoing Tech Access

https://www.bloomberg.com/news/articles/2025-07-29/microsoft-s-access-to-openai-tech-is-focus-of-contract-talks
1•mfiguiere•27m ago•0 comments

Predictive UX Engineering

https://travisbumgarner.dev/blog/photography-portfolio-performance
1•sillysideprojs•28m ago•0 comments

A Curated List of Awesome Honeypots

https://securehoney.net/awesome-honeypots.html
1•sugarpimpdorsey•28m ago•0 comments

DietPi released a new version v9.15

1•StephanStS•28m ago•0 comments

Google's June 2025 Core Update

https://www.searchenginejournal.com/googles-june-2025-update-analysis-what-just-happened/551501/
2•andrewstetsenko•31m ago•0 comments

Spotify stock falls on revenue miss, lackluster guidance

https://www.cnbc.com/2025/07/29/spotify-spot-stock-q2-2025-earnings.html
1•bundie•33m ago•0 comments

Microsoft bans LibreOffice developer's account without warning, rejects appeal

https://www.neowin.net/news/microsoft-bans-libreoffice-developers-account-without-warning-rejects-appeal/
49•bundie•34m ago•9 comments

Show HN: Gradient-Free ML Algorithm (Available for Contract Work)

1•atowns•35m ago•0 comments

Show HN: I Built a GitHub Action to Wait for Vercel Deployments Before CI

https://github.com/marketplace/actions/vercel-preview-url-with-status-polling
1•bakkerinho•36m ago•0 comments

New Generational Pomodoro

1•TheZBuilder•36m ago•0 comments

Big Tech Is the Only Winner of the [UK's] Online Safety Act

https://www.newstatesman.com/science-tech/big-tech/2025/07/big-tech-is-the-only-winner-of-the-online-safety-act
3•sealeck•37m ago•0 comments

GLM 4.5 one-shots a Full Coding Project

https://www.youtube.com/watch?v=3fbOQBTfemg
2•amrrs•38m ago•0 comments

One Year After Fisker's Bankruptcy, Ocean Owners Are Still Paying the Price

https://www.autoevolution.com/news/one-year-after-fisker-s-bankruptcy-ocean-owners-are-still-paying-the-price-252214.html
2•dangle1•38m ago•0 comments

Unleashing the Editing Superpower of Emacs

http://yummymelon.com/devnull/unleashing-the-editing-superpower-of-emacs.html
2•kickingvegas•42m ago•0 comments

Scamming Substack?

https://willstorr.substack.com/p/scamming-substack
1•exolymph•43m ago•0 comments

Ask HN: Why the fundamental skepticism around LLMs?

3•smokel•47m ago•10 comments

Private Equity in the Hospital Industry (2021)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3924517
5•coloneltcb•47m ago•0 comments