This is the concise command reference for codex-handoff.
Attach or reconcile the current repo.
Typical use:
codex-handoff setupPull synced repo state on another machine and restore the selected thread locally when possible.
codex-handoff receiveRun a one-shot export and push for the current repo.
codex-handoff sync nowDetach the current repo from codex-handoff management.
codex-handoff detachcodex-handoff uninstall remains as a compatibility alias.
Remove local handoff artifacts from .codex-handoff/ while preserving repo
credentials and repo attachment metadata.
Preview:
codex-handoff purge-localApply:
codex-handoff purge-local --applyInspect local handoff artifacts.
Inspect repo state, sync state, runtime state, and local prerequisites.
Inspect sync health for the current repo.
Inspect the optional root repo-level memory artifact. This is not part of the
default bootstrap read path, which stays inside .codex-handoff/synced-threads/.
Run isolated AI-assisted summarization and atomically update
.codex-handoff/memory.md.
This command is optional and manual. The default bootstrap flow does not depend on repo-root memory files.
By default this passes a compact deterministic thread-digest.json into the
isolated summarizer and does not copy full thread bundles. Use
--max-threads <n> only when deeper evidence is needed.
Current memory behavior is append-oriented: a stable repo summary is kept near
the top of memory.md, and newer conversation summaries are appended as
timestamped update blocks instead of regenerating the whole file each time.
Inspect background agent and watcher state.
Validate or write Cloudflare R2 credentials into the global
~/.codex-handoff/.env.local.
Useful variants:
--from-clipboard--from-env--dotenv ~/.codex-handoff/.env.local
Show the active R2 credentials source for the current machine.
Validate the active remote credentials.
Clear the global ~/.codex-handoff/.env.local credentials file.
List synced repo slugs visible in the remote backend.
Delete the remote R2 prefix for one repo slug.
Preview:
codex-handoff remote purge-repo --repo-slug <slug>Apply:
codex-handoff remote purge-repo --repo-slug <slug> --applyStart the detached global background agent.
Stop the detached global background agent.
Restart the detached global background agent.
Enable login-time auto-start.
Disable login-time auto-start.
Find local Codex threads whose cwd matches the current repo.
Export matching threads into .codex-handoff/local-threads/.
Restore a bundled thread into local Codex state.
Remove restored local thread artifacts for a thread.
Generate a restore pack from local handoff state.
Explicit variant of resume.
Search raw handoff evidence.
Print exact records for a session or turn.