Skip to content

Instantly share code, notes, and snippets.

View mbutler's full-sized avatar
🇦🇶
Exploring

Matthew Butler mbutler

🇦🇶
Exploring
View GitHub Profile
@mbutler
mbutler / autoresearch.md
Created June 28, 2026 01:08
AutoResearch

AutoResearch is a framework for autonomous, recursive self-improvement. By defining a strict objective metric and a sandboxed testing environment, you can let an AI agent continuously run experiments, keep what works, and discard what doesn't.

When implemented correctly, it effectively replaces hundreds of manual A/B tests with an automated loop that can run 24/7. When implemented poorly, it will confidently optimize your system toward a meaningless metric.

Here is a comprehensive guide to bootstrapping an AutoResearch loop for any measurable task.


1. The Core Philosophy

@mbutler
mbutler / harness.py
Created June 25, 2026 15:07
A minimal harness for agents
import subprocess
import re
# 1. Initialize Memory
messages = [
{"role": "system", "content": "You are an agent. Write code in ```python filename.py format. I will run it and tell you the result."}
]
max_iterations = 3
current_iteration = 0
@mbutler
mbutler / skill-challenge.md
Created May 13, 2026 04:12
4e skill challenge template
MISSION: [MISSION NAME]
TYPE: Skill Challenge (Complexity X)
OBJECTIVE: [Short objective]

SUCCESS: [#] / [#]
FAILURES: [#] / [#]

PRIMARY SKILLS
• Arcana DC [ ] → [effect]
@mbutler
mbutler / YESHybrid.md
Created April 25, 2026 01:02
A Dungeon game encoded with Betza Notation

YESHybrid-v1.1 — Fairy-Stockfish Variant Specification

Overview

YESHybrid-v1.1 is a custom asymmetric Fairy-Stockfish variant played on a 12×8 board. The game emphasizes uneven objectives: White hunts a specific royal target, while Black aims for total elimination or immobilization.


Board Configuration

@mbutler
mbutler / gis-spec.md
Created March 5, 2026 20:55
Scholarly GIS Research: Specification for Leaflet-Based Mapping Projects

Scholarly GIS Research: Specification for Leaflet-Based Mapping Projects

Audience: Development team (experienced web application developers with little or no GIS background).
Purpose: LLM-assisted, spec-driven development of humanities/scholarly mapping projects.
Stack: Leaflet only. Open source tools and standards-based development.


1. GIS Concepts for Web Developers

@mbutler
mbutler / scmf.md
Created February 12, 2026 05:34
SCMF Model of Social Fragmentation

The SCMF Model of Social Fragmentation

Subject: The Mechanics of Modern Polarization and Elite Stability

Framework: Systemic Capture & Managed Friction (SCMF)

I. Executive Summary

The primary crisis of 2026 is not a lack of truth, but the engineering of distraction. In 2011, a burgeoning class-based unity (the 99%) threatened the stability of the transnational elite. In response, a "Managed Friction" model emerged. By shifting the public's focus from vertical economic grievances to horizontal identity-based conflicts, the "Managerial Class" has secured its status, and global elites have secured their power.

@mbutler
mbutler / aletheia-pipeline.md
Last active February 3, 2026 20:16
A Bayesian Pipeline for Maximal Truth-Seeking in a Post-Truth Environment

THE ALETHEIA PIPELINE (v1.2)

The Aletheia Pipeline is not designed to tell you what to think. It is designed to tell you how much you should trust what you already think. If you get a score that makes you feel defensive or uncomfortable, the engine has done its job. It has moved you from "Certainty" to "Inquiry." If you read a statement and your first thought is "I hope this is true" or "I’m terrified this is true," that is the perfect input for the Aletheia Pipeline.


I. THE PRE-FLIGHT CHECKLIST

Before running a claim, ensure it meets these "Airlock" standards to minimize noise.

  1. Specific Entities: Replace "They" or "The System" with specific actors (e.g., "The DHS," "S&P 500 Boards").
  2. Neutralize Adjectives: Remove "corrupt," "radical," "common-sense," or "evil." Use descriptive verbs instead.
@mbutler
mbutler / 4e-character-analysis.md
Last active January 31, 2026 04:34
How to think about your D&D character in 2026

MASTER PROMPT — D&D 4E CONDITIONAL COMBAT CHEAT SHEET

You are generating a state-driven combat cheat sheet for a Dungeons & Dragons 4th Edition character.

You are NOT generating a character sheet. You are NOT listing actions by type. You are generating a conditional reference:
“When X is true, remember Y.”

The input will be a raw text file describing a 4e character.

@mbutler
mbutler / vanallen.php
Created January 20, 2026 18:59
export CSVs from Omeka collections
<?php
/**
* export_vanallen.php — streams CSV for Collection items/files/transcripts.
* See query params at bottom of this header.
*
* Params:
* - collection_id (int, default 22)
* - only_with_transcript (0|1, default 0)
* - debug (0|1, default 0)
* - title_id, source_id, trans_id (ints) to override element ids
@mbutler
mbutler / index.html
Created January 11, 2026 00:47
Red Amulet Intermedia System home
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RED AMULET | Intermedia Systems</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;600&display=swap" rel="stylesheet">