Skip to content

mojinfu/linkcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkCode
LinkCode

Go WeCom License


Say a word in IM. A dedicated bot reaches out. An AI agent runs behind it — on your machine.


🎬 Control: One Command, One Bot

LinkCode control flow

🎬 Execute: Your Bot Takes Action

LinkCode task execution

Why LinkCode?

Pain Point LinkCode
Chained to your desk — CI fails during dinner? Can't fix it from your phone. IM is your remote control. Trigger builds, check logs, deploy from anywhere. No SSH, no VPN.
General-purpose bots lose context — one bot juggling everything, conversations overlap. One bot, one task, one session. Dedicated bots with full context per task. Switch tasks by switching chats.
Cloud relays are slow — IM-to-AI bridges bounce through cloud APIs, adding seconds of latency. Runs locally, sub-second response. Agent processes live on your machine. No cloud hop.
Chatbots only talk. They don't do. — ChatGPT tells you how. It won't open the file or run the command. Your agent operates your computer. It reads files, runs commands, manages processes — then reports back.
Your code leaves your machine — cloud AI uploads your context to someone else's infrastructure. Everything stays local. Agent runs as a child process on your own hardware. Nothing leaks.

Quick Start

# Interactive installer (auto-detects dependencies)
bash scripts/install.sh

# Edit config
vim configs/linkcode.yaml

# Run
./bin/linkcode -config configs/linkcode.yaml

Then open WeCom, send /start to your control bot. Done.


Roadmap

IM Platforms

Platform Status
WeCom (企业微信) Done
Telegram Planned
Teams Planned

Adding a platform = implementing channel.Channel.

Agent Tools

Agent Status
Claude Code Done
Kimi Code Planned

Adding an agent = implementing agent.Runner. Everything else stays.


How It Works

Control Bot — menu-driven

Send /start to the control bot and reply with numbers:

Welcome to LinkCode! Choose:
1. New Agent
2. My Agents
3. Add Bot
4. End Agent

Reply with number 1–4
💡 Quote this message before replying for reliable routing

Tip: long-press the control bot's menu → "Quote" → reply with a number. Accuracy guaranteed.

Worker Bot — free conversation

Each worker bot is a Claude Code session. Talk naturally. Quote-reply a bot message to pass that context back to Claude:

[Quoted message]
Claude's previous output
[New message]
Your follow-up

Sessions persist via --resume. Reply to a dormant bot and it wakes up with full context.


LinkCode · MIT License

About

A word in IM. A dedicated bot reaches out. An AI agent process runs behind it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors