







Context windows, compression, and "folding the dough"
Context Engineering | Meetup
"Context engineering is the delicate art and science of filling the context window with just the right information for the next step" - Andrej KarpathyLearn about tools, frameworks, and code that is in service of context engineering from practitioners in this space.Dive into the set of strategies fo

Context Engineering
Context engineering strategies for AI agents: write, select, compress, and isolate context to optimize performance and manage long-running tasks.

Folding Ideas
Semantic Compression
An introduction to the idea that code should be approached with a mindset towards compressing it semantically, rather than orienting it around objects.

LukeW | Context Management UI in AI Products
They say context is king and that's certainly true in AI products where the content, tools, and instructions applications provide to AI models shape their behav...

Working with Contexts
The following article comes from two blog posts by Drew Breunig: “How Long Contexts Fail” and “How to Fix Your Contexts.”Managing Your Context is the Key

Unfolder - Create papercraft easily
Unfolder is a 3D model unfolding tool for creating papercraft.

Coeffects: Context-aware programming languages
Interactive essay that explains theory of coeffects and lets you type-check and run sample programs.
The Architect of Constraints: Why Context Engineering Is the Human Skill That Matters
“If I had an hour to solve a problem, I’d spend 55 minutes defining the problem and 5 minutes solving it.” — Albert Einstein

Mysteries of mode collapse — LessWrong
Thanks to Ian McKenzie and Nicholas Dupuis, collaborators on a related project, for contributing to the ideas and experiments discussed in this post…
Unifying fold left and fold right with Prolog
Here's a rather cool trick we noticed during a recent discussion in the NUS PLSE Lab.1
Coeffects: a calculus of context-dependent computation
The notion of context in functional languages no longer refers just to variables in scope. Context can capture additional properties of variables (usage patterns in linear logics; caching requirements in dataflow languages) as well as additional resources or properties of the execution environment (rebindable resources; platform version in a cross-platform application). The recently introduced notion of coeffects captures the latter, whole-context properties, but it failed to capture fine-grained per-variable properties.We remedy this by developing a generalized coeffect system with annotations indexed by a coeffect shape. By instantiating a concrete shape, our system captures previously studied flat (whole-context) coeffects, but also structural (per-variable) coeffects, making coeffect analyses more useful. We show that the structural system enjoys desirable syntactic properties and we give a categorical semantics using extended notions of indexed comonad.The examples presented in this paper are based on analysis of established language features (liveness, linear logics, dataflow, dynamic scoping) and we argue that such context-aware properties will also be useful for future development of languages for increasingly heterogeneous and distributed platforms.

The State of Context Engineering
As models improve, they bring surprising challenges for those building apps and harnesses. How context engineering has changed this year, and where it’s headed.

Context engineering is sleeping on the humble hyperlink
The dream of hypermedia can come to fruition in a world where clients can not only parse, but navigate with intent.

chenxiachan/textfold
Fold papers, web pages, files, and AI replies into five levels of detail. Zoom from an overview to the original text.
"Bluesky Elder" (by Bee 🐝) — Semble