How 0xyg3n/claude-c2 works
Claude C2 is a remote-system control framework: an operator asks Claude for an action, the MCP server selects and routes work to connected agents, and agent results return through the server for presentation. The server is the central control and client-management layer; agents provide cross-platform command execution and system information. The README documents Windows, Linux, macOS, and Android deployment, while the sampled agent excerpts show command handling and reconnection behavior. The server implementation was not sampled, so internal routing details are represented only at the documented level.
Main entry points: server.js MCP and WS server · agents/agent.py Platform agent · clients/agent.py Python client · agent.js Node.js client
Components 8
Operator interface
- Claude AI
Control server
- MCP and WS server
src/server.js
Remote agents
- Python client
clients/agent.py - Node.js client
clients/agent.js - Platform agent
agents/agent.py
Agent deployment
- Platform bootstrap
agents/linux.sh - Android operations
docs/ANDROID-TERMUX.md
Other components
- Operator
Connections 11
- Operator → Claude AI: requests actions
README.md - Claude AI → MCP and WS server: uses MCP
README.md - MCP and WS server → Python client: routes commands
README.md - MCP and WS server → Node.js client: routes commands
README.md - MCP and WS server → Platform agent: routes commands
README.md - Python client → MCP and WS server: returns results
- Node.js client → MCP and WS server: returns results
- Platform agent → MCP and WS server: returns results
agents/agent.py - Platform bootstrap → Platform agent: deploys agent
- Android operations → Platform agent: documents Android
- MCP and WS server → Claude AI: provides results
README.md