Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
1

Eight more months of agents

from David Crawshaw [alt+shift+b] in programming

Eight more months of agents 2026-02-08 I wrote up my experiences programming with LLMs , and updated it for the world of agents . A lot has changed since then, so here is an update.a bit over a year agoeight months ago We were prototyping our first agent, Sketch, when Claude Code was released 12 months ago. So I, by good fortune, got to be there and be excited right at the beginning. They could be helpful for some things some of the time! Agent harnesses have not improved much since then. There are things Sketch could do well six months ago that the most popular agents cannot do today. The agent harness is critical, there is plenty of innovation to be done there, but it is as interesting a space right now as compiler optimizations were during the megahertz explosion of the 1990s. Right now, it is all about the model. And on the models: there are plenty of public benchmarks but they have all been gamed to death. Ignore them. Clearly the frontier model companies have good internal evals, because the models have qualitatively changed dramatically. In February last year, Claude Code could write a quarter of my code. In February this year, the latest Opus model can write nine tenths of my code. It all needs to be carefully read, and regularly adjusted, but now I can and do rely on the model to do the adjustments for me. There has been no obvious change in models. Nothing like when GPT2 started talking back. There has however, clearly been a huge incremental improvement in the ability of coding models to get to useful results. (All of this, admittedly qualitative, progress is the most positive economic signal I see today.) At a big company, my time was 80-20 reading code to writing code. At a startup, it used to be closer to 50-50. Now it is 95-5. The history of IDEs is so strange. On the one hand, the IDE is obviously correct. Of course I should have a development environment that provides as much information and assistance as I can effectively use. By far the greatest...
8th Feb 2026

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from David Crawshaw

The agent principal-agent problem

The agent principal-agent problem 2026-05-07 Code review is broken. The industry-established code review process, review-then-commit, was a straightforward mechanism that allowed a relatively low-trust group of engineers to collaborate. It appears to have been initially developed for the Apache server OSS project in the 90s, corporatized by Google in the early 2000s, and popularized throughout the industry by several means, most notable of which was the GitHub PR. It was very simple: This is not Michael Fagan's defect analysis work or the ticket-like processes used for critical systems changes in fields like aerospace. This will not catch your bugs. It will, however, communicate design changes to other engineers who maintain a mental model of the codebase, and reviewers can use the process to teach norms to contributors. It has advantages, and because there is a gate before the main branch changes, it does not require much trust. That makes it a great tool for scaling a company, because beyond ~10-12 engineers (the "two pizza" team, among other names), trust erodes rapidly. It is also great for scaling OSS. It puts work on reviewers, but there was work on the human making the change too. An imbalance existed but was often manageable. Agents broke this. If you insert an agent into the existing process, your best possible outcome is: This doubles the amount of review. But companies were already review limited. In a really well-functioning team, a code review cycle could take a day. (Between two engineers who get on well and intimately know each other's work, you could shrink this to an hour.) But across the industry the number was, optimistically, to get a review merged before agents.days Additionally, the whole reason engineers use agents is it improves productivity. More total changes are generated. So we doubled review, and increased the total changes. As you modify the old model, you run out of review bandwidth before you have extracted all the value you can from agents. (And anecdotally, you run out of bandwidth before you get even a fraction of the value of agents.) But things get worse, because no-one actually augments the old processes this way. What happens in reality are processes like this: This is an example of what economists call the : the reviewer is the principal, the contributor is the agent, and code review only worked because the reviewer could cheaply infer effort from reading the code. Agents collapse that signal. This is what is killing OSS, and it is commonly being referred to as "slop PRs". There is no incentive for the human driving the agent to actually read the code or spend time thinking about what the reviewer says.principal-agent problem The result is a radical imbalance. "Contributors" type a sentence or two, of the quality of a poor bug report, spend 5 minutes poking at the resulting program, and then generate serious review load for another engineer. You can do this with no understanding of the underlying project, its constraints, or the tools used to construct it. This is an unmanageable disaster. This does not even work in environments where the reviewer is paid to do the work, because they could be more productive by prompting the agent themselves. Small high-trust teams have an easy process they can adopt: There is still a human in the loop. There is still a reviewer who did not get deeply lost in the weeds of how a problem could be solved. Most importantly, there is no principal-agent problem, because the human driving the machine takes on the responsibility for its actions by owning the deployment. Anecdotal evidence suggests this works for small teams. With a team of nine at we have been able to make it work. We spend a lot more time writing integration tests, e2e tests, building agent-based workflows for analyzing commits for safety or performance or usability bugs to minimize risk. This is a lot of machinery teams traditionally do not develop until they are far larger and more mature, on the other hand it is much easier to develop thanks to agents. We also have had to be very selective about our colleagues and be intentional in our communication. But we ship this way.exe.dev This is not tenable in low-trust environments, i.e. large companies. You have to trust your co-workers to start a conversation about architectural changes before they do it. No-one at BigCo trusts their colleagues to make sweeping changes to a service they "own". And no-one at BigCo wants to be on the hook for a major outage without having coverage from a code review to smear the blame around. (Low trust environments are awful places.) I am sure there are small isolated teams at big companies that have broken with standard practices and are getting real value out of agents. I am also sure there are ICs who have work that lets them maximize the value of an agent without involving their colleagues. (E.g. if you work in quality, agents can help you write and execute endless large-scale experiments you never need get reviewed, just send out what works.) But the vast majority of big company engineers cannot make changes, especially cross-functional changes that agents do so well, without review eating all the productivity gains. As of writing this, I have not seen anyone describe a process that "scales" agent-driven development in a large company. There is, however, evidence from the past that it is possible. I would point to Microsoft in the 1990s, which did not have mandated review-before-commit practices. Some teams may have, but the company, while large, was organized as many independent teams constantly synchronized by QA processes. This is regarded as "old-fashioned" "cowboy" style development by proponents of the large-team processes that came before agents. But it did work. It created some of Microsoft's most long-lived successful products, like the win32 API. (And yes we could critique a 30 year old API endlessly, but it is still there and significantly better than some of its "replacements" that were built with code review processes.) Little appears to be written about this period of Microsoft history, if you were there I would love to hear or read about your experiences. Until someone develops robust processes for agent use in low-trust environments, small teams have a large force multiplier available to them that big teams do not. Ship while you can. A human makes a change. This change is packaged up, sent to another human for commentary. Rounds of commentary and adjustments continue until the reviewer approves (LGTMs) it. The change is committed. A human to make a change.instructs a machine The human reviews the code, iterates with comments until they approve it. This change is packaged up, sent to another human for commentary. Rounds of commentary and adjustments continue until the reviewer approves (LGTMs) it. The change is committed. A human instructs a machine to make a change. This change is lightly QA'd, packaged up, sent to another human for commentary. Rounds of commentary come back from the reviewer and until the reviewer approves (LGTMs) it.are sent wholesale to the machine for adjustments The change is committed. A human instructs a machine to make a change. The human reviews the code, iterates with comments until they approve it. They push the change to production and deploy. The crisis of code review The agent principal-agent problem Potential solutions Some hints in the history books

7th May 2026 • 2 votes
I am building a cloud

