@jacob-z/opencode-smart-titleOpenCode plugin that automatically generates meaningful session titles using AI and smart context selection
GitHub 星标
50
月装机量
11
近 7 天 6
综合评分SCORE
27.6
生态多维模型
最近提交
7 个月前
2025-12-25
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@jacob-z/opencode-smart-title@0.1.7"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@jacob-z/opencode-smart-title@0.1.7"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @jacob-z/opencode-smart-titleopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→Auto-generates meaningful session titles for your OpenCode conversations using AI.
What It Does
- Watches your conversation and generates short, descriptive titles
- Updates automatically when the session becomes idle (you stop typing)
- Uses OpenCode's unified auth - no API keys needed
- Works with any authenticated AI provider
Installation
npm install @tarquinen/opencode-smart-title
Add to ~/.config/opencode/opencode.json:
{
"plugin": ["@tarquinen/opencode-smart-title"]
}
Configuration
The plugin supports both global and project-level configuration:
- Global:
~/.config/opencode/smart-title.jsonc- Applies to all sessions - Project:
.opencode/smart-title.jsonc- Overrides global config
The plugin creates a default global config on first run.
{
// Enable or disable the plugin
"enabled": true,
// Enable debug logging
"debug": false,
// Optional: Use a specific model (otherwise uses smart fallbacks)
// "model": "anthropic/claude-haiku-4-5",
// Update title every N idle events (1 = every time you pause)
"updateThreshold": 1
}
License
MIT