Dedicated guest kernel
Each session receives its own hardware-virtualized MicroVM boundary and resources.
AWS Lambda MicroVMs · Codex app-server · S3 Files
Run durable Codex agents without an always-on worker fleet. Every active conversation gets a fenced MicroVM, while its history and workspace survive outside the machine.
Rat Things turns authenticated API calls and signed GitHub, GitLab, Teams, or Slack events into durable Codex work—not just ephemeral chat completions.
AWS holds the mailbox, history, artifacts, native Codex state, and workspace outside compute. MicroVMs wake for a turn, use tools, checkpoint, and suspend or disappear. Results return to the thread that asked.
Verify IAM or a channel signature and normalize the source identity.
Commit the message and artifacts before spending compute.
Give exactly one MicroVM ownership of the conversation.
Resume or launch Codex with its durable workspace and tools.
Checkpoint state, release compute, and reply in the source thread.
Agent tools execute code the application did not write. Rat Things gives each active conversation a dedicated Firecracker guest instead of relying only on process-level or shared-kernel containment.
Each session receives its own hardware-virtualized MicroVM boundary and resources.
Pre-initialized environments wake rapidly and retain memory, disk, and processes while suspended.
A hung shell, scraper, or tool process can be stopped by terminating its exact MicroVM.
Lambda APIs own provisioning and lifecycle while the serverless control plane owns demand.
The VM limits execution blast radius; IAM, network policy, credentials, and destination authorization remain independent security boundaries.
Codex app-server treats its state as a local filesystem. Rat Things gives each conversation a fenced S3 Files home, then restores that same home inside whichever MicroVM owns the next turn.
Turn one
Codex uses tools, changes files, and records its native thread state.
terminated after checkpointDurable AWS state
Workspace bytes and Codex SQLite state live beside a fenced lease, mailbox, and replay archive.
Turn two
The replacement resumes the exact Codex thread and reads the exact workspace bytes.
live AWS validatedWe tested the hard case: write a file with a real Codex tool call, terminate the first VM, observe the object in S3, then resume the same thread and file from a different VM.
Prioritized mailbox, turn history, progress, replay checkpoints, and per-thread serialization.
App-server thread state and workspace restoration, with normalized replay as the fallback.
Shell, Git, filesystem, and policy-controlled network access inside an unprivileged MicroVM worker.
Signed ingress, immediate acknowledgement, durable work, and completion in the originating thread.
The views show the webhook-to-reply path, the continuity state beside disposable compute, and the two end-to-end validation environments.
Run against your ChatGPT subscription on a trusted device, use short-term Bedrock access in AWS, or remove model spend entirely for deterministic tests. A webhook cannot choose the credential mode.
Trusted local
Reuse the device's cached codex login session with the built-in OpenAI provider.
--codex-auth chatgpt
Unattended AWS
Mint a bounded bearer token from the execution role without exposing the AWS credential chain.
CODEX_AUTH_MODE=bedrock
Deterministic tests
Exercise the orchestration and delivery contract without calling any model provider.
--driver mock
The suite crosses signatures, queues, leases, artifacts, MicroVM lifecycle, real Codex app-server calls, tool execution, S3 Files restoration, and threaded delivery.
Read the validation statusStart with the token-free path, connect your local Codex subscription, then deploy the same control plane as disposable AWS infrastructure.
git clone https://github.com/gpazo/Rat-Things.git
cd Rat-Things
npm ci
npm run check
npm run smoke:local
Treat prompts, repositories, model output, and webhook fields as untrusted. Production still requires an independent IAM and malicious-repository review, budgets, outbound policy, output redaction, and destination authorization.