Skip to content

Add OpenCode plugin for RTK auto-rewrite - #303

Closed
tom-thompson wants to merge 1 commit into
rtk-ai:masterfrom
tom-thompson:master
Closed

tom-thompson wants to merge 1 commit into
rtk-ai:masterfrom
tom-thompson:master

Conversation

@tom-thompson

Copy link
Copy Markdown

LLM one-shotted this when i asked what i needed to do to make the integration work

@zeval

zeval commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

There's already an open issue and PR for this 👍
#117
#300

@FlorianBruniaux

Copy link
Copy Markdown
Contributor

Hi @zeval, @tom-thompson, @AlecMcQuarrie, @itai-delphos! We have four OpenCode integration PRs open (#225, #262, #300, #303) — they overlap significantly. We're leaning toward the lighter plugin approach (#303 or #300) for a first merge, then building on top. @AlecMcQuarrie (#225), @itai-delphos (#262) — could you rebase first (CI is failing on both), and let's discuss in a comment which features go beyond what #300/#303 offer? We'd like to avoid landing four competing implementations.

@tom-thompson

Copy link
Copy Markdown
Author

@FlorianBruniaux rebased

@pszymkowiak

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! OpenCode support has been merged into develop via #300 (plugin + init lifecycle). It will be available in the next release once develop is merged to master. This PR is now superseded — if you'd like to contribute further, check the open issues!

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@pszymkowiak

Copy link
Copy Markdown
Collaborator

Hi! Two things needed before we can review:

  1. Retarget to develop — this PR targets master, but all PRs should target develop. You can change the base branch in the PR settings (right sidebar).
  2. Sign the CLA — if not already done, please sign at https://cla-assistant.io/rtk-ai/rtk

Thanks!

@aeppling

Copy link
Copy Markdown
Contributor

Hey

We are cleaning up the codebase and improving the project structure for better onboarding. As part of this effort, PR #826 reorganizes src/ from a flat layout into subfolders.

No logic changes — only file moves and import path updates.

What you need to do

Rebase your branch on develop when receiving this comment:

git fetch origin && git rebase origin/develop

Git detects renames automatically. If you get import conflicts, update the paths:

use crate::git;        // now: use crate::cmds::git::git;
use crate::tracking;   // now: use crate::core::tracking;
use crate::config;     // now: use crate::core::config;
use crate::init;       // now: use crate::hooks::init;
use crate::gain;       // now: use crate::analytics::gain;

Need help rebasing? Tag @aeppling

@pszymkowiak

Copy link
Copy Markdown
Collaborator

Thanks for this @tom-thompson! OpenCode support has since landed in RTK — hooks/opencode/ is on develop. This is now superseded, and there's been no activity here for ~8 weeks. Closing — feel free to reopen or open a fresh PR if something's still missing.

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.

6 participants