I am building a cloud 2026-04-22 Today is fundraising . As is the nature of writing for a larger audience, it is a formal, safe announcement. As it should be. Writing must necessarily become impersonal at scale. But I would like to write something personal about why I am doing this. What is the goal of building ? I am already the co-founder of that is doing very well, selling a product I love as much as when I first helped design and build it.announcement dayexe.devone startup What could possess me to go through all the pain of starting another company? Some fellow founders have looked at me with incredulity and shock that I would throw myself back into the frying pan. (Worse yet, experience tells me that most of the pain is still in my future.) It has been a genuinely hard question to answer because I start searching for a “big” reason, a principle or a social need, a reason or motivation beyond challenge. But I believe the truth is far simpler, and to some I am sure almost equally incredulous. I like computers. In some tech circles, that is an unusual statement. (“In this house, we curse computers!”) I get it, computers can be really frustrating. But I like computers. I always have. It is really fun getting computers to do things. Painful, sure, but the results are worth it. Small microcontrollers are fun, desktops are fun, phones are fun, and servers are fun, whether racked in your basement or in a data center across the world. I like them all. So it is no small thing for me when I admit: I do not like the cloud today. I want to. Computers are great, whether it is a BSD installed directly on a PC or a Linux VM. I can enjoy Windows, BeOS, Novell NetWare, I even installed OS/2 Warp back in the day and had a great time with it. Linux is particularly powerful today and a source of endless potential. And for all the pages of products, the cloud is just Linux VMs. Better, they are API driven Linux VMs. I should be in heaven. But every cloud product I try is wrong. Some are better than others, but I am constantly constrained by the choices cloud vendors make in ways that make it hard to get computers to do the things I want them to do. These issues go beyond UX or bad API design. Some of the fundamental building blocks of today’s clouds are the wrong shape. VMs are the wrong shape because they are tied to CPU/memory resources. I want to buy some CPUs, memory, and disk, and then run VMs on it. A Linux VM is a process running in another Linux’s cgroup, I should be able to run as many as I like on the computer I have. The only way to do that easily on today’s clouds is to take isolation into my own hands, with gVisor or nested virtualization on a single cloud VM, paying the nesting performance penalty, and then I am left with the job of running and managing, at a minimum, a reverse proxy onto my VMs. All because the cloud abstraction is the wrong shape. Clouds have tried to solve this with “PaaS” systems. Abstractions that are inherently less powerful than a computer, bespoke to a particular provider. Learn a new way to write software for each compute vendor, only to find half way into your project that something that is easy on a normal computer is nearly impossible because of some obscure limit of the platform system buried so deep you cannot find it until you are deeply committed to a project. Time and again I have said “this is the one” only to be betrayed by some half-assed, half-implemented, or half-thought-through abstraction. No thank you. Consider disk. Cloud providers want you to use remote block devices (or something even more limited and slow, like S3). When remote block devices were introduced they made sense, because computers used hard drives. Remote does not hurt sequential read/write performance, if the buffering implementation is good. Random seeks on a hard drive take 10ms, so 1ms RTT for the Ethernet connection to remote storage is a fine price to pay. It is a good product for hard drives and makes the cloud vendor’s life a lot easier because it removes an entire dimension from their standard instance types. But then we all switched to SSD. Seek time went from 10 milliseconds to 20 microseconds. Heroic efforts have cut the network RTT a bit for really good remote block systems, but the IOPS overhead of remote systems went from 10% with hard drives to more than 10x with SSDs. It is a lot of work to configure an EC2 VM to have 200k IOPS, and you will pay $10k/month for the privilege. My MacBook has 500k IOPS. Why are we hobbling our cloud infrastructure with slow disk? Finally networking. Hyperscalers have great networks. They charge you the earth for them and make it miserable to do deals with other vendors. The standard price for a GB of egress from a cloud provider is 10x what you pay racking a server in a normal data center. At moderate volume the multiplier is even worse. Sure, if you spend $XXm/month with a cloud the prices get much better, but most of my projects want to spend $XX/month, without the little m. The fundamental technology here is fine, but this is where limits are placed on you to make sure whatever you build cannot be affordable. Finally, clouds have painful APIs. This is where projects like K8S come in, papering over the pain so engineers suffer a bit less from using the cloud. But VMs are hard with Kubernetes because the cloud makes you do it all yourself with lumpy nested virtualization. Disk is hard because back when they were designing K8S Google didn’t really even do usable remote block devices, and even if you can find a common pattern among clouds today to paper over, it will be slow. Networking is hard because if it were easy you would private link in a few systems from a neighboring open DC and drop a zero from your cloud spend. It is tempting to dismiss Kubernetes as a scam, artificial make work designed to avoid doing real product work, but the truth is worse: it is a product attempting to solve an impossible problem: make clouds portable and usable. It cannot be done. You cannot solve the fundamental problems with cloud abstractions by building new abstractions on top. Making Kubernetes good is inherently impossible, a project in putting (admittedly high quality) lipstick on a pig. We have been muddying along with these miserable clouds for 15 years now. We make do, in the way we do with all the unpleasant parts of our software stack, holding our nose whenever we have to deal with and trying to minimize how often that happens. This however, is the moment to fix it. This is the moment because something has changed: we have agents now. (Indeed my co-founder Josh and I started tinkering because we wanted to use LLMs in programming. It turns out what needs building for LLMs are better traditional abstractions.) Agents, by making it easiest to write code, means there will be a lot more software. Economists would call this an instance of . Each of us will write more programs, for fun and for work. We need private places to run them, easy sharing with friends and colleagues, minimal overhead.Jevons paradox With more total software in our lives the cloud, which was an annoying pain, becomes a much bigger pain. We need a lot more compute, we need it to be easier to manage. Agents help to some degree. If you trust them with your credentials they will do a great job driving the AWS API for you (though occasionally it will delete your production DB). But agents struggle with the fundamental limits of the abstractions as much as we do. You need more tokens than you should and you get a worse result than you should. Every percent of context window the agent spends thinking about how to contort classic clouds into working is context window is not using to solve your problem. So we are going to fix it. What we have launched on exe.dev today addresses the VM resource isolation problem: instead of provisioning individual VMs, you get CPU and memory and run the VMs you want. We took care of a TLS proxy and an authentication proxy, because I do not actually want my fresh VMs dumped directly on the internet. Your disk is local NVMe with blocks replicated off machine asynchronously. We have regions around the world for your machines, because you want your machines close. Your machines are behind an anycast network to give all your global users a low latency entrypoint to your product (and so we can build some new exciting things soon). There is a lot more to build here, from obvious things like static IPs to UX challenges like how to give you access to our automatic historical disk snapshots. Those will get built. And at the same time we are going right back to the beginning, racking computers in data centers, thinking through every layer of the software stack, exploring all the options for how we wire up networks. So, I am building a cloud. One I actually want to use. I hope it is useful to you.

22nd Apr 2026 • 1 votes
How I program with Agents

