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

essential-conversation

一個使用 function hooks 建置的 Claude Code 外掛,透過 /conversation 指令在側邊面板顯示每個工作階段輸入的提示,以及 Claude Code 在該工作階段的最後回答。

SuzumiyaAoba@SuzumiyaAoba

SuzumiyaAoba/claude-essential-conversation-mod

已翻譯

關於這個 mod

這個使用 Mods(function hooks)撰寫的外掛,會在側邊面板列出每個對話工作階段的使用者提示,以及 Claude Code 對應的最後回答。檔案配置包括 .claude-plugin/plugin.json、hooks/hooks.json 和 hooks/register.tsx。使用方式:透過 ~/.claude/settings.json(CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1)或工作階段啟動時的環境變數啟用 function hooks,接著使用 claude --plugin-dir . 啟動工作階段,並執行 /conversation 切換面板。注意:截至 September 2026,function hooks 仍處於 Early Access 階段,API 可能變動。開發時可使用 /plugin-types 產生型別,並使用 claude plugin validate . 進行靜態驗證。

安裝

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

claude plugin marketplace add SuzumiyaAoba/claude-essential-conversation-mod
claude plugin install essential-conversation
原文 / README

claude-essential-conversation

A Claude Code plugin written with Mods (function hooks). It lists, in a side pane, the pair of each turn's typed prompt and Claude Code's last answer for that turn.

Note: Claude Mods (function hooks) are an Early Access feature as of September 2026; the API may still change.

File layout

.claude-plugin/plugin.json   # Plugin metadata
hooks/hooks.json             # Declares register.tsx to be loaded
hooks/register.tsx           # The mod itself (event registration, pane rendering)
tsconfig.json                 # Dev-time config for the types /plugin-types generates

Usage

  1. Enable function hooks (via ~/.claude/settings.json or an env var at session start).

    {
      "env": {
        "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1"
      }
    }
    
  2. Start a session with this directory as the plugin dir.

    CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir .
    
  3. Run /conversation in the session to toggle the pane.

Development

To refresh the type definitions, run the following inside a session (writes .claude/types/claude-code.d.ts):

/plugin-types

Static validation of the plugin:

claude plugin validate .

更多類似作品