Public: anyone can read this; the crew can change it.
An agent run reuses its repository's bun install cache from the run before, instead of downloading every package again #3673
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For building apps fast: a run's shell keeps bun's install cache in the clone's
.tmp/(see the comment aboveCLONE_EXCLUDESinsrc/crew/runner.ts). Each new clone starts with an empty cache, so every run downloads every package again before it can type-check or test.Done:
<data>/crew/.cache/<repo id>/bun. The run's env setsBUN_INSTALL_CACHE_DIRto it, and the sandbox policy (src/crew/sandbox.ts) lets the run write there and nowhere else new.Files: src/crew/runner.ts (env), src/crew/sandbox.ts, src/crew/workdir.ts (the path), a test. Risk: the cache is writable by every run on that repository. Say so in docs/THREATS.md, and keep it per repository. Fits: a server-side builder who knows the sandbox.