How I program with Agents 2025-06-08 This is the second part of my ongoing self-education in how to adapt my programming experience to a world with computers that talk. The first part, , covered ways LLMs can be adapted into our existing tools (basically, autocomplete) and how careful prompting can replace traditional web search. Now I want to talk about the harder, and more rewarding act of using agents to program.How I program with LLMs It is worthwhile starting with a definition of the word “agent” in the context of LLMs. The “AI” hype cycle has been throwing this very generic word around longer than agents have actually been useful constructs. As a result there is a bit of smoke and mirrors marketing and general mysticism to dig through to find any value in the word. For someone with an engineering background there is now a straightforward definition: . That is, an agent is a for loop which contains an LLM call. The LLM can execute commands and see their output without a human in the loop.an agent is 9 lines of code @font-face { font-family: Excalifont; src: url(data:font/woff2;base64,d09GMgABAAAAABCIAA4AAAAAG/QAABAyAAEAAAAAAAAAAAAAAAAAAAA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POyATAbY4RiNSqVGanOKAFS2ZVrVKOYUyY7pwaVsroCCoGCBYezyivHcqjgrkpSQYmQWaScPIR88EQEPQeraZLGKon32amn2bcURmSHsRJUkmTFRJARIEdWCl5AveUSY1c9unIpJ+fRAqtYr0YMF3SXDRnYkexoMlFKUggAGf36CQMAAAA=); } User LLM prompt bash, patch,etc tool call tool result Response &End of turn That’s it. Like all simple things your instinct, quite reasonably, could be to say “so what?” It is a for loop. But the results are an astonishing improvement on the power of a raw large language model. Consider yourself in front of a whiteboard, writing a function in C with a marker designed to test if a UTF-8 string is valid. (This has actually happened to me, it is a standard interview technique. The stakes were high, this interview changed the course of my career!) How well you do at this task depends on your experience as a programmer, and your ability to fudge your inability to use external resources. You need to remember the encoding of UTF-8. You need to not confuse your C grammar with all the other C-like programming languages you have used over your career (is it name-then-type or type-then-name?). In daily life you get feedback from a compiler if you make a mistake, you can look up a specification of UTF-8, and best of all you can write your program and sprinkle some printfs in it to see what you got wrong. Asking an agentless LLM to write code is equivalent to asking you to write code on a whiteboard. It is an exercise in dredging up half-forgotten memories, executing a parser on an extraordinarily inefficient substrate, attempting to avoid hallucinating an actually-useful programming interface. The fact LLMs can invent programs out of whole cloth is an astonishing technical achievement that I consider myself blessed to have lived to see, but it is also not a huge shock that attaching a GPU to a virtual whiteboard is not going to do a significant amount of useful programming. But what happens if we give an LLM more than a virtual whiteboard? What if it could call the compiler, see the compiler errors, and get a chance to fix them before we see the result? What if it could use `grep` and `cat` to read existing files in a project? What if it could patch multiple existing files, including the unit tests and repeatedly run the tests? Agents are feedback-driven LLMs. Just as humans thrive in environments with feedback, LLMs go from nice demos to useful programmers when given a surprisingly small core set of tools that are very familiar to programmers: Agents are very good at navigating code bases using the bash tool: find, cat, grep -R, just the way those of us who predate IDEs tend to navigate code bases. Upfront it is instructed to commit changes to git, which it does by using the bash tool to run git add, git commit, etc. The result, compared to an LLM generating code without these tools available is significantly different. Of note: The downside of agents is time. A single sentence request that would have required a 200 token response can now generate tens of thousands of intermediate tokens driving tools, some web searching, and many runs of a project test suite. This takes several minutes and there are only so many cups of coffee we can healthily brew in one day. Today it may also appear costly (my last significant agent-driven commit cost me $1.15 in API credits!) but the cost will rapidly disappear as the chips driving the models continue to improve. GPUs are not nearly as restricted in their future progress as CPUs which are far more constrained in how they can physically improve (compiler-driven only goes so far). The fact that we still call LLM chips “graphics” chips shows the economic machine underneath software has a lot of restructuring to do before it is fully focused on LLM performance-per-watt.ILP Ultimately, agents spend CPU and GPU cycles doing intermediary work so that humans do not need to. Any time I can mechanise my labor I get more done, so agents are a huge step forward for me. I only end up writing a tiny fraction of the programs I want to due to a shortage of hours in the day, and with agent support I get a little further into the list of programs I wish I could write. May we all be so lucky as I have been this last year. As such, I am thoroughly convinced that agents are worth significant engineering investment addressing their limitations. It is relatively easy to see an example of an agent producing useful work. Drop one into your project, break off a small task and type it in, see what it does. Let me give you two examples. Let me talk you through an example of where I used an agent to do a significant amount of work on a project. I implemented the first pass of Github App auth for the hosted sketch.dev using sketch. It did the whole thing with 3-4 pieces of feedback as I clicked around the interface finding errors. That is an astonishing achievement. It is easy for the haughty to disregard the work of gluing well-known APIs together as “not real” programming, but it has been the practical experience of my career that for every hour of truly interesting programming I can do, I have had to do 10 or more hours of dreary work with APIs, libraries, dysfunctional compilers, build systems, or obtuse package managers to actually make that hour useful. Having a tool that lets me do 30 minutes of “not real” programming by writing a few carefully constructed sentences, and lets me vacuum the kids' room while it works, .preserves momentum But now comes the work. It implemented the GitHub app auth flow I wanted. It even met the stringent requirement I put on it: I asked it if it could avoid saving a token per user, and instead use the global private credentials of the app to drive everything to keep the database simple. It did it! In the process of doing it, it wrote some very bad code. First, is the huge security vulnerability it created. Because it let anyone who had authorized the app work with any repository authorized with the app, even if they did not have access to it. Disaster. Fortunately it is so bad that if we had got to testing with others on the team we would have spotted it quickly when our own private repos started appearing on each other’s repository lists. (And was such an obvious problem I caught it even before that.) A quick explanation of the problem to sketch.dev got it to fix it, it implemented authorization checks for users and got it right. Another amazing achievement, I wrote one sentence and got a reworked functioning commit on a branch. The next problem was performance. While the new code worked, it would have been unworkably slow as soon as it had several users. It generated a list of repositories the user had access to by: This meant that every time I wanted to display to the user a list of repositories they had authorized, I had to, for each GitHub org that had allowed the use of Sketch, do an API call to fetch their repository list, and then for every single repository do another API call to check if this person is a user. This means the number of API calls grows with the total number of product users, which is not going to work. It turns out, the problem was my original naive requirement to avoid storing per-user tokens from GitHub. It turns out they do not have any efficient app-auth-level API calls to determine what a user can access, the only way to do it efficiently is to ask what access the auth token has, and use an auth token for the user. Once I realized this I told sketch to go back and remove my original requirement: save per-user auth tokens and use them for everything. It quickly came up with efficient API calls. Telling this story took more words than I typed in total into Sketch to generate the GitHub auth code I wanted, and writing it took more effort than the code reviews that caught all the issues. I need to emphasize that because it is so easy to take a part of an anecdote like this and use the limits and mistakes of these tools to declare them “useless” or “dangerous”, while my experience is not that at all. What we have today can clearly not replace me as a programmer, but it did let me get done in a day a dreary task that I would have struggled to traditionally complete in a week. And I vacuumed the kid’s room while I was at it. Here is an example of something my agent needs to do regularly that it struggled with until I found a way to help it (and I believe captures a typical limitation people run into when first trying to work with LLMs). I learned an odd way of using SQL at Tailscale (from Brad and Maisem): make every table a JSON object. In particular, have only one “real” column and the rest generated from the JSON. So the typical table looks like: This has many pros and many cons. It acts as a poor man’s ORM as each table has an “obvious” data type matching each record. It makes adding to the schema trivial. You can choose to ADD COLUMN if you like but you do not have to. The SQL column constraints act as good dynamic checks on the quality of your JSON. It greatly increases the amount of stored data per row. You have to structure all your INSERT and UPDATEs in terms of JSON. Half a foot in the document database world, but I can still write an old fashioned JOIN. Etc. Pros and cons aside (that can be a fun blog post for the future), our agent often tripped over this style. When creating new tables and columns, it would sometimes, but not always, follow the generated column pattern. The very first time we added a table that did not use this all-generated-column style it got further confused, and would choose almost at random it seemed between styles. It turned out to be really easy to fix the agent’s behavior. At the top of the SQL schema file I tried adding a three sentence description of this. The key line seems to be “each table has a single concrete Data JSON column, all other columns are generated from it” and then a comment on the tables that did not follow this pattern explaining they were an exception to the norm, and the behavior improved dramatically. This is slightly counter-intuitive. My lived experience of instructions like this is that engineers heavily discount them. It may be ad(-like) blindness, it may be the challenge of keeping comments up to date, or it may be that most comments are not worth much attention.. Instead the industry norm for communicating this kind of knowledge is an unpleasant routine of engineers who do not know writing a PR that does it the wrong way, then receiving comments on it and telling them to do more work. LLMs seem to give the comments more work, hopefully for the better. One of the arguments against LLM as a code generation tool is that generating code is only a small fraction of the overall cost of code. The ongoing work of dealing with existing code is the vast majority of the cost, goes the argument. There are code bases where this statement is clearly true. In heavily used products with a growing user base adding new ways of using programs, engineers do spend most of their time navigating the unwritten misunderstood interdependencies of existing code. To someone whose job is that, a computer you can talk to that produces a usable result for “implement bubble sort in fortran” sits somewhere between a toy and nuisance. Sometimes attempts to compare this to financial concepts such as “assets” and “debts” are used, but I will skip them as they never seem to quite fit. Whether this understanding of engineering, which is correct for some projects, is correct for engineering as a whole is questionable. Very few programs ever reach the point that they are heavily used and long-lived. Almost everything has few users, or is short-lived, or both. Let’s not extrapolate from the experiences of engineers who only take jobs maintaining large existing products to the entire industry. Fortunately we do not have to answer the question of what the entirety of programming looks like to say if agents are valuable, because agents are potentially useful even in the maintenance of existing products. An agent is not just code generation. It is an LLM with a series of tools that reads code, and changes code by editing files. Agents are as happy removing code as adding it. The result is change. Yes, the change is “more work” because the person driving an agent has to understand the change being made. Yes, the agent may not have sufficient understanding to change large products yet. But change is the ultimate goal of the engineer driving the tool, and agents are demonstrating the ability to edit moderately large projects with some care. That makes them potentially useful tools everywhere in the programming industry. If agents are not good enough yet (and that’s a big if, it is well worth testing), they are on the right track and now have all the fundamentals to get there. A related, but tricker topic is one of the quieter arguments passed around for harder-to-use programming tools (for example, programming languages like C with few amenities and convoluted build systems) is that these tools act as gatekeepers on a project, stopping low-quality mediocre development. You cannot have sprawling dependencies on a project if no-one can figure out how to add a dependency. If you believe in an argument like this, then anything that makes it easier to write code: type safety, garbage collection, package management, and LLM-driven agents make things worse. If your goal is to decelerate and avoid change then an agent is not useful. Unlike somewhat mysterious ideas like the transformer architecture that underpins LLMs, mechanical feedback into an LLM seems “obvious.” It is clear to those of us who think about developer tools: I have been working on it for over a year now, but our first revision of sketch.dev in January, despite having go tooling wired into an LLM, hardly counts as an agent by the standards of what we can use today. (The difference in utility between the first revision of sketch and the current open source project is astonishing.) The utility of feedback is also clear to everyone who works in the ML field, as has been one of the core tenants of the field for 50 years.sketchreinforcement learning The answer is a critical chunk of the work for making agents useful is in the training process of the underlying models. Models have to robustly call the tools they are given and make good use of them. We are only now starting to see frontier models that are good at this. And while our goal is to eventually work entirely with open models, the open models are trailing the frontier models in our tool calling evals. We are confident the story will change in six months, but for now, useful repeated tool calling is a new feature for the underlying models.The LLMs of 2023 could not drive agents, the LLMs of 2025 are optimized for it. It is challenging to think about what is next in a fast-moving field where most engineers today are not even using these tools yet. But those of us building these tools need to think about it. Most use of agents today is either in the IDE or in a checked out repository on a development machine. This is an easy way to get started, it’s easy to install a vscode fork or a command line tool and run it. But it has two significant limits. The first major limit is that agents need a lot of safeguards built into them to avoid them running amok. One of my machines has production credentials squirreled away on it I can use to do deployments. As part of running commands is the agent going to grab those credentials and run my deploy script for its uncommitted changes? Avoiding this, if your agent runs directly on your real computer, involves a lot of asking the programmer to babysit the tool calls and give the agent permission to run commands. And even then, there are dangers. I can say “yes to all” to running curl, only to forget a web server I’m developing that’s running on localhost doesn’t have any auth yet and can read arbitrary files off disk. Oops, my production credentials are exposed again. The second major limit is requiring developers to use their bespoke manually-configured development environments to run an agent means we are effectively serializing execution of an agent. As mentioned earlier, one of the major weaknesses of agents is they take several minutes per turn to produce good results (and probably will for the foreseeable future). One way to make better use of our time is for an engineer to be driving several agents simultaneously, but this sort of agent deployment makes that impractical. We are exploring solving both of these issues in using containers. By default sketch creates a little development environment in a container with a copy of the source code and the runner has the ability to extract git commits from the container. This lets you run many simultaneously. (Other agents are also exploring this space, agents in general are a very busy space!)sketch.dev To give you an example of how this parallelism can work in practice, while I was working on the GitHub auth mentioned in the above example, I was about to complain in a group chat about how ugly a form I made is. Instead, I opened a second copy of Sketch and pasted in a screenshot of the form and wrote “this is ugly, please make it less ugly.” I went back to thinking about auth, and when I remembered I had typed that a half hour later I looked at the results and decided yes, it is an improvement. So I asked it to rebase, it resolved the merge conflict (one of my least favorite programming tasks!), and I pushed the update. It was not nearly the quality a real designer can produce, but it was certainly better than the awful unstyled form I had created during testing. In a past life I would have created an issue in the issue tracker, by which I mean I would have made a note in my personal to-do.txt file to create an issue, because issues are visible to other programmers and require typing something more coherent and constructive than pasting a screenshot and saying “this is ugly, please fix.” One of the great things about talking to an agent is if you only have a tiny bit of mental energy left you have a good chance of getting something of value out of 30 seconds work. The likelihood I would have ever turned the to-do.txt entry into a real issue is, honestly, pretty low. So our takeaway from exploring the UX of agents for the past six months is that we may finally have a good use for “development” containers. An open question that we are spending a lot of time exploring is: what does the IDE become in this environment? Let us say we start work by talking to an agent. The execution container can be completely derived from GitHub, the changes shown as a diff and pushed as a branch (or PR). Is that the actual workflow? In practice, many of the commits generated by sketch, or any other agent we have tried, require some human cleanup afterwards. (Our experience is, when programmers first use an agent most commits need manual intervention, but practice writing prompts reduces the number of necessary intervention.) It could be as simple as editing a comment or changing a variable name. It can be more significant. How do we make that work with a containerized world? So far we have several workflows that we quite like that other agents have not yet explored. One is making the diff view editable. You can type in the right-hand-side of Sketch’s diff view and it ends up in the commit and pushed for you. It is great for one-line edits. For the sorts of fixups where you want to run sed, or grep through the changes, or run the tests in an interesting way, we have had great success with giving the user ssh access to the container. Not only can you shell in (and we have a little web terminal in the UI too), it is easy to turn this into a vscode:// URL that can be opened directly in a traditional IDE, which is sometimes exactly what we want. Finally, we let you write “code review” style comments on the diff view in sketch.dev and send them back to the agent as feedback. Commenting directly on a line of a diff can greatly reduce the amount we have to type (and is very familiar from our long practice in the code review process). Overall, we are convinced that containers can be useful and warranted for programming. The idea has been around for a long time but I have never personally wanted to start programming in a container. But cleaning up a diff that an agent wrote for me in a container is far more interesting. The process of learning and experimenting with LLM-derived technology has been an exercise in humility. In general I love learning new things when the art of programming changes: dealing with the switch to multi-core programming, rethinking software design when SSDs replaced HDDs and dropped seek latencies, when everything was suddenly reachable on the same inter-network, these sorts of shifts in the industry are a joy to deal with. (Not to be confused with useless makework like the latest JavaScript framework, the latest cloud provider service, or the latest cluster orchestration software.) These sorts of challenges affected how my programs work: the choice of algorithms, languages, libraries, etc. But LLMs, and more specifically Agents, affect the process of writing programs in a new and confusing way. Absolutely every fundamental assumption about how I work has to be questioned, and it ripples through all the experience I have accumulated. There are days when it feels like I would be better off if I did not know anything about programming and started from scratch. And it is still changing. The way this all works today is very different than six months ago, and I do not believe we are at a stable point yet. I believe a lot of norms around team interactions will also be changing. For example, . It needs to be reinvented. The “IDE”, which has never been nearly as integrated as it has claimed to be, needs to be torn up and repurposed. The industry now seems aware of this, but has not taken an agent-first approach yet. There is a lot to do, and I suspect in six months things will be very different again. Curiosity and humility will get us through it, but even more than usual I would suggest turning away from internet forums where people talk in circles about this technology. That is a job for an agent.the mostly-broken process of half-hearted code review that has been adopted across the industry no longer solves the problems it barely solved before This post also appears on the .sketch blog Thanks to Sean McCullough, Philip Zeyliger, and Thomas Ptacek for reviewing this post. Define Agent Whiteboard programming Agents are LLMs with environmental feedback Example: Github App auth Example: SQL conventions around JSON “Asset” and “debt” models of code Why are we seeing agents now? What is next What does the IDE become? A final note bash(cmd) patch(hunks) todo(tasks) web_nav(url), web_eval(script), web_logs(), web_screenshot(), etc keyword_search(keywords) codereview() API use is greatly improved because the agent can web search for documentation and `curl` the docs into its context window. Compiler feedback reduces syntax errors and hallucinated interfaces. The compiler in a full development environment also improves dependency management, by helping the LLM understand features of the particular version of a dependency that a project uses. (This is an ongoing weakness of LLMs though, they will use documentation from a newer API version or make assumptions that apply only to older versions of a dependency. We have plans to address with this sketch.dev) Test failures help find errors in generated code, and have a positive reinforcing effect of getting the LLM to write tests for new code. LLMs can handle larger code bases than fit in the context window because they selectively choose which pieces of the codebase to read. Agents can try the end product themselves: run the code, take a screenshot of a page from the browser, feed it back into the model and keep tweaking the CSS based on the end-to-end rendering. When things go really wrong, read the server logs, find the panic, fix it and add a test. for install := range allAppInstallations { for r := range install.Repositories() { if r.IsCollaborator(user) { // add to available repositories } } } CREATE TABLE IF NOT EXISTS Cookie ( Cookie TEXT NOT NULL AS (Data->>'cookie') STORED UNIQUE, -- PK UserID INTEGER NOT NULL AS (Data->>'user_id') STORED REFERENCES User (UserID), Created INTEGER NOT NULL AS (unixepoch(Data->>'created')) STORED, LastUsed INTEGER AS (unixepoch(Data->>'last_used')) CHECK (LastUsed>0), Data JSONB NOT NULL );

