@levibostian/opencode-pwd-titleopencode plugin to set the title to current directory and git branch, similar to what opencode does.
0
6
1 in 7 days
18.8
Multi-signal model
4 months ago
2026-04-21
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": ["@levibostian/opencode-pwd-title@0.1.0"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@levibostian/opencode-pwd-title@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 @levibostian/opencode-pwd-titleopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
opencode plugin to set the title to current directory and git branch, similar to the format that opencode uses in the footer.
Example: ~/path/to/repo:main (path to repo, relative to home directory, followed by git branch if in a git repo)
This plugin tries to set the title as often as possible to keep it up-to-date. Sometimes (like when opening opencode or immediately after switching sessions) the title will not be set by this plugin but after you send a prompt, the title will be updated.
Installation
Add to ~/.config/opencode/opencode.json:
{
"plugin": ["@levibostian/opencode-pwd-title"]
}
Why?
I don't like how opencode changes the title of the tabs in my terminal, making it hard to differentiate between different tabs working on different Git workspaces. I want a plugin that restores the title back to what it would be if opencode were not running. The goal - set a simple title and enforce it as much as possible.