{"full_name":"unixwin/niubash","owner":"unixwin","name":"niubash","shard":"1","url":"https://github.com/unixwin/niubash","description":"AI-native bash for humans and AI agents: real bash syntax, real Unix commands (winuxcmd), real git via niu-git. Native Windows/Linux/Android/macOS/harmony - no WSL, no MSYS, no fork().","homepage":"https://unixwin.dev/products/niubash/","topics":["cli","command-line","repl","rust","shell","terminal","unix","windows","windows-terminal","agent","ai-native","bash","developer-tools","android","coreutils"],"tag_pages":["agent","ai-native","android","bash","cli","command-line","developer-tools","repl","rust","shell","terminal","unix","windows"],"language":"Rust","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/292547197?v=4","created_at":"2026-03-28T14:05:55Z","pushed_at":"2026-11-27T08:55:19Z","metrics":{"stars":304,"forks":16,"watchers":0,"issues":519,"prs":603,"releases":50,"issues_open":17,"issues_closed":502,"prs_open":2,"prs_closed":24,"prs_merged":577,"discussions":0},"growth":{"day":{"stars":2,"forks":1,"base_day":"2026-11-27"}},"history":{"dates":["2026-11-25","2026-11-26","2026-11-27","2026-11-28"],"stars":[299,299,302,304],"forks":[14,14,15,16],"watchers":[null,0,0,0],"issues_open":[null,14,15,17],"prs_open":[null,0,1,2]},"boards":{},"same_owner":[],"issues":[{"number":633,"title":"合作邀请","comments":45,"created_at":"2026-10-28T03:49:31Z"},{"number":775,"title":"readline ABI integration: export rl_* in-process and route to the live editor","comments":14,"created_at":"2026-11-01T03:26:56Z"},{"number":993,"title":"Git Bash drop-in report: `set -u` + `${X:=v}`, permission model, `cmd //c`, `command -v` for emulated commands, `/dev` devices","comments":12,"created_at":"2026-11-10T19:11:41Z"},{"number":352,"title":"[perf][P2] Android aarch64 v1.4.0 vs GNU bash 5.3 benchmark matrix: interpreter-bound 2.3-7.3x slower, fork-bound 1.8-5.2x faster, startup +14ms (wrapper #351), RSS 2.2x — root causes filed as rubash#607-609","comments":10,"created_at":"2026-10-14T16:38:05Z"},{"number":349,"title":"[Android][perf] -c arithmetic and function loops are ~1.6-1.8x GNU Bash (gate: <=1.5x)","comments":9,"created_at":"2026-10-14T09:35:04Z"},{"number":996,"title":"[tracking] #993 拆分追踪：12 节 + S1–S11 按面路由（rubash/winuxcmd/host），文档批（§2/§8/§9/§12）已定论为有意分歧","comments":4,"created_at":"2026-11-12T01:34:56Z"},{"number":1122,"title":"niubash中运行gradle任务，结束后ai agent仍认为niubash的任务没结束","comments":3,"created_at":"2026-11-27T14:41:18Z"},{"number":955,"title":"The integration suite is ~10k tests but CI executes only a handful of targets","comments":3,"created_at":"2026-11-06T15:30:06Z"}],"discussions":[],"latest_release":{"name":"Niubash v1.5.2","tag":"v1.5.2","published_at":"2026-11-25T13:53:36Z","body":"Niubash v1.5.2 packages for Windows, Linux, and macOS.\n\nEngine: rubash git d63287553235 — every platform build in this release compiled that same revision, pinned by `scripts/release/rubash-pin.json` and fail-hard verified at fetch time (rubash#827). The release compiles the pinned engine, not \"whatever rubash master was when the pipeline ran\".\nVerify locally with `niu --version`, which prints the same revision.\n\nWindows (x64, ARM64): Inno Setup installers (`*-setup.exe`) add user PATH and Windows Terminal profile integration; portable archives bundle `niu` with WinuxCmd and bash/sh shims.\n\nPortable download guide (niubash#470): prefer `*.tar.gz` — it is hardlink-native. The bundled payload ships real NTFS hardlinks (the whole `git.exe` family is one shared binary, `awk`/`gawk` likewise, exactly what `wpm install` lays down), so the tarball is roughly half the zip's download size and unpacks to a much smaller on-disk tree; `tar -xf <file>.tar.gz` works out of the box on Windows 10 1803+ and any modern Linux/macOS, and on a filesystem without hardlink support (FAT32/exFAT) extraction degrades gracefully to independent byte-identical copies with no loss of function. `*.7z` is the smallest download (solid LZMA already collapses the shared payloads) but current 7-Zip releases restore the shared families as independent copies — every file is byte-identical, only disk usage grows. The classic `*.zip` is unchanged, stores every payload in full, and remains for tooling that only speaks zip.\n\nWindows packages come with the must-install bundle pre-installed (niubash#189, niubash#209): niugit (native Windows git — the full plugin distro's five entries install through git, so a fresh machine without git.exe no longer fails `niu setup`), gawk 5.4.1 with plain `awk` working too, plus ripgrep (`rg`) and fd — all landing in the bundled WinuxCmd root as wpm JSON-package payloads, assembled at CI time with no runtime downloads, no runtime archive formats, and no symlinks. Pre-install is best-effort, not a promise: on legs where the package index has no matching artifact (currently niugit and gawk on the ARM64 builds; ripgrep and fd have ARM64 artifacts) the package ships WITHOUT that entry — run `winuxcmd wpm install <name>` once after installing to add it. The pre-install list and its recorded exclusions live in `scripts/release/preinstall.json`.\n\n`niubash-skill-v<version>.zip` is the AI agent skill bundle (SKILL.md + references, WinuxCmd-skill layout): unpack it into an agent skills directory, or let the shell do it — `niu skill install` embeds the same content.\n\nLinux (x86_64, aarch64; glibc): portable tarballs with the `niu` binary, README, and LICENSE — Unix builds bundle nothing, native system tools are used. Untar anywhere and run `./niu`.\n\nmacOS (aarch64, x86_64): portable tarballs with the `niu` binary, README, and LICENSE. Untar anywhere and run `./niu`.\n\nEvery artifact was smoke-verified on the build OS of the job that produced it, before upload: `niu -c 'echo ok'`, `printf 'a\\nb\\n' | niu -c 'sort | head -1'`, an offline `NIU_PLUGIN_SPEC=<empty> niu plugin sync --bootstrap` (exit 0, no output, no network), and a `niu --version` check against this tag and the engine revision.\n\nIntegrity (niubash#311): `SHA256SUMS` lists the SHA-256 of every shipped artifact, and each Windows installer has a `.sha256` sidecar beside it. `niu --self-update` verifies the installer against the sidecar before running it and aborts rather than execute anything it cannot verify. The same digests feed the winget manifest `InstallerSha256`.\n\n## Licenses & Source\n\nNiubash itself is MIT (`LICENSE` in this repository and at the root of every package). The Windows packages bundle third-party payloads pre-installed from `scripts/release/preinstall.json`; each component ships its canonical license text under `licenses\\<component>\\` in the package tree, and the installer wizard surfaces niubash's own license at install time:\n\n- **gawk** — `GPL-3.0-or-later`; upstream","is_prerelease":false},"readme":true,"readme_zh":true,"news":[],"stale":false,"snapshot_at":"2026-11-28T10:06:57Z","history_start":"2026-09-06"}