8th Jun 2025 • 1 votes
How I program with LLMs

How I program with LLMs 2025-01-06 This document is a summary of my personal experiences using generative models while programming over the past year. It has not been a passive process. I have intentionally sought ways to use LLMs while programming to learn about them. The result has been that I now regularly use LLMs while working and I consider their benefits net-positive on my productivity. (My attempts to go back to programming without them are unpleasant.) Along the way I have found oft-repeated steps that can be automated, and a few of us are working on building those into a tool specifically for Go programming: . It’s very early but so far the experience has been positive.sketch.dev I am typically curious about new technology. It took very little experimentation with LLMs for me to want to see if I could extract practical value. There is an allure to a technology that can (at least some of the time) craft sophisticated responses to challenging questions. It is even more exciting to watch a computer attempt to write a piece of a program as requested, and make solid progress. The only technological shift I have experienced that feels similar to me happened in 1995, when we first configured our LAN with a usable default route. We replaced the shared computer in the other room running Trumpet Winsock with a machine that could route a dialup connection, and all at once I had The Internet on tap. Having the internet all the time was astonishing, and felt like the future. Probably far more to me in that moment than to many who had been on the internet longer at universities, because I was immediately dropped into high internet technology: web browsers, JPEGs, and millions of people. Access to a powerful LLM feels like that. So I followed this curiosity, to see if a tool that can generate something mostly not wrong most of the time could be a net benefit in my daily work. The answer appears to be yes, generative models are useful for me when I program. It has not been easy to get to this point. My underlying fascination with the new technology is the only way I have managed to figure it out, so I am sympathetic when other engineers claim LLMs are “useless.” But as I have been asked more than once how I can possibly use them effectively, this post is my attempt to describe what I have found so far. There are three ways I use LLMs in my day-to-day programming: As this is about the of programming, this has been a fundamentally qualitative process that is hard to write about with quantitative rigor. The closest I will get to data is to say: it appears from my records that for every two hours of programming I do now, I accept more than 10 autocomplete suggestions, use LLM for a search-like task once, and program in a chat session once.practice The rest of this is about extracting value from chat-driven programming. Let me try to motivate this for the skeptical. A lot of the value I personally get out of chat-driven programming is I reach a point in the day when I know what needs to be written, I can describe it, but I don’t have the energy to create a new file, start typing, then start looking up the libraries I need. (I’m an early-morning person, so this is usually any time after 11am for me, though it can also be any time I context-switch into a different language/framework/etc.) LLMs perform that service for me in programming. They give me a first draft, with some good ideas, with several of the dependencies I need, and often some mistakes. Often, .I find fixing those mistakes is a lot easier than starting from scratch This means chat-based programming may not be for you. I am doing a particular kind of programming, product development, which could be roughly described as trying to bring programs to a user through a robust interface. That means I am building a lot, throwing away a lot, and bouncing around between environments. Some days I mostly write typescript, some days mostly Go. I spent a week in a C++ codebase last month exploring an idea, and just had an opportunity to learn the HTTP server-side events format. I am all over the place, constantly forgetting and relearning. If you spend more time proving your optimization of a cryptographic algorithm is not vulnerable to timing attacks than you do writing the code, I don’t think any of my observations here are going to be useful to you. Give an LLM a specific objective and all the background material it needs so it can craft a well-contained code review packet and expect it to adjust as you question it. There are two major elements to this: The ideal task for an LLM is one where it needs to use a lot of common libraries (more than a human can remember, so it is doing a lot of small-scale research for you), working to an interface you designed or produces a small interface you can verify as sensible quickly, and it can write readable tests. Sometimes this means choosing the library for it, if you want something obscure (though with open source code LLMs are quite good at this). You always need to pass an LLM’s code through a compiler and run the tests before spending time reading it. They all produce code that doesn’t compile sometimes. (Always making errors I find surprisingly human, every time I see one I think, there but for the grace of God go I.) The better LLMs are very good at recovering from their mistakes, often all they need is for you to paste the compiler error or test failure into the chat and they fix the code. There are vague tradeoffs we make every day around the cost of writing, the cost of reading, and the cost of refactoring code. Let’s take Go package boundaries as an example. The standard library has a package “net/http” that contains some fundamental types for dealing with wire format encoding, MIME types, etc. It contains an HTTP client, and an HTTP server. Should it be one package, or several? Reasonable people can disagree! So much so, I do not know if there is a correct answer today. What we have works, after 15 years of use it is still not clear to me that some other package arrangement would work better. Advantages of a larger package include: centralized documentation for callers, easier initial writing, easier refactoring, easier sharing of helper code without devising robust interfaces for them (which often involves pulling the fundamental types of a package out into yet another leaf package filled with types). The disadvantages include the package being harder to read because many different things are going on (try reading the net/http client implementation without tripping up and finding yourself in the server code for a few minutes), or it being harder to use because there is too much going on in it. For example I have a codebase that uses a C library in some fundamental types, but parts of the codebase need to be in a binary widely distributed to many platforms that does not technically need the C library, so have more packages than you might expect in the codebase isolating the use of the C library to avoid cgo in the multi-platform binary. There are no right answers here, instead we are trading off different types of work that an engineer will have to do (upfront and ongoing). LLMs influence those tradeoffs: Let me work an example to combine a few of the discussed ideas: Write a reservoir sampler for the quartiles of floats. First off, package structure. Were I doing this before LLMs, I would have chosen to have some sort of streamstat package that contained several algorithms, maybe one per file. This does not seem to be a unique opinion, here is an open source package following that model. Now, I want just this one algorithm in its own package. Other variants or related algorithms can have their own package.quantile Next up, what do we get from an LLM. The first pass is not bad. That prompt, with some details about wanting it in Go got me quartile_sampler.go: The core interface is good too: Great! There are also tests. An aside: this may be the place to stop. Sometimes I use LLM codegen as a form of specialized search. E.g. I’m curious about reservoir sampling, but want to see how the algorithm would be applied under some surprising constraint, for example time-windowed sampling. Instead of doing a literature search I might amend my prompt for an implementation that tracks freshness. (I could also ask it to include references to the literature in the comments, which I could manually check to see if it’s making things up or if there’s some solid research to work from.) Often I spend 60 seconds reading some generated code, see an obvious trick I hadn’t thought of, then throw it away and start over. Now I know the trick is possible. This is why it is so hard to attribute value generated by LLMs. Yes sometimes it makes bad code, gets stuck in a rut, makes up something impossible (it hallucinated a part of the monaco API I wish existed the other day) and wastes my time. It can also save me hours by pointing out something relevant I don’t know. Back to the code. Fascinatingly, the initial code produced didn’t compile. In the middle of the Quartiles implementation there was the line: Which is a fine line, sorted is a slice defined a few lines earlier. But the value is never used so gopls (and the Go compiler if you run go build) immediately says: This is a very easy fix. If I paste the error back into the LLM it will correct it. Though in this case, as I’m reading the code, it’s quite clear to me that I can just delete the line myself, so I do. Now the tests. I got what I expected. In quartile_sampler_test.go: Exactly the sort of thing I would write! I would run some cases through another implementation to generate expected outputs and copy them into a test like this. But there are two issues with this. The first is the LLM did run these numbers through another implementation. (To the best of my knowledge. When using a sophisticated LLM service, it is hard to say for sure what is happening behind the scenes.) It made them up, and LLMs have a reputation for being weak at arithmetic. So this sort of test, while reasonable for a human to write because we base it on the output of another tool, or if we are particularly old-school do some arithmetic ourselves, is not great from an LLM.not The second issue with this is we can do better. I am happy we now live in a time when programmers write their own tests, but we do not hold ourselves to the same standards with tests as we do with production code. That is a reasonable tradeoff, there are only so many hours in the day. But what LLMs lack in arithmetical prowess, they make up for in enthusiasm. Let’s ask for an even better test. This got us some new test code: The original test from above has been reworked to to use checkQuartiles and we have something new: This is fun, because it's wrong. My running tool immediately says:gopls Pasting that error back into the LLM gets it to regenerate the fuzz test such that it is built around a function that uses to extract floats from the data slice. Interactions like this point us towards automating the feedback from tools: all it needed was the obvious error message to make solid progress towards something useful. I was not needed.func(t *testing.T, data []byte)math.Float64frombits Doing a quick survey of the last few weeks of my LLM chat history shows (which as I mentioned earlier, is not a proper quantitative analysis by any measure) that more than 80% of the time there is a tooling error, the LLM can make useful progress without me adding any insight. About half the time it can completely resolve the issue without me saying anything of note, I am just acting as the messenger. There was a programming movement some 25 years ago focused around the principle “don’t repeat yourself.” As is so often the case with short snappy principles taught to undergrads, it got taken too far. There is a lot of cost associated with abstracting out a piece of code so it can be reused, it requires creating intermediate abstractions that must be learned, and it requires adding features to the factored out code to make it maximally useful to the maximum number of people, which means we depend on libraries filled with useless distracting features. The past 10-15 years has seen a far more tempered approach to writing code, with many programmers understanding it is better to reimplement a concept if the cost of sharing the implementation is higher than the cost of implementing and maintaining separate code. It is far less common for me to write on a code review “this isn’t worth it, separate the implementations.” (Which is fortunate, because people really don’t want to hear things like that after they have done all the work.) Programmers are getting better at tradeoffs. What we have now is a world where the tradeoffs have shifted. It is now easier to write more comprehensive tests. You can have the LLM write the fuzz test implementation you want but didn’t have the hours to build properly. You can spend a lot more time writing tests to be readable, because the LLM is not sitting there constantly thinking “it would be better for the company if I went and picked another bug off the issue tracker than doing this.” So the tradeoff shifts in favor of having more specialized implementations. The place where I expect this to be most visible is language-specific . Every major company API comes with dozens of these, usually low quality, wrappers written by people who aren’t actually using their implementations for a specific goal, instead are trying to capture every nook and cranny of an API in a large and complex interface. Even when it is done well, I have found it easier to go to the REST documentation (usually a set of curl commands), and implement a language wrapper for the 1% of the API I actually care about. It cuts down the amount of the API I need to learn upfront, and it cuts down how much future programmers (myself) reading the code need to understand.REST API wrappers For example, as part of my recent work on sketch.dev I implemented a Gemini API wrapper in Go. Even though the in Go has been carefully handcrafted by people who know the language well and clearly care, there is a lot to read to understand it:official wrapper My simplistic initial wrapper was 200 lines of code total, one method, three types. Reading the entire implementation is 20% of the work of reading the documentation of the official package, and if you decide to try digging into its implementation you will discover that it is a wrapper around another largely code-generated implementation with protos and grpc and the works. All I want is to cURL and parse a JSON object. There obviously comes a point in a project, where Gemini is the foundation of the entire app, where nearly every feature is used, where building on gRPC aligns well with the telemetry system elsewhere in your organization, where you should use the large official wrapper. But most of the time it is so much more time consuming, both upfront and ongoing, to do so given we almost always want only some wafer-thin sliver of whatever API we need to use today, that custom clients, largely written by a GPU, are far more effective for getting work done. So I foresee a world with far more specialized code, with fewer generalized packages, and more readable tests. Reusable code will continue to thrive around small robust interfaces and otherwise will be pulled apart into specialized code. Depending how well this is done, it will lead to either better software or worse software. I would expect both, with a long-term trend towards better software by the metrics that matter. As a programmer my instinct is to make computers do work for me. It is a lot of work getting value out of LLMs, how can a computer do it? I believe the key to solving a problem is not to overgeneralize. Solve a particular problem and then expand slowly. So instead of building a general-purpose UI for chat programming that is just as good at COBOL as it is for Haskell, we want to focus on one particular environment. The bulk of my programming is in Go, and so what I want is easy to imagine for a Go programmer: A few of us have built an early prototype of this: .sketch.dev The goal is not a “Web IDE” but rather to challenge the notion that chat-based programming even belongs in what is traditionally called an IDE. IDEs are collections of tools arranged for people. It is a delicate environment where I know what is going on. While an LLM is ultimately a developer tool, it is one that needs its own IDE to get the feedback it needs to operate effectively.I do not want an LLM spewing its first draft all over my current branch. Put another way: we didn’t embed goimports into sketch for it to be used by humans, but to get Go code closer to compiling using automatic signals, so that the compiler can provide better error feedback to the LLM driving it. It might be better to think of sketch.dev as a “Go IDE for LLMs”. This is all very recent work with a lot left to do, e.g. git integration so we can load existing packages for editing and drop the results on a branch. Better test feedback. More console control. (If the answer is to run sed, run sed. Be you the human or the LLM.) We are still exploring, but are convinced that focusing an environment for a particular kind of programming will give us better results than the generalized tool. Background Overview Why use chat at all? Chat-based LLMs do best with exam-style questions Extra code structure is much cheaper An example Where are we going? Better tests, maybe even less DRY Automating these observations: sketch.dev . This makes me more productive by doing a lot of the more-obvious typing for me. It turns out the current state of the art can be improved on here, but that’s a conversation for another day. Even the standard products you can get off the shelf are better for me than nothing. I convinced myself of that by trying to give them up. I could not go a week without getting frustrated by how much mundane typing I had to do before having a FIM model. This is the place to experiment first. Autocomplete . If I have a question about a complex environment, say “how do I make a button transparent in CSS” I will get a far better answer asking any consumer-based LLM, o1, sonnet 3.5, etc, than I do using an old fashioned web search engine and trying to parse the details out of whatever page I land on. (Sometimes the LLM is wrong. So are people. The other day I put my shoe on my head and asked my two year old what she thought of my hat. She dealt with it and gave me a proper scolding. I can deal with LLMs being wrong sometimes too.) Search . This is the hardest of the three. This is where I get the most value of LLMs, but also the one that bothers me the most. It involves learning a lot and adjusting how you program, and on principle I don’t like that. It requires at least as much messing about to get value out of LLM chat as it does to learn to use a slide rule, with the added annoyance that it is a non-deterministic service that is regularly changing its behavior and user interface. Indeed, the long-term goal in my work is to replace the need for chat-driven programming, to bring the power of these models to a developer in a way that is not so off-putting. But as of now I am dedicated to approaching the problem incrementally, which means figuring out how to do best with what we have and improve it.Chat-driven programming Avoid creating a situation with so much complexity and ambiguity that the LLM gets confused and produces bad results. This is why I have had little success with chat inside my IDE. My workspace is often messy, the repository I am working on is by default too large, it is filled with distractions. One thing humans appear to be much better than LLMs at (as of January 2025) is not getting distracted. That is why I still use an LLM via a web browser, because I want a blank slate on which to craft a well-contained request. Ask for work that is easy to verify. Your job as a programmer using an LLM is to read the code it produces, think about it, and decide if the work is good. You can ask an LLM to do things you would never ask a human to do. “Rewrite all of your new tests introducing an <intermediate concept designed to make the tests easier to read>” is an appalling thing to ask a human, you’re going to have days of tense back-and-forth about whether the cost of the work is worth the benefit. An LLM will do it in 60 seconds and not make you fight to get it done. Take advantage of the fact that .redoing work is extremely cheap As LLMs do better with exam-style questions, more and smaller packages make it easier to give a complete and yet isolated context for a piece of work. This is true for humans too, which is why we use packages at all, but we trade off package size against the extra typing/plumbing/filing to make more readable code. With an LLM both doing and benefiting from a big chunk of that extra work, the tradeoff shifts. (As a bonus, we humans get more readable code!) Smaller and more numerous packages can be compiled and tested independently of unrelated code. This is helpful for the LLM dev cycle as it means changes can be compiled and tested before other dependent packages are refactored, and the package has a simpler test environment. something like the Go playground, built around editing a package and tests with a chat interface onto editable code a little UNIX env where we can run go get and go test goimports integration gopls integration automatic model feedback: on model edit run go get, go build, go test, feedback missing packages, compiler errors, test failures to the model to try and get them fixed automatically // QuartileSampler maintains a reservoir sample to estimate quartiles of a stream // of float64 values. It uses reservoir sampling to maintain a representative // sample when processing large streams of data. type QuartileSampler struct { reservoir []float64 seen int maxSize int rng *rand.Rand } // NewQuartileSampler creates a new sampler that maintains up to maxSize samples. // A larger maxSize provides more accurate estimates but uses more memory. func NewQuartileSampler(maxSize int) *QuartileSampler { … } // Add adds a new value to the sampler. func (qs *QuartileSampler) Add(value float64) { … } // Quartiles returns the estimated 25th, 50th (median), and 75th percentiles // of the data seen so far. Returns (0,0,0) if no data has been added. func (qs *QuartileSampler) Quartiles() (q1, median, q3 float64) { if len(qs.reservoir) == 0 { return 0, 0, 0 } // Make a copy to avoid modifying the reservoir sorted := make([]float64, len(qs.reservoir)) copy(sorted, qs.reservoir) slices.Sort(sorted) n := len(sorted) q1 = percentile(sorted, 0.25) median = percentile(sorted, 0.50) q3 = percentile(sorted, 0.75) return q1, median, q3 } n := len(sorted) declared and not used: n func TestQuartileSampler(t *testing.T) { tests := []struct { name string data []float64 wantQ1 float64 wantMed float64 wantQ3 float64 epsilon float64 // allowed error for floating point comparison }{ { name: "basic sequence", data: []float64{1, 2, 3, 4, 5, 6, 7}, wantQ1: 2, wantMed: 4, wantQ3: 6, epsilon: 0.1, }, … } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { qs := NewQuartileSampler(100) // Use large reservoir for accurate testing for _, v := range tt.data { qs.Add(v) } q1, med, q3 := qs.Quartiles() if math.Abs(q1-tt.wantQ1) > tt.epsilon { t.Errorf("Q1 = %v, want %v (±%v)", q1, tt.wantQ1, tt.epsilon) } if math.Abs(med-tt.wantMed) > tt.epsilon { t.Errorf("Median = %v, want %v (±%v)", med, tt.wantMed, tt.epsilon) } if math.Abs(q3-tt.wantQ3) > tt.epsilon { t.Errorf("Q3 = %v, want %v (±%v)", q3, tt.wantQ3, tt.epsilon) } }) } } // referenceQuartiles calculates the exact quartiles for a slice of float64 values // using linear interpolation, matching the behavior expected from the sampler. func referenceQuartiles(data []float64) (q1, median, q3 float64) { … } // compareQuartiles checks if two sets of quartiles are within epsilon of each other. // Returns true if they match within the tolerance, false otherwise. func compareQuartiles(q1a, meda, q3a, q1b, medb, q3b, epsilon float64) bool { … } // checkQuartiles is a test helper that compares sampler output against the reference // implementation and reports any differences. func checkQuartiles(t *testing.T, data []float64, epsilon float64) { t.Helper() // Get reference values wantQ1, wantMed, wantQ3 := referenceQuartiles(data) // Get sampler values using a large reservoir for accuracy qs := NewQuartileSampler(1000) for _, v := range data { qs.Add(v) } gotQ1, gotMed, gotQ3 := qs.Quartiles() if !compareQuartiles(gotQ1, gotMed, gotQ3, wantQ1, wantMed, wantQ3, epsilon) { t.Errorf("Quartiles mismatch:\ngot (q1=%v, med=%v, q3=%v)\nwant (q1=%v, med=%v, q3=%v)\nepsilon=%v", gotQ1, gotMed, gotQ3, wantQ1, wantMed, wantQ3, epsilon) } } func FuzzQuartileSampler(f *testing.F) { // Add some seed corpus f.Add([]float64{1, 2, 3, 4, 5}) f.Fuzz(func(t *testing.T, data []float64) { // Use a larger epsilon for fuzzing since we might get more extreme values checkQuartiles(t, data, 0.2) }) } fuzzing arguments can only have the following types: string, bool, float32, float64, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, []byte $ go doc -all genai | wc -l 1155 In the tests, implement the simplest, most readable version of the standard code for quartiles over a fixed set of known values in a slice. Then pass the test cases through the standard code and the reservoir sampler and confirm they are within an epsilon of each other. Structure the comparison code such that it can be used in a fuzz test too.

