The economy of context
On engineering the environment around intelligence.
I watch quite a number of engineering videos on YouTube, and there’s this expression I find increasingly amusing.
“Oh my God, guys, it one-shotted this.”
And I’m sitting there thinking, is that necessarily a good thing? Lol.
I’m not suggesting you should spend your afternoon arguing with an . I’m interested in how much of that excellence came from your thinking and how much came from the model compensating for the absence of it.
Getting an exceptional result and engineering a system that repeatedly produces exceptional results are two very different things.
Intelligence as compensation
I recently set out to build a collection of experimental UI components, deliberately restricting myself to Claude Sonnet at medium reasoning effort.
I didn’t want intelligence compensating for a terrible prompt.
I’ve always believed creativity thrives under constraints. It’s interesting how often we romanticise the earlier work of musicians, when they had fewer resources and considerably less creative freedom. Sometimes constraints force you to discover things abundance allows you to ignore.
If I constantly reach for the smartest model, how do I know whether I’ve engineered a good process or simply acquired enough intelligence to compensate for a bad one?
So I started with about twenty reference components from Bencho, deliberately constrained the model, and made the mistakes part of the deliverable.
Engineering experience
Imagine teaching a three-year-old to put a square block through a square hole. You could do it for them, or you could let them figure it out.
One produces a result. The other produces knowledge that survives the task.
Rather than prompting exclusively for an implementation, I prompted for the intellectual process surrounding it.
Here’s a reconstruction of what that looked like:
Study the recording. Extract the frames that define the interaction. Understand what follows the pointer, what carries momentum and what happens when the user interrupts it.
Implement the component, not the environment surrounding it.
When you think you’re done, watch the recording again. Compare the behaviour, identify incorrect assumptions and document anything you’ve learned that could improve the next component.
The most important instruction here is arguably the last one. I wasn’t interested in making the model particularly good at building one component. I wanted the mistakes from that component to inform the next forty.
Consider one of the principles that emerged from these experiments: the handle is rigid; the material lags.
Initially, an instruction like this might sound perfectly reasonable:
Use springs to make the dragging interaction feel natural.
Except applying elasticity to the object somebody is directly holding can make it feel disconnected from their hand.
The accumulated instruction becomes more precise:
Anything under the pointer follows it 1:1. Apply elasticity to the material surrounding it. Carry momentum on release, and redirect from the current state whenever new input arrives.
That’s knowledge acquired through a mistake, expressed in a way another implementation can benefit from.
The knowledge timeline
I like to think of this accumulation as a knowledge timeline. It contains what worked, what didn’t, and occasionally why something that previously worked no longer makes sense.
The important thing is that this knowledge lives outside the conversation.
CLAUDE.md
Component contracts and engineering rules
docs/
patterns.md
learnings-before-code.md
learnings-after-code.md
interaction-audit.md
.claude/skills/
Visual quality and finishing principles
tools/
Measurement and verification scripts
Some of the knowledge is mathematical. For example, why a fixed interpolation factor produces different motion across different refresh rates:
// Frame-dependent
position += (target - position) * 0.1;
// Frame-rate-independent exponential smoothing
position += (target - position) *
(1 - Math.exp(-dt / tau));
Some of it is architectural. Write the state table before implementing the interaction. Separate the component from its demonstration. Park animation loops when they settle.
Some of it is purely aesthetic. Concentric radii, optical alignment, the right amount of overshoot.
And some of it contradicts earlier knowledge. Springs are beautiful until you introduce a spring where one doesn’t belong.
That’s fine. Experience isn’t an accumulation of absolute truths.
None of this modifies the model’s weights. It’s simply making the consequences of previous mistakes available to subsequent sessions.
From implementation to imagination
The initial twenty components ran through a loop for roughly an hour. The next twenty took days.
Terrible return on investment, right?
Except it wasn’t necessarily the model taking longer to build them. It was me taking longer to figure out what I wanted to build.
I’d moved from studying existing interactions to creating original ones. I was spending more time imagining how something should behave, questioning whether an interaction deserved to exist, and tuning the details.
The bottleneck had moved from implementation to imagination.
Eventually, I had over seventy components. And whenever Sonnet struggled particularly badly with one, I’d occasionally give the same task and context to Opus.
And boom. It worked.
I find that considerably more interesting than indiscriminately using the most powerful model. The stronger model now benefits from everything we’ve already figured out, and its intelligence can compensate for what remains.
Context behaves somewhat like capital. Expensive to acquire, reusable once acquired.
I’m fairly convinced somebody could take this collection of engineering knowledge and produce great components without possessing my particular experience in interface engineering. What they’d still need is the judgement to know when to steer it elsewhere, when to remove something, and when there’s enough.
That’s the part I’m not particularly interested in outsourcing.
So yeah, congratulations on your one-shot.
Now do it seventy times.
— Adenekan
