GhostShell: a haunted terminal that "possesses" your shell
说明与用途
GhostShell 是一个本地终端助手,能够对命令进行幽灵式评论,执行确定性安全检查,并在执行前要求用户确认。
问题
Users want a spooky terminal companion that warns about dangerous commands without executing them automatically.
结果
GhostShell provides real‑time, themed commentary and deterministic safety checks for terminal commands, all running locally without external APIs.
工作流
- 1. User types a command in the terminal.
- 2. GhostShell forwards the command to a local Qwen2.5‑3B model via Ollama.
- 3. The model generates a short spooky commentary based on the command.
- 4. GhostShell runs 18 regex‑based risk patterns against the command.
- 5. If any pattern matches, GhostShell displays a warning and prompts for a typed "EXECUTE" confirmation.
- 6. If the user confirms, GhostShell forwards the original command to the shell for execution; otherwise it aborts.
证据
GhostShell — a Halloween-themed terminal companion. You type commands as normal; a locally-hosted open-weight model whispers back short spooky commentary on what that command is about to do to your machine.
Every command passes 18 deterministic risk patterns before anything happens; flagged commands get a RESTLESS SPIRIT warning and demand a typed EXECUTE before they may run.
The model never runs anything — only the command I typed, only after I confirm.
- 记录日期: 2026-11-01T03:44:08.279Z