Skip to content

chore: Amp orb setup/resume - #1

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

undivisible merged 1 commit into
mainfrom
chore/orb-setup

Conversation

@undivisible

@undivisible undivisible commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds .agents/setup and .agents/resume so Amp orbs get rustup/stable (fmt+clippy), cmake/ninja, and a locked cargo fetch. Resume only restores cargo PATH.

Validation

  • Cold setup: ~17s
  • Warm setup: ~0.4s
  • Resume: <1s
  • Login shell (bash -lc) sees rustc/cargo

Low-risk, reversible, no runtime behavior change. Safe to auto-merge once CI is green.


Note

Low Risk
Dev-only agent/orb bootstrap and gitignore; no application runtime or production behavior changes.

Overview
Adds Amp orb bootstrap scripts under .agents/ so agent environments can build the Rust rig repo without manual toolchain setup.

.agents/setup is an idempotent cold-start script: installs missing apt build deps (cmake, ninja-build, etc.), installs/configures rustup with stable rustfmt and clippy, and runs cargo fetch (locked when Cargo.lock exists). Steps are timed for visibility.

.agents/resume is a fast wake hook that puts cargo/rustc on PATH, sources rustup env, fails with a pointer to setup if tools are missing, and idempotently appends a # rig cargo PATH block to ~/.bash_profile so non-interactive login shells (Amp services) see the toolchain.

.gitignore now ignores .amp/portals/ local portal artifacts.

Reviewed by Cursor Bugbot for commit 55995d9. Configure here.

Install rustup + rustfmt/clippy and fetch the Cargo lockfile so future
orbs start with a working toolchain. Resume only restores PATH.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a631-e46a-72bc-b264-7b5e14a3e6ef
Co-authored-by: Max Carter <undivisible@vk.com>
@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_a04c4231-19ec-4a57-8f66-866727cd3259)

@undivisible
undivisible merged commit d7aec42 into main Sep 15, 2026
5 checks passed
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