Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weft

Your AI agents can now call each other.


Claude Code + Codex + Gemini



Architecture diagram

An MCP server that lets Claude Code, Codex CLI, and Gemini CLI invoke each other as tools. No glue scripts. No copy-paste. Just agents collaborating.


Why?

Each CLI agent has strengths. Sometimes you want Claude to implement, Codex to review, and Gemini to sanity-check. Weft makes that one tool call away.

Quick Start

git clone https://github.com/cipher982/weft && cd weft
uv sync
uv run agent-mesh doctor   # verify setup (no API calls)
uv run agent-mesh smoke    # test it works (costs money)

Register the MCP Server

Claude Code:

claude mcp add-json agent-mesh '{"type":"stdio","command":"uv","args":["run","python","-m","agent_mesh.mcp_server"]}'

Codex:

codex mcp add agent-mesh -- uv run python -m agent_mesh.mcp_server

Gemini: Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "agent-mesh": {
      "command": "uv",
      "args": ["run", "python", "-m", "agent_mesh.mcp_server"]
    }
  }
}

Your agent now has three new tools: claude_run, codex_exec, gemini_run.

Prerequisites

npm install -g @anthropic-ai/claude-code  # then: claude auth
npm install -g @openai/codex               # needs: OPENAI_API_KEY
npm install -g @google/gemini-cli          # needs: GEMINI_API_KEY

Troubleshooting

Problem Fix
Command not found which claude codex gemini - install missing CLIs
Auth failed Run claude auth or set API key env vars
MCP server not found Restart your agent CLI after registering

License

MIT

About

Agent mesh for headless CLI coordination between Claude, Codex, and Gemini

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages