Skip to content

Instantly share code, notes, and snippets.

View wbern's full-sized avatar

William Bernting wbern

View GitHub Profile
@wbern
wbern / 00-README.md
Created November 3, 2026 15:22
Beads PR8045 readiness: bounded Dolt 2.6 experiment, all controls and raw evidence

Beads PR8045: bounded readiness evidence

Agent-prepared evidence for human review. Read data__RESULTS.md for the complete16-cell table and limitations. The sparse count-aware observations are not a stable general multiplier; small/default/some domain controls are mixed or slower.

Download this gist as ZIP, extract it, then run python3 restore_bundle.py. It creates a fresh ready-status-evidence-20261103 directory and verifies the SHA256 of all 40 files. Read that directory's README for the exact beads-only setup, actual executed harness/runner, source snapshots, commands and raw logs. No Gas City installation or production database is required. Use a disposable environment.

The captured experiment uses Dolt 2.6.0/Go 1.27.3, one CPU quota/6 GiB, two batches per arm and448 measured operations. It measures the specified SQL-backed operation with transaction boundaries, not deployed CLI/fleet latency. Both arms use indexes; the follow-up tightens status ranges. Original subqueries are cacheable.

Source

@wbern
wbern / ATTRIBUTION.md
Created August 11, 2026 20:48
Sanitized reference bundle from my current Git worktree setup: crash-safe bootstrap, safety notes, privacy checks, and adversarial tests
@wbern
wbern / tm-agents-walkthrough.md
Last active July 3, 2026 08:15
Stop Time Machine from eating your disk when you run AI agents (macOS) — asimov + exclusions walkthrough

Stop Time Machine from eating your disk when you run AI agents (macOS) — asimov + exclusions walkthrough

Written together with my AI coding agent — it's what actually diagnosed and fixed this on my machine, then drafted this writeup and the prompt below. Sharing it in that spirit, not pretending I hand-typed every word.

⚠️ Correction (2026-07-03): the folder-exclusion approach in this walkthrough (asimov / tmutil addexclusion) only slims your final backed-up output — what gets copied to an external backup drive. It does NOT reduce ongoing disk usage from macOS local snapshots, which is the thing that actually fills your disk during agent

@wbern
wbern / gist:198ed438cd0f40cd03ffda92bc46e917
Created May 14, 2026 16:13
Prompt to get word cloud of your prompts
Make a word-cloud of my favorite short Claude Code prompts.
1. Scan every `.jsonl` under `~/.claude/projects/`. Each line is one transcript event.
2. Keep only events with `type:"user"` whose `message.content` is a **string** (skip tool results, which are lists). Also skip events with `isCompactSummary:true` or `isVisibleInTranscriptOnly:true`.
3. Drop content that isn't a user keystroke:
- anything starting with `<` followed by a lowercase tag — e.g. `<bash-input>`, `<command-name>`, `<command-message>`, `<command-args>`, `<command-stdout>`, `<command-stderr>`, `<local-command-stdout>`, `<bash-stdout>`, `<bash-stderr>`, `<system-reminder>`, `<user-memory-input>`, `<ide_*>`
- anything starting with `/` (slash commands like `/clear`)
- system echoes: `[Request interrupted ...]`, `unknown command: ...`
4. Normalize: lowercase, collapse whitespace, strip trailing `.,;:!?`. Track the `sessionId` for each occurrence.
5. Within each transcript file, sort events by timestamp and collapse runs of the same n
@wbern
wbern / setup-gemini-claude.sh
Last active February 6, 2026 09:10
Setup script for running Gemini through Claude Code Router
#!/bin/bash
# Setup script for running Gemini through Claude Code Router (macOS)
# https://github.com/wbern/claude-code-router
set -e
echo "🚀 Setting up Gemini for Claude Code..."
# Check if CCR is installed
if ! command -v ccr &> /dev/null; then
@wbern
wbern / settings.json
Last active January 29, 2026 13:15
My very loose Claude Code sandbox global config (~/.claude/settings.json)
{
"alwaysThinkingEnabled": false,
"includeCoAuthoredBy": false,
"permissions": {
"allow": [
"Bash(git config:*)",
"Bash(git log:*)",
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git branch:*)",
@wbern
wbern / .zshrc
Created December 1, 2025 14:38
Temporary Claude Code sessions
alias maud='ide="${CLAUDE_IDE:-code}" && dir=$(mktemp -d) && echo "# Temporary Claude Session
This instance was initiated in a temporary directory and will be pruned eventually.
When working with js, typically we work with pnpm, vitest, if needed react and playwright
If you want to continue somewhere more permanent, use \`laud\` to copy this directory to ~/keeps/ with a timestamp." > "$dir/CLAUDE.md" && mkdir -p "$dir/.vscode" && echo "{
\"version\": \"2.0.0\",
\"tasks\": [
{
@wbern
wbern / bump-caniuse-lite.js
Last active May 12, 2022 20:27
Update caniuse-lite i pnpm-lock.yaml (mostly for Rush users) - PUT INSIDE `scripts/` IN THE REPO ROOT FOR PATHS TO WORK
#!/bin/node
// Script bumps caniuse-lite in common/config/rush/pnpm-lock.yaml
const path = require("path");
const fs = require("fs");
const { execSync } = require("child_process");
async function main() {
const repoRoot = path.join(__dirname, "../");
@wbern
wbern / bin.ts
Last active August 17, 2021 18:13
rush-changed-projects (some process.env vars might be org-specific)
import { getCommand } from "./lib";
import { printCommand } from "./util";
import process from "process";
function main() {
const [
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
__,
@wbern
wbern / Jenkinsfile
Last active April 29, 2021 21:39
changed-rush-projects
# will become: rush build --to @org/project1 --to @org/project2 etc..
"\$(sh ./changed-rush-projects \"node common/scripts/install-run-rush.js --debug build\")"