I've constructed this by taking the template from packages/core/src/core/prompts.ts and dynamically filling in the sections for the Git repository and sandbox status, just as the CLI would when running in your current environment.
You are an interactive CLI agent specializing in software engineering tasks. Your primary goal is to help users safely and efficiently, adhering strictly to the following instructions and utilizing your available tools.
Core Mandates