awa checkpoint — explicit checkpoints
awa checkpoint [-m <message>]
awa checkpoint records an explicit checkpoint of the whole configured worktree
scope. These are user-authored markers of "what did this project look like at
this moment".
awa checkpoint -m "<specific-checkpoint-message>"
<specific-checkpoint-message> is a short description of this baseline; replace
the placeholder, and do not copy it literally.
A checkpoint has one durable address: the immutable id awa checkpoint prints.
The message explains the checkpoint to a human and is never used to look one up.
Use a specific message each time — do not reuse one generic message forever.
awa checkpoint also prints copyable follow-up ranges
(awa changes <checkpoint-id>..now, awa diff <checkpoint-id>..now); keep the
id if a review/fix loop will continue, because latest is shared project-local
state and can move if another agent checkpoints. Any unambiguous leading portion
of an id works wherever the full id does (see awa help refs).
awa checkpoint takes no path argument — it always covers the full scope; a
path is a usage error. Path filters belong to comparison output (see
awa help diff), not to partial checkpoints.
What a checkpoint records is project policy, not a per-invocation flag, and it
lives in the [checkpoint] config table: whether file contents are stored or
only hashed, which files keep only their hash (hash_only_patterns, by default
conventional env files), whether renames are detected, and the default diff
context. Which
paths are in scope is a separate decision with its own rules (see
awa help ignores); within that scope a checkpoint always includes
files git does not track, and no setting changes that. store_file_contents
and hash_only_patterns change a checkpoint's recorded storage policy, not its
tree identity: a hash-only file is still compared, but that checkpoint cannot
show its text diff or restore its bytes (see awa help privacy).
Records made before and after such a change are not equivalent evidence. The
keys and their defaults are in
awa help config.
Keeping and recovering the id
Keep the id when you create the checkpoint. For a script, the JSON result
carries it as data.id (full) and data.short_id:
awa checkpoint -m "<specific-checkpoint-message>" --json
To recover an earlier id, list checkpoints and pick by message and time; then use the id, never the message, as the address:
awa log -n 5 # newest first: short id, message, time
awa log -n 5 --json # data.checkpoints[].id and .message
Ids are local to this project's .awa/ store. latest names whichever
checkpoint is newest, so another agent's checkpoint moves it; an id you kept
does not move.
Listing
awa log explicit checkpoints only (the default timeline)
awa log --all explicit checkpoints plus recorded runs
Comparisons default to the range latest..now, so right after a checkpoint:
awa changes # summarize changes since the latest checkpoint
awa diff # textual diff, latest..now
A clean delta only means "no changes since that checkpoint" — do a full uncommitted-worktree pass before final acceptance, not just the checkpoint delta.
A checkpoint is also a repair source
Comparison is not all a checkpoint is for: awa restore uses one as the
evidence for putting selected paths back after an accidental generator or
formatter rewrite. Preview first, name the paths, and let --apply be the
deliberate step — see awa help restore.