Skip to content

Commit c27d7c0

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix-title-capitalization
2 parents 42620f6 + 470e238 commit c27d7c0

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{
5353
"group": "Agents in sandbox",
5454
"pages": [
55-
"docs/agents/amp-code",
55+
"docs/agents/amp",
5656
"docs/agents/claude-code",
5757
"docs/agents/codex",
5858
"docs/agents/opencode"
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: "AMP"
33
description: "Run AMP in a secure E2B sandbox with full filesystem, terminal, and git access."
4-
icon: "/images/icons/amp-code.svg"
4+
icon: "/images/icons/amp.svg"
55
---
66

7-
[AMP](https://ampcode.com) is Sourcegraph's coding agent with multi-model architecture and built-in code intelligence. E2B provides a pre-built `amp-code` template with AMP already installed.
7+
[AMP](https://ampcode.com) is Sourcegraph's coding agent with multi-model architecture and built-in code intelligence. E2B provides a pre-built `amp` template with AMP already installed.
88

99
## CLI
1010

1111
Spin up a sandbox with the [E2B CLI](/docs/cli).
1212

1313
```bash
14-
e2b sbx create amp-code
14+
e2b sbx create amp
1515
```
1616

1717
Once inside the sandbox, start AMP.
@@ -28,7 +28,7 @@ Use `-x` for non-interactive mode and `--dangerously-allow-all` to auto-approve
2828
```typescript JavaScript & TypeScript
2929
import { Sandbox } from 'e2b'
3030

31-
const sandbox = await Sandbox.create('amp-code', {
31+
const sandbox = await Sandbox.create('amp', {
3232
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
3333
})
3434

@@ -43,7 +43,7 @@ await sandbox.kill()
4343
import os
4444
from e2b import Sandbox
4545

46-
sandbox = Sandbox.create("amp-code", envs={
46+
sandbox = Sandbox.create("amp", envs={
4747
"AMP_API_KEY": os.environ["AMP_API_KEY"],
4848
})
4949

@@ -62,7 +62,7 @@ sandbox.kill()
6262
```typescript JavaScript & TypeScript
6363
import { Sandbox } from 'e2b'
6464

65-
const sandbox = await Sandbox.create('amp-code', {
65+
const sandbox = await Sandbox.create('amp', {
6666
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
6767
timeoutMs: 600_000,
6868
})
@@ -88,7 +88,7 @@ await sandbox.kill()
8888
import os
8989
from e2b import Sandbox
9090

91-
sandbox = Sandbox.create("amp-code", envs={
91+
sandbox = Sandbox.create("amp", envs={
9292
"AMP_API_KEY": os.environ["AMP_API_KEY"],
9393
}, timeout=600)
9494

@@ -119,7 +119,7 @@ Use `--stream-json` to get a real-time JSONL event stream with rich metadata —
119119
```typescript JavaScript & TypeScript
120120
import { Sandbox } from 'e2b'
121121

122-
const sandbox = await Sandbox.create('amp-code', {
122+
const sandbox = await Sandbox.create('amp', {
123123
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
124124
})
125125

@@ -146,7 +146,7 @@ import os
146146
import json
147147
from e2b import Sandbox
148148

149-
sandbox = Sandbox.create("amp-code", envs={
149+
sandbox = Sandbox.create("amp", envs={
150150
"AMP_API_KEY": os.environ["AMP_API_KEY"],
151151
})
152152

@@ -178,7 +178,7 @@ AMP persists conversations as threads that can be resumed or continued with foll
178178
```typescript JavaScript & TypeScript
179179
import { Sandbox } from 'e2b'
180180

181-
const sandbox = await Sandbox.create('amp-code', {
181+
const sandbox = await Sandbox.create('amp', {
182182
envs: { AMP_API_KEY: process.env.AMP_API_KEY },
183183
timeoutMs: 600_000,
184184
})
@@ -209,7 +209,7 @@ import os
209209
import json
210210
from e2b import Sandbox
211211

212-
sandbox = Sandbox.create("amp-code", envs={
212+
sandbox = Sandbox.create("amp", envs={
213213
"AMP_API_KEY": os.environ["AMP_API_KEY"],
214214
}, timeout=600)
215215

@@ -238,23 +238,23 @@ sandbox.kill()
238238

239239
## Build a custom template
240240

241-
If you need to customize the environment (e.g. pre-install dependencies, add config files), build your own template on top of the pre-built `amp-code` template.
241+
If you need to customize the environment (e.g. pre-install dependencies, add config files), build your own template on top of the pre-built `amp` template.
242242

243243
<CodeGroup>
244244
```typescript JavaScript & TypeScript
245245
// template.ts
246246
import { Template } from 'e2b'
247247

248248
export const template = Template()
249-
.fromTemplate('amp-code')
249+
.fromTemplate('amp')
250250
```
251251
```python Python
252252
# template.py
253253
from e2b import Template
254254

255255
template = (
256256
Template()
257-
.from_template("amp-code")
257+
.from_template("amp")
258258
)
259259
```
260260
</CodeGroup>
@@ -265,7 +265,7 @@ template = (
265265
import { Template, defaultBuildLogger } from 'e2b'
266266
import { template as ampTemplate } from './template'
267267

268-
await Template.build(ampTemplate, 'my-amp-code', {
268+
await Template.build(ampTemplate, 'my-amp', {
269269
cpuCount: 2,
270270
memoryMB: 2048,
271271
onBuildLogs: defaultBuildLogger(),
@@ -276,7 +276,7 @@ await Template.build(ampTemplate, 'my-amp-code', {
276276
from e2b import Template, default_build_logger
277277
from template import template as amp_template
278278

279-
Template.build(amp_template, "my-amp-code",
279+
Template.build(amp_template, "my-amp",
280280
cpu_count=2,
281281
memory_mb=2048,
282282
on_build_logs=default_build_logger(),

0 commit comments

Comments
 (0)