2F

20000419/fauxnix

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

899 stars 4 forks 品質 83 トレンド 20MIT

Windows上で決定性bash→PowerShell翻訳を使ってLinuxスタイルのコマンドを実行します。VMもWSLも使いません。MCPサーバー+CLIはAIエージェント向けに構築されています(Claude Code、Codex、OpenCodeなど)。

概要

fauxnixはAIエージェント向けに作られたbash→PowerShell翻訳層です。エージェントはすでに知っているbash(ls -la | grep foo、find . -name '*.ts' | wc -l, kill -9 1234)を書き続け、fauxnixは各コマンドを決定論的にPowerShellに翻訳し、ネイティブで実行し、GNU/Linuxのような出力を返します:ls -l列、bashスタイルのエラーメッセージ、coreutilsの終了コード、UTF-8/GBKが自動処理されます。 ワンコマンドインストールで、任意のMCPクライアントも可能です。 idempotent;変更点を正確に印刷します。設定ファイルを自分で編集したい方は、以下に手動設定を示します。 NPMパッケージ名はfauxnix-cli(npmのfauxnix名は無関係な2015年WebSocketライブラリに属しています)。インストールされたコマンドはfauxnixです。PowerShell 5.1+(組み込み)およびNode.js ≥ 18が必要です。 (~/.codex/config。

概要(AI 翻訳)

Windows上でLinuxスタイルのコマンドを実行する — ネイティブかつ決定論的に、VMもWSLも使わない。

fauxnixはAIエージェント向けに作られたbash→PowerShell翻訳レイヤーです。あなたのエージェントは bashはすでに知っている(ls -la | grep foo、find . -name '*.ts' | wc -l、kill -9 1234)、そして fauxnixは各コマンドをPowerShellに決定的に翻訳し、ネイティブで実行し、 GNU/Linuxのように見えるバック出力:ls -l列、バッシュスタイルのエラーメッセージ、coreutilsの終了 コードはUTF-8/GBKで自動的に処理されました。

Claudeコード・Codex ·OpenCode ·Kimiコード ·Qwenコード、および任意のMCPへのワンコマンドインストール クライアント。109 翻訳コマンド ·1,044 の自動テスト ·270ケースの Git Bash 微分 コーパスに加え41回の補足チェック・実行時のLLM呼び出しはゼロです。

このチェックアウトはv2.0.0の準備をします。移行およびリリースノートを参照してください Node.js要件に対して、ファイル運用契約と検証制限を変更しました。 npmバッジと@latest例は、出版完了までの公開版を示します。

今すぐ試してみて — インストール不要

エージェントをつなげ — 一つのコマンド

idempotent;変更点を正確に印刷します。編集を好みますが、以下に手動設定を示します。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

fauxnix

Run Linux-style commands on Windows — natively, deterministically, no VM, no WSL.

fauxnix is a bash→PowerShell translation layer built for AI agents. Your agent keeps writing the bash it already knows (ls -la | grep foo, find . -name '*.ts' | wc -l, kill -9 1234), and fauxnix deterministically translates each command into PowerShell, executes it natively, and hands back output that looks like GNU/Linux: ls -l columns, bash-style error messages, coreutils exit codes, UTF-8/GBK handled automatically.

One-command install for Claude Code · Codex · OpenCode · Kimi Code · Qwen Code, plus any MCP client. 109 translated commands · 1,469 automated tests · 270-case Git Bash differential corpus plus 41 supplementary checks · zero LLM calls at runtime.

This checkout is v2.2.0. See migration and release notes for the Node.js requirement, changed file-operation contracts and verification limits. The npm badge and @latest examples show the published version until publication completes.

Try it now — no install

npx fauxnix-cli@latest "ls -la src | head -3"
npx fauxnix-cli@latest translate "find . -name '*.log' -mtime +7 -delete"

$ fauxnix "ls -la src | head -2"
-rw-r--r-- 1 me me 1204 Aug 16 09:12 ast.ts
-rw-r--r-- 1 me me 8192 Aug 16 09:12 cli.ts

$ fauxnix "cat nope.txt"
cat: nope.txt: No such file or directory        # not a PowerShell stack trace

Connect your agent — one command

npm install -g fauxnix-cli
fauxnix install --claude     # or --codex / --opencode / --kimi / --qwen
fauxnix doctor               # verifies encoding, harness config, and MCP round-trip

Idempotent; prints exactly what changed. Manual configurations below if you prefer to edit config files yourself.

npm package name is fauxnix-cli (the fauxnix name on npm belongs to an unrelated 2015 websocket library); the installed command is fauxnix. Requires Windows with PowerShell 5.1+ (built-in) and Node.js ≥ 22.20.0. Node 18/20 are unsupported in v2. Current Node 22/24 LTS patches are tested. Published v1.0.0 retains its original metadata.

fauxnix install -- writes the spawn-safe form shown below: the absolute Node

GitHub で README 全文を見る

インストール

npx fauxnix-cli@latest "ls -la src | head -3"
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "fauxnix": { "command": "C:\\Program Files\\nodejs\\node.exe", "args": ["C:\\Users\\<you>\\AppData\\Roaming\\npm\\node_modules\\fauxnix-cli\\dist\\index.js", "mcp"] } } }