Give Pi a public GitHub repository to review. Come back from another terminal to fix what it found and run the tests. The checkout and Pi's conversation stay together in a floo sandbox for two hours from creation.
Install Node.js 24 or newer, Git, and the floo CLI. Sign in to the floo org you want to bill for sandbox and model usage.
git clone https://github.com/getfloo/pi-durable-starter.git
cd pi-durable-starter
npm ci
floo auth login
export FLOO_API_KEY="$(floo auth token)"
npm run reviewThe example includes a cart calculation and two Python tests. Pi finds why a quantity of zero is charged as one unit. Copy the project ID from the output. From this directory in a new terminal, run:
export FLOO_API_KEY="$(floo auth token)"
printf "Project ID: "
read -r PROJECT_ID
npm run resume -- "$PROJECT_ID" "Fix the issue you found and run the same tests."
npm run stop -- "$PROJECT_ID"To use a different org than your credential's default, export its ID in FLOO_ORG_ID before starting and when reconnecting.
npm run review -- https://github.com/pallets/itsdangerous "Review the URL-safe serializer and explain one edge case. Leave the files unchanged."The starter makes a shallow clone of the default branch. Edits and test output belong to that project. Save any changes you want before stopping it. The starter does not push commits.
Export FLOO_API_KEY in the shell where you launch Pi. Install the package and open Pi:
pi install git:github.com/getfloo/pi-durable-starter
piIn Pi, type /floo start demo or /floo start https://github.com/pallets/itsdangerous. Pi displays the review and project ID in the conversation. Type /floo resume <project-id> Fix the issue you found and run the tests. to continue. End the project with /floo stop <project-id>. The command runs a hosted Pi Durable agent. Ordinary Pi prompts still use the tools configured for your local session.
Set up https://github.com/getfloo/pi-durable-starter using its README. Check Node and floo sign-in, then run the cart review. Show me the review and project ID. Wait for my next message before fixing the bug. On resume, use the same project, run the tests, and report the result. Keep credentials out of chat.
The launcher bundles the Pi worker and writes it into a floo sandbox. Each turn runs Pi's coding tools inside the checkout at /work/repo. Pi Durable writes its transcript to /work/pi-session. A new turn reopens that transcript under a file lock so two clients cannot write it at once. The model uses the sandbox's floo gateway credentials. The user's floo API key stays with the launcher.
The two-hour lifetime includes time between turns. Stopping or expiring the sandbox ends access to the checkout and transcript. Use this starter with public repositories you trust to run code in your floo org.