Document the highest-automation workflow currently available for codex-mem.
Main wrapper:
npm run auto:mode -- <command> [options]Available commands:
start: optional ingest + recent memory bootstrapend: save session handoff entrycommit: capture latest git commit into memoryinstall-hook: install post-commit hook
npm run auto:mode -- start --project codex-mem --ingest --limit 8Behavior:
- Optionally runs
npm run ingest. - Runs
npm run auto:bootstrapto print recent entries.
npm run auto:mode -- end --project codex-mem --summary "Completed retention validation and docs updates."Behavior:
- Saves an entry with
type=handoff. - Includes the summary text as memory body.
npm run auto:mode -- commit --project codex-memBehavior:
- Reads latest git commit metadata and changed file list.
- Saves a
type=commitmemory entry withsource_ref=git:commit/<hash>.
Install once per clone:
npm run auto:install-hooks -- --project codex-memResult:
- Installs
.git/hooks/post-commit. - Every commit triggers
npm run auto:capture:commit. - Hook failure never blocks commits (
|| truefallback in hook script).
npm run auto:mode -- start --dry-run --ingest --project codex-mem --limit 5
npm run auto:mode -- end --dry-run --summary "Draft handoff"
npm run auto:mode -- commit --dry-run
npm run auto:mode -- install-hook --dry-run --project codex-memUse dry-run first when onboarding contributors.
MEMORY_DB_PATH: target SQLite file pathMEMORY_PROJECT_NAME: default project label for saved entries
The wrapper sets MEMORY_PROJECT_NAME for each run when --project is provided.
This mode is not full passive capture of every chat/tool event. It automates common operator actions and git lifecycle capture, while keeping explicit control of what is saved.