> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comet.rpamis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# comet handoff

> Generate durable design/build context and a hash that detects OpenSpec artifact drift.

`comet handoff` packages accepted proposal, design, task, and delta-spec context for build and later recovery.

This page uses `<classic-root>` for the configured Classic OpenSpec root: `docs/openspec/` for new projects and `openspec/` for projects that retain the legacy layout. The location is selected by `classic.artifact_layout`; see [Project file structure](/en/guides/project-structure).

```bash theme={null}
comet handoff <change-name> design --write
comet handoff <change-name> design --write --full
comet handoff <change-name> --hash-only
```

The command writes context under `<classic-root>/changes/<name>/.comet/handoff/` and stores the resulting path and hash in Classic state. `--hash-only` recalculates the SHA-256 without writing files, which verify can use to detect drift.

Normal users do not need to run handoff manually; `/comet-design` creates it. The packaged `comet-handoff.mjs` launcher remains for compatibility, while agents and automation should prefer `comet handoff`.
