Edoardo Mosca - Artificial Intelligence: From Assistant to Employee
NapulETH · 21 Jul 2025 · 36:32
Edoardo Mosca, founder of Atena Labs, walks through a journey from chatting with an AI assistant to running an autonomous agent on a local machine. He explains what a large language model is, why he runs open models locally for privacy, control and cost, and how an agent combines function calling, a tool-capable model and a system prompt. A live demo connects Open WebUI, Ollama and the Roo Code editor extension to create files directly. He closes on AI ethics, responsibility, and why decentralisation and blockchain could keep AI transparent.
Speakers
Topics
From NapulETH, organized by NapulETH; community: ETH Napul.
Transcript
Dimmi tu io vado. Buongiorno a tutti. Ciao ragazzi, ben ritrovati. Questo non è uno speech. Qua è un workshop. Quello che andremo a fare è un viaggio da un chatbot a un assistente virtuale utilizzando chiaramente l'intelligenza artificiale. Si può fare tantissimo. E finalmente passiamo dalla teoria alla pratica insieme ad Edoardo founder di Atena Labs. Quindi spero sia di vostro gradimento.
Eduardo ti lascio lo stage. Grazie mille. Buongiorno a tutti. Allora, vediamo questo viaggio da un assistente come poteva essere chat GPT o Gemini di Google. È del viaggio che è partito dalla necessità di passare dal semplice copia incolla a fare qualcosa di più. Si sente? A fare qualcosa di più.
Quindi, da assistente dipendente e viaggiamo. Quindi ho scoperto chat GPT circa due anni fa e da sviluppatore sistemista e smanettone. Chiedo facciamo un'applicazione per l'esercizio fisico mattutino. Noto che non solo ero in grado di scrivermi codice, ma anche di darmi gli esercizi da fare. Io sbalordito e per un po' di tempo mi accomodo.
Dimmi. In English I need to read the script because I'm not this that fluent.
And okay, so years ago I just discovered the chat GPT and I started exploring its potential, asking it to prepare a simple application to manage my morning routine app with simple body weight exercises with a timer within exercises. However, as a programmer, a system administrator and thinker, I often found myself saying, But why do I always have to copy and paste?
Why don't you do it directly? Do it, just do it. So the limit of uh copy pasting is not just an anecdote, but a symbol of a fundamental limit that I perceived in the interaction with uh AI. And as much as large language models were powerful in creating text, images and even code, their impact on my workflow was still circumscribed. And the breaking point came well while I was trying to create a treading bot, a field totally unexplored for me, but ideal for experimenting with an intelligent assistant.
The IE generated the script and I needed to copy paste it, failure, so errors and debugging, and then I restart the cycle with the copy pasting. So the IE was a passive tool, and uh it required my constant mediation to transform the output into concrete action. And this friction, this barrier between the idea and the execution was uh what I wanted to break down. And the question was simple.
If the AI is able to assist, why is it not able to do? So let's speak about let's talk about large language models. Uh what are those large language models? Uh is the fundament fundamentals of uh intelligence uh artificial intelligence, and I started to study. So large language model is an artificial intelligence that learns to understand and generate text in a way similar to a human.
Think of this model as a brain composed of millions of interconnected nodes like neurons, each connection between neurons as a weight, a numerical value that represents the strength of the semantic bond between two words or concept. So during training, if the model discovers that the words sky and blue are related, closely related, it increases the weight of the connection between their neurons. When you ask a question, the LLM doesn't think but uses this dense network of connection, calculates the path with the strongest weights, and predicts the most probable and logical sequence of words to use as a response.
So the first step was to figure out how to bring these models locally, making them accessible without relying on internet connection or external services. If the AI has to act on my system, it must be in my system, but that's not the case. So how we achieve this. Privacy, control and costs.
So my data and questions didn't leave my system, my system. So uh Gemini and Google and OpenAI uh they don't know what I was asking to my um my AI control so I can tinker with settings uh make advanced modification as I pleased and cost and limits. Uh when you use uh something like uh Gemini or uh chat GPT, there are costs for every request that you make. But if you have the LLM in uh in your system, you don't have any costs.
So I started with several local models, uh open and closed sources such as DeepSeek, Gemma and QAN, and many others, each with its own peculiarities and size and performance. To interact with this model, I used OpenWeb UI that is an intuitive user interface that allows me to easily manage and communicate with the various LLMs I want to test. A bit like a control center for my fleet of artificial intelligences. And um despite this of uh availability of local LLMs, uh usable as if if I were on chat GPT, my operational capabilities remain remained limited.
However, I feel that I experimenting uh while experimenting with these local models, my search for an AI that acted directly led me to a turning point. I found a tool that uh could do exactly what I wanted to do. Rook code. Rookode is an extension for Visual Studio Code derived from client initially created for specific specific use with Cloud AI. Initially I used the rookode by connecting it directly to powerful cloud models like Gemini, Cloud or Chat GPT, obtaining uh remarkable results.
I could effectively interact with my local system, create files, and execute commands. But my real ambition was to create a completely local development environment to have full control over it and take advantage of all the benefits I mentioned earlier, including privacy costs and limitation. So I didn't stop and continue to experiment with elements managed by OLAMA, despite being clearly less performant than their giant counterparts. But with extremely limited functionality.
Open Web UI offers the possibility to interface with better structures APIs for Rookode, like uh OpenAI chat GPT, and using it as a bridge between roo code and OLAMA, I can finally unlock what OLAMA does not natively offer for roo code or what roo code not integrate for OLAMA. The end result is a system in which the AI, even if executed locally, produces good quality code and writes it autonomously directly on my files, overcoming the initial limits and giving me uh unprecedented control. Not just goodbye to copy paste, welcome to my little AI.
So let's deep dive in the art of an anatomy of an AI agent. We need three components function calling, an optimized large language model, and the system prompt. While large language models extend excel to understanding and generating text without function calling, they would not be able to go further and be operational.
To better understand this mechanism, we can use uh an analogy. Function calling is to a large language model the ability to speak a new language. If Italian or English are the languages used to communicate with the user, the format required to call the function is a sort of machine learning machine language extremely precise and structured. So the large language model must therefore translate the user's request from a natural language to this rigorous format that the external system can understand this structure language is then transmitted to the application or system that hosts the model which takes care of the actual execution of external function root provides predefined functions ready to be invoked provided that the language model is able to generate appropriate function calls for an autonomous AI agent any model is not enough it is important that the model is specifically optimized for tool use that is for the ability to recognize and use external tools with a lama I understand I understood the need to find LMs with the tools flag models that have been trained or refined to understand when and how to invoke external functions to satisfy a request.
This optimization allows the model not only to respond with text but to think in terms of action and interactions with external world the system prompt defines the personality and the fundamentals the fundamental instruction instructions given to the the large language model acting as a directive guide for its behavior and capabilities. It's like telling the AI you are a programming assistant your job is to solve problems, generate code and interact with the operating system to achieve the goal. For root code I have to be much more specific and directive instructing the model on the use of function calling and operational priorities.
These three components three three pillars calling functions an LLM optimized for the use of tools and a finally calibrated system prompt work in concert to allow the AI agent to move from reasoning to action, transforming user instruction into concrete operation. Now we will see a demo of this of this behavior so this is open web UI and these those are my local AI that I download from Olamma. Download an LLM from OLAMA is uh pretty simple, you just search for an LLM and you download based on your system capabilities.
In this case I already download a lot of um LLMs and you can just working on my local system, not this PC but connected to my VPN. So you can see that my system is working pretty pretty hard to produce this.
Impressive. That's what uh Chat GPT or Gemini already do, but that's local on my system. That's not enough for me. I need something working that's an example. Right simple HTML file. Let him cook.
And now you have to copy paste it. I want this directly on my system. How to do it with so we go in Visual Studio Code. I already prepared. Sorry for uh the waiting.
So here's how you can uh configure it. So normally you can just uh choose uh whatever you want, like uh cloud code, uh, Google Gemini. You get the API key, and uh the the magic is done. If you want to work uh locally with the recorded open web UI, you use OpenAI compatible the uh address of your local system and the port required, the API key that uh Open Web UI provided here. Just copy your API key and paste it here.
And now we we will see what happen when you try to use OLAMA to create a simple file. I already prepare it here and we ask to create a simple HTML file. A simple question, and we can see that with OLAMA. We can see that our local machine is working.
OLAMA is trying to do something, but it's not instructed to create a file. So in OpenWeb UI, I create a model going to workspace and create. I select uh the LLMs uh the the base of the um the model that uh that I wanted to use in this case uh QN and this is the system prompt that I tuned to make it work the make it work to with the root code.
And there are those are just instructions and th this is uh the the functions that the needs the LLMs needs to generate to make uh root work. So let's try this create a simple HTML file. You can see here we are and this file is in my local system, so I can open it.
And now he said that the task is completed and my file is saved on my system. Hello world. That's clear enough. You want to see something else? Okay, let's move on with my presentation. We will talk about creativity, the paradox of creativity in the age of AI, ethics, responsibility and control in the use of AI agents, transparency from black box to glass box, passing through the opaque box when we talk about uh large language models.
And we try to search for the responsible for the action. Who is responsible for what an LLM LM can do? The commonly widespread use of artificial intelligence to date shows that the creative part is precisely what LLMs prove to be incredibly performant. Most used by community leading the average user to settle for simple chat or to be spoon-fed by what is offered by the market by large corporation. AI is powerful powerfully entering the domain of artistic creation, uh, writing musical composition and design, but if AI is created creative, what is left for us humans but the boring part?
Do we need to redefine our role in a world where creativity is no longer a human monopoly? This question brings to to mind a controversial figure of Valerie Solanas, the one who wrote the scam manifest. Although her message was radical and extreme, I fully agree with one of her central ideas, the institution of complete automation to eliminate all boring and tedious tasks, freeing human beings for creative and artistic uh activities. To begin with, owning an LLM in the local in your local system is a fundamental requirement to put the individual and their creative spirit at the center, after which agents like code allow us to approach the ideal of liberation from boring tasks while offering control during the creative and executive process.
We can then we can see Google AI Studio, Groc. Okay. So, as things stands, we use the local LLMs and the system I showed you earlier, when the same purpose is achieved with a new Google feature, totally for free. As you may have guessed, I didn't limit myself to copy paste issue, which helped me understand the mechanism of uh agency KIs. I also encountered the apparent problem of censorship, censorship.
Language models, both proprietary propriet um proprietary and those I manage locally, avoid political topics, technical questions on sensitive topics or even simple digression that touched on vulgar or heavy topics. The choice of L LLM and the services that allow that allow its use touches our own nerve in AI ethics. The distinction between the neutral tool and the moral guardian. For my point of view, responsibility for an action can never be attributed to artificial intelligence. It is and must remain a tool, just like a hammer or search engine.
Responsibilities is and must remain firmly in the hands of the user. However, the design of these tools can strengthen or dangerously weaken this fundamental principle. To understand how this happens, we can classify LMS along a spectrum of openness ranging from black boxes to glass boxes. The black box is Google Gemini is good is Chat GPT. You have less control and you have the obfuscation of responsibility. They would refuse to answer, stating that stealing is wrong.
Although the stated intent is to prevent harm, this behavior creates two profound ethical problems. And we have and then we have glass box that are totally open source. And its role is not to be a moral guardian, but a powerful amplifier of knowledge and skills.
So, who is responsible? The real ethical debate is not whether an AI can be open or closed, but whether it is designed to treat the user as a responsible adult or as a child to be monitored. A model that refuses to answer is not a tool at our service, but an authority, an authority to which we are subjected. An authority that violates the fundamental principle that each individual is the sole and ultimate responsible for their own action. If any agent by mistake or due to an ambiguous ambiguous instruction deletes a crucial file, is the responsibility mine for giving distraction the developer of the agentic AI or the language model itself that interpreted the instruction? Those are complex questions that society must face as AI becoming becomes increasingly integrated and autonomous.
I believe that development should tend towards empowering and educating humans rather than the tool rather than the tool. The ethical part is not an appendix but a fundamental pillar of AI development. This brings us to the last stage of my journey. But individual control on one's own PC is not enough.
If my research has led me to desire an AI that is a glass box, a transparent and neutral tool that empowers the user, the next question is inevitable. What architecture can guarantee this transparency this control on a global scale? The answer I foresee and that I hope to explore here with you lies in the principle of decentralization and blockchain. I have seen projects that try to decentralize computing power to avoid the living resources only in the hands of a few giants.
Related talks
- AI e DeFAI: l’evoluzione della finanza decentralizzata – Blockchain Day Federico II 2025
- Agent Bootcamp with x402 I Lincoln Murr
- The Trustless Agentic Economy with ERC 8004 and x402 I Ed Marquez
- ASI Workshop I Rishank Jhavar
- KeeperHub: Onchain Agent Execution Layer I Luca Malpiedi
- Emile Baizel I Building GenAI applications with Amazon Bedrock I Agentic Ethereum 2025
- Building With x402 Agents, Paid APIs, & Embedded Wallets
- Giovanni Piccirillo - AI Agent e regolamentazione: Opportunità e sfide per un futuro responsabile
- Kshipra Dhame I A comprehensive showcase of AI Agents and Agentic LLMs I ETHGlobal Cannes 2025
