Skip to content

Instantly share code, notes, and snippets.

RWX

The agent-native cloud platform for sandboxes, CI pipelines, and building container images.

RWX gives developers and AI agents a programmatic interface to run code in the cloud with sub-second cached builds, DAG-based parallelization, and structured output. Developers and agents can iterate on changes until CI passes — without a single commit or push.

Powered by an accelerated container runtime.

Features

RWX CLI

A cloud platform powered by an accelerated container runtime.

RWX runs your CI, builds your container images, and gives your coding agents cloud sandboxes — all on a runtime purpose-built for speed. Content-based caching, DAG execution, and an agent-native UX mean sub-second cached builds and instant feedback without pushing to git.

Accelerated Container Runtime

RWX replaces BuildKit with a fundamentally better approach to running workloads in containers.

require "tmpdir"
require "securerandom"
require "set"
REPO = ARGV[0] || raise("need repo")
EMAILS = ARGV[1...]
EMAIL_MAP = {
"old-email@example.com" => "new-email@example.com"
}

Testing

def foo
end
@dan-manges
dan-manges / _pub_sub.md
Last active April 12, 2023 13:45
in process pub sub implementation in Ruby

Ruby Pub/Sub

This is an implementation of in-process pub/sub in Ruby with type checking at runtime.

It only allows subscribing to events with jobs to ensure that the subscriber blocks are fully asynchronous and cannot cause runtime exceptions.

This is the approach we use in production at rwx

Keybase proof

I hereby claim:

  • I am dan-manges on github.
  • I am danmanges (https://keybase.io/danmanges) on keybase.
  • I have a public key whose fingerprint is 4224 49E1 A87C D6BD 22D2 29AF 6317 7701 6B90 2E19

To claim this, I am signing this object:

require_relative "helper"
available = {}
0.upto(15).each do |i|
available[i] = {}
i.upto(15).each do |j|
available[i][j] = true
if i / 4 == j / 4
available[i][j] = false
end
@dan-manges
dan-manges / app.coffee
Created June 9, 2011 04:15
mongrel2 timeout handler
http = require 'http'
m2node = require 'm2node'
server = http.createServer((req, res) ->
console.log("#{req.method} #{req.url}")
sendResponse = ->
res.writeHead(200, {'Content-Type': 'text/plain'})
res.end('Hello World\n')
match = req.url.match(/sleep.(\d+)/)
if match
def fib(n)
if n <= 2
1
else
fib(n-1) + fib(n-2)
end
end
def fibsum(n)
sum = 0
def mask(x)x[0,6]+'*'*(x.size-10)+x[-4..-1]end