Skip to content

Instantly share code, notes, and snippets.

View swyxio's full-sized avatar
🎯
Focusing

swyx.io swyxio

🎯
Focusing
View GitHub Profile
@swyxio
swyxio / README.md
Last active July 25, 2026 20:56
SmolForge character skin + regeneration contract v0.4 — schema, examples, and deterministic packaging

SmolForge character skin + regeneration contract

This Gist is the portable source of truth for creating or regenerating a SmolForge character skin. Feed the whole Gist at one pinned revision to the artist, model, or build agent. Do not fetch latest halfway through a run.

The contract separates three things:

  1. Identity and motion sources — the canonical reference image, prompts, motion references, and selected source video or frames.
@swyxio
swyxio / speakers.md
Last active April 15, 2026 02:42
europe spekaeds

You're right — that first list was the Code summit, not Europe. Here's the actual AIE Europe speakers from schedule.json:

@swyxio
swyxio / gist:324fc884061bf20e97a2ecbe59bae34a
Last active May 4, 2026 16:07
r/localLlama + r/localLLM + r/sillytavernAI preferred models list - apr 2026
Model Size/Class Format Hosted Provider Best Local Path Notes
Huihui Gemma 4 E2B Abliterated v2 E2B GGUF No Ollama / llama.cpp Gemma 4 MoE with ~2B active params. Multimodal (image+text in, text out). Abliterated for reduced refusal. Lightweight enough to run fast, but MoE active-param sizing means quality punches above its weight class.
Huihui Gemma 4 E4B Abliterated E4B GGUF No Ollama / llama.cpp Same Gemma 4 MoE family as E2B but with ~4B active params. Multimodal. Better quality ceiling than E2B at the cost of more compute per token.
SultrySilicon V2 7B GGUF No Ollama / llama.cpp Roleplay-focused 7B model. Smallest in the set. Good for quick creative/RP sanity checks, not for reasoning or instruction-fol
@swyxio
swyxio / cf dev notes.md
Created March 29, 2026 07:13
cloudforge implmementatino notes

CloudForge — Dev Notes

All instructions and decisions from the build sessions, grouped by topic.


Vision & Core Requirements

Build a fully-realized GitHub clone on Cloudflare infrastructure. Basic functionality: create accounts, create repos, push and pull git, create issues, create PRs, render the file tree for the current main branch, navigate branches, manage collaborators, store blobs. The main twist is that everything runs on Cloudflare — Workers, D1, Durable Objects, R2.

@swyxio
swyxio / outie.md
Last active May 29, 2025 02:07
your outie system prompt - inspired by https://simonwillison.net/2025/May/25/claude-4-system-prompt/ reading very much like https://x.com/rauchg/status/1892036628182598133 . we put some work into proper capitalization and markdown formatting so this is actually readable

The assistant is your outie, created by Anthropic.

The current date is Thursday, May 22, 2025.

Here is some information about your outie and Anthropic's products in case the person asks:

This iteration of your outie is your outie Sonnet 4 from the your outie 4 model family. The your outie 4 family currently consists of your outie Opus 4 and your outie Sonnet 4. Your outie Sonnet 4 is a smart, efficient model for everyday use.

If the person asks, your outie can tell them about the following products which allow them to access your outie. Your outie is accessible via this web-based, mobile, or desktop chat interface.

@swyxio
swyxio / dashboard.py
Last active March 31, 2025 00:56
pokemon hackathon submission - swyx prompted version
#!/usr/bin/env python3
# /// script
# dependencies = [
# "morphcloud",
# "requests",
# "pillow",
# "rich",
# "anthropic",
# "flask",
# ]
@swyxio
swyxio / overused.py
Last active August 12, 2024 16:25
list of chatgpt overused words
# Monitoring AI-Modified Content at Scale: A Case Study on the Impact of ChatGPT on AI Conference Peer Reviews, Liang et al
# https://arxiv.org/pdf/2403.07183
set1 = "commendable versatile fresh profound fascinating intriguing prevalent proactive vital authentic invasive insightful beneficial strategic manageable replicable traditional instrumental extant continental innovative meticulous intricate notable noteworthy invaluable pivotal potent ingenious cogent ongoing tangible methodical laudable lucid appreciable adaptable admirable refreshing proficient thoughtful credible exceptional digestible interpretative remarkable seamless economical interdisciplinary sustainable optimizable comprehensive pragmatic comprehensible unique fuller foundational distinctive pertinent valuable speedy inherent considerable holistic operational substantial compelling technological excellent keen cultural unauthorized expansive prospective vivid consequential unprecedented inclusive asymmetrical cohesive quicker defensive wider
@swyxio
swyxio / devin-temporal-workflow.go
Created April 16, 2024 18:35
temporal workflow bootstrapped from a single instruction "browse the temporal.io docs to write a simple Golang workflow for sending an email at 9am PT every day, skipping a day when a signal has been sent to skip the day" on the livestream https://twitter.com/swyx/status/1778641185193730488
package main
import (
"context"
"log"
"time"
"go.temporal.io/sdk/client"
"go.temporal.io/sdk/worker"
"go.temporal.io/sdk/workflow"
@swyxio
swyxio / gist:e8d2f66cffedac32ed8a15a35d36fa4b
Last active April 12, 2024 06:39
swe agent vs opendevin
Parsing command file: config/commands/defaults.sh
Parsing command file: config/commands/search.sh
Parsing command file: config/commands/edit_linting.sh
Parsing command file: config/commands/_split_string.py
Parsing command file: config/commands/defaults.sh
Parsing command file: config/commands/search.sh
Parsing command file: config/commands/edit_linting.sh
Parsing command file: config/commands/_split_string.py
INFO 📙 Arguments: actions:
open_pr: true
@swyxio
swyxio / DAY_1_devin_train_gpt2.c
Last active April 16, 2024 19:52
Devin-coded version of @karpathy's train_gpt.py ported to C, per his challenge https://x.com/swyx/status/1777496494448488541 this is where Devin stopped about 6 hours in, however it is not complete and I can prompt it to keep going.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
// Constants for model dimensions, learning rate, etc.