The gemini CLI was returning plain text instead of JSON, causing clink to fail with:
'Failed to decode Gemini CLI JSON output: Expecting value: line 1 column 1 (char 0)'
Root cause: gemini.json was missing the '-o json' flag in additional_args.
This fix adds '-o json' to ensure JSON output format, aligning with the codex pattern (which uses --json).
Tested with gemini CLI v0.8.2
Zen now allows you to define `roles` for an external CLI and delegate work to another CLI via the new `clink` tool (short for `CLI + Link`). Gemini, for instance, offers 1000 free requests a day - this means you can save on tokens and your weekly limits within Claude Code by delegating work to another entirely capable CLI agent!
Define your own system prompts as `roles` and make another CLI do anything you'd like. Like the current tool you're connected to, the other CLI has complete access to your files and the current context. This also works incredibly well with Zen's `conversation continuity`.