How It Works
- You ask the Modem Agent to implement something (e.g., “fix the login timeout bug”).
- Before delegating, the agent queries your Modem data for relevant context: bug reports, user feedback, error patterns, affected user counts.
- The agent composes a task description enriched with that context and sends it to Claude Code, Cursor, or Devin.
- You approve the action (all coding agent tasks require confirmation before executing).
- 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.Connect GitHub for repository work
Go to Settings > Integrations > GitHub and connect the repositories you want coding agents to work on.
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.
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.
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
- Open the Anthropic Console
- Create or copy an API key from an account with Claude Code managed agents enabled
- Paste the key into Settings > Integrations > Claude Code in Modem
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
- Open Cursor Dashboard → Integrations
- Generate a new API key
- 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
- Open your Devin dashboard settings
- Navigate to the API keys section
- Generate a new API key
- 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.
Troubleshooting
Agent says API key is not configured
Agent says API key is not configured
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.
API key validation fails
API key validation fails
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.
Task was triggered but nothing happened
Task was triggered but nothing happened
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.
Coding agent can't access my repository
Coding agent can't access my repository
Make sure the repository is connected through Modem’s GitHub integration. The coding agent can only target repositories that Modem has access to.
Related
The Modem Agent
Learn about the full capabilities of the Modem Agent.
GitHub
Connect GitHub repositories for coding agents to work on.