Foundry keeps AI coding agents working through multi-day software jobs. This guide sets up the Cursor command-line agent behind a Foundry job.