Skip to content

chore(orb): add Amp setup scripts for the Rust toolchain - #186

Merged
undivisible merged 1 commit into
mainfrom
chore/orb-setup
Sep 16, 2026
Merged

undivisible merged 1 commit into
mainfrom
chore/orb-setup

Conversation

@undivisible

@undivisible undivisible commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Why

Fresh Amp orbs for this repo had no rustc/cargo. Agents cannot run the AGENTS.md validation commands without installing the toolchain every thread.

What

  • .agents/setup installs rustup (stable + rustfmt/clippy) and cargo fetch --locked.
  • .agents/resume checks the toolchain is on PATH.
  • Ignore .amp/portals/*.

Verified in this orb: cold setup ~23s, warm setup ~0.6s, resume <1s, login shell sees rustc 1.98.1.


Note

Low Risk
Dev-environment and gitignore-only changes; no application runtime, auth, or data-path behavior.

Overview
Adds Amp orb bootstrap scripts so fresh environments get a working Rust toolchain without reinstalling every agent thread.

.agents/setup is an idempotent bootstrap: installs missing apt build deps, rustup (stable + rustfmt/clippy), appends a one-time .bash_profile hook to source ~/.cargo/env, and runs cargo fetch (with --locked when Cargo.lock exists).

.agents/resume is a fast wake check that sources cargo env and fails with a pointer to setup if rustc or cargo are missing.

.gitignore now ignores .amp/portals/* so local Amp portal artifacts stay untracked.

Reviewed by Cursor Bugbot for commit 8ef0a4c. Configure here.

Install rustup/stable, rustfmt, and clippy so orbs can run the crate
without a preinstalled toolchain. Warm setup is a no-op fetch.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a5f1-67fb-76fe-ac75-eae1b8f3a08a
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_4a5407e0-b25b-4ca0-acba-c2d4ca21bf37)

@undivisible
undivisible merged commit 803e2ef into main Sep 16, 2026
3 checks passed
@undivisible
undivisible deleted the chore/orb-setup branch September 16, 2026 01:47
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