You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: a plugin feature for people to port their database / sql / customized rag / llm cache ? #3376
Plugin event types #2893: Plugin event types - discusses plugin event system which could be extended for database/caching integrations
Hooks for commands (Plugin Commands) #2185: Hooks for commands (Plugin Commands) - requests plugin system for custom commands which could include database/SQL/caching functionality
Feel free to ignore if none of these address your specific case.
@rekram1-node a magical ai llm coder prompt that will get this done or a headstart on where i can get this done with a magical ai llm coder prompt.
i would like standardization towards having this "database" layer and "storage" layer and "rag" layer so i can easily comfortably also create the plugin etc to fit opencode
a magical ai llm coder prompt that will get this done or a headstart on where i can get this done with a magical ai llm coder prompt.
I'm not entirely following, okay so you wanna have a plugin that has access to a sql database? Have you tried custom tools should be pretty easy to setup: https://opencode.ai/docs/custom-tools/
I’m exploring ways to preempt or override the default READ file tool with a custom search/indexing tool for a workspace query setup and use the result to READ relevant file
Is there a recommended way to hook into or override the READ behavior without defining it directly in agents.md ?
Would love any guidance or best practices for extending this cleanly.
Activity
github-actions commentedon Oct 23, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 23, 2025
Can you explain what you would expect to happen here?
sprappcom commentedon Oct 23, 2025
@rekram1-node a magical ai llm coder prompt that will get this done or a headstart on where i can get this done with a magical ai llm coder prompt.
i would like standardization towards having this "database" layer and "storage" layer and "rag" layer so i can easily comfortably also create the plugin etc to fit opencode
rekram1-node commentedon Oct 23, 2025
I'm not entirely following, okay so you wanna have a plugin that has access to a sql database? Have you tried custom tools should be pretty easy to setup:
https://opencode.ai/docs/custom-tools/
sprappcom commentedon Oct 24, 2025
i want to develop a plugin for speech to text
and custom rag db storage (so this can use custom-tools)
what about speech to text? or when it's done with llm processing, i can make it beep or play a sound?
rekram1-node commentedon Oct 24, 2025
@sprappcom yep you can, you can read about plugins here.
This is an example of how to do that on macos (using
say):sprappcom commentedon Oct 25, 2025
@rekram1-node are there anything that limits the extensibility of opencode for now? i really much would like to have it do everything
rekram1-node commentedon Oct 25, 2025
you mean plugin wise? or what
sprappcom commentedon Oct 26, 2025
plugin or custom tool wise etc. mcp integration etc etc
rekram1-node commentedon Oct 26, 2025
I think you can take current setup far but anything missing you want for extensibility we can add new hooks and things for you to extend off of
ragavsathish commentedon Oct 29, 2025
Hi,
Firstly thanks for the amazing tool ❤️
I’m exploring ways to preempt or override the default
READfile tool with a custom search/indexing tool for a workspace query setup and use the result to READ relevant fileUsage scenario:
I’m trying to re-use the Roo Codebase Indexing for querying the workspace via OpenCode, so that I can use both Roo and OpenCode seamlessly.
Is there a recommended way to hook into or override the
READbehavior without defining it directly inagents.md?Would love any guidance or best practices for extending this cleanly.
rekram1-node commentedon Oct 29, 2025
You could write your own tool called read and it will override the read tool. See here: https://opencode.ai/docs/custom-tools/
Or you could give it it's own name too so u would have 2 different types of reads
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.