A code search subagent that runs grep and file reads in a separate context window. No embeddings, no indexing.
const result = await morph.warpGrep.execute({ searchTerm: 'Where is user authentication handled?', repoRoot: '.'});// Returns: matching files with the relevant codeif (result.success) { for (const ctx of result.contexts) { console.log(ctx.file, ctx.content); }}
When to use: Agent needs to find relevant codeReturns: Matching files with the code that answers the querySpeed: Under 6 seconds, 3.8 steps on average
Requires ripgrep on the machine running the search. See WarpGrep for GitHub search, streaming, and sandbox execution.
const result = await morph.browser.executeWithRecording({ task: 'Test checkout for buying a pineapple', url: 'https://3000-abc.e2b.dev', maxSteps: 20, recordVideo: true, videoWidth: 1280, videoHeight: 720});if (result.recording?.videoUrl) { console.log('📹 Video:', result.recording.videoUrl); console.log('📊 Size:', result.recording.fileSize); // Get errors with screenshots const { errors } = await morph.browser.getErrors(result.recording.id); errors.forEach(e => console.log(e.screenshotUrl));}
When to use: Agent needs to test web applicationsReturns: Test results + optional session video + console logs + error screenshotsRecording format: WebM video, 7-day presigned S3 URLs, auto-deleted after 30 days
Works with e2b.dev URLs: The browser worker can access e2b.dev preview environments and other publicly accessible URLs.
Max video length: Videos are limited to 3 minutes. For longer tests, use recordVideo: false.