macOS
brew install srgnlocal Homebrew formula metadata
sudo port install srgnMacPorts ports tree · devel/srgn/Portfile · source: api.github.com
brew / rank 8747
Code surgeon for precise text and code transplantation. Version 0.14.2 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#srgn.
install
brew install srgnlocal Homebrew formula metadata
sudo port install srgnMacPorts ports tree · devel/srgn/Portfile · source: api.github.com
nix profile install nixpkgs#srgnnixpkgs package indexes · pkgs/by-name/sr/srgn/package.nix · source: api.github.com
sudo pacman -S srgnArch Linux sync databases · srgn · source: geo.mirror.pkgbuild.com
overview
Code surgeon for precise text and code transplantation
history
srgn is a Rust command-line search and transformation tool that combines regular-expression scopes with optional syntax-aware scopes based on programming-language grammars. Its author characterizes it as a mix of `tr`, `sed`, `ripgrep`, and tree-sitter.
The public repository was created in 2023 and released v0.1.0 that October. The README records that its earliest core was a Rust rewrite of a tool devoted to German character substitutions; it then expanded into a general code-aware search and transformation utility.
The official installation guide documents release binaries, cargo-binstall, Homebrew, Nix and a repository flake, MacPorts, and compilation through Cargo. The package metadata additionally records a Pacman package, giving srgn unusually broad distribution for a focused refactoring CLI.
srgn can search or transform stdin and files with regular expressions, then narrow operations to syntax-aware language scopes. Actions include replacement, case conversion, deletion, squeezing, and language-specific transformations, and shell completions are built into the CLI.
srgn sits between traditional Unix text filters and IDE refactoring: it preserves a composable command-line interface while using parsers to select structural code regions. Its prebuilt binaries and presence across Cargo, Homebrew, Nix, MacPorts, and Pacman make it especially accessible to polyglot CLI users.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
srgn | executable | indexed executable | Discovered from the local executable index. |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:srgn |
|---|---|
| Version | 0.14.2 |
| Package manager | Homebrew |
| Homepage | https://github.com/alexpovel/srgn |
| Repository | https://github.com/alexpovel/srgn |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
srgn
nix profile install nixpkgs#srgnsrgn 0.14.2-1
A code surgeon for precise text and code transplantation
https://github.com/alexpovel/srgn
sudo pacman -S srgnsrgn
sudo port install srgnsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.