Skip to content

Instantly share code, notes, and snippets.

View scarf005's full-sized avatar

scarf scarf005

View GitHub Profile
@scarf005
scarf005 / AGENTS.md
Last active March 7, 2026 14:36
shared AGENTS.md

AGENT rules

Autonomy

multiple agents are working simultaneously in single branch.

  • do not reset code not written by you.
  • try to structure codebase to allow parallel agents to work without conflicts
  • create (multiple) atomic conventional commit after given task is achieved
@scarf005
scarf005 / assisted-by
Created February 25, 2026 16:52
when you hate oh-my-opencode style footer but still want to mark commit as AI generated
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "usage: assisted-by <model-name>" >&2
exit 1
fi
model_raw="$(printf '%s' "$1" | sed -E "s/^[[:space:]]+//; s/[[:space:]]+$//; s/^(['\"])(.*)\\1$/\\2/")"
@scarf005
scarf005 / notify.fish
Last active February 25, 2026 07:01
me: mom can i have openclaw? mom: we have openclaw at home openclaw at home:
#!/usr/bin/env fish
if test (count $argv) -eq 0
echo "Usage: notify.fish \"Title\" \"Description\""
echo " or: notify.fish \"Description\""
exit 1
end
set title "Status Update"
if test (count $argv) -ge 2
@scarf005
scarf005 / 0_autofix.txt
Created February 15, 2026 16:38
Cataclysm-BN autofix workflow run 22038946844 full output
2026-02-15T16:17:26.4020270Z Current runner version: '2.331.0'
2026-02-15T16:17:26.4047985Z ##[group]Runner Image Provisioner
2026-02-15T16:17:26.4049047Z Hosted Compute Agent
2026-02-15T16:17:26.4049653Z Version: 20260123.484
2026-02-15T16:17:26.4050286Z Commit: 6bd6555ca37d84114959e1c76d2c01448ff61c5d
2026-02-15T16:17:26.4050960Z Build Date: 2026-01-23T19:41:17Z
2026-02-15T16:17:26.4051739Z Worker ID: {872e9226-5446-4a96-b488-516a456c63e4}
2026-02-15T16:17:26.4052879Z Azure Region: northcentralus
2026-02-15T16:17:26.4053498Z ##[endgroup]
2026-02-15T16:17:26.4055193Z ##[group]Operating System
@scarf005
scarf005 / 13_lint and test typescript files.txt
Created February 15, 2026 16:38
Cataclysm-BN autofix run 22038946844 failing step log
2026-02-15T16:18:00.3245516Z ##[group]Run # deno lint
2026-02-15T16:18:00.3245818Z # deno lint
2026-02-15T16:18:00.3246038Z deno test --allow-read
2026-02-15T16:18:00.3246376Z deno run --allow-read --allow-write scripts/semantic.ts
2026-02-15T16:18:00.3295976Z shell: /usr/bin/bash -e {0}
2026-02-15T16:18:00.3296243Z env:
2026-02-15T16:18:00.3296443Z DENO_DIR: /home/runner/.cache/deno
2026-02-15T16:18:00.3296692Z ##[endgroup]
2026-02-15T16:18:00.3892867Z Download https://deno.land/std@0.208.0/assert/assert_equals.ts
2026-02-15T16:18:00.3911620Z Download https://jsr.io/@std/assert/meta.json
@scarf005
scarf005 / bn-luajit-migration.md
Created January 10, 2026 05:03
tl;dr: not worth it

● Based on my investigation, here's an analysis of migrating to LuaJIT:

Current State

Lua 5.3.6 bundled in src/lua/, using Sol2 v3.3.0 bindings. Lua is exclusively for modding API (22 hooks like on_game_load, on_shoot, etc.) - NOT core game logic. ~5k lines of mod scripts exist.

LuaJIT Benefits

Performance: LuaJIT is 3-5x faster than Lua 5.3 in most benchmarks:

  • DNS benchmark: LuaJIT 2.1 (0.81s) vs Lua 5.4.2 (3.69s)
{
"attribution": {
"commit": "",
"pr": ""
},
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
#!/bin/bash
# TO USE
# 1. clone github.com/dustinkirkland/hollywood
# 2. cd to hollywood
# 3. install errno/speedometer/cmatrix/apg/hexdump...etc
# 4. download this script into root of hollywood (so hollywood/peace-comes-at-a-price.bash)
# 5. chmod+x peace-comes-at-a-price.bash then launch it
HOLLY=${HOLLY:-$PWD}
1.6.2+46-131b3958-SNAPSHOT
@scarf005
scarf005 / aistudio-search-on.user.js
Last active September 26, 2025 07:03
force enables URL context in aistudio.google.com because some forsaken reason it's not enabled by default
// ==UserScript==
// @name aistudio search and URL context always ON
// @namespace https://github.com/scarf005
// @version 1.2
// @description force enables web search in aistudio.google.com because some forsaken reason it's not enabled by default
// @author scarf005
// @match https://aistudio.google.com/*
// @homepageURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8
// @supportURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8
// @downloadURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8/raw/aistudio-urlcontext-on.user.js