1 Nov 2026
An agent on your machine can finish the job
A chat box hands you an answer you still have to apply. An agent with your files and a shell can make the change, run the tests, and leave a diff.

You type a question into a browser tab. The model types an answer. Then you copy it into the editor, rename the file, and run the tests yourself. That is still how most people use these tools.
Some of them now do the rest. They open the file, edit it, run the command, read what came back, and try again. A few run on your own computer. People call that local-first. You can hand the job over and get a finished edit, a test run, and a diff.
A chatbot stops when you do
A chatbot takes text in and sends text out. You stop typing, and the loop stops with you.
An agent keeps a loop of its own. You give it a goal. It picks an action, a program runs that action, the agent reads the result, and it picks the next one. This goes on until the goal is done or it gets stuck.
Those actions are tools: read a file, write a file, run a shell command, search the repo, query a database, open a URL. The harness runs them. The model only asks, then reads the output. The harness also decides which tools exist, what they may touch, and which actions need a person to say yes.
The same model feels different in a different harness. A chat window can tell you how to fix a failing test. Give it the repo and a shell and it can change the test, run it, read the new error, and try again.
When a client asks us to build one, the model is rarely the hard part. The harness is. Which folder it may touch, which commands need a yes, and a log of what it did. We start with a narrow folder and git, and widen that only after the diffs look right.
Local means three different things
People say local-first and mean one of these. Sometimes all three.
The program runs on your computer. The window, the file access, and the commands happen there. Plenty of coding agents already work this way. The app sits on your machine and sends only the model request out to a remote service.
The model itself runs on your hardware. Open-weight models can be downloaded and run with something like Ollama or LM Studio. Prompts and files stay on the machine. That matters for client code, unpublished work, and personal records.
The state stays on your disk. Notes, configuration, logs, and whatever the agent remembers live in folders you control.
You can mix them. A tool can run locally, call a remote model, and store everything in the project directory. Before you trust one, sort out which of those three is actually on your machine.
What you give up
A model that runs well on a laptop is usually smaller than the best hosted models. Renaming a variable, a short script, a summary of a document: the gap often stays quiet. A messy change across several files, or a bug that depends on a detail three modules away, and the gap shows up.
Speed follows the hardware. On a machine without a decent GPU, each step can drag. An agent that needs ten steps will sit there for minutes, and you feel every one of them.
Setup is an afternoon, sometimes more. Pick a model, download it, configure the runtime, sometimes set how much text it can hold. A hosted tool hides all of that. If you need the task finished today, that hiding is worth something.
The data stays on your machine, and so does the responsibility. The agent can run commands on your system. A bad instruction, a hostile file, or a poisoned page can do real damage. The boundary is yours to draw.
Control and privacy, paid for in capability and setup. Some tasks are worth that. A quick script on public code often is not.
What it is allowed to do
The useful question is what the agent may do without asking.
A sensible setup asks before anything hard to undo. Deleting files, pushing to a remote, sending a message, running a command that touches the network. Reading files in the current project, or running the test suite, can go through without a prompt. Write that line down, and make it movable.
When you try one, look for these:
- File access limited to a folder you chose.
- An allowlist, or a confirmation, before shell commands.
- A log of every action, so you can read it later.
- A way to undo. That usually means git.
If the project is in git, the edits show up as a diff. You keep it or throw it out. Commit as you go and the agent is someone you can review. A folder with no history means a bad edit stays.
Connecting a tool with MCP
Agents got easier to extend once there was a shared way to plug tools in. The Model Context Protocol, MCP, came from Anthropic in late 2024. An agent can discover a tool and call it: a local database, a docs server, a service with an API.
You write the tool once. Any MCP-compatible agent can use it. A server lists named tools, each with a description and an input schema. The agent reads the descriptions, decides one fits, and calls it with structured arguments.
A lot of these apps register a local server with a small JSON block.
{
"mcpServers": {
"project-docs": {
"command": "node",
"args": ["./tools/docs-server.js"],
"env": {
"DOCS_ROOT": "./docs"
}
}
}
}
That starts a local process and connects to it. The server might expose a search over your project docs. The agent can look up an internal API without you pasting the page into the chat.
Each server you add is more the agent can do. Add them on purpose, and read what they expose before you leave them connected.
Call the model yourself
If you want the mechanics before you adopt a whole product, call a local model directly. Ollama runs an HTTP server on your machine. After you install it and pull a model, Python looks like this.
import requests
response = requests.post(
"http://localhost:11434/api/generate",
json={
"model": "llama3.1",
"prompt": "Explain what a race condition is in two sentences.",
"stream": False,
},
timeout=120,
)
print(response.json()["response"])
The request goes to localhost. The model runs on your hardware. An agent is this call inside a loop, with tool definitions in the prompt and tool results fed back in.
Build that loop once, even for a toy task. You will see the model decide to call a tool, misread a result, and lean on how clearly the tool was described. That afternoon teaches more than another overview.
Where it earns its keep
Repo work is the strong case. The agent reads the code, searches for a symbol, runs the tests, and proposes a change. On a codebase you do not know well, that saves time, and the source stays on your machine.
A folder of documents is a good second. Meeting notes, messy exports, action items pulled into a file. This rarely needs the largest model, and it benefits from staying put.
A notes folder with a tight scope works too. The agent answers questions about your own writing and finds related entries. The journal stays where it is.
Batch file work, renaming or reformatting a pile of files, is often faster this way if you look at the diff before you commit.
Deep domain reasoning, a long loop on a slow machine, and any job where one quiet mistake is expensive: the agent will still produce something. Checking it can take longer than doing the work.
Try it on a small task
Pick a real task. Small, reversible, in a repo. Set the permissions as tight as the tool allows. Watch the steps, not only the last message. Notice where it asks, where it gets confused, and how it recovers. Check the parts you did not mention.
Then try a slightly larger task. You want mistakes that are obvious and fixable. An agent that fails in the open is easier to work with than one that quietly writes something plausible and wrong.
Time the review as well. If checking the work takes longer than doing it yourself, it is not helping yet. The gain shows up when checking is much faster than producing.
An agent that can act on your files can finish things, which is also why a bad run hurts. What matters is whether the harness makes those actions visible, limited, and easy to undo. Start in a repository you trust, keep the permissions tight, and read every diff until you know how this one behaves.