ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 DJPalefaceSD

valet-mode

供他人在你的電腦前使用的唯讀模式:Claude 可以讀取和回答,但在解鎖前不能進行任何變更。

DJPalefaceSD@DJPalefaceSD

DJPalefaceSD/rostech-mods/tree/main/plugins/valet-mode

已翻譯

關於這個 mod

Valet Mode

當別人使用你的電腦時提供唯讀模式。就像汽車的代客鑰匙:對方可以操作 Claude 的問題和回答,但打不開後車廂。

  • /valet on 4821 使用你選擇的至少 4 個字元的程式碼開啟。
  • /valet off 4821 關閉。程式碼錯誤時會保持開啟。
  • /valet 回報目前是否開啟。

開啟後,Claude 仍然可以讀取檔案、搜尋並回答問題,但不能編輯或寫入檔案、執行 shell 指令,也不能使用代表你執行操作的連接器,例如傳送電子郵件。提示列上方會顯示黃色的 VALET MODE 狀態帶,提醒所有人它已開啟。

它會一次鎖定電腦上的每個 Claude Code 視窗,包括已經開啟的視窗,幾秒內每個視窗都會顯示狀態帶。重新啟動後仍會保持開啟,因此關閉 Claude Code 不會解鎖。鎖定狀態和程式碼保存在你自己電腦使用者資料夾中的小檔案 .claude/rostech/valet-mode.json。如果檔案損壞,Valet Mode 會保持鎖定而不會開啟。這是給桌邊訪客使用的簡單鎖,不是安全系統。它不會將任何內容傳送到外部。

已使用 Claude Code 2.1.288 測試。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add DJPalefaceSD/rostech-mods
claude plugin install valet-mode
原文 / README

Valet Mode

A look-only mode for when someone else is at your PC. Like the valet key for a car: they can drive Claude's questions and answers, but they cannot open the trunk.

  • /valet on 4821 turns it on with a code you pick, 4 characters or more.
  • /valet off 4821 turns it off. The wrong code leaves it on.
  • /valet says whether it is on.

While it is on, Claude can still read files, search and answer questions. It cannot edit or write files, run shell commands, or use connectors that act for you, such as sending email. A yellow VALET MODE band sits above the prompt so nobody forgets it is on.

It locks every Claude Code window on the PC at once, including windows that were already open, and the band shows up in each of them within a couple of seconds. It stays on through a restart, so closing Claude Code does not unlock it. The lock and its code are kept in one small file on your own machine, .claude/rostech/valet-mode.json in your user folder. If that file is damaged, Valet Mode stays locked rather than opening up. It is a simple lock for a guest at your desk, not a security system. It sends nothing anywhere.

Tested with Claude Code 2.1.288.

更多類似作品