Skip to content

chore: import OpenCode plugin#4

Merged
mislavivanda merged 2 commits into
mainfrom
chore/import-opencode-plugin
Jun 26, 2026
Merged

chore: import OpenCode plugin#4
mislavivanda merged 2 commits into
mainfrom
chore/import-opencode-plugin

Conversation

@mislavivanda

@mislavivanda mislavivanda commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by cubic

Imports the Daytona OpenCode plugin as a standalone package to run sessions inside Daytona sandboxes with per-project persistence, git syncing, and developer tools. This adds packages/opencode-plugin and enables sandbox-backed workflows with simple setup.

  • New Features

    • Daytona session manager: create/reconnect/delete sandboxes per session; persist mappings under XDG data dir; auto-migrate sessions across projects; cleanup on session delete.
    • Git sync: allocate opencode/N branches, add numbered remotes, push/pull between host and sandbox; works with empty repos and falls back gracefully when git is unavailable.
    • Tools: bash (supports background), read, write, edit, multiedit, ls, glob, grep, getPreviewURL (with live preview links); lsp and patch stubs included.
    • UX: toast notifications, system prompt additions, and structured logging to ${XDG_DATA_HOME}/opencode/log/daytona.log. Repo path in sandbox is /home/daytona/project. Requires DAYTONA_API_KEY.
  • Dependencies

    • Adds @daytona/sdk, @opencode-ai/plugin, xdg-basedir, zod; dev: typescript, @types/node.
    • Includes standalone tsconfig.json, .npmignore, and in-place TypeScript build (emits .js/.d.ts under .opencode/plugin).

Written for commit 388e32d. Summary will update on new commits.

Review in cubic

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

34 issues found across 33 files

Tip: instead of fixing issues one by one fix them all with cubic
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread packages/opencode-plugin/.opencode/plugin/daytona/core/logger.ts
Comment thread packages/opencode-plugin/README.md
Comment thread packages/opencode-plugin/.opencode/plugin/daytona/tools/write.ts
@mislavivanda mislavivanda merged commit f191d59 into main Jun 26, 2026
11 checks passed
@mislavivanda mislavivanda deleted the chore/import-opencode-plugin branch June 26, 2026 23:43
mislavivanda added a commit that referenced this pull request Jul 8, 2026
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
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