6th Jan 2025 • 49 votes

More in programming

Approaching security as risks accelerate.

As is often the case recently, it’s been an interesting week on security with the NSA’s advisory, rampant speculation on Twitter, and the excellent writeup from Filippo Valsorda. Behind this specific issue, though, is an even more important theme: the rate of security findings is going to continue accelerating over the next several years, and every engineering organization has to figure out a strategy for navigating that. With the hope that it will be useful, this is my high-level summary of the strategy that we’re taking at Imprint. Diagnosis: what’s changed? Before solving a problem, you have to diagnose what’s going wrong. My diagnosis of the current situation is: Attackers are accelerating, getting more sophisticated, and getting cheaper. Since the Eternal September of last year’s winter break when models finally crossed a threshold of being really, really effective at software tasks, they’ve continued to both get better and get cheaper. Combined with the rise of abliterated models, that means that surprisingly effective attacks are available to anyone who wants them and has even a very modest amount of funds. However fast these attackers are today, we should expect them to be multiple times faster every year for at least the next few years. Attackers can and do search further downstream because the highest-value targets are already under so much pressure. You may be a low-value target, and everyone is a low-value target compared to someone else, but the highest-value targets are already under so much attack volume that it’s surprisingly difficult to attack them in a novel way. The reduction of cost means the highest-value targets are even less interesting for the incremental attacker, and lower-value targets are coming under more load as well. The mathematics behind “best-in-class defenses” is shifting. Many of the techniques for securing software are shifting. They are not shifting overnight, but it seems likely that we will have to rework the algorithms defending our software multiple times over the next few years as advances in mathematics accelerate. The majority of defenders have access to more capital and context than attackers. Even though the attacks are getting much cheaper, defenders can benefit equally from every advantage, and only have to defend one company versus having to scan an infinite number of targets. Defenders generally have substantially more resources than any attacker would (perhaps excluding nation-state actors), and critically have access to the full context of their environment to identify and prevent attacks. Capabilities to identify vulnerabilities are substantially improved. With a combination of vendors (e.g. Wiz, Panther, Claude Security, etc.), you can get an excellent stream of potential issues flowing in to evaluate. These tools are increasingly a combination of what’s always worked (e.g. static analysis, monitoring suspicious patterns in SIEM) and what has newly worked over the past 12 months (e.g. excellent foundation models). Designing out categories of weaknesses is vastly easier than it was even a year ago. This one is a bit counter-intuitive, but my experience is that it’s conceptually easier and faster to design out entire categories of problems than to solve the full volume of one-offs. I’ve added a Designing out categories header below to make this argument in more detail. Throughout this piece, when I talk about “designing categories” out, I’m specifically referring to John Ousterhout’s idea of “defining errors out of existence” that he explores in A Philosophy of Software Design. Policy & Operations: what to do about it? The above issues in the diagnosis are intimidating. However, I believe the best approach to addressing them is both fairly compelling and accessible to even very modestly funded companies. There’s no way to solve security; even the very best security companies will be exposed to breaches over time, but I think this is an effective combination of policy and operations to address our collective circumstances: Standardize on highly funded, security-minded vendors. Access to information about vulnerabilities is being directed to a small number of highly visible companies. If you’re not in one, you largely don’t have access to accurate information about security risks. Standardize on vendors with strong access to the latest findings: they are likely to have fixed particularly serious issues before you are aware of the findings. There are legitimate gripes about whether this is a good way for things to be working, but it’s not particularly clear what an effective alternative to the status quo looks like, and strategy’s goal is to protect our company, not to preserve fair competition in the market. Ensure your harness has comprehensive access to context about your setup. At one point, our Cloudflare configuration was not managed via Terraform. It was, in some ways, more convenient that way. However, it meant that static analysis made assumptions about how Cloudflare’s setup interacted with our backend code. Assumptions are the enemy, generating both false findings and missing gaps. We moved Cloudflare into Terraform, and ensured that our Terraform is equally available to our security scanners along with our backend code, clients (web, iOS, Android), our security scanner itself, and other relevant details. The combination of static analysis along with a frontier-class foundation model (e.g. Claude Mythos) is extremely valuable and works extremely well. However, it only works if you have set up your systems to make the entirety of the relevant context available to it. If not, attackers will have more context about your software than you do via inspection, and that is where weaknesses emerge. Automate detection, triaging, and ticketing. Have findings from your various suspicious pattern detection, automated attacking tools, security findings, and package dependency updates flow automatically–with zero human hands involved–into a centralized bucket of issues, enriched with as much relevant context as possible. Handle reconciling new findings into existing issues here. Automate initial resolution in a centralized harness. I’ve previously discussed our centralized harness, and that harness is a load-bearing part of our strategy here. As new issues are identified, immediately kick off resolution of those issues. Now when they reach a human, there is a proposed solution. Sometimes that solution is good enough to merge after reviewing it. Sometimes it’s misguided. In either case, you’re getting a fully-formed view on the problem and at least one option for addressing it. Automate clustering of problems into categories. Every week, have an automated process run to analyze the new findings, and look at the known categories of issues. Automatically enrich the known categories with new findings, and automatically create new clusters with the related issues. Automatically suggest categories of solutions that might support “designing out.” Assign clusters to experienced engineers to design out. For each cluster of problems, assign it to an experienced engineer to reason about how to close the gap permanently by making it effectively impossible to occur in your software. The next section will go into how to do this in more detail, but here let’s focus on the why. You can, sort of, solve one-offs by simply fixing them very quickly, but that still means you have these issues showing up in your software. If they show up, that’s a vulnerability. Then you can argue that we should be using automated code-review scanners to identify and prevent those issues in code review. I think that’s true-ish, but I don’t find it true in practice for a couple reasons. First, code review is inefficient: giving instructions is the slowest and least reliable way of preventing problems versus adding automated lints that are very quick and deterministic, so it’s quite easy for a code review to miss a particular problem, especially if you provide enough of them. This problem applies equally to non-deterministic approaches to solving this in the harness’ software development loop before code review. (If you say, let’s use deterministic ways to provide feedback, then I would say that we’re fully aligned: that is exactly what I mean by designing out.) Second, repurposing code review to introduce a wide variety of constraints tends to drive down cohesion of changes in a way that reduces quality over time. You’re almost always better off solving the categorical problem in one set of pull requests, and then adding the new functionality in a distinct pull request. Automated code review mechanisms almost always couple both concepts into a single change. You can make the argument that your code review should still be providing this feedback, and then the harness should be taking the feedback to solve the categorical problem and then solve the problem it’s actually focused on. I think directionally that’s right, but usually solving the category is sufficiently interesting that it’s a place where you really do want a human involved. Weekly review of the security operating system. Once you have all the above, perform a weekly deep-dive with the folks working on security looking at how the findings, resolutions, and categorical fixes are flowing through the system. These systems can get bottlenecked in so many places, especially early on. You have to keep reviewing the pipelines and triaging fixes. If you adopt these mechanisms, I think you’ll find yourself in a good place to keep accelerating as changes come. Most importantly, as new categories of problems come up, e.g. moving to post-quantum encryption, that is just a new category of problem to fix. Designing out categories of vulnerabilities Alright, so as the final part of this strategy, it’s important to align on what it means to design out a category of vulnerabilities. As an example, I’ll use a perennial favorite: inadvertently logging sensitive fields. This is a category of problem I’ve been dealing with my entire career. I remember once at Stripe in ~2017 arguing that we needed to move to an approach where every single sensitive value was stored in a specific type (e.g. string.SSN and string.PAN) that every logger knew how to handle. That made sense–everyone agreed we should–but who was going to do that massive project? Well, things are different in 2026: I did exactly this project myself at Imprint as a side project over the course of two weeks. It was a good chunk of work, but now we have complete visibility into the full lifecycle of every sensitive value through our codebase: that is what I mean by designing a category out of existence. My approach to this project was: As our automated findings improved and were ticketed, it became clear that one category was lack of complete lifecycle control over sensitive values in our codebase. For example, if a sensitive value was later added to an object, it was possible for that value to be emitted into a log. I worked a handful of one-off findings with Claude to make sure I really understood the problem as it existed in our codebase. This can feel unnecessary, but I think it’s so easy to misunderstand the underlying problem if you don’t dig into a few concrete examples quite deeply. Solving the wrong problem is a great way to waste time. Brainstorm with Claude how we could wholly eliminate this category of problem. This largely came down to: Banning all functions and logging verbs (e.g. %v) that allowed printed objects, moving all existing usage to an exception comment Adding specific types for each type of sensitive field, which log as expected depending on their type, and providing a mix of strategies depending on the type. For example, most of these write to logs as [REDACTED], but some write with a few pieces of data, e.g. [REDACTED] XXX-1234. Less sensitive types offer a .Digest which provides a value that’s stable within an environment using a shared secret within that environment Orchestrate implementing those capabilities, the initial comment-exceptions of existing cases, and then the slice-by-slice migration of the entire codebase such that all exceptions were removed. This took fewer than 200 pull requests to fully implement: some of them were large, and they were sliced based on what would minimize merge conflicts and maximize reviewability for the areas that had felt risky, mostly regarding where a field might be used downstream in data pipelines. This was only possible because our codebase is so highly visible to our harnesses, and because our central harness is highly usable. For example, I must have had 100+ merge conflicts across this project, but I didn’t even think about any of them; they just automatically got fixed within the centralized harness without me being aware they had occurred. I don’t mean to imply that this was easy; it was a lot of work that required a good amount of thinking, but now our codebase has total control over what is used and logged, and we can statically enforce claims about exactly how each kind of sensitive data is used. Our code review doesn’t even have to think about logging sensitive data accidentally, because that category of error cannot be represented in our codebase.

