跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    jcianci12

    Rename Chat

    v0.1.0其他
    opencode-rename-chat

    OpenCode plugin — rename chat sessions from within the conversation. Keeps session list readable as chat topics evolve.

    GitHub 星标

    0

    月装机量

    30

    近 7 天 8

    综合评分SCORE

    27.5

    生态多维模型

    最近提交

    1 个月前

    2026-07-15

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-rename-chat@0.1.0"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    OpenCode plugin that lets you rename chat sessions from within the conversation.

    Why?

    OpenCode auto-generates chat titles using a small model, but conversations evolve. What starts as "fix login bug" becomes "refactor auth middleware + write tests." The auto-title sticks with the first topic forever.

    This plugin registers a rename_chat tool that the AI (or you) can call to update the session title at any point — keeping your session list readable and accurate.

    Bonus: you can embed status markers like [DONE], [REVIEW], [WIP] in titles.

    Install

    npm (global)

    npm install -g opencode-rename-chat
    

    Then add to your opencode config (~/.config/opencode/opencode.json):

    {
      "plugin": ["opencode-rename-chat"]
    }
    

    Manual (drop-in file)

    Copy rename-chat.ts to ~/.config/opencode/plugins/rename-chat.ts and restart opencode.

    Usage

    Just say it:

    "rename this chat to CDIS: fix facility audit history [DONE]"

    Or the AI will call the tool automatically when you ask to rename.

    The tool can also be invoked directly: rename_chat with argument name.

    How it works

    Calls opencode's internal REST API at PATCH /session/{id} with the new title. No external services, no telemetry. Runs entirely within your opencode instance.

    License

    MIT