Skip to content

chore: add Amp orb setup/resume scripts - #334

Merged
undivisible merged 1 commit into
masterfrom
chore/orb-agents-setup
Sep 15, 2026
Merged

undivisible merged 1 commit into
masterfrom
chore/orb-agents-setup

Conversation

@undivisible

@undivisible undivisible commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Why

Fresh Amp orbs did not have a committed .agents/setup / .agents/resume, so agents had to install rustup by hand.

What

  • Add idempotent .agents/setup (apt packages if missing, rustup stable + rustfmt/clippy/rust-src, cargo fetch --locked for in-cli).
  • Add fast .agents/resume that only checks rustc/cargo.
  • Ignore .amp/portals/.

Cold setup ~19s in this orb; warm setup ~0.3s after PATH includes ~/.cargo/bin. Resume ~0s.

Does not change compiler behavior. Safe to merge independently of the package-install security PR.


Note

Low Risk
Developer-environment and gitignore-only changes; no application runtime, auth, or compiler behavior changes.

Overview
Adds Amp orb lifecycle scripts so fresh environments get Rust without manual rustup steps.

.agents/setup is an idempotent inauguration script: installs missing apt deps (build-essential, pkg-config, curl, ca-certificates), installs/configures rustup stable with rustfmt, clippy, and rust-src, appends a one-time .bash_profile hook to source ~/.cargo/env, and runs cargo fetch --locked for in-cli when Cargo.lock exists. Steps are timed via a small step() helper.

.agents/resume is a fast path that only sources cargo env and fails fast if rustc/cargo are missing (directing users to run setup). It does not install packages.

.gitignore now ignores local .amp/portals/.

Reviewed by Cursor Bugbot for commit 8674283. Configure here.

Give future orbs a fast, idempotent Rust toolchain path and ignore
local portal files so agents can build in-cli without manual rustup.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a631-f6de-735d-b395-b45d281f927e
Co-authored-by: Max Carter <undivisible@vk.com>
@capy-ai

capy-ai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Capy couldn't review this pull request because Max's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews.

Open in Capy

@cursor

cursor Bot commented Sep 15, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_90f015a1-5b1b-4942-854a-1ad8085f8fab)

@mergify

mergify Bot commented Sep 15, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@undivisible
undivisible merged commit e816990 into master Sep 15, 2026
7 checks passed
@undivisible
undivisible deleted the chore/orb-agents-setup branch September 15, 2026 18:18
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.

2 participants