fix: working directory should exist, raise error and not try and create one
docs: improved API Lookup instructions
* test added to confirm failures
* chat schema more explicit about file paths
Fixes#291
The gemini CLI configuration had a duplicate -o json flag that caused
Gemini to return plain text instead of JSON, breaking the clink parser.
Root cause:
- Internal defaults (clink/constants.py) already provide -o json
- Config file (conf/cli_clients/gemini.json) duplicated this flag
- Result: command became 'gemini -o json ... -o json' (duplicate)
This caused Gemini CLI to malfunction and output plain text, leading to
'Failed to decode Gemini CLI JSON output' errors.
Solution:
Remove the duplicate -o json from additional_args since it's already
provided by internal defaults, matching the pattern used by claude and
codex CLI configurations.
After fix:
- Command: gemini -o json --telemetry false --yolo (correct)
- Output: Valid JSON with response and stats
- Parser: Successfully extracts content and metadata
The Claude CLI recently changed its configuration commands from
'claude config add-server' to 'claude mcp add -s user' and from
'claude config list' to 'claude mcp list'. This updates the
PowerShell setup script to detect and configure the zen server
using the new command syntax, fixing configuration detection
for Windows users.
Changes:
- Updated Test-ClaudeCliIntegration to use 'claude mcp list'
- Updated instructions to use 'claude mcp add -s user' syntax
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
Stay in codex, plan review and fix complicated bugs, then ask it to spawn claude code and implement the plan.
This uses your current subscription instead of API tokens.
Stay in codex, plan review and fix complicated bugs, then ask it to spawn claude code and implement the plan.
This uses your current subscription instead of API tokens.