gk ai resolve apply
Generate, write, and stage fresh resolutions
Synopsis
Generate fresh resolutions and immediately write and stage them.
This combines plan + apply and uses AI. Prefer gk ai resolve plan followed by apply-plan unless immediate mutation was explicitly authorized. It does not continue, abort, commit, or push the Git operation. Inspect allConflictsResolved and git status afterward.
Example: gk ai resolve apply –file src/a.ts –output json
gk ai resolve apply [flags]
Options
--fallback string Fallback strategy when AI fails or is unavailable: ours or theirs
--fallback-only Resolve directly from --fallback without initializing or calling an AI provider
--file stringArray Exact repository-relative conflicted path to resolve (repeatable)
-h, --help help for apply
--instructions string Guidance for AI resolution
--max-steps int Maximum model tool-calling steps per file (default 15)
Options inherited from parent commands
--no-telemetry Disable telemetry (OTel spans, Sentry) for this invocation
--output string Output format: text or json (default "text")
--session string (Optional) Isolate auth and cache under a named session
--workdir string Path to the git repository to operate on (default: current directory)
SEE ALSO
- gk ai resolve - Plan, review, and stage AI conflict resolutions