Skip to content

Add sandbox codev2 editor support - #325

Merged
dbmikus merged 3 commits into
mainfrom
dylan/code-open-sshv2
Aug 10, 2026
Merged

Add sandbox codev2 editor support#325
dbmikus merged 3 commits into
mainfrom
dylan/code-open-sshv2

Conversation

@dbmikus

@dbmikus dbmikus commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add amika sandbox codev2 for opening remote sandboxes over direct WebSocket SSH
  • support Cursor, Claude Desktop, and Codex through the shared editor workflow
  • publish concrete v2 SSH aliases so Codex can discover connections
  • enable Claude and Codex editors by default; remove the rollout environment variable
  • document direct-transport setup and editor behavior

Verification

go test ./internal/ssh ./cmd/amika/sandbox ./cmd/amika
pre-commit: go vet and revive

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28d923c8ec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

sandboxCodeCmd.Flags().String("editor", "cursor", "Editor or agent to open: \"cursor\", \"claude\", or \"codex\"")
sandboxCodeCmd.Flags().String("path", "", "Override the remote path to open (absolute, or relative to the sandbox workspace root)")
sandboxCodeV2Cmd.Flags().String("editor", "cursor", "Editor or agent to open: \"cursor\", \"claude\", or \"codex\"")
sandboxCodeV2Cmd.Flags().String("path", "", "Override the remote path to open (absolute, or relative to the sandbox workspace root)")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Align relative paths with the advertised workspace root

When a user passes codev2 --path foo, this flag promises a path relative to the sandbox workspace root, but resolveRemoteWorkspacePath resolves it to /home/amika/foo rather than /home/amika/workspace/foo. This can open the wrong or nonexistent directory; either resolve relative values beneath the workspace directory or describe them as relative to the sandbox home.

AGENTS.md reference: AGENTS.md:L136-L136

Useful? React with 👍 / 👎.

@dbmikus dbmikus changed the title Add sandbox codev2 command Add sandbox codev2 editor support Aug 10, 2026
@dbmikus
dbmikus merged commit 8c4dd7b into main Aug 10, 2026
1 check passed
@dbmikus
dbmikus deleted the dylan/code-open-sshv2 branch August 10, 2026 03:32
dbmikus added a commit that referenced this pull request Aug 10, 2026
Release amika@v0.14.0.

Changes since amika@v0.13.0:

Direct (no-relay) SSH transport:
- Define and tighten the no-relay SSH contracts and vertical-slice
  spec (fc01f30, 650b433, dac6b6d)
- Implement the local no-relay SSH path and fix its runtime lifecycle
  (d4bb156, 05c6df1)
- Add `amika scpv2` over the direct WebSocket transport (9dccbfd)
- Bind the managed sshd to a reserved loopback port (2e90dc6)
- Scope v2 SSH session config per control plane (c7063c7)
- Resolve SSH relay review annotations and document the connect-token
  round trip (#322)

SSH key handling:
- Harden authorized key handling and close an ownership race (b565213,
  f448546, 3fde13c)
- Add an amikad authorized-keys clear subcommand (0e2fa59)
- Add the amika secret ssh-key command group (#324)

Sandbox images:
- Build and package amikad into the base images (6279f28, f336617)
- Repin the reviewed amikad source as fixes landed (862cbbd, 4777f5c,
  f864496, a6a4c04)
- Add sandbox codev2 editor support (#325)

Testing and CI:
- Test snapshot scrubbing end to end (#323)
- Publish linux-vm Daytona snapshots from CI, with retries and paged
  state verification (930a99f, 5379037, 4e713a7)

Agent tooling:
- Add and narrow the amika-cli skill for agents (9b6be25, 8cfc32a)
- Add [release <symbol>] prefix and release trailers to the CLI release
  skill (59526b2)

Release-Component: amika
Release-Version: v0.14.0
dbmikus added a commit that referenced this pull request Aug 10, 2026
Releases the `amika` CLI at v0.14.0 and rolls that release into the
sandbox base image.

Two commits:

1. **`[release amika] Bump install.sh DEFAULT_VERSION to 0.14.0`** — the
public CLI release. Carries the `Release-Component` / `Release-Version`
trailers.
2. **`Set Amika base snapshot to install amika CLI v0.14.0 and repin
amikad`** — bumps `AMIKA_VERSION` to 0.14.0 in
`go/internal/sandbox/presets/base/Dockerfile` and repins
`AMIKAD_SOURCE_REF` from `9dccbfd` to `4c7b647` (current `main`).

The amikad repin matters on its own: the old pin predated the no-relay
connect-token work, so sandbox images were building an amikad without
the connect-token round trip, the sshd-manager fixes, or the state
contract additions. The new ref resolves through the module proxy the
builder stage's `go install` uses (`github.com/gofixpoint/amika/go
v0.0.0-20260810034344-4c7b647bbeb8`).

## Changes since amika@v0.13.0

**Direct (no-relay) SSH transport**
- Define and tighten the no-relay SSH contracts and vertical-slice spec
(fc01f30, 650b433, dac6b6d)
- Implement the local no-relay SSH path and fix its runtime lifecycle
(d4bb156, 05c6df1)
- Add `amika scpv2` over the direct WebSocket transport (9dccbfd)
- Bind the managed sshd to a reserved loopback port (2e90dc6)
- Scope v2 SSH session config per control plane (c7063c7)
- Resolve SSH relay review annotations and document the connect-token
round trip (#322)

**SSH key handling**
- Harden authorized key handling and close an ownership race (b565213,
f448546, 3fde13c)
- Add an amikad `authorized-keys clear` subcommand (0e2fa59)
- Add the `amika secret ssh-key` command group (#324)

**Sandbox images**
- Build and package amikad into the base images (6279f28, f336617)
- Repin the reviewed amikad source as fixes landed (862cbbd, 4777f5c,
f864496, a6a4c04)
- Add sandbox codev2 editor support (#325)

**Testing and CI**
- Test snapshot scrubbing end to end (#323)
- Publish linux-vm Daytona snapshots from CI, with retries and paged
state verification (930a99f, 5379037, 4e713a7)

**Agent tooling**
- Add and narrow the amika-cli skill for agents (9b6be25, 8cfc32a)
- Add `[release <symbol>]` prefix and release trailers to the CLI
release skill (59526b2)
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