The following image shows where the talk is in the schedule for Sun 2026-12-13. Solid lines show talks with Q&A via BigBlueButton. Dashed lines show talks with Q&A via IRC or Etherpad.
Sunday, Dec 13 2026, ~10:05 AM - 10:20 AM EST (US/Eastern)
which is the same as:
Sunday, Dec 13 2026, ~9:05 AM - 9:20 AM CST (US/Central) Sunday, Dec 13 2026, ~8:05 AM - 8:20 AM MST (US/Mountain) Sunday, Dec 13 2026, ~7:05 AM - 7:20 AM PST (US/Pacific) Sunday, Dec 13 2026, ~3:05 PM - 3:20 PM UTC Sunday, Dec 13 2026, ~4:05 PM - 4:20 PM CET (Europe/Paris) Sunday, Dec 13 2026, ~5:05 PM - 5:20 PM EET (Europe/Athens) Sunday, Dec 13 2026, ~8:35 PM - 8:50 PM IST (Asia/Kolkata) Sunday, Dec 13 2026, ~11:05 PM - 11:20 PM +08 (Asia/Singapore) Monday, Dec 14 2026, ~12:05 AM - 12:20 AM JST (Asia/Tokyo)
You can watch this talk now, ahead of the conference. It will also play on the stream at the scheduled time, but this way, you can start checking out the ideas and then come to the Q&A time with more questions. Q&A will be right after the talk's time on the schedule. This talk's Q&A will start at around 2026-12-13 10:17 AM UTC-0500. It will be on the stream until the next talk starts, but people can continue asking questions and discussing ideas even after the stream moves on to the next talk. Enjoy!
We're here today, roughly 500 days https://en.wikipedia.org/wiki/List_of_large_language_models#2025 in, and coding agents are genuinely more productive than, previously, instructed https://www.youtube.com/watch?v=U_cSLPv34xk. They are now driving much of our daily work, helping us organize, process information and be more useful overall, and, with this brainwave of an opening, I present yet another attempt at wedging large languages, agents, coding harnesses etcetera inside our beloved buffers, or something.
But hopefully, an unseemly angle to consider, first.
I continue to hand-write and often, hand-commit code. I prefer the learning aspect of AI more than the task completing automaton aspects. The latter has driven all sorts of explosion of tooling around not just writing, but reviewing code too. Like review agents jumping in, before your colleagues do, and dumping logorrhea across twenty pull requests before you have had a chance to wake up and look at your phone. This works, sometimes, for some people. But if you're like me, you still have people looking at code before it is deployed to users, and for that, it's overall better if you respect those people and their time.
This is where hutch slides in.
hutch https://github.com/adjaecent/magit-hutch is a Magit-induced, buffer-local interface over LLM review output. Instead of the review living on code-forges as comments for everyone to see, it appears patch-shaped (usually) within Magit's transient blocks and can be triaged and applied directly within emacs, before you commit and push.
Here's an example workflow:
Imagine you've just finished implementing a function. Before committing, you ask hutch to review the diff through the Magit buffer. You get a new actionable buffer back:
src/infirmary.rb
@@ ...
- def eligible?(user) = user.age >= 18 && user.age < 18
+ def eligible?(user) = user.age >= 18 && user.age < 65
[hutch] This condition can literally never be true
[hutch] Did you mean `user.age < 65`?
[hutch] apply suggestion? [y]es [n]o [e]dit
You can now accept, reject, or investigate each suggestion without leaving the Magit workflow. If the suggestions are useful, hutch can turn them into patches and apply; if it's nonsense, you dismiss it right there. None of it leaves your safe space.
The talk walks through how it works and when it doesn't:
tour of the workflow: how to use hutch, when to use hutch, how to approve and reject things
patches over comments: hutch biasing outputs towards actionable items, rather than just prose
tools: guardrails, every agent loop earning its keep, gptel's state-machine
evals: how does it stack up against other external tooling on recognized benchmarks
dead-on-arrival: where it fails and why this is only useful if you work in a specific niche way
This is a Magit and review-workflow talk that happens to involve an LLM, it doesn't purport any arguments about whether you should or shouldn't use AI with emacs.
Modern day aesthetically-relevant hacker. Long-time Clojure and Ruby programmer, reluctant polyglot by way of building high-throughput backends. Recently wound-down my startup Tramline, a mobile release orchestration tool, now kept alive as open source. Emacs and Magit are my daily drivers.
[00:00:00.071]I'm Akshay.I'm going to talk about a local code review toolI've been building for Emacs for the past fivemonths or so.I've previously been an Emacs user for about 10years, and I use it as a daily driver for most ofmy code and prose editing.When I say a local review tool, I mean localto Emacs and not necessarily local LLMs ondevice, even though I think that's theoreticallypossible today.By code reviews, I specifically mean thething we do on pull requests and on tools likeGerrit and Phabricator in the past.In other words, a system for gating code beforeit's merged to be released.I should say that there have been many goodtalks about LLMs in AI and what that means forEmacs, so I'm not going to relitigate any ofthose arguments again.I approach this, as many others in the community,by letting go of semantic boundaries under whichEmacs is considered an editor, but just rather amutable productivity environment instead.But I do want to briefly show you my experiencewith existing code review tools that are aroundbecause I have a bit of a love-hate relationshipwith them.It can be pretty overwhelming to keep up with thespeed at which the amount of code gets produceddaily these days, especially if you work in ateam, but also the amount of review text that nowgets attached to that code.In my experience, even though the noise tosignal for these tools worst caseis like 10 to 1, I don't feel likewe can get rid of them entirelybecause those ones can sometimes bepretty sharp and important.But I do think there's value in sort of shiftingthe process to the left to borrow a term from theDevRel industry.Because it's useful to see the work you didbefore you create more work for others, for yourcolleagues and your peers.Many of these flows can now be easilyunlocked in Emacs given the excellent buildingblocks we have today.
[00:02:14.825]But before I walk you through how a Hutchworkflow works, I want to show you what a typicalcoding agent review looks like today.These examples are from a real open sourceproduct that I've been building for the pastthree years.This is one pull request from the project.It's a single review pass by a review agent.Has 23 comments.Every single one of them flagged as a potential issue.Five of them are marked critical.This is technically a review and it's probably adecent one.But it's also a bit of a DOS attack on my attention.If we look behind the scenes on one of thosecritical flags, it ran 40-something shell scripts.It ran web searches.It wrote a little prompt for another AI to go andfix the thing.All of it to tell me that one method wasundefined and would crash at runtime.But at the end of all of it, it was still incorrect.The method comes from a Ruby gem, and this wassimply my reply in six words, which to its creditit apologized and updated its memory for.This is not a one-off thing.
[00:03:28.261]So I built Hutch for myself.It's up here.It lives in Emacs and on top of Magit.You decide when you want to trigger it and anyobvious to relatively bigger issues get caught upfront before you push your code up.When it does have something to say, it's usuallya full-size diff you can directly apply.But even if it doesn't, it's prose for you toread and not five other people collectively.So here's how you kick it off.When you're ready to commit, you open up thechange diffs in Magit, you stage your changes asusual, and then select the hutch action andtrigger a new review.Once this is done, you'll see a new hutch buffershow up.I also have a debug log buffer that can beoptionally enabled.
[00:04:19.220]This review has been run on the Hutch codebaseitself and the agent is sifting through the codeand you can see a bunch of tools being calledlike read_file and search_codebase and stuff.There's around five tools that Hutch exposes, oneof which is called surrounding_context that usesTreeSitter if you have that installed toincreasingly fetch more context around certainsuspicious lines without needing to read wholefiles and waste tokens.You'll see that it took around five rounds tofinish this review this time.
[00:04:51.291]Once the Hutch buffer is ready, you'd seesomething like this.It'll report the total tokens at the top.You'll see the findings organized undersuggestions, comments, and LGTM(which is "looks good to me").Just like Magit, you can open the submenus up.If you agree with the suggestion and theattached patch, you can hit m to queue it up.
[00:05:14.317]Comments are just text for you to read anddetermine if they make sense.These can also be copied and sent off to someoneelse to take a look or another agent that youmight have running.Once all the suggestions are queued up, youcan apply them all with the key binding Aand the patches get applied to the staged filesdirectly, bottom-up.
[00:05:37.385]But perhaps at this point, I'm not convinced yet.I'd like to run another review on these correctedchanges, and I can do so.So here we get another suggestion to fix thatwasn't caught the last time.We queue it up, apply it, and verify that it'slodged in, and then run one more final reviewbefore we commit.So at this point, I'm happy with the changes.The comments are not actionable, so I go aheadand write my commit.
[00:06:13.194]Another useful thing you can enable as apost-commit hook is having your review notes bestored within Git as a separate ref.In the terminal pane on the right, you can seeour last review was durably kept for posterity.This can be useful for maintaining a relatedhistory of reviews along with your commits andfor sharing the reviews with your team as well.That's it.It's hopefully pretty simple and intuitive to getstarted with.There's a lot more things to configure that youcan find in the README.If you're the kind that never wants to go back towriting code in editors by hand again, but arestill the kind that enjoys programming on theirown projects, this might be a nice thin layer toget your work verified without over-relying onLLMs for everything.
[00:07:03.876]On a separate note, Hutch does havea formal eval pipeline.If you set hutch-trace-dir and give it apath, it can emit Perfetto traces that can thenbe piped into some of the eval scripts that wehave to get fresh data about agent quality.We can also use the traces to visualize the agent itself.They're useful for both post runtime observabilityand to fetch data for verifying its correctness.
[00:07:38.342]Perfetto is an open source performance tracing toolthat comes with a bundled SQL query engine as well.You see this typically being used in Androidand on Chrome for performance profiling and things.But it turns out it works pretty well as a simpleagent tracing tool because it's entirelyinfrastructure-free.You just emit JSON in its own trace format andyou can load it up on ui.perfetto.dev.So once you load it up, this is what thevisualization looks like.There's a timeline of what the agent did, whattools it called, the slices of LLM calls, anddown below the tokens that were consumed.We can zoom into one of these tool calls and wecan check out what all the agent did.So here we see a search_codebase tool call withthat search string and it looks like it tookabout 400 milliseconds to finish.If we move further along, we'll see anothersearch_codebase call being called with slightlydifferent arguments.It took a little longer to finish.As you can see, as we move along the trace,the number of tokens consumed are increasing over time.If we go all the way to the end, we'll see two markers.The first one is where the LLM calls end.This is where the agent is done with all its findings.At this point, no models are being called andeverything that we got back is being nowprocessed by Hutch.A few milliseconds later, we see the finalfindings that are eventually rendered onto theHutch buffer.These are verified and are sanitized for correctness.
[00:09:32.417]You can also run SQL queries on Perfetto.Here we have a very simple query to fetch all thetool call durations.Here we can see the search_codebasetool call seems to have taken the most amount of timein this particular trace.read_file seems to have been called the most.
[00:09:55.100]Before I wrap this section up, I wanted to sharea couple of quick findings from slightly oldermodels run on Martian's code review datasetof 40 PRs across different difficulty levels.You can find more detailed benchmarks and evalruns in the README if anyone's curious.This first graph shows that different models tendto find different issues.So not all of them necessarily agree on what areal bug is.But if you theoretically combine their results,you would get about a 50% jump in the bug hit rate.The second graph shows how many rounds each modeltook to grind through the dataset.
[00:10:36.697]Here, GPT takes many more rounds and Opus is far fewer.But rounds can be misleading because they don'ttrack cost.Opus finishes in the fewest rounds but burns themost input tokens by far, likely because of thegrowing conversation context.GLM does it in under 2 million.So on the axis that actually costs money, GLM isthe cheapest of the three, which is the reasonwhy it's my default model of choice.That's it from me for today.
[00:11:09.356]Rich Hickey wrote a post recently arguing that LLMsaren't tools, they're automation.They do the work and they take the thinking with it.Hutch is my attempt at keeping as much of thisprocess under your control as possible.You choose when to run it, you read what it says,and then you apply the fixes yourself.It's a small local "tool-enough" for people stillreading what they write, and it's available todownload on MELPA and on GitHub.