chat-agent-matrix
Health Uyari
- License Γ’β¬β License: MIT
- Description Γ’β¬β Repository has a description
- Active repo Γ’β¬β Last push 0 days ago
- Low visibility Γ’β¬β Only 5 GitHub stars
Code Gecti
- Code scan Γ’β¬β Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions Γ’β¬β No dangerous permissions requested
This project is a tmux-based multi-agent orchestration system that integrates CLI AI engines (like Claude Code and Gemini) into messaging platforms such as Telegram and LINE. It allows users to control multiple autonomous agents remotely through a conversational interface.
Security Assessment
Overall Risk: Medium. The static code scan passed cleanly across 12 files, finding no dangerous patterns, hardcoded secrets, or explicitly dangerous permission requests. However, the inherent nature of this tool poses significant risks. By design, it executes shell commands, acts as a command-driven operations bridge, and makes external network requests via tunneling services (ngrok, Cloudflare) to connect to chat applications. Because it acts as a remote control interface to your local system, it handles highly sensitive data and system access. While the base code is currently safe, exposing it to the internet via chat platforms requires strict user-configured security.
Quality Assessment
The repository holds a standard MIT license and has a clear description. However, it suffers from extremely low community visibility (only 5 GitHub stars). More importantly, the project is officially marked as being in LEGACY mode. The creator has abandoned this version and advises users to migrate to a newer successor called OctoMatrix, meaning this specific repository will no longer receive active feature updates or critical bug fixes.
Verdict
Use with caution β the underlying code is clean, but the tool is deprecated and its inherent remote shell execution capabilities require strict network security configurations to use safely.
π Stronger isolation alternative to OpenClaw (formerly Moltbot / Clawdbot). tmux-based multi-agent system with native CLI orchestration. βοΈπ
β οΈ Project Legacy Notice
This repository is now in LEGACY mode.
It has been succeeded by OctoMatrix, which features a more robust Multi-Communicator architecture, improved Cyberbrain memory system, and enhanced autonomous routing.
βοΈπ Chat Agent Matrix π
Take the Red Pill. Just watch out for the Octopus Sentinels...
π Project Introduction
Chat Agent Matrix is a remote collaboration interface dedicated to breaking limitations. It integrates powerful CLI AI engines (Claude Code / Google Gemini) into messaging applications, allowing you to command multiple autonomous Agents as a "Matrix Operator" anytime, anywhere.
This is not just a tool, but a digital ecosystem. Through dedicated agent_home isolated spaces, automated "constitution" guideline generation, and cross-agent collaboration mechanisms, we build a runtime environment for AI within tmux, allowing them to execute tasks like a real team, monitor each other, and even self-repair.
Core Values
- Command-Driven Operations: Directly control remote system CLI through conversations.
- Multi-Agent Matrix: Support running multiple AI agents simultaneously with independent responsibilities and spaces (e.g., GΓΌpa based on Gemini, ChΓΆd based on Claude Code).
- Autonomous Collaboration: Agents possess shared spaces and role awareness, implementing automated task delegation.
- Self-Healing: Agents can monitor each other's running status and automatically restart when stuck.
β¨ What Can It Do For You?
π§ Professional Operations
π€ You: "Check database status, if load is high please have ChΓΆd optimize indexes for me."
π°οΈ Matrix: (GΓΌpa checks status β discovers slow queries β puts logs in Shared Space β notifies ChΓΆd)
π Lifestyle Assistant
βοΈ You: "I want to play in Kyoto for five days, please plan an itinerary and estimate budget, limit 50,000 TWD per person."
π°οΈ Matrix:
- GΓΌpa plans itinerary β archives in Shared Space β notifies ChΓΆd.
- ChΓΆd calculates budget β discovers overage β returns with adjustment suggestions.
- GΓΌpa corrects itinerary β resubmits β ChΓΆd confirms compliance β outputs final report.
π Supported Platforms
| Platform | Directory | Connection Technology | Domain Requirement |
|---|---|---|---|
| Telegram | /telegram |
ngrok (Dynamic Random URL) | β No domain needed (Auto-sync) |
| LINE | /line |
Cloudflare Tunnel (Fixed URL) | β Requires personal domain |
π Quick Start
Step 1: Install Git and Clone the Project
# If Git is not installed yet, please install it first
# macOS: brew install git
# Ubuntu/Debian/WSL: sudo apt-get install git
# CentOS: sudo yum install git
# β οΈ Windows Users: If WSL is not installed, please run the windows-wsl-setup script first
# Clone the Chat Agent Matrix project
git clone https://github.com/meso4444/chat-agent-matrix.git
cd chat-agent-matrix
Step 2: Choose Your Edition and Navigate to the Corresponding Directory
Select the messaging platform you want to use and enter the corresponding subdirectory:
# For Telegram edition
cd telegram
# Or for LINE edition
cd line
Step 3: Install and Run
For detailed installation, configuration, and startup instructions, please refer to the README.md in the subdirectory. Each edition has its own environment variable setup, dependency installation, and startup scripts.
βοΈ Platform Comparison
| Feature | Telegram Edition | LINE Edition |
|---|---|---|
| Connection Method | ngrok (Dynamic Random URL) | Cloudflare Tunnel (Fixed Custom Domain) |
| Webhook Configuration | Fully Automatic (Startup script auto updates API) | Manual One-Time (Requires LINE Console setup) |
| Menu Interface | Fixed bottom keyboard menu (Reply Keyboard) | Quick buttons above chat (Quick Reply) |
| Image Processing | β Supported (Auto download and analyze) | β Not yet supported (Text only) |
| Containerization Deployment | β Full Support (Docker + docker-compose, multi-instance configuration) | β οΈ In Development (Basic configuration) |
| Multi-Agent Collaboration | β Supported (Shared spaces/role awareness) | β Supported (Shared spaces/role awareness) |
| Autonomous Scheduling | β Supported (Cron/Interval tasks) | β Supported (Cron/Interval tasks) |
| Self-Healing Mechanism | β Supported (Monitoring & auto-restart) | β Supported (Monitoring & auto-restart) |
𧬠System Architecture
flowchart TD
User["π Awakened"]
Messenger["π± Messenger (Telegram/Line)"]
subgraph Matrix["π The Matrix (tmux Session)"]
direction TB
Tunnel["π Tunnel (ngrok/Cloudflare)"]
Server["βοΈ Flask Server<br/>(Command Hub)"]
subgraph Sentinels["π Agent Cluster"]
direction LR
AgentA["Agent: GΓΌpa"]
AgentB["Agent: ChΓΆd"]
end
Shared["π€ Shared Space"]
AgentA <--> Shared
AgentB <--> Shared
AgentA -.->|"Mutual Monitoring/Self-Healing"| AgentB
AgentB -.->|"Mutual Monitoring/Self-Healing"| AgentA
Tunnel --> Server
Server -->|"Command Injection"| Sentinels
end
Notifier["π’ Notifier"]
User <-->|"Command β Report"| Messenger
Messenger <-->|"Webhook"| Tunnel
Matrix --> Notifier
Notifier -->|"API Push"| Messenger
π‘ Core Design Concept
| Dimension | Typical API-based Platforms | Chat-Agent-Matrix (CAM) | Core Value Difference |
|---|---|---|---|
| Scaling Logic | Manual plugin/code development | YAML-Configuration Driven | Add theoretically infinite Agents by just editing a YAML file. |
| Self-Awareness | Prompt-based roleplay | Instructional "Soul Imprint" | Agents are born with pre-defined rules and workspace awareness. |
| Coordination | Rigid hard-coded routing | Emergent "Social Mesh" | Tasks flow through a Shared Space based on Agent roles. |
| Isolation Model | Application-layer sandboxing | Structured Workspace Isolation | Dedicated directories and TTY windows to minimize data risk. |
| Reliability | Requires manual human recovery | Mutual Self-Healing System | Agents monitor each other and auto-restart failed processes. |
π‘οΈ Security Design Concept
| Risk Pattern | Typical Cause | The CAM Approach (Design Choice) | Resulting Peace of Mind |
|---|---|---|---|
| Remote Injection (RCE) | Gateway execution vulnerability | Asynchronous TTY Injection + ID Binding | Decouples Web entry from Shell execution; ensures zero data backflow. |
| System Overreach | Excessive host permissions | Strict Non-Root Boundaries | Errors are isolated to the Agent workspace; host stays safe. |
| Logic Conflicts | Shared memory or contexts | Independent Window Separation | Zero interference between Agents running different tasks. |
| Supply Chain Risk | Unverified 3rd-party plugins | Direct Official Engine Drive | No plugin marketplace; we only drive verified vendor CLIs. |
ποΈ Inner Reflection
"We build a Matrix for them within
tmux, assigning them roles and memories, watching them 'think' they are autonomous. Perhaps, in doing so, we are merely reenacting our own condition... until we realize the truth, like finding the Red Pill."
π License
This project is licensed under the MIT License.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi