Skip to content

feat: daytona - #20

Open
echarles wants to merge 3 commits into
mainfrom
provider/daytona
Open

feat: daytona#20
echarles wants to merge 3 commits into
mainfrom
provider/daytona

Conversation

@echarles

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 20, 2026 17:02
@echarles echarles self-assigned this Aug 20, 2026
@echarles echarles added the enhancement New feature or request label Aug 20, 2026

Copilot AI 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.

Pull request overview

This PR introduces a new daytona sandbox variant (DaytonaSandbox) that runs code inside Daytona cloud sandboxes via a stateful interpreter (preserving Python state across calls), and wires it through the library鈥檚 provider/manager/CLI layers with corresponding docs and examples.

Changes:

  • Add DaytonaSandbox implementation (stateful interpreter execution, contexts, network/resources mapping, filesystem integration).
  • Add Daytona management support (get_manager("daytona") CRUD) and provider registration, plus CLI support.
  • Add extensive unit tests and update docs/examples/README/changelog to document and demonstrate the new variant.

Reviewed changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_manage.py Extends manageable-variants test to include daytona.
tests/test_daytona.py Adds comprehensive Daytona variant unit tests (interpreter behavior, config mapping, manager/provider registration).
README.md Adds daytona to canonical variant list.
pyproject.toml Adds optional dependency extra daytona and includes it in all.
examples/repl/Makefile Adds Daytona REPL targets (CPU/GPU).
examples/repl/daytona_sandbox_example.py New interactive REPL example for Daytona.
examples/README.md Documents running the Daytona examples.
examples/exec/Makefile Adds Daytona exec targets (CPU/GPU).
examples/exec/daytona_sandbox_example.py New one-shot execution example for Daytona (state persistence, files, GPU probe, error path).
docs/docs/sandboxes/index.mdx Adds Daytona to sandbox variant list and table.
docs/docs/sandboxes/daytona.mdx New Daytona variant documentation page.
docs/docs/sandboxes/datalayer.mdx Shifts sidebar position to make room for Daytona.
docs/docs/installation/index.mdx Documents installing code-sandboxes[daytona] and Daytona env vars.
docs/docs/index.mdx Adds Daytona to the main variants overview table.
docs/docs/examples/index.mdx Adds Daytona example section and make daytona instructions.
docs/docs/cli/management.mdx Documents Daytona manager usage and variant list output.
docs/docs/cli/index.mdx Adds Daytona to CLI supported variants and GPU help text.
code_sandboxes/providers.py Registers a Daytona provider with requirements and environments.
code_sandboxes/models.py Adds SandboxVariant.DAYTONA.
code_sandboxes/manage.py Implements DaytonaSandboxManager and registers it in manager lookup.
code_sandboxes/daytona_sandbox.py New DaytonaSandbox implementation (interpreter-based execution, contexts, resource/network mapping, filesystem optimization).
code_sandboxes/cli.py Adds daytona to supported variants and GPU passthrough.
code_sandboxes/base.py Adds daytona to Sandbox.create() and Sandbox.list_environments() dispatch.
code_sandboxes/init.py Exposes DaytonaSandbox in package exports/docs.
CHANGELOG.md Documents the new daytona variant and manager support.

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread code_sandboxes/daytona_sandbox.py
Comment thread code_sandboxes/daytona_sandbox.py Outdated
Comment thread tests/test_daytona.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants