Ephemeral workspaces for AI agents

Author profile pic
Juri Strumpflohner
Published

Starting work in a repo usually means running a checklist first: is the worktree clean, do I need a new one, is it up to date. Polygraph takes that off your plate. You start a session, pick the repos, and each one is provisioned into its own worktree for you.

Here I start a session from my home directory, not inside any repo, pick two template repos, add a third mid-session by name, and have the agent broadcast work to the sub-repos. Nothing was cloned beforehand, and nothing on my existing branches got touched.

  • 🔗 Links:

  • Polygraph: https://trypolygraph.com

  • 📖 Chapters:

  • 00:00 Working across repos without the setup

  • 00:18 The worktree dance you do today

  • 00:37 Just start a session

  • 00:48 polygraph session start

  • 01:01 Picking repos and a primary

  • 01:30 Session name and agent

  • 01:37 Repos provision themselves

  • 01:54 Everything lands in a worktree

  • 02:08 Adding a repo mid-session

  • 03:02 Broadcasting to sub-agents

  • 03:32 Wrapping up with PRs

  • 03:39 Why this is a mindset shift