Four subcommands cover the loop.
Each subcommand is dispatched in src/main.js (:883–:928) and implemented in src/core/session.js.
sess run
Dispatch: src/main.js:928.
Flags: --session <id>, --from <id>, --provider, --name <string>, --root, --context-mode, --caveman, --with-context, --interactive, --timeout, --fail-on-stale, --skip-refresh.
Creates .agentify/session/<new-id>/ with manifest and fitted context, then launches the provider.
sess resume
Dispatch: src/main.js:917 · resumeSession(root, sessionId).
Flags: --session <id>, --provider, --root; positional task tokens after flags are appended to the resume prompt.
Reads session-manifest.json and context.json, appends to run history.
sess fork
Dispatch: src/main.js:897 · forkSession(root, config, { from, provider, name }).
Flags: --from <id>, --provider, --name <string>, --root; positional task supported.
Creates a child session with a new id; carries forward checklist and run history from the parent.
agentify sess fork --from <id> --name "payments-v2-review"sess list
Dispatch: src/main.js:883 · listSessions(root).
Flags: --root, --json.
Prints session id, provider, and creation time. With --json returns the full manifest list.
Files under .agentify/session/<id>/
Names below are the exact filenames written by src/core/session.js and the related session-memory and handoff modules.
agentify context compact runs.
agentify handoff --session <id>.