Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(devin): integrate Devin CLI across T3 Code #11139

ClosedProtonDev-sys(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/11139/headopened View on GitHub

Adds Devin as an opt-in provider so an authenticated Devin CLI can be used for T3 Code threads on web, desktop, and mobile. This branch contains the provider implementation and supporting changes against main.

Included:

  • Driver registration, persisted settings, executable/health checks, model discovery, model options, and catalog refresh.
  • ACP session startup, streaming, approvals, interruption, model switching, resume, attachments, skills, and text generation for titles and source-control messages.
  • A private per-session MCP configuration and Devin's native connection extension, with credential cleanup and workspace directories preserved through create/load/resume encoding.
  • Web/mobile provider selection and icons, model input capabilities, context/usage reporting, caches, and user documentation.
  • Focused regression coverage for the provider and shared integration paths.

Adapted from Muhammad Zaky's implementation in #10913 at c6bb22a99, with attribution retained in the integration commit. The port incorporates the MCP fixes from our local implementation, updates it for current upstream Effect APIs and capability-scoped MCP credentials, and preserves newer upstream layouts. Unrelated tooling changes, development plans, and unrelated agent-panel changes are excluded.

Validation status — keep as draft

Synchronized with upstream main through 211618fd9; the current PR head includes that commit and has no merge conflicts. The synchronization passed 129 focused usage/session/MCP tests plus 5 SWE-2 model-selection regression tests, affected-package type checks (including desktop), lint without errors, and the production web/server build. Earlier integration validation included an affected-file run of 1,100 passing tests with 8 skipped. Lint still reports warnings in unchanged portions of existing components.

A focused live backend check has now been run only with Devin SWE-2. It reproduced an invalid model ID: the family swe-2 was being sent where ACP requires an advertised variant such as swe-2-high. Commit 180eef248 resolves family selections using the runtime catalog, preserves explicit variants, and does not silently substitute unavailable explicit options. Five SWE-2 regression cases and the live new/resumed MCP plus file-edit check pass, together with type checking, lint, and the server bundle build.

The combined branch still has not completed desktop/web/mobile UI or cross-platform acceptance testing. Computer-use initialization failed on the test machine, so the requested installed-app test screen was not driven. The installed stock Nightly server also lacks this draft provider. Keep this PR as a draft.

Before marking ready:

  • Verify fresh installation, login/logout, CLI upgrades, binary paths, and model discovery on Windows/macOS/Linux.
  • Exercise chat, file edits, image attachments, skills, model/options changes, approvals, cancellation/queued turns, resume, and process restart through the actual web/desktop/mobile clients.
  • Verify preview/device MCP tools and per-thread credential isolation for new/resumed sessions and local/remote connections.
  • Check usage/context reporting and collect before/after UI evidence.

Conversation rewind is explicitly unsupported. Structured child-agent and elicitation support are not implemented; live resource rendering also needs verification. These limitations should not be presented as completed provider parity.

Model and harness: GPT-6 in Codex.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — The PR makes configured additional workspace directories effective in ACP session creation, loading, and resuming, expanding the agent's filesystem workspace on existing runtime paths. Although the implementation is small and backward-compatible for unset values, this access-affecting configuration propagation merits human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: b2c41031-e5d7-4da9-bf63-43f25a481639

      📥 Commits

      Reviewing files that changed from the base of the PR and between 859304b7808ab9a4be87b1bddcd07c6485bf9c4f and fb3fa83d308814bfa811cf06e525b152a3492977.

      📒 Files selected for processing (5)
      • apps/server/src/provider/acp/AcpSessionRuntime.ts
      • packages/effect-acp/src/client.test.ts
      • packages/effect-acp/src/client.ts
      • packages/effect-acp/src/rpc.ts
      • packages/effect-acp/src/schema.ts

      Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


      📝 Walkthrough

      Walkthrough

      The change extends ACP session request schemas with optional additionalDirectories, routes the field through load requests, updates schema imports, and tests transmission for create, load, and resume requests.

      Changes

      ACP session directory propagation

      Layer / File(s)Summary
      Request schema extensions
      packages/effect-acp/src/schema.ts, packages/effect-acp/src/client.ts, packages/effect-acp/src/rpc.ts
      The request schemas add optional additionalDirectories arrays. Client and RPC modules import the extended schema module.
      Session request propagation
      apps/server/src/provider/acp/AcpSessionRuntime.ts, packages/effect-acp/src/client.test.ts
      The load request includes additionalDirectories. Tests verify transmission for create, load, and resume requests.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Suggested reviewers: juliusmarminge, t3dotgg

      Merge Risk: ⚪ Minimal · up to fb3fa

      Additional workspace directories are consistently retained across ACP session requests, with regression coverage for each supported session flow.

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title refers to the Devin CLI integration that this change supports, but it is broad and does not identify the specific ACP session-directory preservation change.
      Description check✅ PassedThe description clearly explains the broader change, rationale, validation status, limitations, and remaining work. It does not use the template headings exactly, and several checklist items remain un…
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests

      Comment `@coderabbitai help` to get the list of available commands.
    4. Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work.

      Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look.

    5. juliusmarminge closed this

Sign in to join this conversation.