Skip to content
FrontierCSPublic

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Repository files navigation

Pumpkin's logo: an open ring with an orange tile, turned 45 degrees, in the break at its top.

Pumpkin

Pumpkin is an orchestration layer that handles multi-agent multi-sandbox workflows. It provides optimized communication abstractions for easy management and error handling.

Workflows · Language · Running · Records · Providers · Models · Architecture

Why Pumpkin?

Running a multi-agent multi-sandbox flow requires extensive communication and error handling. Naively setting up such a workflow can result in increased obscure failures and unnecessary context overhead for agents. We built Pumpkin to provide clean abstractions so people can easily do error handling.

Without Pumpkin With Pumpkin
Agent A container you start. It has the network and the mounts you give it. A sandbox the workflow names. Its only way out is its session with the driver.
Model key In the container's environment, or behind a proxy you run. On the host. The route adds it to requests the workflow allows.
Judge Another container or script, wired up per task. A fresh sandbox of the final-call role, after the agent's work has ended.
Limits Timeouts and spend caps in each launcher. The workflow's deadline, call bounds, and model budget, on every run.
Record The logs you saved. One directory per run: the workflow, the log, sandbox output, model exchanges, and the result. wait, ls, and view read it.
Where it runs Local Docker, or another launcher for EC2 or Modal. The same pumpkin run, on this machine's Docker, on EC2, or on Modal.

How it works

pumpkin evaluates a task to its workflow IR. Each run's driver carries out the IR in sandboxes, and writes the record that wait, ls and view read.

A task's sources go to pumpkin, which evaluates them to the workflow IR and builds the images; the driver, one process for each run, reads the IR, calls the functions' bodies from the sources the evaluation read, and has a provider create a sandbox for each instance of a role, where each container, main or a runner's companion, has a session of its own; it writes the record, which pumpkin wait, pumpkin ls and the page read.

Each run's sandboxes come from Docker, EC2 or Modal. Each run's driver runs on this machine, or on a team's controller, which this machine reaches over ssh.

On the operator's machine, pumpkin builds images on the Docker engine, which also runs the Docker provider's containers. A machine with a controller sends it its runs over ssh. An EC2 controller pushes its images to ECR, launches EC2 instances that pull them, and creates Modal sandboxes, from images that Modal imports. A Modal sandbox may hold companions. A Docker controller, a privileged container, builds and runs on an engine of its own, never the host's.

ARCHITECTURE.md maps the code. Providers says what each provider and the controller need.

Quickstart

On Linux x86-64, run ./pumpkin from the root of the task repository. The .pumpkinversion file beside the launcher selects the release. If that release is missing from your cache, the launcher downloads it, verifies it and unpacks it there. Every repository that pins the release uses that install and keeps its own run state in .pumpkin/. Docker runs the sandboxes. For a new task repository, install the launcher and pin.

One file configures the machine for every task: ~/.config/pumpkin/pumpkin.toml. A machine whose runs stay on its own Docker engine needs only this:

[docker]
context = "default"

[providers.local.docker]

Each task is an entry file, task.star. The examples run in place from a Pumpkin checkout, once cargo xtask build has built pumpkin into its .pumpkin/bin. They start with examples/hello, which needs no model. From the checkout's root:

$ .pumpkin/bin/pumpkin check examples/hello/task.star
$ .pumpkin/bin/pumpkin run examples/hello/task.star
20261116-195228-234cd166
$ .pumpkin/bin/pumpkin wait 234c
pumpkin: run 20261116-195228-234cd166 finished with a result (score=6 lines=1), ...
$ .pumpkin/bin/pumpkin ls
ended
  20261116-195228-234cd166  examples/hello  finished      2s  -  score=6 lines=1

1 run: 1 finished
$ .pumpkin/bin/pumpkin view

A task repository's ./pumpkin runs its own tasks with the same commands. pumpkin --help lists them. Writing workflows says how a workflow's parts fit. Running workflows says how the commands fit together.

Installing or upgrading a task repository

For a first install or an upgrade, the task maintainer chooses a tag from the published Pumpkin releases. Replace <tag> below with your chosen tag and run the commands from the task repository root on Linux x86-64. Staging the files is optional. This recipe creates and removes its own temporary directory (install_dir) so a failed download or version check leaves the working pair in place.

(
    set -o errexit
    tag='<tag>'
    url="https://github.com/FrontierCS/Pumpkin/releases/download/$tag"
    install_dir=$(mktemp --directory "$PWD/.pumpkin-install.XXXXXXXX")
    trap 'rm --recursive --force "$install_dir"' EXIT
    cd "$install_dir"
    curl --fail --location --proto '=https' --output pumpkin "$url/pumpkin"
    curl --fail --location --proto '=https' --output .pumpkinversion "$url/pumpkinversion"
    chmod +x pumpkin
    ./pumpkin --version
    mv --target-directory .. pumpkin .pumpkinversion
)

Commit pumpkin and .pumpkinversion together, along with any workflow changes the release requires.

Contributing

ARCHITECTURE.md is the map of the code. docs/dev/ holds the rules for changing it. cargo xtask ci runs the checks that every change must pass. cargo xtask release --help says how a release is made.

About

No description, website, or topics provided.

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages