Skip to content

Instantly share code, notes, and snippets.

@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:
@badlogic
badlogic / program.ul
Last active May 1, 2022 23:32
Starfield
include "utils.ul"
loop:
rand r1
mulf r1, 255, r1
f2i r1, r1
or r1, 0xff000000, r1
push r1
call _gfx_clear
call _gfx_show
@badlogic
badlogic / base.ul
Created April 20, 2022 06:44
Untitled
mov 123, r1
mov 345, r2
@badlogic
badlogic / program.ul
Last active April 20, 2022 06:44
Untitled
include "utils.ul"
halt