Closedloop.ai
Getting Started

Prepare your repo and targets

Make local execution predictable before you scale up docs or code generation.

Before you run your first loop, take a few minutes to make sure three layers are ready: your repository, your compute target, and the artifact you will execute against. Each layer reduces an entire class of failures.

Repository checklist

  • the default branch is stable and protected
  • contributor permissions are clear
  • there is a clean branch strategy for loop output (the code plugin will usually create worktrees and feature branches)
  • the repository builds cleanly with a single command
  • tests, linters, typecheckers, and the build run without manual steps
  • a CLAUDE.md or AGENTS.md exists at the repo root with conventions, commands, and guardrails (optional but strongly recommended)

Compute target checklist

  • the Desktop app is installed and running
  • in the Desktop app, Settings → Labs → Desktop App → Sandbox Directory is set to the parent directory that holds your repositories (agents can only read and write inside this folder)
  • claude, git, python3, and optionally codex are on PATH in your login shell
  • if a specific binary lives outside the default PATH, set its full path in the Desktop app under Settings → Labs → Desktop App → CLI Tools

Sandbox hard-denies

Certain paths are always denied, even inside your sandbox:

  • ~/.ssh
  • ~/.gnupg
  • ~/.aws
  • ~/Library/Keychains
  • ~/Music, ~/Pictures, ~/Photos, ~/Movies, ~/Documents, ~/Downloads, ~/Desktop
  • /etc, /bin, /sbin

Artifact checklist

  • the artifact has a clear title
  • the goal is concrete and phrased as an outcome, not as a step
  • any necessary PRD, design, or context is attached
  • the scope is small enough for one loop — resist the urge to point at a whole feature on the first try

See PRD template and Implementation plan template for starting shapes.

When these three layers are ready, loops are much less likely to fail for environmental reasons and you can focus review on whether the output actually matches the intent.

On this page