clink always injects “Gemini CLI agent” guidance text regardless of selected cli_name

Author: chenbehCreated Jun 30, 2026Updated Jun 30, 2026

When using the clink tool with a non-Gemini CLI (e.g. cli_name: "claude"), PAL correctly invokes the configured CLI agent, but the prompt sent to that agent always includes hardcoded guidance that says “You are operating through the Gemini CLI agent.”

This is misleading for Claude Code, Codex, Qwen, etc., and makes logs/debugging confusing. It does not appear to break execution — the right CLI still runs — but the prompt wrapper does not reflect the actual backend.

Actual behavior The prompt includes:

You are operating through the Gemini CLI agent. You have access to your full suite of CLI capabilities…

even when cli_name is "claude" (or any other configured CLI).

Expected behavior The guidance text should name the actual CLI being invoked, e.g.:

You are operating through the Claude Code agent

when cli_name is "claude".

I assume the root cause _agent_capabilities_guidance() is hardcoded:

Source: BeehiveInnovations/pal-mcp-server