Problem
After enabling/loading @tarquinen/opencode-dcp@latest, OpenCode startup becomes noticeably slower. Compared to running OpenCode without this package, startup time increases by at least ~2–3 seconds, which significantly impacts the user experience.
Environment
- OpenCode + oh-my-opencode
Steps to Reproduce
- Enable/load
@tarquinen/opencode-dcp@latest in the plugin configuration
- Start OpenCode
- Observe that startup is ~2–3 seconds slower than when the package is not loaded
What I Tried
- Installed a pinned global version and configured the plugin to use a fixed version (e.g.
@tarquinen/opencode-dcp@1.2.6)
- Result: no meaningful improvement — startup is still significantly slower
Expected Behavior
I’m wondering if there’s any way to optimize this, for example:
- Can initialization be deferred (lazy-loaded) so it doesn’t block OpenCode startup?
- Is there any configuration to reduce work done during startup?
- Any recommended way to profile/diagnose what’s causing the slowdown (logs, debug flags, performance tracing)?
Additional Info
If helpful, I can provide:
- startup logs / debug logs
- OpenCode version, Node.js version, OS details
- more precise timing comparisons
Thanks a lot for maintaining this project and for any guidance!