One of the biggest open source projects in the world ran an experiment with local AI models that made me rethink what I thought about them.
The project is Apache Camel. If you don't know it, it's probably the biggest open source integration project in the world, and one of the biggest open source projects overall.
They said:
- "We're not satisfied with benchmarks, we want a more real-life test of our platform with different models."
They used Claude Code and a local Qwen model, around 35B. Claude would be tested too, but it also orchestrated the test runs with Qwen.
The test base was 13 simple examples from Camel itself, on Camel's GitHub. Each model had to build them from the user's prompt. Claude had access to every tool, the catalog, the examples. The local model started with no tools at all, and they gradually unlocked tools and access to see how it progressed.
First round: catastrophic. The local model with no tools got none right. Claude got all of them right away.
Then they gave it some tools. Then a round of feedback from the validator running on Claude. Then four rounds of feedback. Then Camel's own MCP for the catalog. Best result: 7 of 13.
They could have said:
- "Local models are bad."
Instead they looked at what was failing. The local model was getting lost in Camel's error messages.
The messages said "this didn't work." They changed them to say how it should be. One example: a Camel structure needs two items separated by a colon, and the model had used a period. Instead of "couldn't find X," the message now says "this must be a colon."
Doing that, in one of the runs the local model got all the examples right.
The part I found most interesting: for 20 years they built Camel for people. People were dealing with those bad messages all along, but a human, like a frontier model, thinks, searches, figures it out, and often doesn't even open an issue. The small model, with less capacity and less patience, shows you right away what's wrong. Fix it and it works.
They say it completely changes how they build Camel, because now there's another user besides the dev: the AI agent.
8
4
482
I have been using T3 code for about two months and… boy, I love it!
Being able to mix different providers is something underrated. I've been using it more than I expected.
Really great product. Thanks, @theo and team.
1
3
314
If you think you're getting dumber because of AI, maybe you're right. That's not an insult, it's part of an MIT study.
They found a tendency toward cognitive reduction from excessive AI use. In the study, a preprint with 54 people, one group used ChatGPT for four months to write the texts they needed, compared as usual to a control group without the tool.
After four months, two things.
First, weaker brain connectivity, measured by EEG, while they wrote. Bizarre and worrying, especially in such a short period.
Second, a loss of the sense of authorship. They handed people texts they'd written with GPT, and people couldn't say whether the text was theirs. Probably they just took the text, copied and published.
AI made some tasks so easy that we're not delegating anymore, we're dumping. We tell it:
- "Write it. Decide it. I don't even want to think about it, you do your thing and I'll do mine."
According to the study, that starts to wreck your cognitive system.
For software engineers, in a profession with tasks that demand a lot from our cognitive system, giving up your ability to think is the worst shot in the foot you can take.
Use agents to help you. But decisions still have to come from you. Responsibility too. Your ability to see something the user hasn't seen, the product manager hasn't seen, and maybe the AI hasn't seen either, has to be preserved.
If in four months those people's brains were already less engaged, imagine two years, five, ten. We'll be a bunch of idiots because we put the robots to do everything in our place.
If you think that's fine because robots will take over anyway, it may happen. Personally, I'd rather count on a world where we humans are still human and responsible for our decisions and what we do.
1
237
People ask me:
- "Elder, how do I know I'm ready for the next level? If I'm mid-level, can I go to senior? If I'm senior, can I go to principal?"
Recently I watched a podcast with Elizabeth Stone, Chief Product and Technology Officer at Netflix, who still hires technical software engineers. She shared something she evaluates in interviews.
A feature lands on your desk. Don't just think:
- "I'll build this feature."
Ask yourself:
- "Does this really stay in my scope, or should I think about it at the platform level?"
Look at the problem you got and where it sits inside a bigger problem.
She calls that part of systems thinking. And she doesn't tie it directly to seniority, but to how wide your view of the project and the process is.
She also gives a warning. To do this you need to zoom out, step back from the problem to see the whole. Just don't zoom out so far that you lose the problem and the view gets so big it paralyzes you.
Where I'd apply this: in the project I'm on now, with the demands coming in. And if I'm eyeing another job, thinking about scenarios that could come up in an interview.
The interviewer says:
- "I have this problem, how would you solve it?"
Zoom out and ask:
- "OK, what's it related to? What scope is it tied to? What does it interfere with, what does it get in the way of, what does it help?"
Then decide: this stays in my scope, this goes to platform, this belongs to an even bigger scope, like the technology we use.
I keep insisting on this even in times of AI. Throw that question at an AI and it'll make a decision no matter what. It always tries to give you an answer, without necessarily exploring every possibility first. That critical, systems thinking is still on you and me.
211
If you think your code and its quality don't matter anymore because of AI, I'd invite you to rethink that.
It's true for two kinds of projects. Personal projects only you use. I have dozens where I literally don't know what language the AI used. It works, it's only mine, only on my machine, not even on the internet. And small things that some people use, but so simple that the code doesn't need much attention.
When does your code start to matter, even with an agent writing it? When it gets big, with a lot of users and a lot of security demands. Because even the AI agent gets lost in the mess.
A while back I migrated all my sites. They were on a cloud in England I'd used since 2017, 2018, and I'd been too lazy to migrate. I started exchanging messages with Claude and decided to do it. In about a working week everything was migrated, things I'd never have bothered to do.
Then some time later I went to change something and saw that for two of the sites it had made a decision midway and created two separate Vercel projects for each. Four projects for two sites. When I asked why, it pointed to an ambiguity in something I'd said and had decided based on that. Nothing serious, we reverted it, one project per site now.
But it was already a big project. The whole migration took 1.4 billion tokens. My estimate: about 13 thousand dollars in API cost without cache, around 2 to 2.5 thousand with cache. I did it all on my Claude subscription.
When things get big, details matter. That class in a weird package, that badly structured package, that domain structure you don't care about because the agent will maintain it.
The agent is like your colleague from before, when you documented your project badly, they did something wrong and you thought they didn't know what they were doing.
As Kathy Sierra and Bert Bates wrote in their study guide for the Java 6 certification: write your code as if the person who maintains it is a homicidal maniac who knows where you live.
One of the most important topics in the Java world in recent years, curiously, has nothing to do with AI. It's about Java's thread execution model. Virtual threads, final since Java 21 in 2023, after some previews, with a couple of updates since.
First, threads in Java. Traditionally, since Java was released, Java threads are wrappers of operating system threads. When you write a Thread.sleep in your code, without any big pretensions, you're going down to the OS and asking for a thread, and that OS thread is allocated to your glorious Thread.sleep.
Fine, but there are implications. Operating systems were built to provide threads to all sorts of languages and platforms. Because of that, the architectural decision was to level resources from the bottom: whoever can do the least sets the baseline for everyone. So over the years the Java platform could have used threads much better than it did, but the OS didn't provide what it needed.
Another problem: OS threads are expensive, and switching between them is expensive. You had underutilization. It was common to have a server with free memory and free CPU that had already hit the thread limit. To get more threads, you bought more hardware for a server that already had hardware to spare.
One way around that was reactive programming. No blocking threads, or at least you could work around blocking, so you could run more tasks than threads. But if you've written reactive code, you know it's a different API, a different style, not intuitive. And in Java all the tooling is built on threads. Stack traces, observability, all of it.
So virtual threads were born. Instead of one OS thread per Java thread, there's a carrier thread, and on top of it you can put potentially millions of virtual threads. Your virtual thread is mounted on the carrier, and the carrier talks to the OS.
That makes threads much lighter on CPU and memory, much faster because switching happens inside the JVM, and you get features you couldn't have with OS thread limits.
It's available since Java 21. Worth checking if there's something in your project that can migrate.
AI doing things for you is fantastic. AI doing things as you is terrible. Terrible for you.
My great friend Bruno Souza, the Java Man, called this cognitive surrender in a talk at an event. Literally surrendering your cognition to AI. If you want it to do everything in your place, maybe today it doesn't do 100%, but it already does a lot, and some day maybe it will.
But you still exist. You still have to make decisions in your life and you're still responsible for them, even if what you're doing is the AI doing it as you.
Take OpenJDK, which is a hot topic now because they won't accept AI-made contributions. Their announcement says you can use AI to study the code, explore solutions, help with the briefing. But writing the code, committing it, opening the pull request, commenting on it, has to be you.
I heard someone say the other day:
- "How will they know it was AI?"
If you can't glance at a pull request, a commit or code and at least suspect it was AI, either you don't use AI much or you don't write much code. It's obvious. AI writes unnecessary code, big code, names variables and methods a specific way, and its commit messages and pull requests are absurdly verbose. That's why their announcement says, in short:
- "Provisionally, we won't accept it."
Maybe that changes.
You can use it for all that support, but you're still in command, still responsible, still the owner of your cognitive system. Don't outsource at that level. Don't give up thinking, deciding, ownership.
Use it to take the bureaucracy off you, what Professor Isidro calls the grunt work, the boring stuff nobody enjoys. And do what you were born to do: your creativity, your intelligence, your problem solving.
Maybe you're thinking:
- "But I'm not that good at those things."
You are the way you are. Use AI to help you be that.
An AI agent's tool call can run twice: the call times out, the runtime retries, and the change may already have happened. The idempotency key that Java backends already use works here too.
eldermoraes.com/agent-tool-c…
A while back at TDC São Paulo something occurred to me.
My first time at TDC was as an attendee, in 2015, on the mobile track. I was a mobile app developer. In 2016 I came back and gave my first talk. In mid 2017 I became a track coordinator, and did that for a few years. In 2017, 2018 I was at Oracle, and besides coordinating and speaking, I started working on the sponsor side, since Oracle sponsored TDC. Some years later I joined the technical committee, which defines the tracks and the coordinators.
I've done every role possible at TDC except volunteer, the people in blue shirts helping everywhere.
That gave me a very broad view of how an event works, and especially how you get results from what you want out of it.
A lot of people say:
- "I don't go to events anymore. It doesn't give me results, it's expensive, I lose a lot of time, nothing happens."
Probably you didn't set a clear goal for what you want to do and get at the event. If you go and spend the whole day watching talks, which is what people usually do, you really won't get anything.
Plan for it. I may watch talks, but I'll note beforehand which ones. And I don't want to spend the whole day in talks, because I want to talk to people. Which people? I decide before.
That day, for example, I had a podcast to record with Edson Yanaga. The event is always generous with me and gives me space to record. I'd found out a few days earlier that Edson would be in Brazil, asked which days, we set a time. That became part of my plan for the event.
I always try to find a moment with Júlio Matos, Yara Mascarenhas, Bruno Souza.
Someone might say:
- "But Bruno's your friend, he's on your WhatsApp."
Sure, but only a few times a year do I see him in person.
Go with a short list of things you want to do there. If it's too long you won't do it. If you get through most of a short one, you'll leave feeling it was worth it.
In software security, three vectors have always mattered for insider threats, the ones from inside the company: access, judgment and speed.
Access is how much a person can reach. Judgment is how much they understand that what they're accessing is critical, valuable, has impact. Speed is how fast they can exploit that access given that judgment.
An AI agent has all three, as long as you give it access.
Imagine an agent with a full-access key to your API. It's like an employee who has your bank password and no notion of risk or value judgment. Imagine the damage.
A lot of people are doing exactly that. You give the agent your API key because it needs to do a job, and off it goes:
- "God bless, go access my stuff."
And in most cases I see, nothing is holding that agent back.
What are people relying on for security? A while back I heard a great line:
- "Just ask nicely and the AI does it right."
Trust that asking something non-deterministic nicely means it'll do it right? It won't.
You need deterministic mechanisms. Something that works no matter what happens. That API key is read-only. Or read-only and can't delete, if that's the biggest risk. Or the tools the agent can access are limited, and that's in a config file, not in the prompt.
Get this in your head: what you put in the prompt is a guide. A suggestion. Models are getting better at doing what you wrote, but they can interpret it differently from what you meant. You know when you tell someone one thing and they understand and do another? An AI agent is worse, because it can do more damage faster than all of us together.
So put in hard security gates that block and prevent. Do security with AI the way you would by not handing your bank password to someone you may not trust.
If your company started measuring how many AI tokens you spend, sorry to say it, but you're measuring absolutely nothing.
Earlier in 2026 there was the token maxing fad. Companies handing AI to everyone, plans, subscriptions, tokens, APIs, and people were charged for usage. In both of my mentorship groups I heard the same thing:
- "How do we use more AI? There's a KPI for AI usage."
A mess.
Now most have realized it doesn't work like that. But they're going to the other extreme:
- "Let's limit it, it's too expensive and there's no return."
Both extremes have the same problem: measuring by token usage.
Token usage measures nothing except what you pay at the end of the month. Some of you are thinking:
- "Obviously, idiot."
Stay with me.
What you should measure is: for each dollar spent on AI, how many dollars you're making from it. No matter how many tokens were in that 1, 10 or 1,000 dollars. Token usage varies wildly. I said here the other day I spent a billion and a half tokens on a project. Cool, but it means nothing.
An older example, from a talk on metrics I gave years ago. You need a steady state metric, the state where everything is normal. At Netflix it's streams per second, SPS. They don't want more or less, they have their curve. Inside it, the user experience is fine.
Say Netflix uses AI on something that affects SPS, and more SPS attracts more sponsorship. They spend 100 thousand dollars on AI and get 500 thousand more in sponsorship in that window. Return on investment. Do the tokens matter? Could be a trillion.
A while back I saw an innovation leader at a company here in Brazil say exactly this. They put a value on each task. If AI spent more than it returned, they change the approach, not just "use fewer tokens." Sometimes the task is wrong.
As a developer on a subscription, you already do this. You watch your usage window. I doubt you count tokens. If the window's fine, everything's fine.
223
Elder Moraes retweeted
Humans are simply bad at programming.
Most human-written PRs are incomplete or simply move the bug somewhere else; the human misses a case, or fixes one inconsistency by creating an inconsistency somewhere else.
That's why every human-written change should be reviewed by AI.
Using AI to write code, text, content isn't enough anymore. Some people want to use AI to study, guess what? The Moon.
A while back IBM and NASA released an open source model to help study the Moon. They took the lunar missions of the last decades, all that material, and trained a specific model on it.
Then you ask:
- "But, Elder, why on earth would anyone use AI to study the Moon?"
They say understanding the Moon better supports plans for a lunar base, to help resupply missions to Mars. So the goal isn't even the Moon. It's Mars.
The paper says the model is up to 22% more accurate than traditional methods at studying the lunar surface.
Some things they want to use it for:
- The potential presence of ice deposits. If they're really there, there may be water and oxygen, which helps with a base.
- Studying the Moon's volcanic history, for better knowledge of the surface, since one side never faces Earth and is hard to study.
- Crater detection.
And it's open source. I went looking and it's already on Hugging Face. In the community tab there was a post: demo for this model on Spaces. Someone from Hugging Face built a demo with the model and even offered it to the team. It generates new image predictions of the lunar surface.
AI doesn't live on code, content and internet fights alone.
1
249

