Skip to content

Add Cloud Agent development environment setup - #1

Open
dunknowcoding wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-46c9
Open

Add Cloud Agent development environment setup#1
dunknowcoding wants to merge 1 commit into
masterfrom
cursor/setup-dev-environment-46c9

Conversation

@dunknowcoding

Copy link
Copy Markdown
Owner

Summary

Adds a Cloud Agent development environment for the RoboServo Arduino library. The environment provisions the same toolchain CI uses so agents can compile the example sketches out of the box.

RoboServo is an Arduino library (not a runnable service), so "running the application" means compiling the example sketches against a real embedded toolchain. This mirrors .github/workflows/ci.yml.

Changes

  • .cursor/environment.json — defines the environment (user: ubuntu, install: bash .cursor/install.sh).
  • .cursor/install.sh — idempotent bootstrap that:
    • installs the pinned Arduino CLI v1.5.1 (with SHA-256 verification, matching CI),
    • installs the arduino:avr@1.8.7 core,
    • compiles the driver-API examples (HBridgeDriver, StepDirDriver, FourWireStepper, Pca9685Servos) for arduino:avr:uno as a smoke test.

Verification

All four CI examples compile successfully. Additional AVR-compatible examples (BasicServo, MultipleServos, Servo360, ServoAndMotor, ADCServoControl, PlatformSmoke) also compile. Examples that fail on AVR (e.g. HighSpeedServo) do so because they use platform-specific APIs like Serial.printf for ESP32/ESP8266 targets — expected, not an environment problem.

arduino-cli  Version: 1.5.1
arduino:avr  1.8.7  Arduino AVR Boards

HBridgeDriver    -> 3360 bytes (10%) flash, 141 bytes (6%) RAM
StepDirDriver    -> 2990 bytes (9%)  flash, 147 bytes (7%) RAM
FourWireStepper  -> 2496 bytes (7%)  flash, 148 bytes (7%) RAM
Pca9685Servos    -> 3964 bytes (12%) flash, 233 bytes (11%) RAM
Open in Web Open in Cursor 

Co-authored-by: DunnoCoding_Plus <dunknowcoding@users.noreply.github.com>
@dunknowcoding
dunknowcoding marked this pull request as ready for review August 26, 2026 17:23
Copilot AI lite review requested due to automatic review settings August 26, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a Cursor “Cloud Agent” bootstrap environment for the RoboServo Arduino library, installing a pinned Arduino CLI + AVR core and validating the toolchain by compiling key examples.

Changes:

  • Add an idempotent installer script to fetch/verify Arduino CLI, install arduino:avr@1.8.7, and compile examples.
  • Add Cursor environment definition to run the installer during environment setup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.cursor/install.sh Bootstraps Arduino CLI + AVR core and verifies by compiling examples.
.cursor/environment.json Defines the Cursor environment and runs the install script.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .cursor/install.sh
mkdir -p "$BIN_DIR"
export PATH="$BIN_DIR:$PATH"

# Ensure ~/.local/bin is on PATH for future non-login shells.
Comment thread .cursor/install.sh
Comment on lines +26 to +31
local archive="/tmp/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz"
curl --fail --location --retry 6 --retry-all-errors --retry-delay 10 \
--output "$archive" \
"https://github.com/arduino/arduino-cli/releases/download/v${ARDUINO_CLI_VERSION}/arduino-cli_${ARDUINO_CLI_VERSION}_Linux_64bit.tar.gz"
echo "${ARDUINO_CLI_SHA256} ${archive}" | sha256sum --check --strict
tar -xzf "$archive" -C "$BIN_DIR" arduino-cli
Comment thread .cursor/environment.json
@@ -0,0 +1,5 @@
{
"name": "RoboServo",
"user": "ubuntu",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants