Skip to content

feat(devin): add devin integration for autonomous coding sessions#3352

Merged
waleedlatif1 merged 6 commits intostagingfrom
waleedlatif1/add-devin-integration
Feb 26, 2026
Merged

feat(devin): add devin integration for autonomous coding sessions#3352
waleedlatif1 merged 6 commits intostagingfrom
waleedlatif1/add-devin-integration

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

  • Add Devin integration with 4 operations: create session, get session, list sessions, send message
  • Tools use Devin v3 API with Bearer token auth (org auto-resolved from credential)
  • Block includes wandConfig for AI-assisted prompt generation, advanced mode for optional fields
  • Auto-generated docs

Type of Change

  • New feature

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 26, 2026 7:47pm

Request Review

@waleedlatif1 waleedlatif1 force-pushed the waleedlatif1/add-devin-integration branch from 5189d24 to 3b80072 Compare February 26, 2026 19:27
@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 26, 2026

Greptile Summary

Added Devin integration enabling autonomous AI coding sessions through 4 operations: create session, get session, list sessions, and send message. All tools use Devin v3 API with Bearer token authentication, and the organization is auto-resolved from the credential.

Key implementation details:

  • Block includes wandConfig for AI-assisted prompt generation to help users write effective task descriptions
  • Advanced mode fields (playbookId, maxAcuLimit, tags, limit) provide power-user controls without cluttering the UI
  • API key correctly uses user-only visibility per project guidelines
  • Documentation fully addresses previous review feedback with complete input/output parameter tables
  • Tool file naming follows snake_case convention as intended

Minor optimization opportunity:

  • Redundant Number() conversion in create_session.ts (already done in block config)

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Well-structured implementation following established patterns, proper auth handling, comprehensive documentation, and only one minor style improvement suggested. The code is production-ready.
  • No files require special attention

Important Files Changed

Filename Overview
apps/sim/blocks/blocks/devin.ts Block configuration for Devin integration with proper auth, UI fields, wandConfig for AI-assisted prompts, and type conversions
apps/sim/tools/devin/create_session.ts Creates Devin sessions via v3 API with proper auth and parameter handling; redundant Number() conversion already done in block config
apps/sim/tools/devin/get_session.ts Retrieves session details via GET request with proper response transformation
apps/sim/tools/devin/list_sessions.ts Lists sessions with pagination support, correctly maps API response to output format
apps/sim/tools/devin/send_message.ts Sends messages to sessions via POST, auto-resumes suspended sessions as documented
apps/sim/tools/devin/types.ts Well-structured TypeScript types with shared output properties for consistent API responses
apps/docs/content/docs/en/tools/devin.mdx Comprehensive documentation with all input/output parameters properly documented, addresses previous review feedback

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[User creates Devin block] --> B[DevinBlock config]
    B --> C{Operation selected}
    C -->|create_session| D[devin_create_session tool]
    C -->|get_session| E[devin_get_session tool]
    C -->|list_sessions| F[devin_list_sessions tool]
    C -->|send_message| G[devin_send_message tool]
    
    D --> H[POST /v3/organizations/sessions]
    E --> I[GET /v3/organizations/sessions/:id]
    F --> J[GET /v3/organizations/sessions?first=N]
    G --> K[POST /v3/organizations/sessions/:id/messages]
    
    H --> L[Return session details]
    I --> L
    K --> L
    F --> M[Return sessions array]
    
    B --> N{wandConfig enabled?}
    N -->|Yes| O[AI-assisted prompt generation]
    O --> D
    
    style D fill:#2A6DCE
    style E fill:#1DC19C
    style F fill:#1DC19C
    style G fill:#1796E2
    style B fill:#12141A
Loading

Last reviewed commit: ef296c4

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

17 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@waleedlatif1
Copy link
Collaborator Author

@greptile

@waleedlatif1
Copy link
Collaborator Author

@cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

@waleedlatif1 waleedlatif1 merged commit 25c59e3 into staging Feb 26, 2026
11 checks passed
@waleedlatif1 waleedlatif1 deleted the waleedlatif1/add-devin-integration branch February 26, 2026 19:57
royceP2 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Mar 3, 2026
…mstudioai#3352)

* feat(devin): add devin integration for autonomous coding sessions

* lint

* improvement(devin): update tool names and add manual docs description

* improvement(devin): rename tool files to snake_case and regenerate docs

* regen docs

* fix(devin): remove redundant Number() conversions in tool request bodies
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