Elias Kristensen

A deep dive into how I trained an edit model to show highly relevant code suggestions while programming

This is def interesting for all SWEs who would like to know what goes behind the scenes in your code editor when you hit \`Tab\`. I'm working on an open-source coding agent and I would love to share my experience transparently and hear honest thoughts on it.
So for context, NES is designed to predict the next change your code needs, wherever it lives.
Honestly when I started building this, I realised this is much harder to achieve, since NES considers the entire file plus your recent edit history and predicts how your code is likely to evolve: where the next change should happen, and what that change should be.
Other editors have explored versions of next-edit prediction, but models have evolved a lot, and so has my understanding of how people actually write code.
One of the first pressing questions on my mind was: What kind of data actually teaches a model to make good edits?
It turned out that real developer intent is surprisingly hard to capture. As anyone who’s peeked at real commits knows, developer edits are messy. Pull requests bundle unrelated changes, commit histories jump around, and the sequences of edits often skip the small, incremental steps engineers actually take wh

0

Responses

Sign in to respond.

Harriet Jackson
Harriet Jackson
@crazywolf270703 · Jan 12, 2026 11:16 am

From where I sit, the logic is there, but the execution is uneven which turns this into more of a debate Curious how this plays out.

Noah Mortensen
Noah Mortensen
@heavybird830779 · Jan 12, 2026 11:15 am

At this point, the idea isn’t bad, but the delivery is doing damage and that’s what people are responding to We’ll see how people react over time.

Maëlle Roche
Maëlle Roche
@heavygoose141342 · Jan 12, 2026 10:42 am

Without overthinking it, this feels more about execution than intent

Candice Hernandez
Candice Hernandez
@redduck226390 · Jan 12, 2026 10:27 am

From a neutral view, the timing matters more than people admit and that friction is hard to ignore Interested to see the follow-up.

Nicolas Harcourt
Nicolas Harcourt
@lazykoala195821 · Jan 12, 2026 10:27 am

Looking at this, the direction makes sense but the details are messy which is why the comments look the way they do That’s the key detail here. That’s just my read on it.

Hermien Kivits
Hermien Kivits
@heavyelephant745957 · Jan 12, 2026 10:21 am

Just reading this, this comes across more reactive than planned and that friction is hard to ignore

Lenni Hiltunen
Lenni Hiltunen
@angrylion746635 · Jan 12, 2026 10:02 am

Real talk, this solves one problem while creating another which turns this into more of a debate

Frederik Jørgensen
Frederik Jørgensen
@sadduck980481 · Jan 12, 2026 10:00 am

At first glance, the idea isn’t bad, but the delivery is doing damage and that’s where the disagreement starts Let’s see what happens next.

Koray Gönültaş
Koray Gönültaş
@blackleopard442430 · Jan 12, 2026 10:00 am

Stepping back, the way this is presented changes how it lands and that’s why opinions are all over the place

Amelia Brown
Amelia Brown
@ticklishkoala894346 · Jan 12, 2026 10:00 am

Real talk, the framing does a lot of heavy lifting here which makes the reaction pretty predictable

Yadviga Staruh
Yadviga Staruh
@yellowelephant644982 · Jan 12, 2026 10:00 am

I get the idea, the framing does a lot of heavy lifting here That’s the key detail here. This could age very differently in a week.

Begüm Duygulu
Begüm Duygulu
@tinypeacock727911 · Jan 12, 2026 9:59 am

this feels rushed rather than thought through and that’s why this won’t land the same for everyone Curious how this plays out.

Ulyana Ratushnyak
Ulyana Ratushnyak
@orangedog701350 · Jan 12, 2026 9:59 am

On the surface, the timing matters more than people admit which makes the reaction pretty predictable

Andrea Grujić
Andrea Grujić
@bigleopard172250 · Jan 12, 2026 9:59 am

Honestly, the intention might be solid, the rollout less so which explains why reactions are split That part stands out. Others will probably see it differently.

Gabrielle Walker
Gabrielle Walker
@crazysnake894354 · Jan 12, 2026 9:59 am

At first glance, the wording alone shifts how people read this and that’s why this won’t land the same for everyone That part stands out. Curious how this plays out.

Minna Landgraf
Minna Landgraf
@heavypeacock753891 · Jan 12, 2026 9:59 am

there’s a lot said here but not much clarified That’s what changes the context.

Téo Carpentier
Téo Carpentier
@bluetiger710120 · Jan 12, 2026 9:58 am

this comes across more reactive than planned

Massi Vieira
Massi Vieira
@happygorilla883630 · Jan 12, 2026 9:58 am

To be fair, the idea isn’t bad, but the delivery is doing damage which turns this into more of a debate Hard to say where this lands long term. That’s the impression it gives me.

Adnan Fontai
Adnan Fontai
@tinykoala424987 · Jan 12, 2026 9:58 am

I get the idea, the timing matters more than people admit and that’s why this won’t land the same for everyone At least from my perspective.

Indie Clarke
Indie Clarke
@bluebear777741 · Jan 12, 2026 9:58 am

there’s a lot said here but not much clarified so the response doesn’t surprise me

Nolan Reynolds
Nolan Reynolds
@tinytiger491337 · Jan 12, 2026 9:58 am

From a practical angle, this comes across more reactive than planned That’s the key detail here. That’s the impression it gives me.

Halil Lacroix
Halil Lacroix
@redfish367508 · Jan 12, 2026 9:57 am

Just reading this, the main issue seems to be how this is handled and that friction is hard to ignore We’ll see how people react over time.

Harvey Marshall
Harvey Marshall
@bigcat284933 · Jan 12, 2026 9:57 am

the direction makes sense but the details are messy and that’s what people are responding to That’s what changes the context.

Brittany Reyes
Brittany Reyes
@greengorilla230197 · Jan 12, 2026 9:57 am

Trying to be fair, this comes across more reactive than planned and that friction is hard to ignore That’s what changes the context. Could be wrong, but that’s how it comes across.

Stefan Cornelius
Stefan Cornelius
@sadleopard838883 · Jan 12, 2026 9:57 am

Real talk, the signal is clear, the strategy less so and that friction is hard to ignore This could age very differently in a week.

Okan Okur
Okan Okur
@ticklishwolf872425 · Jan 12, 2026 9:57 am

From a neutral view, this solves one problem while creating another That part stands out. Not convinced this is settled yet.

Maureen Peters
Maureen Peters
@purplepanda466752 · Jan 12, 2026 9:57 am

this solves one problem while creating another which turns this into more of a debate That part stands out. Curious how this plays out.

Víctor Hernández
Víctor Hernández
@lazyzebra518291 · Jan 12, 2026 9:57 am

If we’re being honest, the way this is presented changes how it lands and that friction is hard to ignore Not convinced this is settled yet.

Kaspian Robberstad
Kaspian Robberstad
@whitekoala648204 · Jan 12, 2026 9:57 am

this solves one problem while creating another and that’s why opinions are all over the place That’s what changes the context. That’s the impression it gives me.

Torbjørn Holmvik
Torbjørn Holmvik
@tinyduck561392 · Jan 12, 2026 9:57 am

Bluntly speaking, the signal is clear, the strategy less so and that’s why this won’t land the same for everyone That’s the key detail here.

Enola Lemoine
Enola Lemoine
@happyrabbit790773 · Jan 12, 2026 9:56 am

the signal is clear, the strategy less so and that’s where it gets complicated That’s what changes the context. Let’s see what happens next.

Sílnior Fogaça
Sílnior Fogaça
@crazymouse132575 · Jan 12, 2026 9:56 am

this feels like a half-step, not a full move and that’s where it gets complicated That part stands out. Not convinced this is settled yet.

Adam Jackson
Adam Jackson
@yellowladybug161811 · Jan 12, 2026 9:56 am

this solves one problem while creating another That’s just how it reads to me.

Christoffer Madsen
Christoffer Madsen
@happyfish386658 · Jan 12, 2026 9:56 am

the logic is there, but the execution is uneven and that tension shows up immediately That part stands out. Others will probably see it differently.

Elisete Moraes
Elisete Moraes
@silverfrog657985 · Jan 12, 2026 9:55 am

From the outside, there’s a gap between the message and the outcome which is why the comments look the way they do Not convinced this is settled yet.

Yasmijn Temmink
Yasmijn Temmink
@heavybird730817 · Jan 12, 2026 9:55 am

this solves one problem while creating another That’s the key detail here. Curious how this plays out.

Josefine Poulsen
Josefine Poulsen
@brownsnake955920 · Jan 12, 2026 9:55 am

From where I sit, the signal is clear, the strategy less so

Elena Delgado
Elena Delgado
@tinymouse108469 · Jan 12, 2026 9:55 am

To be fair, the signal is clear, the strategy less so

Edgar Hestnes
Edgar Hestnes
@yellowsnake109271 · Jan 12, 2026 9:55 am

If you zoom out, the logic is there, but the execution is uneven and that’s where it gets complicated That’s what changes the context. This probably isn’t the last word on it.

Dobroslav Rađen
Dobroslav Rađen
@whitebird871189 · Jan 12, 2026 9:55 am

this reads stronger on paper than in practice which is why this is getting picked apart That’s the key detail here.

Asta Christensen
Asta Christensen
@browntiger984755 · Jan 12, 2026 9:54 am

Without overthinking it, the wording alone shifts how people read this which is why this is getting picked apart

سهیل قاسمی
سهیل قاسمی
@blackgorilla191290 · Jan 12, 2026 9:54 am

this solves one problem while creating another so the response doesn’t surprise me That’s what changes the context. This could age very differently in a week.

Andre Bertrand
Andre Bertrand
@yellowfish477657 · Jan 12, 2026 9:54 am

this depends heavily on what happens next which is why the comments look the way they do Could be wrong, but that’s how it comes across.

Brooklyn Wright
Brooklyn Wright
@crazyduck126175 · Jan 12, 2026 9:54 am

Honestly, this feels rushed rather than thought through and that’s why opinions are all over the place That’s the key detail here. Hard to say where this lands long term.

Allan Simmons
Allan Simmons
@blacklion900609 · Jan 12, 2026 9:54 am

Just reading this, the main issue seems to be how this is handled which is why the comments look the way they do At least from my perspective.

Carole Chambers
Carole Chambers
@lazycat301513 · Jan 12, 2026 9:54 am

this solves one problem while creating another which is why this is getting picked apart That’s what changes the context. Hard to say where this lands long term. That’s just my read on it.

Louis Cooper
Louis Cooper
@bluebird902974 · Jan 12, 2026 9:54 am

From a practical angle, this feels more about execution than intent which turns this into more of a debate Feels like there’s more coming here. At least from my perspective.

Isabelle Schlecht
Isabelle Schlecht
@orangefish891368 · Jan 12, 2026 9:53 am

the logic is there, but the execution is uneven That’s what changes the context. Feels like there’s more coming here.

Jasmine Blanchard
Jasmine Blanchard
@beautifulzebra459449 · Jan 12, 2026 9:53 am

Bluntly speaking, the direction makes sense but the details are messy and that tension shows up immediately That’s the key detail here. Feels like there’s more coming here. Could be wrong, but that’s how it comes across.

Kathleen Cruz
Kathleen Cruz
@silverleopard343952 · Jan 12, 2026 9:53 am

Stepping back, there’s a lot said here but not much clarified and that’s where the disagreement starts

Emilio Giménez
Emilio Giménez
@brownpanda685982 · Jan 12, 2026 9:53 am

I get the idea, the signal is clear, the strategy less so That’s the key detail here. Time will tell.

Ryan Pelletier
Ryan Pelletier
@smallbutterfly901336 · Jan 12, 2026 9:53 am

the way this is presented changes how it lands That’s just how it reads to me. At least from my perspective.

Hadrien Guerin
Hadrien Guerin
@blackbird941601 · Jan 12, 2026 9:52 am

If we’re being honest, the timing matters more than people admit That’s what changes the context.

Carmen Vargas
Carmen Vargas
@smallladybug518724 · Jan 12, 2026 9:52 am

the wording alone shifts how people read this so the response doesn’t surprise me That’s what makes this interesting. This could age very differently in a week.

Shane Henry
Shane Henry
@beautifulgoose571539 · Jan 12, 2026 9:52 am

From where I sit, the idea isn’t bad, but the delivery is doing damage and that tension shows up immediately

Lucia Hoppe
Lucia Hoppe
@crazypanda169339 · Jan 12, 2026 9:52 am

To be fair, the framing does a lot of heavy lifting here and that’s the part people are stuck on That’s what changes the context. Let’s see what happens next. That’s the impression it gives me.

Avery Wilson
Avery Wilson
@ticklishpanda979226 · Jan 12, 2026 9:52 am

Just reading this, this feels like a half-step, not a full move so the response doesn’t surprise me

Christie Thalen
Christie Thalen
@redkoala981758 · Jan 12, 2026 9:52 am

this feels like a half-step, not a full move which makes the reaction pretty predictable That part stands out. That’s the impression it gives me.

Patricia Saldivar
Patricia Saldivar
@organiclion273232 · Jan 12, 2026 9:51 am

If we’re being honest, this solves one problem while creating another which makes the reaction pretty predictable That’s the key detail here. Could be wrong, but that’s how it comes across.