Skip to content

thonny-ai 0.2.0

Latest

Choose a tag to compare

@AstroQuestStudio AstroQuestStudio released this 25 Nov 15:36
be2132d

Install (Windows portable): Download Thonny-AI-portable.zip, extract it, and run thonny.exe.
Install in an existing Thonny: Open Tools → Open system shell… and run pip install git+https://github.com/AstroQuestStudio/thonny-ai.
Install for Claude Code: Open View → AI Assistant and click Connect Claude Code.

Real-board validation in progress (unit + e2e tests pass)

Robot control and safety

  • The STOP button and the stop MCP tool interrupt execution and run the project's safe-stop code. Interrupts and timed-out runs use the same safe-stop code. Stop and interrupt actions bypass the approval prompt.
  • The watchdog can trigger an emergency stop on program errors or a missed heartbeat. Project settings in .thonny-ai.json cover paths, ignore rules, safe-stop code and output limits.
  • i2c_scan and gpio help check wiring. monitor can return as soon as its output matches a regular expression. Long tool output is capped.

Files, panel and telemetry

  • pull copies files from the board and protects existing local files by default. sync supports ignore rules and optional deletion, with a dry run available.
  • The AI Assistant panel shows live board status, clearer approval prompts, and a filterable log with copyable code and results. MCP tool annotations flag read-only and destructive actions.
  • The telemetry tool summarizes readings. Thonny's live Telemetry view adds selectable time windows, pause, and CSV export.

Wi-Fi and bare metal

  • WebREPL adds Wi-Fi transport alongside Thonny and USB. wifi_setup configures the board over USB while preserving boot.py.
  • Six bare-metal tools cover Pico W and Pico 2 W project creation, build, flashing, console access, and restoring MicroPython.

The suite has 193 unit tests. tests/hardware_check.py exercises the tools on a real board.