Home

Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete
williamzeng0 about 11 hours ago

Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete

Hey HN, we trained and open-sourced a 1.5B model that predicts your next edits, similar to Cursor. You can download the weights here (https://huggingface.co/sweepai/sweep-next-edit-1.5b) or try it in our JetBrains plugin (https://plugins.jetbrains.com/plugin/26860-sweep-ai-autocomp...).

Next-edit autocomplete differs from standard autocomplete by using your recent edits as context when predicting completions. The model is small enough to run locally while outperforming models 4x its size on both speed and accuracy.

We tested against Mercury (Inception), Zeta (Zed), and Instinct (Continue) across five benchmarks: next-edit above/below cursor, tab-to-jump for distant changes, standard FIM, and noisiness. We found exact-match accuracy correlates best with real usability because code is fairly precise and the solution space is small.

Prompt format turned out to matter more than we expected. We ran a genetic algorithm over 30+ diff formats and found simple `original`/`updated` blocks beat unified diffs. The verbose format is just easier for smaller models to understand.

Training was SFT on ~100k examples from permissively-licensed repos (4hrs on 8xH100), then RL for 2000 steps with tree-sitter parse checking and size regularization. The RL step fixes edge cases SFT can’t like, generating code that doesn’t parse or overly verbose outputs.

We're open-sourcing the weights so the community can build fast, privacy-preserving autocomplete for any editor. If you're building for VSCode, Neovim, or something else, we'd love to see what you make with it!

huggingface.co
298 50
Summary
Significant US farm losses persist, despite federal assistance
toomuchtodo about 10 hours ago

Significant US farm losses persist, despite federal assistance

The article discusses the ongoing financial challenges faced by U.S. farmers, despite the implementation of federal assistance programs. Despite government aid, significant farm losses have persisted, highlighting the ongoing struggles in the agricultural sector.

fb.org
173 174
Summary
Threat actors expand abuse of Microsoft Visual Studio Code
vinnyglennon about 11 hours ago

Threat actors expand abuse of Microsoft Visual Studio Code

The article discusses the increasing abuse of Visual Studio Code (VSCode) by threat actors, who are leveraging the platform's capabilities to distribute malware and carry out other malicious activities. It highlights the need for users to be vigilant and implement security measures when using VSCode to mitigate these threats.

jamf.com
172 132
Summary
Convert potentially dangerous PDFs to safe PDFs
dp-hackernews about 12 hours ago

Convert potentially dangerous PDFs to safe PDFs

Dangerzone is an open-source tool that allows users to securely open untrusted files in a containerized environment, protecting their systems from potential malware or exploits contained within the files.

github.com
150 48
Summary
From stealth blackout to whitelisting: Inside the Iranian shutdown
oavioklein about 11 hours ago

From stealth blackout to whitelisting: Inside the Iranian shutdown

The article provides an in-depth analysis of the internet shutdown in Iran during the 2022 protests, exploring the technical aspects of the blackout, the government's attempts to control online communication, and the measures taken by Iranian citizens to circumvent the restrictions.

kentik.com
117 76
Summary
Doctors in Brazil using tilapia fish skin to treat burn victims
kaycebasques about 5 hours ago

Doctors in Brazil using tilapia fish skin to treat burn victims

A Brazilian city is using tilapia fish skin to treat burn victims, a cost-effective and innovative approach that has shown promising results in wound healing and reducing pain and scarring.

pbs.org
107 46
Summary
SpaceX lowering orbits of 4,400 Starlink satellites for safety's sake
thread_id about 2 hours ago

SpaceX lowering orbits of 4,400 Starlink satellites for safety's sake

SpaceX is lowering the orbits of 4,400 Starlink satellites to reduce the risk of collisions and improve safety in space. This move aims to better manage the growing number of satellites in Earth's orbit and minimize the potential for interference with other space activities.

space.com
26 20
Summary
Show HN: High speed graphics rendering research with tinygrad/tinyJIT
quantbagel about 7 hours ago

Show HN: High speed graphics rendering research with tinygrad/tinyJIT

I saw a tweet that tinygrad is so good that you could make a graphics library that wraps tg. So I’ve been hacking on a gtinygrad, and honestly it convinced me it could be used for legit research.

The JIT + tensor model ends up being a really nice way to express light transport all in simple python, so I reimplemented some new research papers from SIGGRAPH like REstir PG and SZ and it just works. instead of complicated cpp its just a 200 LOC of python.

github.com
25 8
Summary
Show HN: Dotenv Mask Editor: No more embarrassing screen leaks of your .env
xinbenlv about 11 hours ago

Show HN: Dotenv Mask Editor: No more embarrassing screen leaks of your .env

Hi HN,

I built this because I often work in coworking spaces or do screen sharing, and I've always had this fear of accidentally flashing my .env file with production secrets to the whole room (or recording).

It’s a simple VS Code extension that opens .env files in a custom grid editor. It automatically masks any value longer than 6 characters so I can safely open the file to check keys without exposing the actual secrets.

It runs 100% locally with zero dependencies (I know how sensitive these files are). It just reads the file, renders the grid, and saves it back as standard text.

It's open source (MIT) and I'd love any feedback on the masking logic or other features that would make it safer to use.

Marketplace: https://marketplace.visualstudio.com/items?itemName=xinbenlv... Github https://github.com/xinbenlv/dotenv-mask-editor

marketplace.visualstudio.com
18 19
Summary
ICE says officers can forcibly enter homes without a judicial warrant
Volundr about 9 hours ago

ICE says officers can forcibly enter homes without a judicial warrant

The article discusses a new policy by U.S. Immigration and Customs Enforcement (ICE) that allows its officers to enter homes without a judicial warrant to conduct immigration enforcement. The policy has raised concerns from civil liberties advocates about the potential for abuse and violations of constitutional rights.

nbcnews.com
12 6
Summary
States Are Gunning to Ban 3D Printers and CNCs
WaitWaitWha about 10 hours ago

States Are Gunning to Ban 3D Printers and CNCs

The article discusses several states' efforts to ban the use of 3D printers and CNC machines for the production of firearms and magazines, as part of broader gun control measures aimed at reducing access to untraceable 'ghost guns'.

electronicdesign.com
11 3
Summary
Rand Paul Only Wants Google to Be Arbiter of Truth When the Videos Are About Him
hn_acker about 10 hours ago

Rand Paul Only Wants Google to Be Arbiter of Truth When the Videos Are About Him

The article discusses Sen. Rand Paul's stance on content moderation, where he wants Google to be the arbiter of truth only when the videos are about him, but not for other political figures or content.

techdirt.com
11 4
Summary
Trump FCC threatens to enforce equal-time rule on late-night talk shows
voxadam about 8 hours ago

Trump FCC threatens to enforce equal-time rule on late-night talk shows

The article discusses the Trump-era FCC's efforts to encourage more Republican representation on late-night and daytime talk shows, amid concerns about alleged liberal bias in the media.

arstechnica.com
7 2
Summary
In 2026, ICE detainees are dying at an alarming rate
throwaway5752 about 7 hours ago

In 2026, ICE detainees are dying at an alarming rate

The article highlights the alarming increase in deaths of detainees in U.S. Immigration and Customs Enforcement (ICE) custody, with the death rate projected to reach a record high in 2026 if current trends continue. It examines the factors contributing to these deaths and the ongoing efforts to address the crisis.

popular.info
6 0
Summary
NexDock is building a new Windows phone that you can buy in 2026
LorenDB about 8 hours ago

NexDock is building a new Windows phone that you can buy in 2026

Nexdock, a hardware company, is developing a new Windows phone called the Nexphone that is expected to be available in 2026. The Nexphone will run Windows 11 and is designed to provide a smartphone experience that can be connected to a larger display for a desktop-like computing environment.

windowscentral.com
5 2
Summary
Apple reportedly replacing Siri interface with chatbot experience for iOS 27
badc0ffee about 12 hours ago

Apple reportedly replacing Siri interface with chatbot experience for iOS 27

Apple is reportedly planning to replace the current Siri interface with a more advanced chatbot experience in iOS 27, offering users a more natural and conversational interaction with the virtual assistant.

9to5mac.com
4 0
Summary
Doctors raise alarm over declining vaccine rates in America's most vulnerable
Bender about 11 hours ago

Doctors raise alarm over declining vaccine rates in America's most vulnerable

The article discusses a concerning decline in vaccine rates among older adults, which healthcare experts warn could lead to higher rates of influenza and pneumonia. It highlights the importance of vaccination for this vulnerable population and the need to address barriers to vaccine uptake.

dailymail.co.uk
4 2
Summary
Autopsy reveals Daniel Naroditsky's probable cause of death
amrrs about 10 hours ago

Autopsy reveals Daniel Naroditsky's probable cause of death

The article discusses the recent announcement by North Carolina Governor Roy Cooper to pardon Asheville resident Willie Grimes, who was wrongfully convicted of a 1987 rape and served over 24 years in prison before being exonerated in 2012. The pardon is the latest in a series of actions taken by Cooper to address wrongful convictions in the state.

charlotteobserver.com
4 1
Summary
Build an Agent That Rewrites Itself (Open Source)
AdelAden about 10 hours ago

Build an Agent That Rewrites Itself (Open Source)

Hive is an open-source, decentralized infrastructure for building scalable and interoperable Web3 applications. It provides a modular framework for developers to create decentralized applications (dApps) with features like user identity management, data storage, and communication.

github.com
4 3
Summary
Designing AI-resistant technical evaluations
mfiguiere about 9 hours ago

Designing AI-resistant technical evaluations

The article discusses the challenges of evaluating AI systems and proposes a framework for AI-resistant technical evaluations. It highlights the importance of developing robust and reliable evaluation methods to ensure the safety and trustworthiness of AI technologies.

anthropic.com
4 1
Summary