ClaudeMods
☰
ZH-CN
● 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 .

更多类似作品