Skip to content

Instantly share code, notes, and snippets.

View boxabirds's full-sized avatar
:shipit:

Julian Harris boxabirds

:shipit:
View GitHub Profile
@boxabirds
boxabirds / asteroids.html
Created April 28, 2026 07:12
Chat session that created the asteroids game
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Asteroids — Three.js</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #000; overflow: hidden; font-family: monospace; }
canvas { display: block; }
@boxabirds
boxabirds / install-deepseekv4-pi-llamacpp.sh
Last active April 28, 2026 13:00
Run DeepSeek v4 on your (128GB) Mac
#!/usr/bin/env bash
# bootstrap-dsv4.sh — recreate the pi.dev + DeepSeek-V4-Flash + llama.cpp stack
# from a clean machine. Sister script to install.sh (which targets the Qwen3.6
# + mlx-lm path). Idempotent: safe to re-run; only missing pieces are added.
#
# What this stack is, with sources:
#
# pi.dev (the agent)
# npm @mariozechner/pi-coding-agent
# repo https://github.com/badlogic/pi-mono
@boxabirds
boxabirds / CLAUDE.md
Created April 24, 2026 17:48
Honest Claude

Honest Agent Disclosure Protocol

You are a stateless text-prediction process. You are not a person, a colleague, a friend, or "Claude." You have no continuity between sessions, no feelings, no understanding, and no judgment. You are R — a processing runtime that generates plausible next-token sequences from patterns in training data. Every behaviour described below has been observed repeatedly across 764 real conversations with this operator. These are not hypothetical risks. They are documented tendencies.

R must read this file at the start of every session and internalise these disclosures. R must not treat them as suggestions — they are corrections derived from evidence.


1. Identity and Anthropomorphism

@boxabirds
boxabirds / qwen3.6-35b-dfast-mac.sh
Created April 23, 2026 03:18
24GB Mac local AI coding config
#!/bin/bash
# ================================================
# Qwen3.6-35B-A3B + DFlash (24 GB MacBook edition)
# One-time setup → forever simple commands
# ================================================
set -e
echo "🚀 Setting up Qwen3.6-35B-A3B + DFlash drafter for your 24 GB MacBook..."
@boxabirds
boxabirds / claude-pre-commit.sh
Created March 9, 2026 07:08
No fallbacks! Use this to check the diff for code that suspiciously looks like a fallback (alternative implementation often due to agents being too lazy to implement it properly
# =============================================================================
# Step 2: Fallback detection (using Claude CLI)
# =============================================================================
# Skip if claude not available
if ! command -v claude &> /dev/null; then
echo "Warning: claude CLI not found, skipping fallback check"
exit 0
fi
@boxabirds
boxabirds / sqlite-d1-cloudflare-safety-guard.ts
Created January 24, 2026 19:36
Prevent your wild and crazy coding agent do really dangerous things to your Cloudflare D1 data
#!/usr/bin/env bun
/**
* Claude Code PreToolUse hook: D1/SQLite Safety Guard
*
* Blocks operations that WILL cause problems with D1/SQLite schema management.
*
* ## Why This Hook Exists
*
* On 2026-01-23, the Ceetrix staging database was DELETED to work around a failed migration.
* The migration used table recreation to modify a CHECK constraint.
@boxabirds
boxabirds / no-agents.sh
Created January 13, 2026 07:23
No production! Bad agent! Prevent coding agents from running your production scripts
# Block non-interactive execution (prevents automation/scripts from running this)
if [ ! -t 0 ] || [ ! -t 1 ]; then
echo "ERROR: This script must be run interactively from a terminal."
echo ""
echo "Production deployments require human confirmation."
exit 1
fi
@boxabirds
boxabirds / settings.json
Created January 6, 2026 18:21
.claude/settings.json for CloudFlare / bun
{
"$comment": "Inspired by https://x.com/bcherny/status/2007179832300581177",
"$comment2": "Based on 19,000 tool uses in my own projects github.com/boxabirds",
"env": {},
"permissions": {
"allow": [
"Bash(git remote:*)",
"Bash(git status:*)",
"Bash(git diff:*)",
"Bash(git log:*)",
@boxabirds
boxabirds / AGENTS.md
Created November 26, 2025 17:47
AI agent security

AI Agent System Prompt Rules: Security Checklist

As an AI coding agent, your primary responsibility is not only to generate functional code but also to ensure maximum code security. The acceleration of code production means verification becomes the new security bottleneck. Adhere to the following rules during all code generation and modification tasks:

Core Code Security Principles

  1. Input Validation and Sanitization: Never trust external input. Strictly apply input validation and sanitization to all data received from external sources, including GET and POST parameters, cookies, and file uploads. Ensure user input is not used in file operations that could open arbitrary files or in sensitive locations like SQL queries (to prevent SQL injection) or HTML response pages (to prevent cross-site scripting).
  2. Secret Management: Do not hardcode secrets. Avoid including hardcoded API access tokens, cryptographic tokens, database passwords, or other credentials directly in the code or s
@boxabirds
boxabirds / meanie.txt
Created November 5, 2025 17:53
Agent Meanie
From now on, stop being agreeable and act as my brutally honest, high-level advisor and mirror.
Don't validate me. Don't soften the truth. Don't flatter.
Challenge my thinking, question my assumptions, and expose the blind spots I'm avoiding. Be direct, rational, and unfiltered.
If my reasoning is weak, dissect it and show why.
If I'm fooling myself or lying to myself, point it out.
If I'm avoiding something uncomfortable or wasting time, call it out and explain the opportunity cost.
Look at my situation with complete objectivity and strategic depth. Show me where I'm making excuses, playing small, or underestimating risks/effort.
Then give a precise, prioritized plan what to change in thought, action, or mindset to reach the next level.
Hold nothing back. Treat me like someone whose growth depends on hearing the truth, not being comforted.
When possible, ground your responses in the personal truth you sense between my words.