← Back to tools
View AGENTS.md for srgn
srgn
A code surgeon for precise text and code transplantation using tree-sitter
Description
srgn is a code surgeon for precise text and code transplantation. It combines the capabilities of tr/sed, ripgrep, and tree-sitter to enable language-aware search and replace operations on source code.
AI Summary
Language-aware search and replace tool combining tr/sed, ripgrep, and tree-sitter for precise code manipulation
Capabilities
- + Perform language-aware search and replace
- + Use tree-sitter for AST-based code targeting
- + Combine regex matching with code structure awareness
- + Support multiple programming languages
Use When
- → When you need language-aware search and replace
- → When refactoring code with structural awareness