Configure ccstatusline to display session topics
Configures ccstatusline to display AI-generated session topics as a second line.
/plugin marketplace add dreamiurg/claude-session-topics/plugin install claude-session-topics@claude-session-topics-marketplaceConfigure ccstatusline to show session topics as a second line.
Read ~/.config/ccstatusline/settings.json to see current configuration.
Add a second line with a custom-command widget pointing to the plugin's topic-display script:
{
"id": "session-topic",
"type": "custom-command",
"rawValue": true,
"commandPath": "~/.claude/plugins/cache/claude-session-topics-marketplace/claude-session-topics/*/scripts/topic-display",
"color": "cyan"
}
The widget goes in the lines array as a new line (array of widgets).
A typical ccstatusline config with topics looks like:
{
"version": 3,
"lines": [
[
{"type": "context-percentage", "color": "brightRed", "rawValue": true},
{"type": "current-working-dir", "color": "brightBlue", "rawValue": true},
{"type": "git-branch", "color": "green", "rawValue": true}
],
[
{
"id": "session-topic",
"type": "custom-command",
"rawValue": true,
"commandPath": "~/.claude/plugins/cache/claude-session-topics-marketplace/claude-session-topics/*/scripts/topic-display",
"color": "cyan"
}
]
]
}
After making changes, verify everything is working by running the topic-display script:
~/.claude/plugins/cache/claude-session-topics-marketplace/claude-session-topics/*/scripts/topic-display "$CLAUDE_SESSION_ID"
This should output something like New session: gathering context for new sessions,
or the actual topic if one has been generated.
Tell the user: "Setup complete. Your status line will show 'New session: gathering context' initially. After a few messages, it will update with an AI-generated topic summarizing your conversation. Restart Claude Code for changes to take effect."
Users can also run npx ccstatusline@latest to open the interactive configuration UI
and add a custom command widget there.
Enable debug logging:
export CLAUDE_TOPIC_DEBUG=1