This is the devlog series about Clay, the malleable browser for power users I’m working on. If you want to start from the very beginning, with the background and the why, read Devlog #000.
Allow me to do a “bridge” episode of this devlog series, on the way to the more technical parts.
Change
Up until a couple of years ago, I would have loosely discussed the chosen tech stack, speaking about the general considerations of what I’d use and why. But before that, the environment and the workflow, and for a good reason: I’d have to spend thousands of hours in this project, its repository, and its documentation.
How was it?
Give me six hours to chop down a tree and I will spend the first four sharpening the axe.
Today, when I set up a new project, the first thing I need to lay down is the “personality” I’ll collaborate with for the next weeks, months or even years. Follow me.
Once I’ve reflected on the problem for days or weeks, and before I create the first project file, I usually go to the best model I have access to and talk about the pain, fears and concerns, my background, and the principles I want my software to have.
I used to write this part as a stream of consciousness, while now I’m moving towards doing it as a conversation. That stimulates me more, even though I need to take a lot of notes in the meantime to avoid branching too much. This phase is for exploring ideas, being warned about the limitations, discovering the state of the art, and shaping a rough ideal architecture for the first iteration. For non-trivial work, I’m not usually satisfied with a single round, so I take a few days to sleep on the problem, summarize the previous iterations and (potentially) start again with those as the starting context.
As I said, along with laying the foundation of the software in my mind, the purpose is to shape the personality as it emerges from the information we come up with.
This is the biggest thing that has changed for me as a programmer: now I need to shape the “person” I’ll be working with for the future of this project. Some of its sides will depend on the underlying models, which I consider just another variable of the work as a software engineer. Amount of tokens, billing plan limits, access to specific models, context management and so on are just other tools I have at my disposal to do the work now. No crying, no doom, no hysterical blabla-ing on either side of the empty war between AI-doomers and Vibe-FOMOers.
Personality
I define personality as the set of opinions, priorities and habits the agent carries as my spokesperson from one session to the next, written down in the project, so it pushes back the way I would on a good day, especially against the future me.
An example (don’t worry about the details, they’ll come in future episodes):
I’ve been working on the plugin system and I wanted bookmarks to be the first validator, instead of implementing them as a built-in.
As per my setup, the adversarial review ran before any code and came back with the problems. The plugin API I had drafted would have needed pieces it didn’t have yet, and it would have added complications that don’t belong in a project at its start. It basically stopped me and asked me to think twice, giving me the details I wasn’t considering.
It’s not one-shot work: it evolves over time as new models and ideas come out, as the project changes and as new patterns emerge.
I don’t obsessively follow what coding agents and their companies throw on the market to make easy money from AI-hypers. Most of the time they’re just simple ideas you can implement yourself by turning your creativity on and using the tools you have access to. Usual software engineering: you do something often? Create a simple command that runs a script, use the model, balance deterministic and non-deterministic capabilities and so on.
I have a simple mental model in mind: most of this stuff is “prompts all the way down”, so just put what your model really needs to know where, when and how it needs it. It’s all engineering again: managing constraints, optimizing resources, automating boring stuff, and all the things you’re supposed to be an expert in.
There’s something even better, in my opinion: your project can work without you on some of its parts. It’s up to you to weigh the trade-offs of the non-determinism and decide where to place it, like triaging issues, running adversarial analysis on a schedule, or constantly analysing the news about your tech stack for interesting updates.
In practice
As you can see, I’m not giving recipes, and I’m clearly using these devlogs to share my ideas beyond Clay and how I’m building it. But since we’re talking about Clay, a few words on how I implemented all of this are necessary.
The personality lives in memory: not only in
AGENTS.md, but scattered across project notes, decision records and architecture documents, and it evolves over time (see more).In it, I put writing rules, design rules, and engineering principles, both mine and the ones living in the project.
“Stop and tell me”: when a change would make the architecture less simple, or a guideline is wrong, the agent stops and gives me the options and their cons.
The strongest model, better if from a different lab, must run an adversarial review before touching critical parts (e.g. cookies and storage, browsing data, the CEF bridge).
ARCHITECTURE.mdwith principles and current status, including where the code doesn’t match the guidelines yet.TODO.mdas a simple and effective shared backlog. The agent is allowed to make small deliberate choices about implementation details as long as it writes it down in TODO so I can always go back and reconsider that work.Deterministic whenever possible, through a Makefile with short names and checkup scripts: the usual engineering stuff.
Constraint management: token consumption awareness, e.g. agentic-automated UI checks are expensive, so the agent runs them only on the states it changed, or in full when I explicitly ask.
Safety for my own setup. Every test Clay runs with its own socket, state folder, profile and config, so an agent can’t stop my running browser or touch my session.
Finally, as I mentioned above, my agentic setup crawls the news about my tech stack for updates, vulnerabilities and changelogs, and sends them to my phone and my calendar, so the time I set aside for them goes to stuff that’s already filtered, at least in part.
That’s all for this bridge episode. In the next one I plan to talk about the very first trade-offs and the core technical decisions I made, not without pain.
See you there!

