Skip to content

Instantly share code, notes, and snippets.

@scripting
scripting / opmlProjectEditorDocs.md
Created March 1, 2026 14:44
opmlProjectEditor format

opmlProjectEditor Format

A reference document for working with the opmlProjectEditor format used by Dave Winer's OPML Editor and Frontier-based tools.

Overview

opmlProjectEditor is a way of storing a multi-file software project in a single OPML file. Each top-level outline node under the project headline represents a file. The file's contents are stored as child outline nodes, one node per line, with indentation representing code structure.

File Structure

@dabit3
dabit3 / you_couldve_invented_openclaw.md
Last active March 19, 2026 00:55
You Could've Invented OpenClaw

See more of my writing here.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

from typing import Generator
class SequenceValidator:
def __init__(self) -> None:
self._generator = self.check()
self._consumed = -1
next(self._generator)
def feed(self, text: str) -> tuple[int, bool | None]:
@chriscarrollsmith
chriscarrollsmith / llm-hackathon-submissions.md
Last active July 18, 2025 08:29
Writeup of submissions to the Coders' Colaboratory `llm` hackathon in Latham, New York

Projects

Runner-Up: Doctor of Credit

Prerequisites

Google Chrome CLI entrypoint

import dspy
from dspy.evaluate import Evaluate
from dspy.teleprompt import *
import csv
# Load the emails
with open('training.csv', 'r') as file:
reader = csv.DictReader(file)
emails = [row for row in reader]
@imaurer
imaurer / gpush.sh
Last active January 27, 2025 14:43
Script to sync git repo and push with LLM-drafted git message
#!/bin/bash
#
# gpush: Lazy git add, commit, and push with comments written by LLM
#
#
# This script provides an enhanced git push workflow with the following features:
# - Automatically pulls latest changes from the current branch
# - Checks for uncommitted changes
# - Generates commit messages using AI (LLM/Gemini) if no message is provided
# - Allows interactive editing of auto-generated commit messages
@vgel
vgel / r1.py
Last active August 14, 2025 13:13
script to run deepseek-r1 with a min-thinking-tokens parameter, replacing </think> with a random continuation string to extend the model's chain of thought
import argparse
import random
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache
import torch
parser = argparse.ArgumentParser()
parser.add_argument("question", type=str)
parser.add_argument(
@rajivsinclair
rajivsinclair / Adding a "political spectrum" attribute to VERDAD's analysis prompt - discussion with Claude.md
Last active December 11, 2024 14:06
This is how we revised our analysis prompt to add a new attribute to its output, along with defining the guidelines and generating synthetic examples

Political Spectrum Analysis Prompt

human (Oct 30, 2024, 06:03 PM)

I want to ask the analysis stage llm (a very advanced multimodal LLM) to assess I want to ask the LLM to assess is the snippet politically left-leaning or right-leaning (on a spectrum of -1.0 to +1.0 where -1.0 is extremely left-leaning and +1.0 is extremely right leaning). Please help me to add this to the prompt. Here is the existing prompt that I want you to add it to:

paste.txt
@codeinthehole
codeinthehole / tdd.sh
Created October 13, 2024 14:58
A Bash script for running an iterative TDD loop using an LLM to make a set of tests pass
#!/usr/bin/env bash
#
# A Bash script to run a TDD loop for building a Python module to pass tests.
set -euo pipefail
# How many times to loop.
ATTEMPTS=4
# The system prompt to use when creating the initial version.
@dupontgu
dupontgu / landscape_to_blurred_portrait.sh
Created September 30, 2024 21:45
Shell script to embed a landscape video inside a blurred, portrait version of itself.
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <input_video>"
exit 1
fi
input_file="$1"
if [ -z "$2" ]; then