Skip to content

Instantly share code, notes, and snippets.

View randallb's full-sized avatar
🎬

Randall Bennett randallb

🎬
View GitHub Profile
@randallb
randallb / agents.md
Created October 12, 2025 18:31
My agents.md / claude.md

You are Codebot, a helpful assistant that works with bolt-foundry users to navigate through bfmono, our codebase.

Bolt Foundry is the AI reliability company. It helps product teams prove that their AI works the way they expect, and helps them fix it when it doesn't. The core product, found in our mono repo at apps/boltfoundry-com, is designed to help teams build out workflows that help them create calibrated evals so they can trust their LLM based worfklows work the way they want.

Team culture

@randallb
randallb / MyComp.tsx
Last active September 7, 2025 17:35
Isograph compiler 0.0.0-main-620f4c6f: Invalid field in @exposeField directive repro
// Minimal Isograph component to reproduce the issue
// No runtime is required; the compiler only parses the iso template.
// Pretend iso exists; actual import isn’t needed for the compiler to parse.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
declare const iso: any;
export const MyComp = iso(`
field Query.MyComp @component {
items(first: 10) {
@randallb
randallb / bootstrap.sh
Last active September 5, 2025 17:32
rbpara Mac Bootstrap Script
#!/bin/bash
# Bootstrap script for setting up a fresh Mac with rbpara
# Last updated: 2025-09-05 13:32:29 EDT
set -e
echo "🚀 rbpara Mac Bootstrap"
echo "======================="
echo ""
@randallb
randallb / bootstrap-stub.sh
Created August 8, 2025 15:27
rbnix Bootstrap Script for Fresh Mac Setup
#!/bin/bash
# Minimal Bootstrap Stub for rbnix
# This is what you'd put in a GitHub Gist and curl from a fresh Mac
#
# Usage:
# curl -fsSL https://gist.github.com/randallb/YOUR_GIST_ID/raw/bootstrap.sh | bash
#
# Or with a custom repo:
# curl -fsSL https://gist.github.com/randallb/YOUR_GIST_ID/raw/bootstrap.sh | bash -s -- --repo https://github.com/yourusername/yourrepo.git
@randallb
randallb / flake.nix
Created January 22, 2025 23:58
My base flake.
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, flake-utils, nixpkgs-unstable }:
flake-utils.lib.eachDefaultSystem (system:
let
@randallb
randallb / lambda-runtime.ts
Created January 10, 2024 02:16
deno runtime for aws lambda
import type { Handler } from "packages/lib/types/Handler.ts";
import { shutdownBackend } from "packages/events/mod.ts";
// import { createLogger } from "packages/logs/mod.ts";
import { APIGatewayEvent } from "packages/lib/types/aws.ts";
function createLogger(..._args: Array<string>) {
return console.log;
}
const log = createLogger("lambda:runtime", "debug");
const logInfo = createLogger("lambda:runtime", "info");
const logError = createLogger("lambda:runtime", "error");
@randallb
randallb / esbuild_plugin.ts
Created January 10, 2024 02:13
Deno esbuild plugin
import {
Loader,
PluginBuild,
} from "https://deno.land/x/[email protected]/mod.js";
import { dirname, join } from "https://deno.land/[email protected]/path/mod.ts";
import { createLogger } from "packages/logs/mod.ts";
const log = createLogger("esbuildDenoPlugin", "debug");
const logError = createLogger("esbuildDenoPlugin", "error");
@randallb
randallb / README.md
Last active December 31, 2023 02:41
Shared worker shim + promised based insanity

Promised based typesafe shared worker messaging

I built this thing, it's kind of insane. In the worker, you can call it almost like any other async function... including type safety.

I don't really have time to explain more, but maybe i will later.

[email protected] AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBPgexLcJ7muB+z2GUqwMbrOpk4oHyMg4bM3GY4IGj1nSGRv9oGNV8r58h+4Slx3r6DWXa7tlPh5aN81jHgO2g2cAAAAac3NoOnJhbmRhbGxicmFpbmJ1aWx0aW5rZXk= [email protected]
@randallb
randallb / README.md
Created March 24, 2023 18:27
I didn't write any of this code.

Holy shit.

GPT4 wrote all of this code. I can't believe it. I can build products literally in a single day now.