Repository navigation
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
stopMCP 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.jsoncover paths, ignore rules, safe-stop code and output limits. i2c_scanandgpiohelp check wiring.monitorcan return as soon as its output matches a regular expression. Long tool output is capped.
Files, panel and telemetry
pullcopies files from the board and protects existing local files by default.syncsupports 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
telemetrytool 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_setupconfigures the board over USB while preservingboot.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.