How I work with AI agents without handing them the decisions
I work with AI agents every day, on my own projects and on the code I write for others. An agent writes fast and sounds sure of itself even when it is wrong, and I am still the one responsible for what reaches production. So since September I have been building an environment where the agents do a good share of the work and I make the decisions. This is what it looks like, without going into the configuration.
It is my third attempt. In September I tried with a project called Agents Multi; in mid-October came Kedalio, which at first wanted to do everything, from memory to integrations to an app of its own. On 5 November I split things up: Kedalio kept memory, tasks and projects, and the connectors moved to a separate repository, my workbench, which now also holds the agents and the procedures.
One profile per work context
I have a separate Claude profile for each context I work in: one for my own projects and one for each company I work with. Every profile has its own account, its own settings and its own connections, and it sees only the services it needs. A client's code is opened only in the profile for that work.
Part of what I do is under NDA, and I don't want the context of one project to end up, even by accident, in a session meant for another. With separate profiles I would have to make that mistake on purpose.
Agents, procedures and checks are the same everywhere and come from a single repository: when I improve the review procedure, every profile gets it.
Agents with a single job
In a session I talk to a main assistant, which can hand pieces of work to smaller agents, each with one job:
- review: reads a diff it did not write and looks for bugs, edge cases and missing tests;
- tests: runs the project's checks and reports only what failed;
- security: sign-in, permissions, secrets, data coming from outside;
- database: migrations, schema and access rules, before they are applied;
- research: answers from documentation and release notes, with sources;
- architecture: for a large change, proposes two options with trade-offs and a plan;
- fixes: solves one problem at a time, with the smallest change and a test that reproduces it.
Of these, only the one that fixes can edit files. So the reviewer has to report a problem to me when it finds one, and the test runner reports a failure as it is. Long logs also stay out of the main conversation, which leaves it more room to think.
I don't tell the reviewer what I think is wrong, because a reviewer given your hypothesis tends to confirm it. Then I check every finding against the code and drop the ones that don't hold up. The model changes with the job too: the most capable one for design, a mid-sized one for reviews and fixes, the smallest one for running tests.
"Should work" is not a status
This holds in every project. Before telling me it's done, the assistant runs the project's checks after the last edit and reads the exit code. The last line of the log is not enough: a summary that says "ok" can hide an error further up, and zero tests run do not count as tests passed. If it touched an API it makes a real request and reads the response; if it changed a UI it opens it and uses it. On this site every visible change ends with screenshots in the dark and the light theme.
Then it compares the request, point by point, with what it actually saw: a green suite proves nothing about a requirement no test covers. When something can't be verified (missing access, a service down) it has to say so. I'd rather know that a piece wasn't tested than find out later.
Confirmation before anything that can't be undone
A deploy, a deletion, a migration, a message sent in my name: anything that can't be undone with a click goes through me, and the ok counts for that one time. Deploying this site, for example, asks for my permission in every session.
On 10 November I set the same rule for connectors: tools that write or move something are not blocked, they ask for confirmation. I stay strict without getting in my own way, and I decide in the moment, looking at what is about to happen.
Tools I wrote myself
For the services I use every day (deploys, the git server, mail and calendar, work chat) I wrote the MCP servers myself, in Go. MCP is the protocol an assistant uses to call external tools. Ready-made servers exist, but writing my own let me decide what they can do and how they answer. They share a small library and have a single dependency, the official MCP SDK. I merged similar tools so the assistant chooses among fewer options, and I kept the answers short: an email reaches the model without the quoted history and without the signature.
Secrets live in an encrypted file, outside every repository, and are read only when a server starts. No token sits in a configuration file, the servers mask it in every answer and every error, and I never paste a key into the chat.
A memory that doesn't depend on the assistant
Every assistant session starts from zero. Kedalio, my program for memory, tasks and projects, is read the same way by Claude, Codex and ChatGPT through a single connector. A session starts by reading the project's card, today's tasks and the overdue ones; it ends by updating the card and writing down the decisions made, with the date and the reason.
The written decisions are the part I use most: if a month from now I wonder why a connector asks for confirmation, I find the reason and the day.
Sessions also leave proposals to improve the environment when they notice a command repeated often or an error that keeps coming back. I read them, and only what I accept gets built. At one point I was getting thirty of them about the same problem, each from a different angle; since 10 November one cause becomes one proposal.
Whatever a session writes to memory, every later session reads back. So if it has just read text written by someone else, like a web page or an email, it asks me before writing: an instruction hidden in a page must not be able to stay there.
A typical round of work
For a normal request the round goes like this. I ask for something; the assistant reads the project and the memory and proposes a plan, usually with a few options and a recommendation. I choose. Then it works and hands the agents the parts that need them: research first, tests and review after. It verifies, and only then tells me it's finished. I look at the result and approve; commit and deploy happen when I say so.
For bigger things there is a step before that: I get interviewed. With a procedure called "grill me", the assistant asks me one question at a time about a plan, each with the answer it recommends and why, until every branch is decided. If I answer "I don't know", it suggests the cheapest way to find out. At the end it writes a summary of decisions, open points and risks, and it doesn't start writing code.
I used it on 11 November to decide how to present myself on this site and on LinkedIn. One of the questions was what to call myself. I chose "freelance software developer", because in Italy "IT consultant" makes people think of someone who fixes your PC, and I put consulting among the services instead.
What stays mine
Decisions, architecture and the relationship with people stay mine. An agent can give me two architectures with their trade-offs, but choosing takes things I know: the client, the budget, who will maintain the code afterwards.
The same goes for clients. I read a new enquiry myself. The assistant drafts a reply for me and, after a call, a summary with requirements and risks; what to say and what to promise is my call.
I know my craft, and I use AI to implement and reason faster. I ask it to challenge me before any code gets written, because structure, idea, product and design come first. And when it tells me something with confidence and I have a doubt, I ask it to separate what it knows from what it is inferring.