[{"data":1,"prerenderedAt":70},["ShallowReactive",2],{"term-c\u002Fcontext-surgery":3,"related-c\u002Fcontext-surgery":59},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":53,"sitemap":54,"stem":57,"subcategory":6,"__hash__":58},"terms\u002Fterms\u002Fc\u002Fcontext-surgery.md","Context Surgery",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Context surgery is manually editing your AI conversation — deleting bad turns, tweaking earlier messages, removing a failed tool call — before continuing. It's cheating. It's also the difference between a working prompt and a stuck one.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Context surgery is the practice of manually editing an AI conversation's prior turns to remove errors, condense context, or redirect the conversation. Most advanced coding tools (Claude Code, Cursor) support this via message editing and branching. Distinct from compaction (automated summarization), surgery is surgical and user-directed.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"I did some context surgery — removed three failed attempts before the winning prompt.\" \u002F \"Branch the conversation and do context surgery rather than starting over.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"ai","Context surgery is manually editing your AI conversation — deleting bad turns, tweaking earlier messages, removing a failed tool call — before continuing.","intermediate","md","c",{},true,"\u002Fterms\u002Fc\u002Fcontext-surgery",[49,50,51,52],"Context Compaction","Context Rot","Prompt Engineering","Agent Workflow",{"title":5,"description":41},{"changefreq":55,"priority":56},"weekly",0.7,"terms\u002Fc\u002Fcontext-surgery","I6GzR4FahMEQ0bgmSV1zn199zjthTh3NNGq6D3Sq6vQ",[60,63,66],{"title":49,"path":61,"acronym":6,"category":40,"difficulty":42,"description":62},"\u002Fterms\u002Fc\u002Fcontext-compaction","Context compaction is summarizing a long AI conversation down to just the important bits so the model can keep going without hitting context limits.",{"title":50,"path":64,"acronym":6,"category":40,"difficulty":42,"description":65},"\u002Fterms\u002Fc\u002Fcontext-rot","Context rot is when a long AI conversation has been running so long that the model is confusing old instructions with new ones, forgetting what it already...",{"title":51,"path":67,"acronym":6,"category":68,"difficulty":42,"description":69},"\u002Fterms\u002Fp\u002Fprompt-engineering","vibecoding","Prompt engineering is the art of talking to AI so it actually does what you want.",1776518269763]