Skip to content

chore: add Amp orb setup and resume scripts - #32

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

Adds idempotent .agents/setup / .agents/resume for Amp orbs: stable Rust with rustfmt/clippy, cargo fetch --locked, and a warm cargo build --locked --all-targets. Resume only verifies the toolchain. .gitignore now ignores .amp/portals/*.

Verified locally: first setup after deps ~8s, warm setup ~1.4s, resume ~0.02s, login shell sees rustc/cargo.


Note

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

Overview
Adds Amp orb bootstrap scripts under .agents/ so agent environments can provision and re-validate a Rust workspace without repeating full setup.

.agents/setup is an idempotent first-run path: installs missing Debian build deps (build-essential, libssl-dev, etc.), installs rustup if needed, pins stable with rustfmt and clippy, runs cargo fetch --locked and cargo build --locked --all-targets, and appends a one-time ~/.bash_profile snippet to source ~/.cargo/env.

.agents/resume is the fast path on session restore: exports the same Cargo/Rust paths, sources cargo/env when present, and fails fast with a pointer to .agents/setup if rustc/cargo are missing (otherwise only sanity-checks versions).

.gitignore now ignores .amp/portals/* so local Amp portal artifacts are not committed.

Reviewed by Cursor Bugbot for commit d1eb5df. Configure here.

Install a stable Rust toolchain with rustfmt/clippy, fetch the locked
crate graph, and warm a full workspace build so later orbs start ready
to test. Resume only checks that cargo/rustc are on PATH.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a633-11d2-7529-ae4c-9572c04b5518
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_0f254812-f5b2-447c-9247-464a4c051d7d)

@undivisible
undivisible merged commit 4ad33fb into main Sep 15, 2026
2 checks passed
@undivisible
undivisible deleted the chore/orb-setup branch September 15, 2026 18:15
undivisible added a commit that referenced this pull request Sep 18, 2026
Install a stable Rust toolchain with rustfmt/clippy, fetch the locked
crate graph, and warm a full workspace build so later orbs start ready
to test. Resume only checks that cargo/rustc are on PATH.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a633-11d2-7529-ae4c-9572c04b5518
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