Skip to main content
Coding agents let you delegate implementation tasks to external AI coding tools directly from the Modem Agent. Instead of switching between Modem and your coding tool, you describe what needs to be built and the agent handles the handoff. You can invoke coding agents from the dashboard (full-screen or sidebar) or from Slack. Modem currently supports Claude Code (via Anthropic managed agents), Cursor (via Cloud Agents), and Devin.

How It Works

  1. You ask the Modem Agent to implement something (e.g., “fix the login timeout bug”).
  2. Before delegating, the agent queries your Modem data for relevant context: bug reports, user feedback, error patterns, affected user counts.
  3. The agent composes a task description enriched with that context and sends it to Claude Code, Cursor, or Devin.
  4. You approve the action (all coding agent tasks require confirmation before executing).
  5. The coding agent works asynchronously. You can check on progress through the Modem Agent.
Task descriptions are sent to the selected coding agent’s servers (Anthropic, Cursor, or Devin). Only context relevant to the task is included.

Prerequisites

  • A Modem organization with the GitHub integration connected for repository-backed coding tasks
  • An Anthropic API key for Claude Code, a Cursor API key for Cursor, or a Devin API key for Devin
  • Admin access in Modem to configure Claude Code for the organization

Setup

Claude Code is configured once for the organization. Cursor and Devin are configured per user. API keys are stored encrypted.
1

Connect GitHub for repository work

Go to Settings > Integrations > GitHub and connect the repositories you want coding agents to work on.
2

Configure Claude Code

Go to Settings > Integrations > Claude Code and connect your organization’s Anthropic API key. Modem validates the key before saving it. If Claude Code does not appear in your integrations list, your organization may not be enabled for it yet.
3

Configure Cursor or Devin

Click your avatar in the bottom-left corner of the dashboard, then click Profile. Scroll to Coding Integrations, add your Cursor or Devin API key, and click Save.
4

Start delegating tasks

Open the Modem Agent (full-screen or sidebar) and ask it to implement something with Claude Code, Cursor, or Devin.

Claude Code

Claude Code managed agents run on Anthropic’s infrastructure. They can read and write files, run shell commands, browse the web, and create pull requests.

Getting your Anthropic API key

  1. Open the Anthropic Console
  2. Create or copy an API key from an account with Claude Code managed agents enabled
  3. Paste the key into Settings > Integrations > Claude Code in Modem
Claude Code uses one organization-level Anthropic API key. Any organization member can ask the Modem Agent to delegate work to Claude Code after an admin connects the key. All Claude Code API usage is billed to the connected Anthropic account.

What Claude Code can do

  • Implement features and fix bugs in connected GitHub repositories
  • Create pull requests with the changes
  • Run commands, inspect files, and investigate code paths
  • Target a specific repository and branch
  • Accept follow-up messages during an active session

Example prompts

Checking session status

The agent returns the session status, timing and token usage when available, and a session ID you can use for follow-up messages.

Cursor

Cursor’s Cloud Agents run on Cursor’s infrastructure. They can implement features, fix bugs, create pull requests, and investigate codebases.

Getting your Cursor API key

  1. Open Cursor Dashboard → Integrations
  2. Generate a new API key
  3. Copy the key and paste it into Modem’s Coding Integrations section

What Cursor can do

  • Implement features and fix bugs across your connected GitHub repositories
  • Create pull requests with the changes
  • Investigate codebases: read source code, trace execution paths, audit implementations
  • Target a specific repository and branch

Example prompts

Checking task status

After triggering a Cursor task, you can ask the agent to check on it: The agent will return the current status, a summary of work done, and a link to the pull request if one was created.

Devin

Devin is an autonomous AI software engineer that handles complex, multi-step implementation tasks. Devin sessions run asynchronously and you can send follow-up messages to provide additional context or redirect its focus.

Getting your Devin API key

  1. Open your Devin dashboard settings
  2. Navigate to the API keys section
  3. Generate a new API key
  4. Copy the key and paste it into Modem’s Coding Integrations section

What Devin can do

  • Handle multi-step implementation tasks across multiple files and repositories
  • Create pull requests with the changes
  • Investigate codebases: map architecture, audit implementations, report findings
  • Accept follow-up messages during an active session

Example prompts

Checking session status

The agent returns the session status, recent messages, and a link to the pull request if one exists. You can also view the session directly on the Devin dashboard.

Context Enrichment

When you ask the agent to delegate a coding task, it automatically considers whether your Modem data can inform the work. For example:
  • “Fix the login timeout bug” — the agent queries topics and discussions about login timeouts first, then includes error reports, reproduction details, and user impact in the task description.
  • “Address the top complaints from this week” — the agent finds the most-reported issues and provides the coding agent with specific details.
If Modem data reveals ambiguity (e.g., multiple distinct issues matching your description), the agent asks you to clarify before delegating. You can also skip this by providing full context yourself. The agent only enriches when it would add value.

Troubleshooting

For Claude Code, ask an admin to go to Settings > Integrations > Claude Code and verify the Anthropic API key is connected. For Cursor or Devin, go to Profile > Coding Integrations and verify your key is saved and active.
Make sure you copied the full key. For Claude Code, create the key in the Anthropic Console from an account with Claude Code managed agents enabled. If validation still fails, check that managed agents are available for the Anthropic workspace. For Cursor, generate a new key at Cursor Dashboard → Integrations. For Devin, generate a new key from your Devin dashboard settings.
Check the task status through the agent. Coding agent tasks run asynchronously and may take a few minutes to start. If the status shows an error, the coding agent may have encountered an issue with repository access or permissions.
Make sure the repository is connected through Modem’s GitHub integration. The coding agent can only target repositories that Modem has access to.
https://mintcdn.com/modem-844d7a4a/Wr2r4IRr97lNQiQb/icons/bot-bolt.svg?fit=max&auto=format&n=Wr2r4IRr97lNQiQb&q=85&s=dda761a2f7042ebc27c668cc644df76c

The Modem Agent

Learn about the full capabilities of the Modem Agent.
https://mintcdn.com/modem-844d7a4a/Wr2r4IRr97lNQiQb/icons/github.svg?fit=max&auto=format&n=Wr2r4IRr97lNQiQb&q=85&s=1241c26b449c582e802cf990e2f41703

GitHub

Connect GitHub repositories for coding agents to work on.