Invoke LLM
Read the shared
../../references/gptengage-invocation.md
contract and the selected
../../references/gptengage-invoke.md
recipe before calling a backend.
Workflow
- Parse the CLI selector, prompt, and supported options using the operation recipe. Treat the first token as a selector only when it names a known CLI, comma-separated CLI list, or plugin.
- Default to
gemini,claude, thencodexwhen no selector is present. Invoke each separately with the identical prompt and applicable options. - Resolve the authorized existing
gptengageexecutable and run only itsinvokeoperation. Default the inner--timeoutto 600 seconds unless the user supplied one. - Label multi-CLI results by backend, inspect failures and malformed output, and integrate the results into the user's requested work.
Boundaries
- One requested CLI suppresses the default trio; never silently substitute a different backend.
- A session persists full conversation turns and must be deliberately named.
--writerequires explicit write intent and grants no remote-write authority.- Never change the prompt merely to make backends agree.