跳到正文
DEV Community· DreeMux·· 4 小時前AI 評分35

Jarvis PowerShell:以純 Python 建構預設唯讀的 PowerShell 風格 CLI

Jarvis PowerShell: Building a Read-Only-by-Default PowerShell-Style CLI in Pure Python

AI 導讀

Jarvis PowerShell 推出首個 GitHub 版本 v3.3.2,是以純 Python 建構、預設唯讀的 PowerShell 風格 CLI。程式約有 11,000 行,分為 23 個模組,並以 GPL-3.0-or-later 開源;內置以逾 1,200 個惡意載荷測試的模糊測試,以及 203 項自我測試。

正文

Cover image for Jarvis PowerShell: Building a Read-Only-by-Default PowerShell-Style CLI in Pure Python

DreeMux

I just tagged the first GitHub release (v3.3.2) of Jarvis PowerShell, a solo learning project built in pure Python (standard library only, with optional packages for extras).

It started as a single 68 KB prototype and grew over time into an ~11,000-line modular program split across 23 modules. The idea was to build a terminal that looks and behaves like Windows PowerShell—same colors, familiar cmdlets (dir, cd, cat), and red PowerShell-formatted errors—while letting you talk to it in plain language when you don't want to remember exact flags.

Jarvis start screen and menu

Jarvis answering a plain-language request

Core design principles

  • Read-only by default: Nothing on disk is written, moved, or deleted unless you explicitly ask for it (such as launching a game, saving a report, or updating the tool).
  • Built-in red-team fuzzing (jarvis hack yourself): Attacks its own command parser and handlers with over 1,200 hostile payloads to catch crashes, edge cases, and injection flaws. maintenance also runs a health check and 203 automated self-tests across every command.
  • 9 patch gates & rollback (implement jarvis): Before applying an update, it verifies checksums, syntax, integrity, and startup speed—creating a backup first and rolling back automatically if anything fails.

Built-in red-team fuzzing

Tools & extras

  • Game & file tools: Locates installed games across Steam, Epic, GOG, itch.io, and Downloads, hunts for corrupted files (denux.hunter), and inspects file metadata and checksums (extract.port).
  • Windows Screen Watch & Guard: Detects active remote-desktop or screen-sharing tools (TeamViewer, VNC, Zoom, RDP, etc.) and triggers a configurable shield.
  • Optional Claude Code bridge: Hands off requests Jarvis can't answer locally to the Claude Code CLI with all external tools disabled (claude off to disable).

The project is open source under GPL-3.0-or-later. Any feedback on the security gates, self-testing setup, or architecture is welcome!

Repository: ://github.com

來源:DEV Community · dev.to