Skip to content

feat: add TUI indicator showing current Caveman mode in sidebar#1

Open
dantesCode wants to merge 1 commit into
mainfrom
feat/caveman-mode-indicator
Open

feat: add TUI indicator showing current Caveman mode in sidebar#1
dantesCode wants to merge 1 commit into
mainfrom
feat/caveman-mode-indicator

Conversation

@dantesCode

@dantesCode dantesCode commented May 7, 2026

Copy link
Copy Markdown
Owner

🔥 Caveman Mode Visual Indicator

Adds a visual indicator in the OpenCode sidebar that shows the current Caveman mode when active.

What it does

  • Displays an indicator like 🔥 Caveman Full in the sidebar footer
  • Only visible when mode is not off
  • Updates per session
  • Uses OpenCode theme colors to blend in

Usage

The TUI plugin is loaded as an additional plugin:

bun run build
opencode plugin add ./dist/index.js    # server plugin (the usual one)
opencode plugin add ./dist/tui.js       # TUI plugin (new - for the indicator)

Files

  • src/tui.ts — New TUI plugin
  • build.ts — Added TUI entrypoint
  • package.json — Exports for ./tui subpath

- New src/tui.ts: TUI plugin that renders in sidebar_footer slot
- Shows mode icon + label (e.g. 🔥 Caveman Full) when mode is active
- Hides indicator when mode is 'off'
- Integrates with existing state.ts for per-session mode tracking
- Uses OpenCode theme colors for visual consistency
- Updated build.ts to compile both entry points
- Updated package.json with exports for ./tui subpath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant