opencode-rename-chatOpenCode plugin — rename chat sessions from within the conversation. Keeps session list readable as chat topics evolve.
0
30
8 in 7 days
27.5
Multi-signal model
1 month ago
2026-07-15
Install and configure
opencode.jsonWrites 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"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-rename-chat@0.1.0"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-rename-chatopencode 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