You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/capabilities/claude-code.mdx
+2-171Lines changed: 2 additions & 171 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ When you run Claude through `codegen`, you get:
31
31
machine.
32
32
</Note>
33
33
34
-
## MCP Server Integration
34
+
## Connect Claude Code to Codegen Tools
35
35
36
36
Claude Code running through Codegen automatically gains access to all your connected integrations via MCP (Model Context Protocol). This transforms Claude from a coding assistant into a full development platform orchestrator.
37
37
@@ -51,30 +51,10 @@ No additional setup required - if it's connected to Codegen, Claude can use it.
51
51
command.
52
52
</Tip>
53
53
54
-
## Background Terminal Agents
54
+
## Run Background Agents from your Terminal
55
55
56
56
Keep your terminal free while Claude handles long-running tasks. Background agents run asynchronously, perfect for automation that doesn't need constant supervision.
57
57
58
-
```bash
59
-
# Start a background agent to handle PR reviews
60
-
codegen agent create --background "Review all open PRs and suggest improvements"
61
-
62
-
# Continue working while the agent runs
63
-
# Check status anytime at codegen.com/agents
64
-
```
65
-
66
-
Common use cases for background agents:
67
-
68
-
- Automated code reviews on new PRs
69
-
- Continuous monitoring of test suites
70
-
- Documentation generation from code changes
71
-
- Dependency updates and security patches
72
-
73
-
<Note>
74
-
Background agents support scheduling with flags like `--repeat-daily` or
75
-
`--repeat-weekly`, turning one-off tasks into automated workflows.
76
-
</Note>
77
-
78
58
## Remote Sandbox Execution
79
59
80
60
Configure Claude Code as your default agent to run in Codegen's secure cloud sandboxes. This provides consistent, scalable environments for all your AI-assisted development.
@@ -125,155 +105,6 @@ Your session immediately appears in the cloud with full integration access.
125
105
binary. Subsequent runs start instantly.
126
106
</Tip>
127
107
128
-
### Enable Organization-Wide
129
-
130
-
For teams ready to standardize on Claude Code:
131
-
132
-
1. Navigate to [Model Settings](https://codegen.com/settings/model)
133
-
2. Enable "Claude Code Mode"
134
-
3. Select Claude 4 Sonnet (recommended)
135
-
4. All agents now run with Claude Code capabilities
136
-
137
-
## Real-World Workflows
138
-
139
-
### Continuous PR Monitoring
140
-
141
-
Set up automated review cycles that run in the background:
"Review new PRs in myrepo and suggest improvements"
147
-
```
148
-
149
-
The agent runs daily, reviewing PRs and posting suggestions directly to GitHub.
150
-
151
-
### Local Development with Team Visibility
152
-
153
-
Perfect for pair programming or mentoring sessions:
154
-
155
-
```bash
156
-
# Start a traced Claude session
157
-
codegen claude
158
-
159
-
# Your team can follow along at codegen.com/agents
160
-
# All integrations available through MCP
161
-
```
162
-
163
-
Team members can observe your AI interactions in real-time, learning from your prompting patterns and problem-solving approaches.
164
-
165
-
### Hybrid Workflow
166
-
167
-
Start locally, deploy to cloud when ready:
168
-
169
-
```bash
170
-
# Prototype locally with Claude
171
-
codegen claude "Build a new API endpoint for user profiles"
172
-
173
-
# Happy with the approach? Deploy to sandbox
174
-
codegen agent create "Implement the user profile API we discussed"
175
-
```
176
-
177
-
<Note>
178
-
Context from your local Claude sessions carries over to cloud agents,
179
-
maintaining continuity across environments.
180
-
</Note>
181
-
182
-
## Advanced Configuration
183
-
184
-
### Custom MCP Servers
185
-
186
-
Extend Claude's capabilities with your own tools:
187
-
188
-
```bash
189
-
# Configure custom MCP server
190
-
codegen mcp add my-tool https://my-mcp-server.com
191
-
192
-
# Now available in all Claude sessions
193
-
codegen claude "Use my-tool to generate test data"
194
-
```
195
-
196
-
### Session Management
197
-
198
-
Powerful commands for working with Claude sessions:
199
-
200
-
```bash
201
-
# List recent sessions
202
-
codegen sessions list
203
-
204
-
# Resume a previous session
205
-
codegen sessions resume <session-id>
206
-
207
-
# Export session for sharing
208
-
codegen sessions export<session-id>> session.md
209
-
```
210
-
211
-
## Best Practices
212
-
213
-
### When to Run Locally vs Remote
214
-
215
-
**Run locally when:**
216
-
217
-
- Prototyping and experimenting
218
-
- Working with sensitive code
219
-
- Need immediate feedback
220
-
- Debugging specific issues
221
-
222
-
**Run in sandboxes when:**
223
-
224
-
- Executing long-running tasks
225
-
- Need consistent environments
226
-
- Collaborating with team
227
-
- Running automated workflows
228
-
229
-
### Effective Background Agents
230
-
231
-
Keep background agents focused:
232
-
233
-
- Single responsibility per agent
234
-
- Clear success criteria
235
-
- Reasonable time bounds
236
-
- Proper error handling
237
-
238
-
<Tip>
239
-
Use descriptive names for background agents - they appear in your dashboard
240
-
and help teammates understand what's running.
241
-
</Tip>
242
-
243
-
### Integration Patterns
244
-
245
-
Leverage MCP for complex workflows:
246
-
247
-
```bash
248
-
# Agent that coordinates across tools
249
-
codegen agent create "When tests fail on PR #123, \
250
-
create a Linear ticket and notify #eng-team on Slack"
251
-
```
252
-
253
-
## Monitoring and Debugging
254
-
255
-
All Claude Code sessions include comprehensive telemetry:
256
-
257
-
-**Execution traces** showing every tool invocation
258
-
-**Token usage** per request and response
259
-
-**Error logs** with full stack traces
260
-
-**Performance metrics** for optimization
261
-
262
-
Access logs at [codegen.com/agents](https://codegen.com/agents) or via CLI:
263
-
264
-
```bash
265
-
# View recent agent runs
266
-
codegen agents list
267
-
268
-
# Stream logs for active agent
269
-
codegen agents logs <agent-id> --follow
270
-
```
271
-
272
-
<Note>
273
-
Logs are retained for 30 days and can be exported for compliance or analysis
274
-
purposes.
275
-
</Note>
276
-
277
108
## Analytics and Insights
278
109
279
110
Transform your Claude Code usage into actionable intelligence. The analytics dashboard provides deep insights into how AI is transforming your development workflow.
0 commit comments