No-training weight surgery: a Claude Code plugin that fixes repetition loops by editing transformer weights directly

AchelousAce · reddit · 2026-11-13

The author hit repetition loops in a small research model and tried fixing them by editing weights directly — no training, no decoding penalty. That became Weight-Surgery, an open-source Claude Code plugin (one skill + one PyTorch file) that lets a coding agent perform this end-to-end on any trained transformer.

What the plugin does

Results

Repo is on GitHub — a concrete path to surgical behavior fixes without retraining.

Original post →

More from coding & agent

coding & agent channel →