Export the code Agent Lee generates
When Agent Lee generates a project for you — a starter static site, a Worker, a scaffold — you can now take the source with you. Agent Lee packages the generated files into a temporary repository and gives you a one-time command to clone it to your own machine.
Previously, generated code lived only in the conversation. You had to copy files out of the chat by hand, which is tedious for anything larger than a single snippet and easy to get wrong.
- Ask Agent Lee to build something, then ask it to export the code.
- An export card appears listing the files and a countdown to expiry.
- Select Copy clone command. Agent Lee fetches a fresh command and copies it to your clipboard.
- Run it in your terminal, then point the repository at your own Git host and push:
git remote set-url origin https://your-git-host.example/you/your-repo.git
git push -u origin main- The export is temporary. The repository expires about 36 hours after it is created and is then deleted automatically. The clone credential expires about an hour after it is issued. Clone promptly, then push to a repository you control.
- No credential appears in the chat. The clone command and its read-only credential are delivered only when you select Copy clone command — never in the message text or conversation history.
- Nothing is written to your account. The temporary repository lives in Cloudflare-managed storage, and connecting a GitHub or GitLab account is not required.
- Intended for small projects. An export can include up to 50 files, up to 100 KB per file and 2 MB in total.
Agent Lee remains in beta. Features and behaviors may change as the product evolves.
For details, see Export generated code.