Show HN: Patchwork, AST-native sed without LLMs
Category: devtools
Tags: code-refactoring, ast-parsing, cli-tool
Score: 6.3/10 (Innovation: 5, Technical: 7, Documentation: 7, Utility: 6)
Patchwork is a lightweight CLI tool that uses tree-sitter ASTs to perform structural code search and replacement, similar to sed but with syntax-aware matching. It offers a small binary, zero configuration, and a unique placeholder syntax, making it interesting for developers who need quick, accurate refactors without heavy dependencies or LLMs.
Target audience: backend devs
Repository: https://github.com/ThatXliner/patchwork · Rust · Apache-2.0 · 1 stars
View on Hacker News