Real-world use in this project: During documentation expansion (in a conversation lost to folder rename!), we used Zen MCP’s clink function to consult Codex and Gemini for suggestions while working in Claude Code. Multiple AI perspectives in one workflow!
What is Clink?
Clink (CLI + Link) is Zen MCP’s killer feature - it lets one CLI tool spawn and communicate with OTHER CLI tools. Example workflow:Why This Matters for Research
- Large Corpus
- Cost-Optimized
- Multi-Perspective
Scenario: Analyzing 50+ papers when your context is limited
- Claude Code (200K context): Handles detailed analysis of 10-15 papers
- clink to Gemini CLI (1M context): Analyzes all 50+ papers for patterns
- Result: Claude Code receives Gemini’s findings and continues synthesis
How Clink Works
From within Claude Code (or any supported CLI), you can:- Your main CLI session stays clean (context not polluted)
- The subagent CLI launches in isolated context
- It has autonomous permissions (can edit files, use tools)
- Results return to your main session
- You maintain orchestration control
Real Example: This Documentation Project
The situation: We needed to expand the Implementation section with more CLI tools. The workflow:- Claude Code (me!): Initial research and draft
- clink to Codex: “What CLI tools should researchers know about?”
- clink to Gemini: “Compare Gemini CLI vs OpenCode - which fits Research Memex philosophy?”
- Back to Claude Code: Synthesized their suggestions into final guides
Setup & Installation
Prerequisites:- Claude Code, Gemini CLI, or Codex installed
- Node.js and npm
~/Library/Application Support/Claude/claude_desktop_config.json
:
clink
- Launch other CLI toolschat
- Multi-model consultationconsensus
- Get multiple AI opinionsthinkdeep
- Multi-stage reasoningcodereview
- Systematic code analysis- And 10+ more tools!
Use Cases for Research
1. Literature Corpus Analysis
Problem: You have 60 papers but Claude Code’s 200K context can only handle ~15 at once. Solution:2. Cost-Optimized Workflows
Problem: Premium Claude usage adds up for large projects. Solution:3. Multi-AI Peer Review
Problem: You want multiple perspectives on your analysis. Solution:Advanced: The Consensus Tool
Zen MCP includes a consensus tool that automatically consults multiple models and synthesizes their views:Limitations & Considerations
Context Isolation:- Clink subagents start FRESH (no memory of your main conversation)
- You need to provide sufficient context in the clink prompt
- Results come back as text (not live conversation)
- Clink to paid models (GPT-5, Claude) uses YOUR API keys/credits
- Gemini free tier: 60 req/min, 1,000/day limit
- Monitor usage across all spawned agents!
- Clink agents can have
--yolo
mode (auto-approve everything) - Great for delegation, risky for critical files
- Use with care!
When to Use Zen MCP vs. Regular Tools
Use Zen MCP when:- ✅ You need perspectives from multiple AI models
- ✅ Task exceeds your current CLI’s context window
- ✅ You want to delegate heavy work without polluting main context
- ✅ You need cost optimization (mix free + premium)
- ✅ You want automated consensus building
- ❌ Single AI is sufficient
- ❌ Task is small and contained
- ❌ You don’t need context isolation
- ❌ Adding orchestration overhead isn’t worth it
Zen MCP in the Research Memex Workflow
This tool embodies interpretive orchestration at the AI layer:- You (human) orchestrate Claude Code
- Claude Code orchestrates other AI agents via clink
- Each AI contributes its strengths
- You maintain final judgment and synthesis
Resources
- GitHub: BeehiveInnovations/zen-mcp-server
- Documentation: Zen MCP clink docs
- Community: ClaudeLog guides and Medium tutorials
This page was informed by clink! In a lost conversation (folder rename casualty), we used Zen MCP to consult Codex and Gemini about which CLI tools to include in this documentation. Their suggestions shaped the “Agentic AI Tools” section!Meta-note: An AI (Claude) writing about using Zen MCP to ask other AIs (Codex, Gemini) for advice about documenting AI tools. Recursion achieved. 🌀
← Back to Advanced Topics