6 hours ago • 1 votes
Atria Snowflakes

In honor of the upcoming winter season, I designed a set of five crochet snowflakes that hold their shape fairly well without stiffening, as I don't like to stiffen my crochet objects.1 I originally designed these five snowflakes for fingering weight linen yarn, but I decided later to also ensure they worked well with lace weight yarn and size 10 crochet thread. Please do not claim this pattern as your own or sell, copy, or distribute it outside of linking to the pattern on my site or its Ravelry pattern page. You may sell items made from this pattern if you name the pattern and credit me as the designer: Atria Snowflakes by Liz Denys. Thank you so much for respecting my work! This pattern is also available as a pdf. Materials & tools *Note that estimates for the amount of yarn needed are included later in the pattern for each of the snowflakes. Lace weight snowflakes: Lace weight linen yarn or size 10 cotton crochet thread, some suggestions, including twist direction2 information: Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/2 (lace)3 (s-twist) Maiwa Honest Yarn Organic Linen in lace weight (s-twist) Euroflax linen lace weight (s-twist) Aunt Lydia's Classic 10 crochet thread4 (z-twist) Scheepjes Maxi Sweet Treat/Maxi Sugar Rush/Maxi5 (z-twist) Laughing Hens Daisy Crochet Cotton, (s-twist) 1.75 mm hook Fingering weight snowflakes: Fingering weight linen yarn, some linen yarn suggestions: Quince Sparrow (s-twist) Flax and Twine Daytime Linen in fingering weight (s-twist) Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/4 fingering weight (s-twist) Maiwa Honest Yarn Organic Linen in fingering weight (s-twist) 2.5 mm hook Other materials & tools: scissors yarn needle for weaving in ends blocking mats and pins a bit of metallic embroidery or sewing thread for adding a hanging loop, optional Stitches & abbreviations I use US crochet terminology. ch - chain: yarn over and pull through the loop on the hook slst - slip stitch: place hook in stitch and pull through both stitch and the loop on the hook sc - single crochet: place hook in stitch and pull through (2 loops on the hook), yarn over and pull through the loops inc - single crochet increase: 2 sc in the same stitch hdc - half double crochet: yarn over, place hook in stitch and pull through (3 loops on the hook), yarn over and pull through all 3 loops dc - double crochet: yarn over, place hook in stitch and pull through (3 loops on the hook), yarn over and pull through 2 loops (2 loops left on the hook), yarn over and draw through the last 2 loops tr - treble crochet: yarn over twice, place hook in stitch and pull through (4 loops on the hook), yarn over and pull through 2 loops (3 loops left on the hook), yarn over and pull through 2 loops (2 loops left on the hook), yarn over and draw through the last 2 loops ch-2-sc-cluster - ch 2, sc in the front of the 2nd chain from your hook. Note: this stitch will twist the hook around the front of the work as the yarn is pulled through the 2nd chain from the hook during the sc. This is intentional! I've also seen this "cluster" type stitch called a "group" stitch sometimes.6 (...) x $num and * (...) * x $num - repeat instructions in the parenthesis $num times (the asterisks are included in long/split lines for increased legibility) {...} - enclosed stitches are all done in the same stitch in the chain space - work stitches around the entire chain instead of in the loops of the chain; this may involve more or fewer stitches than the number of stitches in the chain in the single-chain space - work stitches around the entire chain stitch instead of inside the loops of the chain (yes, even though it's just a single chain stitch) Atria Snowflake I Lace weight Atria Snowflake I: Roughly 4 yards/3.7 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 1 ⅝ inches by 1 ½ inches/4.1 cm by 3.8 cm7 Fingering weight Atria Snowflake I: Roughly 4.3 yards/4 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ⅛ inches by 1 ⅞ inches/5.4 cm by 4.8 cm Instructions for Atria Snowflake I Foundation & round 1: In magic ring8, ch 8 (first 3 chains count as the 1st dc9), dc, (dc, ch 5, dc) x 5. slst into the 3rd chain of 1st dc to join the round10. (12 dc + 6 chain spaces) Round 2: sk the stitch you slipped into to join the last round, {slst, sc, hdc, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, hdc, sc, slst} in the chain space, ch-2-sc-cluster, sk, * ( sk, {slst, sc, hdc, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, hdc, sc, slst} in the chain space, ch-2-sc-cluster, sk ) * x 5. slst into the 1st slst in the first chain space to join the round. (48 stitches + 24 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake II Lace weight Atria Snowflake II: Roughly 4.7 yards/4.3 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 1 ¾ inches by 1 ½ inches/4.5 cm by 3.8 cm Fingering weight Atria Snowflake II: Roughly 5.5 yards/4.8 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ⅝ inches by 2 ¼ inches/6.7 cm by 5.7 cm Instructions for Atria Snowflake II Foundation & round 1: In a magic ring, ch 2 (this counts as the 1st dc11), 11 dc. slst into the second ch of 1st dc. (12 dc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, sk, ({dc, ch 5, dc}, sk) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch-2-sc-cluster, tr, dc, hdc} in the chain space, sc in the next dc, ch-2-sc-cluster, * ( sc in the next dc, {hdc, dc, tr, ch-2-sc-cluster, tr, dc, hdc} in the chain space, sc in the next dc, ch-2-sc-cluster ) * x 5. slst into the 1st sc to join the round. (48 stitches + 12 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake III Lace weight Atria Snowflake III: Roughly 6 yards/5.5 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 2 ¼ inches by 2 inches/5.7 cm by 5.1 cm Fingering weight Atria Snowflake III: Roughly 6.9 yards/6.3 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ¾ inches by 2 ⅜ inches/7.0 cm by 6.0 cm Instructions for Atria Snowflake III Foundation & round 1: In a magic ring, 6 sc. slst into the 1st sc. (6 sc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, ({dc, ch 5, dc}) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, sc in the next dc, * ( sc in the next dc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, sc in the next dc ) * x 5. slst into the 1st sc to join the round. (48 stitches + 6 single-chain spaces) Round 4: sk the stitch you slipped into to join the last round, slst into the next stitch (this is an hdc), 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space12, 3 slst, ch-2-sc-cluster, sk, * ( sk, 3 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space13, 3 slst, ch-2-sc-cluster, sk ) * x 5. slst into the slst14 you made to join the past round (the first stitch that was skipped this round). (60 stitches + 24 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake IV Lace weight Atria Snowflake IV: Roughly 9.3 yards/8.5 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 3 inches by 2 ½ inches/7.6 cm by 6.4 cm Fingering weight Atria Snowflake IV: Roughly 11.5 yards/10.5 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 3 ¾ inches by 3 ⅛ inches/9.5 cm by 7.9 cm Instructions for Atria Snowflake IV Foundation & round 1: In a magic ring, 6 sc. slst into the 1st sc. (6 sc) Round 2: ch 2 (this counts as the 1st sc), sc into the same stitch joined in last round, 5 inc. slst into the 2nd chain of 1st sc to join the round. (12 sc) Round 3: ch 6 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, sk, ({dc, ch 3, dc}, sk) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 4: sc into the same stitch as you slipped into to join the last round, {hdc, dc, ch 3, dc, hdc} in the chain space, sc in the next dc, ch 3, * ( sc in the next dc, {hdc, dc, ch 3, dc, hdc} in the chain space, sc in the next dc, ch 3 ) * x 5. slst into the 1st sc to join the round. (36 stitches + 12 chain spaces) Round 5: sk the stitch as you slipped into to join the last round, sc, hdc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, hdc, sc, sk, {hdc, ch 1, hdc} in the chain space, * ( sk, sc, hdc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, hdc, sc, sk, {hdc, ch 1, hdc} in the chain space ) * x 5. slst into the 1st sc of this round (second stitch) to join the round. (72 stitches + 12 single-chain spaces) Round 6: sk the stitch you slipped into to join the last round15, slst into the next stitch (this was the 1st hdc in the previous round), slst, ch-2-sc-cluster, sk, slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space16, slst, ch-2-sc-cluster, sk, 4 slst, {slst, ch-2-sc-cluster, slst} the single-chain space17, slst, * ( 3 slst, ch-2-sc-cluster, sk, slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space18, slst, ch-2-sc-cluster, sk, 4 slst, {slst, ch-2-sc-cluster, slst} in the single-chain space19, slst ) * x 5. slst into the slst20 you made to join the past round (the first stitch that was skipped this round). (96 stitches + 36 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block. Atria Snowflake V Lace weight Atria Snowflake V: Roughly 13.9 yards/12.7 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 3 ¾ inches by 3 ⅛ inches/9.5 cm by 7.9 cm Fingering weight Atria Snowflake V: Roughly 16.8 yards/15.4 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 4 ½ inches by 3 ⅞ inches/11.4 cm by 9.8 cm Instructions for Atria Snowflake V Foundation & round 1: In a magic ring, ch 2 (this counts as the 1st dc21), 11 dc. slst into the second ch of 1st dc. (12 dc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc, (dc, ch 5, dc) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch 3, tr, dc, hdc} in the chain space, sc in the next dc, * ( sc in the next dc, {hdc, dc, tr, ch 3, tr, dc, hdc} in the chain space, sc in the next dc ) * x 5. slst into the 1st sc to join the round. (48 stitches + 6 chain spaces) Round 4: sc into the same stitch as you slipped into to join the last round, 3 sc, {sc, ch 3, 3 tr, ch 1, 3 tr, ch 3, sc} in the chain space, 4 sc, ch 3, * ( 4 sc, {sc, ch 3, 3 tr, ch 1, 3 tr, ch 3, sc} in the chain space, 4 sc, ch 3 ) * x 5. slst into the 1st sc to join the round. (96 stitches + 18 chain spaces + 6 single-chain spaces) Round 5: sk the stitch you slipped into to join the last round22, slst into the next stitch (this was an sc last round and an hdc the round before that), 3 slst, {slst, ch-2-sc-cluster, slst} in the chain space, ch-2-sc-cluster, sk, 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space23, 2 slst, ch-2-sc-cluster, sk, {slst, ch-2-sc-cluster, slst} in the chain space, 5 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the chain space, * ( 5 slst, {slst, ch-2-sc-cluster, slst} in the chain space, ch-2-sc-cluster, sk, 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space24, 2 slst, ch-2-sc-cluster, sk, {slst, ch-2-sc-cluster, slst} in the chain space, 5 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the chain space ) * x 5. slst into the slst25 you made to join the past round (the first stitch that was skipped this round). (156 stitches + 60 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block. Blocking In my experiences, Atria Snowflakes I, II, and III don't necessarily need traditional blocking - you may be able to just pull on opposite corners of the snowflakes to pop the stitches into place. Atria Snowflakes IV and V will need to be blocked to pop into the right shape. To block, run snowflakes under cold water and lightly shake off excess water. With pins at the points, stretch snowflakes into shape and affix to blocking mats. Linen and cotton are both cellulose fibers and become stronger when wet, so it's hard to block too aggressively! Let the snowflakes dry completely before removing them from the mats and pins. Adding a hanging loop (optional) To add a loop for hanging, cut a piece of metallic embroidery thread or a yarn you like that's about 7 inches/17.8 cm. Thread it onto a yarn needle, and pull it through the loop atop any of the ch-2-sc-clusters at the end of one of the 6 main points of the snowflake. Hold both ends of the thread and tie a simple overhand knot. To be clear, there's nothing wrong with stiffening crochet designs - it opens up many additional design possibilities! Unfortunately, the downsides of stiffening are too great for me. Starching or sugaring attracts the kinds of unwanted critters that are already all too common in Brooklyn. Stiffening with diluted PVA or wood glue yellows over time, and yellow snowflakes remind me of the kind of snow I'm not nostalgic for. ↩ s-twist yarn will untwist if you are a right-handed crocheter and stay twisted (actually twist a bit more) if you're left-handed; z-twist will untwist if you are a left-handed crocheter and stay twisted (actually twist a bit more) if you're right-handed. Yarn that untwists as you crochet may be harder to hook due to splitting and results in decreased stitch definition like the linen snowflakes in my examples; yarn that stays twisted is easier to hook and results in increased stitch definition. I love linen yarn for its sheen, durability, and stiffness, and I learned to knit over a decade before I learned to crochet, so I am biased towards using linen yarn - even though I am right-handed and almost all linen yarn is s-twist. It's much more common for crochet thread to be z-twist than plant-based yarns, but not all crochet thread is z-twist. ↩ If you get this in a quantity that doesn't come on a cone, I highly recommend rewinding this yarn onto a cone or, at the very least, inserting a cone-like core like the tube from an empty paper towel or toilet paper roll into the center of the ball. Otherwise, you likely will suffer the same frustrating fate I did until I rewound it onto a toilet paper tube - yarn constantly unraveling from both ends while working. ↩ I use Aunt Lydia's primarily because it's very easy for me to find and because it makes sense for me to pick a z-twist crochet thread as a right-handed crocheter. ↩ From Scheepjes: "Did you know that Scheepjes Maxi, Maxi Sweet Treat and Maxi Sugar Rush are identical yarns? The only difference is the meterage supplied per ball." ↩ In my head, I've come to refer to this particular "cluster" stitch as a "triangle" stitch, since it takes up the same space as a ch 3 picot but in a flatter, more defined triangle shape. My mentally calling it a "triangle" stitch inspired the name of this snowflake since one of the design decisions I kept constant across this set was choosing this stitch for all the points. I briefly considered calling this stitch "triangle" in this pattern, but I figured I'd rather keep the name more descriptive of how it's made to be consistent with my larger internal library of stitches that may or may not appear in future patterns. :) ↩ Aunt Lydia's Classic 10 crochet thread is a little thicker than Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/2, so my crochet thread snowflakes were a little larger than these sizes, and my lace weight linen yarn snowflakes were a little smaller than these sizes. ↩ I actually do a double magic ring every time because it pre-weaves in more of this end (the tradeoff is that it wastes more yarn to do so). Once Upon a Cheerio's tutorial explains double magic ring fairly well, especially how to tighten it, but I start my double magic rings more similarly to how Sarah Stearns's tutorial depicts it. If you really hate magic ring, you could instead ch 4 then slst in 1st ch to create a ring, but I promise that magic ring is not as hard as some people make it out to be. I am not usually a video person, but I learned how to make a magic ring from MJ Carlos's video tutorial. ↩ You could do standing double crochet for first double crochets instead of chains if you really want, but I don't think the difference between chains and double crochets is noticeable enough to bother. While I usually do ch 2 as the 1st dc in magic ring, I prefer the look of ch 3 next to the chain spaces. ↩ You could do an invisible join instead of slip stitches to join rounds if you really wanted to, but while I think it's worth the effort in a simpler fabric, making slightly subtler joins isn't worth the hassle in designs with varied stitches and shaping like these snowflakes. ↩ While I usually do ch 3 for the 1st dc in a round, I find ch 2 works better for me when it's the first stitch in a magic ring of just double crochets. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ See footnote 12. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩ In this round, this would be a slst if it weren't already slipped into to join the round, and here, the slip to join counts as a stitch. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the half double crochet from the previous round will ensure the point is secured in place. ↩ See footnote 16. ↩ See footnote 17. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩ While I usually do ch 3 for the 1st dc in a round, I find ch 2 works better for me when it's the first stitch in a magic ring of just double crochets. ↩ In this round, this would be a slst if it weren't already slipped into to join the round, and here, the slip to join counts as a stitch. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ See footnote 23. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩

17 hours ago • 2 votes
To get a great exit, don't build for an exit

Business are rarely sold. If you build yours with the intent sell, but nobody buys, what are you left running?

19 hours ago • 1 votes
SumatraPDF new features: July 10, 2026

SumatraPDF is a PDF reader for Windows and Mac. New in the pre-release builds: Floating selection toolbar After you select text, a small toolbar appears next to the selection with Copy, Read Aloud, Highlight, Underline, Squiggly and Strike Out. The annotation buttons only appear for documents that support annotations. Turn it off with the SelectionToolbar advanced setting. It was ported from the SumatraPDF Plus fork. Clearer CAD / engineering drawings PDFs of CAD and engineering drawings are easier to read, especially when zoomed out. Very thin lines get a minimum width that depends on zoom, and pale gray lines are darkened. Turn it on with the EngineeringDrawingEnhance advanced setting: auto enhances drawings it detects, on enhances every PDF and off is the default. You can also turn it on or off per document with Toggle Engineering Drawing Enhancement (CmdToggleEngineeringDrawingEnhance) in the command palette. More: changes from July 10, 2026 and the full changelog.

yesterday • 1 votes
AI is making capital & labor interchangeable

For the first time in human history, capital and labor are becoming directly fungible for more tasks

2 days ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in