Skip to content
    ↑↓ select↵ openesc close
    English中文
    jcianci12

    Rename Chat

    v0.1.0Other
    opencode-rename-chat

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

    GitHub stars

    0

    Monthly installs

    30

    8 in 7 days

    Composite scoreSCORE

    27.5

    Multi-signal model

    Last commit

    1 month ago

    2026-07-15

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

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

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    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