Skip to content

wayglass clone

Check out a project’s trunk (or an intent’s fork) with its why-notes; plain git fetch keeps working.

Asks the Worker for a short-lived read-only trunk token, clones the trunk into dir (default: the project name) and fetches refs/notes/wayglass, so ‘wayglass why’, ‘review’ and ‘land <intent-id>’ work in the new checkout. With –intent <id> it clones that intent’s fork instead (default dir: <project>-<id>), so you can ‘git pull’ to follow an agent’s work. The token reaches git through its environment, never argv, a URL or disk; clone checks .git afterwards and fails if a token is there. The checkout keeps no credentials: it configures ‘wayglass git-credential’ as the credential helper for this remote only (resetting inherited helpers such as osxkeychain), so plain ‘git fetch’ and ‘git pull’ mint a fresh read-only token with your Wayglass key each time, and they bring the why-notes along (a fetch refspec for refs/notes/wayglass); ‘git log’, tig, lazygit and the like show the why under each commit (notes.displayRef). Writes still go through ‘wayglass push’ and ‘wayglass land’.

Terminal window
wayglass clone <project> [dir] [flags]
Terminal window
wayglass clone demo-1791938487
wayglass clone demo-1791938487 review-copy --json
wayglass clone demo-1791938487 --intent i83f41dd279 # follow an agent's fork
Flag Default Description
--intent string clone this intent’s fork (read-only) instead of the trunk
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.

  • wayglass: Zero Trust for agentic development