20000419/fauxnix
Run Linux-style commands on Windows via deterministic bash→PowerShell translation. No VM, no WSL. MCP server + CLI built for AI agents (Claude Code, Codex, OpenCode...). GNU-style output, bash-style errors, UTF-8/GBK handled.
What it solves
AI agents are often trained on Linux-based bash commands, leading them to struggle when operating on Windows. They frequently generate PowerShell commands that are syntactically incorrect or produce inscrutable error messages. This project allows agents to keep using the bash commands they already know while running natively on Windows, without needing a virtual machine or WSL.
How it works
It acts as a translation layer between bash and PowerShell. When an agent sends a bash command, the tool deterministically translates it into a native PowerShell script, executes it, and formats the output to look like standard GNU/Linux results. It maintains a persistent session, meaning it remembers environment variables, directory changes, and shell state across multiple commands.
Who it’s for
This is designed for developers building AI agents that need to perform file operations, text processing, or system management on Windows machines. It is ideal for agent fleets where installing a full bash toolchain is difficult, or for environments where you want to ensure consistent, predictable command execution without the overhead of a VM.
Highlights
- Deterministic bash-to-PowerShell translation with zero LLM calls at runtime.
- Supports 109 common commands, including file operations, text filters, and networking tools.
- Provides native Windows performance without the need for WSL or external virtual machines.
- Offers an MCP server for easy integration with Claude Code, Codex, and other AI coding agents.
- Includes a robust test suite with over 1,000 automated checks to ensure output matches GNU/Linux standards.
Related
- Project
- Project
- Project
- Project