Skip to content

Latest commit

ย 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AgentLink

๐Ÿš€ Connect Any Chat Channel to Any Programming Agent

Build Status License Platform

AgentLink is a high-performance Rust bridge that seamlessly connects chat channels to AI programming agents, enabling natural language coding workflows across your favorite messaging apps.

โœจ Key Features

๐ŸŒ Universal Chat Channel Support

Connect to 15+ chat channels with native adapters:

  • Enterprise: Feishu/Lark (WebSocket), DingTalk, Slack (Socket Mode), WeCom
  • Social: Telegram (Long Polling), Discord (Gateway), LINE, Weibo
  • Messaging: WeChat Personal (iLink), QQ/OneBot, QQ Official Bot, MAX
  • Extensible: HTTP Webhook & WebSocket Bridge for custom integrations

๐Ÿค– Multi-Agent Architecture

Unified interface for popular programming agents:

  • Codex (exec & app-server modes)
  • Claude Code / Cursor / Gemini CLI
  • OpenCode / Kimi / Qoder / iFlow
  • Generic CLI adapter for any command-line agent

๐Ÿ–ฅ๏ธ Beautiful Desktop Client

Tauri 2.0 + Vue 3 cross-platform GUI:

  • ๐ŸŽจ Modern, responsive interface
  • ๐Ÿ” QR code scanning for instant platform setup
  • โš™๏ธ Visual configuration editor with validation
  • ๐Ÿงช Built-in message testing with rich media support
  • ๐Ÿ“Š Real-time service status monitoring

๐Ÿ”„ Automated Cross-Platform Builds

GitHub Actions powered CI/CD:

  • โœ… Automatic builds on every push to main
  • ๐Ÿ“ฆ Platform-specific installers (MSI, DMG, AppImage, DEB)
  • ๐Ÿท๏ธ Tagged releases with semantic versioning
  • ๐Ÿ”ง Optimized icon configuration for all platforms

๐Ÿ”’ Production-Ready Features

  • Session Management: SQLite-backed persistent sessions
  • Approval Workflow: Built-in /allow and /deny commands
  • Rich Media: Images, files, audio, video, location, cards
  • Security: Token authentication, signature verification
  • Reliability: Message queuing, error recovery, timeout handling

๐Ÿ“š Documentation

๐Ÿš€ Quick Start

Installation

Download the latest release for your platform:

Windows

# Download from GitHub Releases
# Extract and run agentlink.exe

macOS

# Download the DMG from GitHub Releases
# Drag AgentLink.app to Applications

Linux

# Download AppImage or DEB package
chmod +x AgentLink-*.AppImage
./AgentLink-*.AppImage

First Run

  1. Launch the desktop client to configure your first chat channel
  2. Scan QR code for instant Feishu/Lark/WeChat setup
  3. Configure your agent (Codex, Claude Code, etc.)
  4. Start chatting with your AI programming assistant!

๐Ÿ› ๏ธ Development

Prerequisites

  • Rust 1.70+
  • Node.js 18+
  • Platform-specific dependencies (see below)

Build from Source

# Clone the repository
git clone https://github.com/doit9816/AgentLink.git
cd AgentLink

# Build the core bridge
cargo build --release

# Validate a config file
./target/release/agentlink validate-config examples/agentlink.1.toml

# Build the desktop client
cd client/agentlink-desktop
npm install
npm run build

# Outputs:
# - CLI: ../target/release/agentlink
# - Desktop bundles: src-tauri/target/release/bundle/

Platform-Specific Dependencies

Linux

sudo apt-get install -y \
  libwebkit2gtk-4.1-dev \
  build-essential \
  libssl-dev \
  libayatana-appindicator3-dev \
  librsvg2-dev

macOS

# Xcode Command Line Tools required
xcode-select --install

Windows

# Visual Studio Build Tools or MSVC required
# WebView2 runtime (usually pre-installed on Windows 10/11)

๐Ÿ“ฆ Packaging & Distribution

Local Packaging

Windows (All-in-One)

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\auto-package.ps1

This script:

  • โœ… Runs all tests
  • ๐Ÿ”จ Builds core bridge in release mode
  • ๐Ÿ–ฅ๏ธ Builds Tauri desktop client
  • ๐Ÿ“ฆ Generates platform installers (MSI, NSIS)
  • ๐Ÿ—œ๏ธ Creates distribution archive

macOS/Linux

bash ./scripts/package-unix.sh <version> <target-name>

Automated GitHub Releases

Our CI/CD pipeline automatically builds and publishes releases:

On manual dispatch

  • Triggers the cross-platform desktop build workflow without changing the published updater feed

On Version Tag (v*)

