I built a 17-agent AI swarm on my phone — here's how
Описание и применение
Создана 17‑агентная AI‑сеть, работающая полностью на смартфоне без облака, используя Pyodide и PWA, обеспечивая локальную обработку данных и принятие решений.
Задача
Running a distributed, resilient, and private AI swarm entirely on a smartphone without cloud dependencies.
Результат
The swarm achieved real-time sensor monitoring, activity recognition, and adaptive device settings entirely on-device, demonstrating edge AI feasibility.
Рабочий процесс
- Wrap Python code in an HTML page with Pyodide
- Install the page as a PWA for native-like experience
- Define 17 agents (sensors, processors, decision makers, communicators) as Python classes
- Use asyncio event loop to run agents concurrently
- Implement inter-agent communication via a Python queue
- Process sensor data, make decisions, and trigger actions through browser APIs
- Iterate continuously in a feedback loop
Доказательства
I wrapped my Python code in a simple HTML page using Pyodide and then used a progressive web app (PWA) approach to "install" it on my phone.
Each agent is a Python class responsible for a specific task. My swarm consists of 17 agents, broadly categorized as: Sensors, Processors, Decision Makers, Communicators.
The biggest hurdle was, unsurprisingly, execution. Standard Python interpreters on Android (like QPython) are often limited and can feel sluggish. That’s where Pyodide came in.
- Дата записи: 2026-10-09T09:55:59.534Z