{"by":"pycoclaw","descendants":6,"id":47357515,"kids":[47359458,47392629,47372612,47357518,47359745],"score":31,"text":"Hi HN, I’m the creator of pycoClaw.<p>I wanted to run OpenClaw-class, platform-agnostic, autonomous agents on MicroPython hardware, but standard tools couldn&#x27;t handle the scale of the task.<p>pycoClaw is the result, which bridges the gap between high-level AI reasoning and bare-metal execution.<p>The Stack:<p>- PFC Agent (~26k LOC): A full-featured agent that uses an LLM to &#x27;self-program&#x27; its own local MicroPython scripts. Once a task is solved, it runs locally without requiring the LLM.<p>- ScriptoStudio IDE: A PWA <a href=\"https:&#x2F;&#x2F;scriptostudio.com\" rel=\"nofollow\">https:&#x2F;&#x2F;scriptostudio.com</a> 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.<p>- ScriptoHub ( <a href=\"https:&#x2F;&#x2F;scriptohub.ai\" rel=\"nofollow\">https:&#x2F;&#x2F;scriptohub.ai</a> ): A repository for &quot;Skills&quot; 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.<p>- IANA Protocol: To make the IDE fast and reliable, I registered a new WebSocket subprotocol (registry: <a href=\"https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;websocket&#x2F;websocket.xhtml\" rel=\"nofollow\">https:&#x2F;&#x2F;www.iana.org&#x2F;assignments&#x2F;websocket&#x2F;websocket.xhtml</a> ). It’s designed for high-frequency state sync and you can read the spec here: <a href=\"https:&#x2F;&#x2F;jetpax.github.io&#x2F;webrepl&#x2F;webrepl_binary_protocol_rfc.md\" rel=\"nofollow\">https:&#x2F;&#x2F;jetpax.github.io&#x2F;webrepl&#x2F;webrepl_binary_protocol_rfc...</a><p>- Custom C Extensions: ~17,900 lines custom modules for MicroPython memory&#x2F; fast-path speed optimization<p>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.<p>Quick Start: You can flash the runtime to an ESP32S3 or P4 in one click via WebSerial at <a href=\"https:&#x2F;&#x2F;pycoclaw.com\" rel=\"nofollow\">https:&#x2F;&#x2F;pycoclaw.com</a>. Note that all flashing and serial communication happens entirely client-side in your browser.<p>I&#x27;d love to hear your thoughts on the &#x27;self-programming&#x27; model or the system architecture!","time":1773351486,"title":"Show HN: OpenClaw-class agents on ESP32 (and the IDE that makes it possible)","type":"story","url":"https://pycoclaw.com/"}