{"id":8,"date":"2026-09-04T19:28:10","date_gmt":"2026-09-04T19:28:10","guid":{"rendered":"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/instant-refactoring\/"},"modified":"2026-09-04T19:28:10","modified_gmt":"2026-09-04T19:28:10","slug":"instant-refactoring","status":"publish","type":"canvas_aicode_feat","link":"https:\/\/demos.canvaswp.com\/ai-coding\/capability\/instant-refactoring\/","title":{"rendered":"Instant Refactoring"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Select a block and ask for it cleaner, faster, or in a different pattern. The rewrite arrives as a diff against the selection, with the surrounding code left alone.<\/p>\n<p class=\"wp-block-paragraph\">Because the index knows the call sites, a signature change offers to update them in the same pass rather than leaving you to find them. A rename that breaks a public export is reported instead of applied.<\/p>\n<p class=\"wp-block-paragraph\">The common case is small and undramatic: a nested conditional flattened, a loop turned into a comprehension, a duplicated block extracted into the helper it should always have been.<\/p>","protected":false},"excerpt":{"rendered":"<p>Select any block and CodePilot rewrites it cleaner, faster, or in a different pattern. One shortcut, zero rework.<\/p>\n","protected":false},"menu_order":6,"template":"","meta":[],"class_list":["post-8","canvas_aicode_feat","type-canvas_aicode_feat","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/canvas_aicode_feat\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/canvas_aicode_feat"}],"about":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/types\/canvas_aicode_feat"}],"wp:attachment":[{"href":"https:\/\/demos.canvaswp.com\/ai-coding\/wp-json\/wp\/v2\/media?parent=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}