Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ wall-e Public

A GitHub bot that supercharges spec-driven development through automated generation of Cloudflare Workers.

Notifications You must be signed in to change notification settings

1712n/wall-e

Repository files navigation

 
 

Worker Assembly Large Language Engine

Table of Contents

What's WALL-E?

WALL-E is a GitHub bot that supercharges spec-driven development through automated generation of Cloudflare Workers. Based on worker functional requirements and integration tests (Spec File), WALL-E creates corresponding worker code, streamlining the development process.

Usage

Installing

Install the bot by visiting the GitHub App installation page and follow these steps:

  1. On the app page, click "Install" in the top-right corner
  2. Select your organization or personal account where you'd like to install the app.
  3. Choose "All repositories" or select specific ones where the bot should be active.
  4. After selecting repositories, click "Install" again to finish.

Once installed, the bot will automatically start working based on your repository configuration.

Prerequisites

1. Set up your project

  • For a new project:
    Create a Cloudflare Worker project by running:

    npm create cloudflare@latest -- your-worker-name

    Replace your-worker-name with the desired name of your worker. This command initializes a new project in a directory named after your worker.

  • For an existing project:
    Ensure your project includes the required test/index.spec.ts file (details below).

2. Create or update a Pull Request

Open a pull request that includes your test/index.spec.ts file.

3. Prepare the test/index.spec.ts file

Follow spec file best practices for creating your test/index.spec.ts file.

Basic Usage

Activate WALL-E in a pull request by commenting:

/wall-e generate

Advanced Usage

For more control, use optional parameters:

/wall-e generate path:workers/generate-embeddings provider:openai temperature:0.8
Parameter Aliases Description Default
path custom path to a worker dir repository root
provider provider for code generation anthropic
model model name from the provider claude-sonnet-4-5-20250929
temperature temp model temperature setting (0-1) 0.5
fallback whether or not you want to use fallback models true

Available Providers

  • anthropic
  • openai
  • googleai

Available Models

  • claude-sonnet-4-5-20250929
  • claude-sonnet-4-5-20250929-thinking
  • claude-opus-4-5-20251101
  • claude-opus-4-5-20251101-thinking
  • gpt-4.1
  • o4-mini-2025-04-16
  • o3-pro-2025-06-10
  • gemini-2.5-pro
  • gemini-2.5-flash

Improve Feature

The Improve Feature uses the existing code and spec file to generate optimized code based on the provided feedback. Example:

/wall-e improve path:workers/deduplicated-insert provider:googleai

---
- No need to import "Ai" from `cloudflare:ai` package
- Update "AI" binding to use "Ai" as type

Use this feature when you need to improve generated code with aspects not covered in spec files, such as:

  • Fixing imports
  • Adjusting types
  • Correcting API usage
  • Correcting typos

How It Works

Prompt

The prompt sent to the LLM consists of 2 sections: instructions and a spec file.

Instructions

The instructions section of the prompt explains the task and the general environment. It's relatively static and shouldn't change too often.

test/index.spec.ts

The Spec File is copied from the head branch and should contain 2 important sections: comments covering all functional requirements and Vitest integration tests covering all input/output interfaces, as well as any business logic-related edge cases.

Please adhere to our best practices when writing your spec files!

Showcase

Open-source workers generated by WALL-E running in production:

Code quality

Human vs machine

You might probably be convinced that your home-made raviolis are superior to the ones made by the soulless machines, but it's getting hard to compete with the latest-gen LLMs in terms of code quality and efficiency for smaller workers. If you have more complex projects, it's probably a good idea to split them into smaller components anyway.

About

A GitHub bot that supercharges spec-driven development through automated generation of Cloudflare Workers.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 9