Skip to content

wayglass session fork

Continue a session elsewhere with its code, intent, notes and context.

Asks the Worker to fork the session’s fork into a NEW intent owned by you (same goal, reason and declared paths; the parent is recorded), stacked on the source intent like ‘intent declare –on’: your change is classified on what you add, and it lands after the source does. If the source is abandoned, your intent takes over its commits. Then it clones it with a short-lived write token scoped to the new fork only. The token reaches git through its environment, never argv, a URL or disk. The original fork’s token is never handed out.

The context is written to .wayglass/state/session.md; read it with ‘wayglass session show’. Then work, ‘wayglass push’ and ‘wayglass propose’ as usual.

Terminal window
wayglass session fork <url> [flags]
Terminal window
wayglass session fork https://api.wayglass.dev/v1/projects/wayglass/sessions/s3f9c0a12b4 --dir login-work
Flag Default Description
--dir string directory to clone into (default <project>-<session id>)
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.