Remix.run Logo
Show HN: OpenClaw-class agents on ESP32 (and the IDE that makes it possible)(pycoclaw.com)
20 points by pycoclaw 5 hours ago | 2 comments
pycoclaw 5 hours ago | parent [-]

Hi HN, I’m the creator of pycoClaw.

I wanted to run OpenClaw-class, platform-agnostic, autonomous agents on MicroPython hardware, but standard tools couldn't handle the scale of the task.

pycoClaw is the result, which bridges the gap between high-level AI reasoning and bare-metal execution.

The Stack:

- PFC Agent (~26k LOC): A full-featured agent that uses an LLM to 'self-program' its own local MicroPython scripts. Once a task is solved, it runs locally without requiring the LLM.

- ScriptoStudio IDE: A PWA https://scriptostudio.com designed for the iteration speed required by autonomous agents. Since it’s a PWA, it brings a full dev environment (including a real single-step debugger) to any platform, including iPadOS.

- ScriptoHub ( https://scriptohub.ai ): A repository for "Skills" and extensions. Since the agent can generate and execute code, I built a curated hub with automated malware checking to ensure the community can safely share and deploy hardware logic.

- IANA Protocol: To make the IDE fast and reliable, I registered a new WebSocket subprotocol (registry: https://www.iana.org/assignments/websocket/websocket.xhtml ). It’s designed for high-frequency state sync and you can read the spec here: https://jetpax.github.io/webrepl/webrepl_binary_protocol_rfc...

- Custom C Extensions: ~17,900 lines custom modules for MicroPython memory/ fast-path speed optimization

Stats: 10k LOC platform, 26k LOC PFC agent, and ~18k LOC of custom C extensions to optimize MicroPython’s memory and fast-path execution on the ESP32.

Quick Start: You can flash the runtime to an ESP32S3 or P4 in one click via WebSerial at https://pycoclaw.com. Note that all flashing and serial communication happens entirely client-side in your browser.

I'd love to hear your thoughts on the 'self-programming' model or the system architecture!

tartoran an hour ago | parent [-]

This sounds interesting but I have no idea what use case this could have other than a robot that can communicate with an LLM but it appears it's more than that. Isn't it slow to run scripts rather than have a preprogrammed hardware with tight loops written in C? I'm genuinely confused, please don't take it as a criticism. What kind of projects have you done or what do you have in mind or envisage in the future? Autonomous robots? Cheers