An OpenCode plugin that turns a session's tool calls, shell commands and diffs into a reviewable Markdown handoff brief.
DevDengChao/opencode-plugin-search-in-session
An OpenCode Desktop plugin that adds scoped, highlighted search across a whole chat session, including tool calls, tool results and terminal commands.
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit
- 8 days ago
What is it?
OpenCode Desktop has a built-in Ctrl+F that only scans user messages and assistant replies. This plugin replaces that with a broader search panel that also covers reasoning, tool calls, tool results and terminal commands. Queries support space-separated AND keywords, quoted phrases and exclusion terms, and case-insensitive matching is the default.
Each scope shows its own hit count and can be toggled on or off. Matches are highlighted with the CSS Custom Highlight API, and Up/Down or Enter moves between hits. A filter mode hides non-matching rows in the virtualized timeline, and the filter state persists after the panel closes, shown as a chip in the header.
The search index is built from the session's message list rather than the DOM, so messages unloaded by virtual scrolling are still counted. The plugin is installed through the OpenCode config as an npm package or a local build, and it targets OpenCode Desktop 2.2.x.
Key features
- 01Searches user input, assistant replies, reasoning, tool calls, tool results and terminal commands.
- 02Supports multiple keywords, quoted phrases and exclusion terms.
- 03Shows per-scope hit counts that can be toggled individually.
- 04Highlights matches and navigates between them with arrow keys or Enter.
- 05Filters the timeline to show only matching rows.
Use cases
- Finding a command or error message in a long OpenCode coding session.
- Locating a file name or tool output that appeared earlier in the conversation.
- Reviewing only the assistant's replies or reasoning for a specific term.
Quick start
- 1
Add the plugin package to plugins in ~/.config/opencode/opencode.jsonc
- 2
Restart OpenCode Desktop, or confirm the plugin is enabled in Settings > Extensions > Plugins
- 3
Open a session and press Ctrl+F (Cmd+F on macOS) to open the search panel
Things to know
- Works only with OpenCode Desktop 2.2.x and does not support the TUI.
- Depends on Desktop's current timeline DOM, so it may need updates after Desktop upgrades.
- Opening search loads the full session history, which can take several seconds in very large sessions.
In collections
Topics
FAQ
- What is opencode-plugin-search-in-session?
- An OpenCode Desktop plugin that adds scoped, highlighted search across a whole chat session, including tool calls, tool results and terminal commands. OpenCode Desktop has a built-in Ctrl+F that only scans user messages and assistant replies. This plugin replaces that with a broader search panel that also covers reasoning, tool calls, tool results and terminal commands. Queries support space-separated AND keywords, quoted phrases and exclusion terms, and case-insensitive matching is the default.
- Is opencode-plugin-search-in-session free to use? What license does it have?
- opencode-plugin-search-in-session is open source under the MIT license. Check the license terms before using it in commercial products.
- Is opencode-plugin-search-in-session still maintained?
- Actively maintained. The last commit to opencode-plugin-search-in-session was on Oct 30, 2026.
- What can I use opencode-plugin-search-in-session for?
- Finding a command or error message in a long OpenCode coding session. Locating a file name or tool output that appeared earlier in the conversation. Reviewing only the assistant's replies or reasoning for a specific term.
- How do I install opencode-plugin-search-in-session?
- Add the plugin package to plugins in ~/.config/opencode/opencode.jsonc Restart OpenCode Desktop, or confirm the plugin is enabled in Settings > Extensions > Plugins Open a session and press Ctrl+F (Cmd+F on macOS) to open the search panel
- Where can I get opencode-plugin-search-in-session?
- The source code and installation instructions are on GitHub: https://github.com/DevDengChao/opencode-plugin-search-in-session
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A set of GUI plugins for OpenCode Desktop that add usage, throughput and memory meters to the app.
An OpenCode V2 terminal and Desktop plugin that shows inline grey prompt continuations you can accept with Tab.
A Claude Code plugin that adds a live status line showing context usage, rate limits, active tools, running agents, and todo progress.
An OpenCode V2 plugin that defers a prompt for a set delay, then submits it back into the same session.
An OpenCode Desktop plugin that adds a per-chat Markdown notepad with a checklist the coding agent can add to.