chore: add orb setup and resume hooks

Fresh Amp orbs start without a Rust toolchain or Nix, so every agent would
repeat the same install. `.agents/setup` installs Nix (single-user),
realizes the flake dev shell, activates it for the login shells Amp and orb
services start, and warms target/ so the first agent command is incremental.
`.agents/resume` re-checks the toolchain after a pause.

Also ignore .amp/portals/ so orb runtime files stay out of git status.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0ba76-221d-728b-9d68-45ab48750d3d
Co-authored-by: The Diligence Dev <thediligencedev@gmail.com>
This commit is contained in:
Amp 2026-09-19 16:34:34 +00:00
commit cbf5694441
No known key found for this signature in database
3 changed files with 183 additions and 0 deletions

2
.gitignore vendored
View file

@ -11,6 +11,8 @@ docs-internal/
# Large research data files
research/
# Amp orb runtime files
.amp/portals/
# Added by cargo