Refactor Code with Toolpack SDK

Renaming a symbol across a codebase with text search will break things. It matches strings, not definitions. A variable named user gets renamed alongside the class User. Import paths get touched. Comments get changed. Toolpack SDK ships 12 coding tools that work at the AST level. They understand the structure of your code, not just the text. coding.refactor_rename finds every reference to a symbol. The definition, every import, every usage. All renamed correctly. coding.find_references shows exactly which files are affected before you make the change. coding.get_diagnostics checks for new errors after. coding.multi_file_edit handles refactors that touch multiple files. All edits succeed or all of them roll back. No partial changes left behind. The navigation tools cover the other half. coding.find_symbol locates definitions. coding.get_call_hierarchy traces who calls what. coding.get_outline maps the structure of a file. Useful before making changes, not just during. JavaScript and TypeScript get full support through Babel. Python, Go, Rust, Java, C, and C++ get symbol navigation through Tree-sitter. All 12 tools available with tools: true. No external services. Wrote up all 12 with examples: https://lnkd.in/grcfacP6 #AI #LLM #TypeScript #DeveloperTools #OpenSource #SoftwareEngineering #AIAgents

To view or add a comment, sign in

Explore content categories