In a direct challenge to the bloated footprints of modern AI CLIs, a developer has released liagent, a single-file Python agent that fits into roughly 370 KB with zero external dependencies. Built specifically for Raspberry Pi cyberdecks, the tool includes a web UI, Discord bot, voice capabilities, and LoRa radio support, all while running on the standard library. The release, dated December 2, 2026, positions itself as a lightweight alternative to heavyweight frameworks that demand gigabytes of storage and complex runtime environments.

The Size War Against Modern Agents

The developer measured current Linux arm64 releases from npm and GitHub on December 2, 2026, to contextualize liagent's footprint. OpenAI Codex CLI 0.173 clocks in at 424 MB, while Claude Code 2.1 requires 400 MB. Even Rust-based agents like ZeroClaw 0.9 occupy 57 MB. In stark contrast, liagent 0.9's 'zero' edition uses about 370 KB of code and relies only on Python 3.8+, which is preinstalled on Raspberry Pi OS. The 'main' edition, which uses rich and prompt_toolkit, still stays under 240 KB of code plus 12 MB of libraries, significantly outperforming Node.js-based competitors like Qwen Code and Gemini CLI.

Hardware Integration and Unique Features

Liagent distinguishes itself with features tailored for embedded hardware rather than just coding tasks. It includes a 'reflexes' system where the model converts natural language rules into JSON, which are then executed by a local loop every 250 ms to 2 seconds without consuming tokens or internet connectivity. The agent also implements a unique safety check for GPIO pins: before powering a pin, it requests a photo of the breadboard via the user's phone camera to verify LED polarity and resistor placement. Additionally, it supports LoRa radios, Arduinos, and Home Assistant over MQTT, adapting output to fit device constraints, such as transliterating Cyrillic to Latin for limited LCD screens.

Engineering for Extreme Minimalism

To achieve its minimal footprint, the developer avoided frameworks entirely, writing a custom terminal UI in about 1,000 lines of ANSI escape code. The web UI uses Python's http.server with a 12 KB embedded HTML page and Server-Sent Events, eliminating the need for WebSocket libraries. The Discord bot is implemented with roughly 70 lines of raw RFC 6455 code over SSL, and the QR code generator is a 120-line custom encoder. The developer noted that most of the initial download size came from voice samples and unnecessary library dependencies, not the core logic, emphasizing the importance of measuring before optimizing.

Key Takeaways

  • Liagent 0.9 'zero' edition runs in ~370 KB with zero dependencies, compared to 424 MB for OpenAI Codex CLI.
  • Features include a phone-camera-as-webcam trick for GPIO safety checks and LoRa radio support.
  • The agent uses 'reflexes' (local JSON rules) to handle sensor triggers without LLM token costs.
  • Installation is available via .deb packages or npx, supporting both Raspberry Pi and standard Node/Python environments.

The Bottom Line

This project is a brutal reminder that most AI agent bloat is self-inflicted by dependency hell. While it may not replace a full IDE agent for complex coding, its hardware-native approach proves that 'small' is still a viable and powerful architectural choice for edge computing.

What's Rough

The developer admits the zero edition's terminal UI is new and has only been tested on Windows and with scripted key presses, acknowledging that terminal compatibility is a 'zoo.' The Discord bot has been tested against fake APIs and echo servers but not yet live against Discord itself. Similarly, serial, LoRa, and SMS links are currently tested with simulated ports. While the agent works with any OpenAI-compatible provider, local models on a Pi 5 (like Ollama) are limited to simple commands, with complex multi-step tasks still requiring cloud models.