Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tarquinen/opencode-smart-title

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tarquinen/opencode-smart-title

OpenCode plugin that automatically generates meaningful session titles using AI and smart context selection

Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
236
-42.44%
Maintainers
1
Weekly downloads
 
Created
Source

Smart Title Plugin

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 OpenCode sessions
  • Project: .opencode/smart-title.jsonc - Applies only to the current project

Project configuration takes precedence over global configuration. The plugin creates a default global configuration file 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
}

Configuration Hierarchy

  • Defaults - Built-in plugin defaults
  • Global config (~/.config/opencode/smart-title.jsonc) - Overrides defaults
  • Project config (.opencode/smart-title.jsonc) - Overrides global config

This allows you to:

  • Set global defaults for all projects
  • Override settings per-project (e.g., disable for certain projects, use different models)
  • Commit project config to version control for team consistency

Creating Project-Level Config

To create a project-specific configuration:

  • Create .opencode directory in your project root (if it doesn't exist)
  • Create smart-title.jsonc file inside .opencode/
  • Add your project-specific settings
# In your project directory
mkdir -p .opencode
cat > .opencode/smart-title.jsonc << 'EOF'
{
  // Project-specific Smart Title settings
  "updateThreshold": 3,
  "model": "openai/gpt-5-mini"
}
EOF

The global config (~/.config/opencode/smart-title.jsonc) is automatically created on first run. Project configs are opt-in and must be created manually.

How It Works

Trigger: Updates when session goes idle (you stop typing)

Model Selection:

  • Try configured model (if specified)
  • Try fallback models from authenticated providers in priority order:
    • openai/gpt-5-mini
    • anthropic/claude-haiku-4-5
    • google/gemini-2.5-flash
    • deepseek/deepseek-chat
    • xai/grok-4-fast
    • alibaba/qwen3-coder-flash
    • zai/glm-4.5-flash
    • opencode/big-pickle

Update Threshold:

  • 1 = Update every idle (default)
  • 2 = Update every other idle
  • 3 = Update every third idle, etc.

Troubleshooting

Enable debug logging:

{ "debug": true }

View logs:

tail -f ~/.config/opencode/logs/smart-title/$(date +%Y-%m-%d).log

Plugin not working?

  • Make sure you're authenticated with at least one provider
  • Check that enabled: true in config
  • Restart OpenCode after config changes

License

MIT

Keywords

opencode

FAQs

Package last updated on 22 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts