Amazing stuff. I can't wait to try it.
Introducing HappyCAD: the AI teammate that designs hardware 10× faster, every mechanism proven.
It uses the best LLMs like Fable 5.2 and GPT-6 Astra to design hardware.
Comment HAPPYCAD to get an invitation code for happycad.ai.
53
CSS tip: Use the view() function for animation-timeline to run a scroll-driven animation based on where an element is in its scroll container.
The animation starts as the element enters the view and finishes as it leaves.
CSS tip: Use the scroll() function to run a CSS animation based on the progress of a scrollbar. This is called a scroll-driven animation.
Instead of the progress of time, how far the view has scrolled becomes the timeline of the animation.
Harness tip: Use Code Mode to allow agents to call tools as code.
This allows agents to make multiple calls in a single turn, operate on data, and keep the data out of the context, thus saving costs.
1
8
351
CSS tip: Use the scroll-snap-stop property to control whether fast flicks can scroll past the snap points.
This is useful for carousels or home page sections where you usually want users to stop at each point before scrolling past.
CSS tip: Use the scroll-snap-type property to control the strictness of the snapping.
"mandatory" is good for stuff you always want snapped, like carousels. "proximity" might be the better choice for long content where users might stop scrolling in the middle.
CSS tip: Use the scroll-padding and scroll-margin properties to snap the elements to a comfortable distance away from the edges.
This is also useful when the scroll view has a sticky header and you want elements to snap below it.
Harness tip: An agent reads many things as it's working on a task. As its context fills up, the agent may start to perform worse and cost more.
Compaction summarizes the old turns, keeping only the important context most relevant to the task. It's important to guide the agent to tell it what's most important, so it's not lost in the summary.
CSS tip: Enable scroll snapping with "scroll-snap-type" to make a scroll view snap to specific child points based on the defined rules.
Use "scroll-snap-align" on child elements to define the reference point the parent scroll view snaps to.
Do you realize how fast we went from sharing skills to sharing prompts?
Good prompt to polish your app, enjoy.
Test this in the browser at different widths, with touch emulation, and on a throttled 3G connection. Fix anything that looks broken or feels off. Save a before and after screenshot for every fix and send me a summary afterwards.
6
210
Harness tip: Agents can delegate work to subagents if the work can be done independently.
This is a context engineering technique that keeps the main context clean. It also starts the subagent with a clean context, so it may perform better. Other benefits are ability to run multiple subagents in parallel, or being able to summon subagents with a different model than the main agent.
CSS tip: Use scrollbar-gutter to avoid layout shifts when a scrollbar appears.
The browser keeps room for the scrollbar even when there's nothing to scroll, so content doesn't shift when it shows up.
Harness engineering tip: Prompt cache is one of the most important concepts for cost efficiency and speed.
It works by matching the session's prefix with the cached session. That's why harnesses shouldn't modify the head and should only append.
1
12
488
CSS tip: Use accent-color to theme the native controls of the browser. Scrollbar's thumb and track can be colored with scrollbar-color.
Starting a new video series about AI harness engineering tips tomorrow. Videos will be posted daily. I hope you are all interested.
By the way, the little-known CSS tips series was well received. They will also continue to come.
6
352
CSS tip: Use contrast-color() to automatically derive text color of a button from its background color.
Blend it with the background using color-mix() to achieve a softer color. This loses some contrast, but looks more on-brand.
CSS tip: Use relative color syntax to freely adjust a color variable's channels. Use it instead of color-mix() for more flexibility.
Original: oklch(from var(--brand) l c h)
Lighter: oklch(from var(--brand) calc(l + 0.1) c h)
Washed: oklch(from var(--brand) l (c / 2) h)
Shifted: oklch(from var(--brand) l c (h + 120))




