Go Surgeon
Empowers LLM agents with AST-based tools for precise, deterministic Go code editing and refactoring, replacing generic file operations.
Go Surgeon directly addresses the significant challenges LLM agents face when editing Go code using text-level patching. It provides a robust, AST-based toolkit, exposed as an MCP server, that enables agents to perform precise structural edits, automatically manage Go imports and formatting, and ensure valid Go code with every operation. This eliminates the common frustrations of conversational edits, broken builds, and inconsistent formatting by replacing generic file tools (like Edit, Read, Grep) with language-aware, atomic operations for Go.
주요 기능
01Replaces generic file tools for Go files with AST-based operations.
02Performs atomic, structural edits by AST identifier, ensuring valid Go and clear errors.
03Automatically manages Go imports and formatting on every code mutation.
04Keeps interfaces and their generated mocks in sync with compile-time assertions.
05Enables surgical in-place edits for functions, structs, or interfaces without re-emitting entire declarations.
062 GitHub stars
사용 사례
01Performing complex, multi-step Go refactors atomically and reliably.
02Enabling LLM agents to precisely edit and update Go functions, structs, and interfaces without syntax errors.
03Generating and managing Go interfaces and their associated mock implementations automatically.