
xdvi/zero-noise
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Universal zero-noise refactoring plugin for Claude Code, Antigravity, OpenCode, and MCP
概要
Structural silence. Clean code that means what it says. A universal plugin for , , , and (with support for , , and any MCP-compliant agent) that enforces zero-noise refactoring: DRY, early return, semantic predicates, and algebraic simplification — across Go, Rust, TypeScript, Python, and C#. - structural noise: deep nesting (>2 levels), anonymous closures in argument position, raw conditionals, duplicated literals, and commented-out dead code. - algebraic simplifications with --fix (De Morgan's laws, endsWith shortcuts, and boolean return cleanups). - that the noise score is strictly lower after the refactor with (standard Python library only). Clone and run the one-stop installer and updater: Flags: - ./install.sh (or ./install.sh --all): Configures Antigravity, Claude Code, OpenCode, and OpenAI Codex. - ./install.sh --agy: Configures Antigravity only. - ./install.sh --claude: Configures Claude Code only. - ./install.sh --opencode: Configures OpenCode only. - ./install.
README
以下は原文 README の抜粋です。原文を見る。
zero-noise
Structural silence. Clean code that means what it says.
A universal plugin for Claude Code, Antigravity (agy), OpenCode, and OpenAI Codex (with support for Kimi, Grok, and any MCP-compliant agent) that enforces zero-noise refactoring: DRY, early return, semantic predicates, and algebraic simplification — across Go, Rust, TypeScript, Python, C#, and Zig.
What it does
- Audits structural noise: deep nesting (>2 levels), anonymous closures in argument position, raw conditionals, duplicated literals, and commented-out dead code.
- Auto-fixes algebraic simplifications with
--fix(De Morgan’s laws,endsWithshortcuts, and boolean return cleanups). - Proposes machine-applicable fixes via
plan/propose_fixes— guard, predicate, constant, and closure rewrites, each locked to the source SHA-256 (expected_hash) and composable into a single patch. - Validates that the noise score is strictly lower after the refactor with compiled native Zig engine with zero external runtime dependencies.
Install
Quick Install (Universal)
Clone and run the one-stop installer and updater:
git clone https://github.com/xdvi/zero-noise
cd zero-noise
./install.sh
Flags:
./install.sh(or./install.sh --all): Configures Antigravity, Claude Code, OpenCode, and OpenAI Codex../install.sh --agy: Configures Antigravity only../install.sh --claude: Configures Claude Code only../install.sh --opencode: Configures OpenCode only../install.sh --codex: Configures OpenAI Codex only.
Antigravity (agy)
Install via CLI:
agy plugin install
Or clone directly into the Antigravity plugins directory:
git clone https://github.com/xdvi/zero-noise ~/.gemini/config/plugins/zero-noise
Update:
Re-run agy plugin install , or git pull inside ~/.gemini/config/plugins/zero-noise.
Claude Code
Install via marketplace:
# From GitHub repository
claude plugin install zero-noise --marketplace xdvi/zero-noise
# Or from local clone
claude plugin install zero-noise --marketplace ./
Update:
claude plugin update zero-noise
OpenCode
Auto-discovered via .opencode/agent/ and .opencode/command/. See .opencode/INSTALL.md for detailed setup.
Install via opencode.json:
Add zero-noise to the plugins array (globally in ~/.config/opencode/opencode.json or project-level opencode.json):
{
"plugins": [
"zero-noise@git+https://github.com/xdvi/zero-noise.git"
]
}
Or from a local clone:
{
"plugins": [
""
]
}
Global MCP Configuration in opencode.json:
Configure the zero-noise MCP server in ~/.config/opencode/opencode.json (or project-level opencode.json):
{
"mcp": {
"zero-noise": {
"type": "local",
"command": [
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"zero-noise": {
"command": "zero-noise",
"args": ["mcp"]
}
}
}