Skip to content

Instantly share code, notes, and snippets.

Mom Artifacts Server Setup Guide

Share HTML files, visualizations, and interactive demos publicly via Cloudflare Tunnel with live reload support.

What is it?

The artifacts server lets Mom create HTML/JS/CSS files that you can instantly view in a browser, with WebSocket-based live reload for development. Perfect for dashboards, visualizations, prototypes, and interactive demos.

Installation

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Three.js Spinning Cube</title>
<style>
body {
margin: 0;
overflow: hidden;
@badlogic
badlogic / mistral-sdk.test.ts
Last active December 10, 2025 19:11
Mistral API limitation: user message after tool message not allowed
import { Mistral } from "@mistralai/mistralai";
import { describe, expect, it } from "vitest";
describe.skipIf(!process.env.MISTRAL_API_KEY)("Mistral SDK Direct", () => {
const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });
it("tool call + result + user follow-up", async () => {
const response = await client.chat.complete({
model: "devstral-medium-latest",
messages: [
@badlogic
badlogic / compaction.md
Created December 2, 2025 14:11
Context Compaction Research: Claude Code, Codex CLI, OpenCode, Amp

Context Compaction

Research on how other coding assistants implement context compaction to manage long conversations.

Overview

Context compaction (also called "handoff" or "summarization") is a technique to manage the context window in long coding sessions. When conversations grow too long, performance degrades and costs increase. Compaction summarizes the conversation history into a condensed form, allowing work to continue without hitting context limits.

Claude Code

{
"query": "Waffenfunde (filtered for right-wing extremism in Austria)",
"totalArticles": 29,
"articles": [
{
"title": "Keine Statistiken über rechtsextreme Waffenfunde: Grüne werfen Innenminister vor, \"Unwahrheit\" gesagt zu haben",
"link": "https://www.derstandard.at/story/3000000271029/keine-statistiken-ueber-rechtsextreme-waffenfunde-gruene-werfen-innenminister-vor-unwahrheit-gesagt-zu-haben",
"date": "2025-05-22T17:24:00.000",
"kicker": "Parlament",
"teaser": "Eine Anfrage der Grünen zu einem Sprengstoffexperten mit Neonazi-Kontakten beantwortete das Innenministerium knapp. Am Donnerstag debattierte deshalb der Nationalrat",
@badlogic
badlogic / 01-update-docs.md
Last active December 3, 2025 12:06
Yakety Documentation (Ordered) - LLM-optimized docs with concrete file references

Update Documentation

You will generate LLM-optimized documentation with concrete file references and flexible formatting.

Your Task

Create documentation that allows humans and LLMs to:

  • Understand project purpose - what the project does and why
  • Get architecture overview - how the system is organized
  • Build on all platforms - build instructions with file references
@badlogic
badlogic / README.md
Created June 14, 2025 20:41
Yakety Documentation - LLM-optimized docs with concrete file references

Yakety

Real-time speech-to-text application with hotkey recording and local Whisper transcription. Records audio while holding a keyboard shortcut, transcribes using on-device AI, and pastes text directly into the active application.

Key Entry Points

  • src/main.c - Application entry point and transcription pipeline
  • CMakeLists.txt - Build system with whisper.cpp integration
[
{
"kind": "youtube#commentThread",
"etag": "LpYQh8CFzYQ3lWbGAx35-Ez4kFs",
"id": "UgxMTUbpYJnPOPG9jLR4AaABAg",
"snippet": {
"channelId": "UC1y1GtNgGiAUBfQz87ltjag",
"videoId": "q5IR_OLv6YU",
"topLevelComment": {
"kind": "youtube#comment",
[
{
"name": "S-BUDGET Aceto Balsamico di Modena I. G. P.",
"price": 1.29
},
{
"name": "Clever Aceto Balsamico die Modena",
"price": 1.29
},
{
@badlogic
badlogic / toolchain-djgp.cmake
Created December 18, 2022 11:24
A CMake toolchain file for DJGPP
set (CMAKE_SYSTEM_NAME linux-djgpp)
set (DJGPP TRUE)
#
# CMake toolchain file for DJGPP. Usage:
#
# 1. Download and extract DGJPP
# 2. Place this file into the root folder of DJGPP
# 3. When configuring your CMake project, specify the toolchain file like this: