What were you building, and why?
I was building HormigasAIS, an evolving ecosystem for sovereign edge computing, distributed AI agents, lightweight communication protocols, and human-centred governance.
The name combines "Hormigas," the Spanish word for ants, with AIS, meaning Artificial Intelligence System. The project was inspired by the way ant colonies coordinate complex activity without relying on a conventional central leader. I wanted to explore whether software agents could exchange lightweight digital signals, share knowledge, and coordinate tasks without sending every decision through a central cloud or controller.
My work began with a practical experiment involving solar energy, thermal sensors, and local measurements associated with geographic coordinates. I needed a small and autonomous environment that could collect and process information locally. Instead of starting with an expensive workstation, I used a Samsung A16 smartphone running Android and Termux.
The phone became more than a communication device. It became an energy-efficient edge-computing node and a development environment.
A concrete implementation of this idea is the hormigas-avatar-lbh repository. It contains a local swarm of seven lightweight agents that communicate through signed LBH frames and produce a speaking avatar.
The seven-agent pipeline is:
Exploradora → Razonadora → Voz → Fonemas → Render → Vigía → Reina The agents clean and classify input, select a response, generate local audio, convert text into mouth shapes called visemes, render SVG frames, verify the complete chain, and consolidate the final package.
What did you expect to happen?
At first, I expected to build a small local monitoring experiment. I thought the project would remain a practical automation system involving a few scripts, sensors, and local measurements.
I did not expect it to grow into a broader investigation of distributed systems, edge computing, agent communication, cryptographic evidence, and human participation in autonomous systems.
I also expected that the main challenge would be writing code. I learned that the harder questions were architectural and philosophical:
- Where should computation happen?
- What should an agent be allowed to do while disconnected?
- How can people verify digital evidence instead of relying only on a developer's word?
- How can a distributed system avoid recreating the same hierarchy it was designed to replace?
The avatar repository helped make the idea more concrete. A complete cycle can run locally in Termux using Python. It can generate a WAV audio file, a sequence of SVG avatar frames, and a final package containing status and verification results.
The system can use Piper or espeak-ng for local speech generation. If those engines are unavailable, it can use a simpler standard-library fallback. This allowed me to test the architecture on constrained hardware instead of leaving it as an abstract diagram.
The moment you realized something was off
The turning point came when I realized that building a supposedly decentralized system while keeping myself as the unquestioned authority would reproduce the same centralization I was trying to examine.
I began asking whether the human should remain an external supervisor or become a recognized component of the protocol.
That led to a principle that became central to the project:
"El humano es una pieza inmersa, no externa."
In English:
"The human is an embedded component, not an external one."
For me, autonomy does not mean removing humans from important decisions. It means giving agents operational independence within explicit contracts, deterministic rules, and human governance.
The implementation also made another issue visible: autonomy needs boundaries.
The repository includes a .human contract that limits input to 280 characters, audio to 15 seconds, and output to 60 frames. It also states that the avatar must not impersonate real people or deceive users about its nature.
If the contract is missing, a limit is exceeded, or a verification fails, the cycle stops instead of improvising.
Everything you tried (including what didn't work)
I experimented with Android, Termux, shell scripts, Python services, local servers, distributed nodes, automation workflows, and different communication channels.
I worked with constrained memory, mobile process management, intermittent connectivity, and the difficulty of connecting different languages and environments.
Some approaches were too heavy for the device. Some services were fragile when treated as one-off background processes. Some communication ideas created unnecessary overhead.
These failures pushed me toward smaller protocols, explicit service supervision, and a clearer separation between an idea, a specification, an implementation, a test, and evidence.
In the avatar implementation, every stage passes a signed LBH frame to the next stage. The LBH protocol implementation includes a version, agent role, signal type, flags, timestamp, payload length, JSON payload, and an HMAC-SHA256 authentication code.
The local key is generated or read from:
~/.hormigas-avatar/lbh.key The key is kept outside the repository so that the secret is not stored with the source code.
The Vigía checks signatures, hashes, limits, the .human contract, and whether the knowledge used by the agents is synchronized. The Reina only delivers a final package after approval.
The Razonadora can also emit a KNOWLEDGE_PHEROMONE signal. In this repository, it is a local extension rather than one of the base signals in the public SDK. It carries a knowledge base and its SHA-256 hash. Receiving agents adopt it only after checking the role, signature, and hash.
This distinction is important because it separates what the repository implements from what belongs to the broader protocol specification.
Who did you ask for help?
I learned through documentation, open-source communities, developer tools, automation platforms, and repeated experimentation.
I also learned from the limitations of the devices and environments I was using. Publishing the work and receiving questions from other people helped me identify where the vision, specification, implementation, and evidence needed to be separated more clearly.
The project is not an island. It began with my own curiosity, but it needs other people to challenge assumptions, test the protocols, inspect the evidence, and help the ecosystem grow beyond one person.
The technical story and broader context are described in the CoderLegion article Building a Sovereign AI Colony From a Smartphone: Cristhiam Hernández's Developer Journey.
Where things stand now
HormigasAIS is moving from a smartphone-based experiment toward a more structured project.
The hormigas-avatar-lbh repository provides a reproducible local demonstration. It includes:
- a seven-agent pipeline;
- signed LBH communication frames;
- a local knowledge base;
- aliases and pronunciation rules;
- local audio generation;
- viseme generation;
- SVG avatar rendering;
- verification and contract checks;
- logs and tests;
- Termux usage instructions;
- an MPL-2.0 license.
The main execution script shows how the agents are connected into one complete cycle.
The project is designed to run locally in Termux and uses Python's standard library for its core implementation. Optional voice engines can improve the output, but fallback behaviour allows the basic cycle to run on constrained hardware.
I have also been organizing the architecture, technical evidence, roadmap, business model, social impact, and supporting material in KREA, a project data room for possible collaborators, accelerators, investors, and customers.
The Ants-Legion repository includes a public traceability approach based on the sequence:
Idea → Concept → Specification → Implementation → Test → Evidence This distinction is important because not every concept described in the project is production code. The project continues to evolve, and some public verification work is still being completed.
The repository should be understood as a working local demonstration of the architecture, not as proof that every long-term ambition has already been completed or independently audited.
Anything else you want our guests to weigh in on?
I would like feedback on how to make distributed AI systems understandable and testable for people who are not specialists.
I am especially interested in questions about:
- protocol design;
- edge computing;
- agent identity;
- failure testing;
- human governance;
- evidence verification;
- local autonomy;
- the trade-offs between local processing and public connectivity.
I would also like developers to look at the fail-closed design. When the contract, signature, hash, or limit check fails, the system retains the package and reports the reason.
I think this is a useful pattern for small AI systems: a limited system that refuses to emit an unverified result may be more trustworthy than a larger system that always produces an answer.
My advice to other developers is to start before the entire plan is clear.
HormigasAIS began with a small idea and fourteen lines of notes associated with .human. Those notes eventually became the starting point for a much larger vision.
Do not wait for a perfect workstation, a perfect architecture, or complete certainty. Build a small experiment, document what happens, test your assumptions, and let the work evolve.
Keep your feet on the ground and your heart among the stars.