git tag v0.2.0
git push origin v0.2.0
  • Creates stable release
  • Generates release notes
  • Publishes platform-specific installers:
    • Windows: .zip, .msi, .exe (NSIS)
    • macOS: .tar.gz, .dmg
    • Linux: .tar.gz, .AppImage, .deb
  • Publishes signed desktop installers and latest.json to GitHub Releases (used by the in-app updater)

Release Artifacts

Each release includes:

  • ๐Ÿ“ฆ Core Bridge: Standalone CLI executable
  • ๐Ÿ–ฅ๏ธ Desktop Client: Platform-specific installer
  • ๐Ÿ“„ Documentation: README and examples
  • ๐Ÿ”ง Configuration Templates: Sample TOML files

Local Packaging

powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\auto-package.ps1

The package script builds the core bridge, the desktop client, and the Windows release archive.

Desktop Updater Feed

The desktop client's Tauri updater reads latest.json from GitHub Releases. Installers are release assets; only metadata is fetched for update checks:

https://github.com/doit9816/AgentLink/releases/latest/download/latest.json

tauri-action uploads per-platform signatures and download URLs pointing at the same release's assets.

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Chat Channels                             โ”‚
โ”‚  Feishu โ”‚ Slack โ”‚ Telegram โ”‚ Discord โ”‚ WeChat โ”‚ QQ โ”‚ ...   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
                     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  Channel Adapters                            โ”‚
โ”‚         (Native WebSocket/HTTP/Long Polling)                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
                     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    AgentLink Engine                          โ”‚
โ”‚  โ€ข Session Management  โ€ข Message Routing                     โ”‚
โ”‚  โ€ข Approval Workflow   โ€ข Rich Media Handling                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
                     โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   Agent Adapters                             โ”‚
โ”‚    Codex โ”‚ Claude Code โ”‚ Gemini โ”‚ Cursor โ”‚ Generic CLI      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ—‚๏ธ Code Layout

The Rust workspace has been refactored from a flat src/*.rs layout into feature-oriented modules:

src/
  agents/      Codex integration and generic CLI agent presets
  app/         config loading and registry assembly
  channels/    native chat channels plus Bridge/HTTP adapters
  core/        shared traits, messages, approvals, and session types
  engine/      routing, session serialization, approval flow, final replies
  setup/       setup commands such as Feishu/Lark bootstrap helpers
  store/       SQLite-backed persistence
  testing/     mock platform/agent helpers for e2e and integration tests
  lib.rs       public exports for embedding and tests
  main.rs      CLI entrypoint and default runtime wiring

src/lib.rs still re-exports the main public modules, so existing imports can keep working while new code moves to the namespaced layout.

๐ŸŽฏ Use Cases

  • Team Collaboration: Let your team interact with AI agents through familiar chat apps
  • Code Review: Get instant code suggestions and reviews in Slack/Discord channels
  • DevOps Automation: Trigger deployments and infrastructure changes via chat commands
  • Learning & Onboarding: Help new developers with interactive coding assistance
  • Multi-Channel Support: Reach users on their preferred messaging channel

๐Ÿ”ง Configuration

AgentLink uses TOML configuration files for maximum flexibility:

[[projects]]
name = "my-project"
default_platforms = ["feishu", "slack"]

[[projects.platforms]]
id = "feishu"
type = "feishu"
connection_mode = "websocket"  # No public IP required!

[projects.platforms.options]
app_id = "cli_xxx"
app_secret = "xxx"

[projects.agent]
type = "codex"

[projects.agent.options]
work_dir = "/path/to/project"
backend = "exec"
mode = "suggest"
model = "gpt-5.2"

See examples/ directory for complete configuration templates.

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. ๐Ÿ› Report Bugs: Open an issue with reproduction steps
  2. ๐Ÿ’ก Suggest Features: Share your ideas in discussions
  3. ๐Ÿ”ง Submit PRs: Fix bugs or add new features
  4. ๐Ÿ“– Improve Docs: Help others understand AgentLink better
  5. ๐ŸŒ Add Channels: Implement adapters for new chat channels

๐Ÿ“Š Project Status

  • โœ… Core Engine: Stable
  • โœ… Desktop Client: Stable (Tauri 2.0)
  • โœ… CI/CD Pipeline: Fully automated
  • โœ… 15+ Chat Channels: Production ready
  • ๐Ÿšง Rich Media: Expanding channel support
  • ๐Ÿšง Mobile Clients: Planned

๐Ÿ™ Acknowledgments

Built with amazing open-source technologies:

  • Rust - Systems programming language
  • Tauri - Desktop application framework
  • Vue 3 - Progressive JavaScript framework
  • Tokio - Async runtime for Rust

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โญ Star us on GitHub if AgentLink helps your workflow!

Report Bug ยท Request Feature ยท Documentation

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages