Jeison Eccel

What I Learned Before Spending a Dollar on Agentic Coding

My journey into agentic coding started with a question:

How can I learn agentic coding without immediately adding another subscription or API bill?

From there, I planned an experiment. The idea was simple: use the Mac I already own, install free tools, run local models, connect one of them to a coding agent, and see how far I could get.

My initial architecture looked something like this:

Initial Architecture

Several experiments later, the architecture still makes sense. There is simply a lot happening between those boxes.

I tested models independently. I connected them to IDE tools. I experimented with Aider. I gave models access to real projects, explored context and project instructions, defined permission boundaries, asked agents to plan changes, let them modify code, and inspected what they actually did.

I spent $0 on models and infrastructure throughout the process.

More importantly, I now have a much better idea of what I would actually be paying for.

The model was the starting point

The first thing I needed to understand was what my M2 Mac could realistically run.

How many parameters could it handle? Which quantization? How fast would the models respond? How much memory would they consume? And, of course, how well could they write code?

I tested four models:

ModelStandalone coding score
GPT-OSS 20B35/36
Qwen 2.5 Coder 7B32/36
Qwen 2.5 Coder 14B32/36
Ministral 3 8B30/36

These tests gave me a useful baseline for standalone coding. GPT-OSS had the highest score, followed by the two Qwen models and then Ministral.

Connecting those models to agents added several new variables.

GPT-OSS was extremely slow on my machine and didn't behave reliably enough when tools entered the workflow. Qwen produced some dangerous edits. Ministral had the lowest standalone score of the four, but eventually became the model I trusted most for the Aider experiments.

The standalone tests measured how well each model handled coding prompts.

The agent experiments measured how well the model worked inside a system that could inspect a project, use tools, modify files, and continue working based on the results.

A good coding model alone doesn't make a good coding agent.

An agent adds a lot around the model

A model generates responses while a coding agent adds a loop around that model: inspect files, decide what to do, edit code, execute tools, observe the result, and continue.

I first experimented with IntelliJ AI Assistant. It worked well for assisted coding, while I wanted to explore a workflow with more autonomous multi-file interaction.

I then tested Junie which provided more of that workflow, although the local models I tested couldn't successfully get through its tool interaction.

Finally, I tested Aider that gave me a working combination of the pieces I wanted to test:

Model
+ repository context
+ file access
+ editing
+ terminal/tools
+ iteration

At that point, model responses could become actions inside a real repository.

That makes every decision more consequential.

A bad chatbot response is text I can ignore. A bad agent decision can modify my repository.

Tool access expands what the model can do, and every additional capability also gives me something else I need to control and review.

Context has a big impact on the results

Once the agent could work with a real repository, context became one of the most important parts of the experiment.

The model needs enough information to understand the problem. Giving it more information also consumes resources and doesn't guarantee better reasoning.

When I manually expanded project context in one experiment, the input grew from roughly 6.8k to 19k tokens. The model had access to much more of the project, while I was manually deciding what information to include.

Aider's repository map provided a more efficient way to establish the project structure. With Ministral, it created a useful picture of my Spring Boot application with around 7.1k input tokens.

That worked well for orientation.

For deeper reasoning, the model needed the actual source.

When I asked which files it should inspect for an Account change, it missed important files. I explicitly loaded the relevant Account source, and the focused dependency context grew from roughly 11k to 15k and then 18k tokens. Its Java reasoning improved considerably with that additional source.

The experiments gave the repository map and source code two clear jobs.

The repository map helps the model discover where to look.

The actual source helps it understand what the code does.

A useful rule came out of those tests:

Give the model enough context to follow the problem, not enough context to describe the entire repository.

Selecting the right context is part of the agent workflow.

Project instructions and permissions solve different problems

AGENTS.md became another useful part of the setup.

It gave the agent persistent information about how I wanted the project treated: conventions, expectations, constraints, and things that aren't necessarily obvious from reading Java files.

I also needed clear boundaries around what the agent could do.

I separated actions into three groups:

  • YES — safe, local, reversible actions such as reading files, editing source, running local builds, and inspecting Git;
  • ASK — actions with a larger or more persistent effect, such as commits, dependency changes, migrations, or infrastructure changes;
  • NEVER — direct production operations, secrets, and other actions the coding experiment had no reason to touch.

Project instructions describe how I want the agent to work.

Permissions control what it's allowed to do.

This becomes especially important when the agent can modify files and execute commands. Models will make mistakes. Permission boundaries limit the consequences of those mistakes.

Planning gives me another checkpoint

Before allowing real modifications, I started asking the agent to inspect the problem and create a plan first.

The workflow became:

Requirement
→ Inspect
→ Plan
→ Review
→ Code

Planning gives me another output to inspect before the repository changes.

One of the Account experiments showed why this can be useful.

Ministral repeatedly struggled to decide whether accountId should be a Spring @PathVariable or @RequestParam.

I let it continue with the implementation.

The generated controller used:

@PathVariable String accountId

with:

@GetMapping("/range")

There was no {accountId} in the route.

The ambiguity was already visible in the plan, and the same issue appeared in the implementation.

Planning gives me an early signal about where to pay more attention.

If the model can't clearly explain an important relationship before editing, that part of the resulting diff deserves extra scrutiny.

Clean code can still be wrong

Some agent failures are easy to recognize: broken syntax, invented methods, large unrelated changes, or source corruption.

The more interesting problems in my tests were much less obvious.

In one experiment, Ministral created a clean Controller and Service for a Transaction date-range endpoint. The code followed the existing architecture, used the right types, preserved ownership awareness, touched only the expected files, and looked like code that belonged in the project.

Inside the service, it generated this:

repository.findByOwnerAndAccountOrderByDateAscIndexAsc(loggedUser.getUser(), null)

and then filtered the dates in memory.

The model had already found the better DateBetween repository method during planning. The implementation still used the wrong query.

In the following experiment, it corrected those repository semantics. It resolved the Account properly, reused the correct query, and moved the filtering back to the database.

The same implementation introduced the controller mapping problem with @PathVariable.

This pattern is important because the model can understand one layer correctly while making a subtle mistake in another. It can improve one part of the implementation and introduce a problem somewhere else.

Code looking familiar is not evidence that its behavior is correct.

The hardest problems to catch are often clean, plausible implementations with a small semantic mistake hiding inside them.

Git became part of the agent interface

I already use Git every day, but agentic coding gives the diff a slightly different role.

The agent can explain what it believes it changed.

The working tree tells me what it actually changed.

During the implementation experiments, Aider's whole-edit display sometimes looked more destructive than the resulting source. Inspecting git diff directly gave me a clearer picture of the actual modifications.

Another experiment showed why checking only the list of modified files isn't enough.

The model changed exactly the two files I expected.

Inside one of those files, it also removed unrelated comments.

The file scope was correct. The edit scope wasn't.

That gives me another useful rule:

Correct file scope doesn't guarantee correct edit scope.

For agent-generated changes, the diff is evidence of what actually happened.

Trust is where productivity starts to matter

The local models demonstrated that they can write useful code.

Even on my M2 with 16 GB of unified memory, they generated good explanations, understood Spring Boot architecture, traced real dependencies, selected files, reused existing services, and produced plausible implementations.

The next question is whether I can delegate useful work to them.

For repetitive development tasks, I want to hand over a task and receive a result that takes less effort to verify than it would have taken me to implement myself.

My local setup didn't consistently reach that point.

The larger models required significant time and memory. GPT-OSS 20B took around 72 seconds for one cold test and around 80 seconds for the Spring Boot test, while pushing my normal working environment into heavy memory pressure.

Qwen 14B was faster, but still uncomfortable under a normal development load.

The smaller models were easier to run, but their reasoning mistakes required more attention.

A typical interaction near the end of the experiment looked something like this:

Generate
→ inspect carefully
→ find subtle issue
→ clarify
→ generate again
→ inspect diff
→ find another issue
→ eventually compile and test

The agent is doing work, but I'm spending a lot of time checking that work.

At some point, that becomes supervision rather than useful delegation.

If I can implement a repetitive change myself in less time than it takes me to describe it, wait for the model, inspect the result, find a subtle problem, clarify it, wait again, inspect another diff, and finally run the tests, the agent isn't saving me much repetitive work.

The local models can write useful code.

I can't consistently trust the result enough to delegate repetitive coding work with this setup.

And for me, trust is where the productivity question really starts.

So, did the zero-cost experiment work?

Yes.

The experiment started with a simple question:

Can I build and learn from a $0/month agentic coding environment on the Mac I already own?

Now I have a much better picture of how far that environment can go.

For my M2 with 16 GB of memory, I wouldn't choose this local setup as my everyday coding agent.

It was, however, a very useful learning environment. I could explore the complete workflow without paying for models or infrastructure.

The experiments gave me practical answers to many of the questions I had when I started:

QuestionWhat I learned
Can my Mac run coding LLMs?Yes, with significant differences in speed and resource pressure
Does standalone coding quality predict agent quality?Not reliably
Is the model the agent?No; the harness, tools, context, and loop matter
What happens when the model gets tool access?It can do more, and mistakes become more consequential
Can a repository map replace source?No; it's better for orientation
Does more context automatically help?No; relevant context matters more
Do project instructions make an agent safe?No; permissions and review still matter
Can a small model understand real Java code?Often, when given the right source
Can it modify that code?Yes
Can I trust the first implementation?Not consistently with this setup
Did $0 teach me enough to continue?Definitely

That's a lot of useful information from a computer I already owned and software I didn't have to pay for.

The experiment also gave me a practical way to think about agentic coding.

The model matters, along with the agent around it.

Context needs to show the model the relevant parts of the problem.

Project instructions define how I want the agent to work. Permissions define its boundaries.

Planning gives me another place to inspect its reasoning.

Git shows me what actually changed.

And code review matters even more when generated code looks completely reasonable.

The zero-cost environment gave me exactly what I wanted from it: room to experiment, understand the workflow, and find the practical limits of the setup.

Now I'm willing to spend money, but I know what I want to test

I don't need to start over from here.

I already have a workflow.

I know how I want an agent to inspect a repository, how I want context selected, what belongs in project instructions, where permission boundaries should exist, and how Git fits into review.

The next variable I want to change is the model environment.

Throughout these experiments, my Mac has been doing two jobs at the same time.

It's my development machine, running IntelliJ, VS Code, browsers, music, databases, and everything else I normally use while working.

It's also the model server, with the LLM competing for the same 16 GB of unified memory.

The next question follows naturally:

What happens if I separate those two jobs?

Could Ollama and a stronger model run on a remote server while my Mac remains focused on development?

Would a stronger model require less supervision and make delegation more practical?

How far could that setup go?

Moving the model away from my Mac also introduces a new variable:

Cost.

Cloud providers can make very powerful machines available in minutes.

They can also make a surprisingly large bill available at the end of the month.

So that's where my next experiment starts:

How do I explore remote models and cloud infrastructure without accidentally turning a $0 experiment into a $200 first month?

I have the foundation now.

The next step is to change one constraint at a time and keep experimenting.