Runloop is the batteries included platform designed for building and optimizing AI-driven software engineering agents.

With the Runloop platform, you get:

  • Fast, isolated, snapshottable virtual machines for executing agents & agent tools (Devboxes).
  • Team-shareable templates for launching new devboxes with custom configuration (Blueprints), and persistent disk state (Snapshots).
  • Zero-configuration code repository integration (Code Mounts) and a fully-featured, ready-to-use language server.
  • Turnkey benchmarking (Benchmarks) and evaluation services for fine-tuning your agent’s behavior.

Whether you are trying to build an AI agent that can respond to pull requests, or an AI agent that can generate new UI components, Runloop makes it possible to get from zero to POC in just a few lines of code.

Why Runloop?

Our mission at Runloop is to keep you focused on the things differentiate your AI agent. Leave the building blocks to us and spend time on what actually matters.

As your agent evolves, your needs will evolve too. Runloop is designed for builders at all stages:

StageWhy Runloop
Prototyping
  • Zero infrastructure worries using managed, instant-on devboxes.
  • Build, deploy, learn, and iterate quickly.
Production
  • Team-shared blueprints and projects.
  • 24/7/365 managed platform and oncall team.
  • SOC2 compliant.
Growth
  • Benchmarking and evaluation stack to monitor and fine-tune your agent’s performance.

Use cases

Our customers are already leveraging Runloop to build AI agents that can:

  • Respond to Pull Requests and enhance the code review process
  • Enable users to chat with and navigate their codebase
  • Generate new test cases for existing codebases
  • Act as pair programmers
  • Generate new UI components for their frontend

Have a use case that we didn’t cover? Send us an email at support@runloop.ai to learn more about how Runloop can help you build AI agents.

Core Components of Runloop

Devboxes

Devboxes are isolated, cloud-based development environments that can be controlled by AI agents via the Runloop API. You can give agents access to a devbox to let agents run and test code in a safe, isolated environment.

import Runloop from '@runloop/api-client';
import { generateText, tool } from 'ai';

// Create an isolated Devbox for the agent to use
const devbox = await runloopClient.devboxes.createAndAwaitRunning();
// Get the Runloop Tool Representation for the Devbox and convert them to Vercel AI Tools
const runloopDevboxShellTools = runloopClient.devboxes.tools.shellTools(devbox.id)      
const runloopDevboxFileTools = runloopClient.devboxes.tools.fileTools(devbox.id)      

// Use VercelAI SDK to create a simple agent that uses the Devbox to code a game
const { text: answer } = await generateText({
    model: openai('gpt-4o-2024-08-06'),
    tools: {
        ...runloopDevboxShellTools,
        ...runloopDevboxFileTools
    },
    maxSteps: 10,
    system:
        'You are an expert python coder that specializes in making CLI games.'
    prompt:
        'Create a CLI game that is a guessing game where the user has to guess a number between 1 and 100. Write the python script in the file `game.py`. The program should be callable from the command line via `python game.py`. Once you have generated the program, run it and print the output to stdout.'
  });

console.log(`ANSWER: ${answer}`);