feat!: Huge update - Link another CLI (such as gemini directly from with Claude Code / Codex). https://github.com/BeehiveInnovations/zen-mcp-server/issues/208
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`.
This commit is contained in:
@@ -51,6 +51,7 @@ from tools import ( # noqa: E402
|
||||
AnalyzeTool,
|
||||
ChallengeTool,
|
||||
ChatTool,
|
||||
CLinkTool,
|
||||
CodeReviewTool,
|
||||
ConsensusTool,
|
||||
DebugIssueTool,
|
||||
@@ -257,6 +258,7 @@ def filter_disabled_tools(all_tools: dict[str, Any]) -> dict[str, Any]:
|
||||
# Tools are instantiated once and reused across requests (stateless design)
|
||||
TOOLS = {
|
||||
"chat": ChatTool(), # Interactive development chat and brainstorming
|
||||
"clink": CLinkTool(), # Bridge requests to configured AI CLIs
|
||||
"thinkdeep": ThinkDeepTool(), # Step-by-step deep thinking workflow with expert analysis
|
||||
"planner": PlannerTool(), # Interactive sequential planner using workflow architecture
|
||||
"consensus": ConsensusTool(), # Step-by-step consensus workflow with multi-model analysis
|
||||
@@ -282,6 +284,11 @@ PROMPT_TEMPLATES = {
|
||||
"description": "Chat and brainstorm ideas",
|
||||
"template": "Chat with {model} about this",
|
||||
},
|
||||
"clink": {
|
||||
"name": "clink",
|
||||
"description": "Forward a request to a configured AI CLI (e.g., Gemini)",
|
||||
"template": "Use clink with cli_name=<cli> to run this prompt",
|
||||
},
|
||||
"thinkdeep": {
|
||||
"name": "thinkdeeper",
|
||||
"description": "Step-by-step deep thinking workflow with expert analysis",
|
||||
|
||||
Reference in New Issue
Block a user