TeleCode AI
The first remote-controlled autonomous coding agent in your VS Code.
Control your code from anywhere via Telegram. It reads, edits, and commits while you rest.
TeleCode AI is an autonomous coding agent built on @mariozechner/pi-agent-core and @mariozechner/pi-ai. It doesn't just chat — it plans, executes, and edits code autonomously, all controllable from your Telegram messenger.
🚀 Features
- Autonomous Agent Loop: Continuously plans and executes multi-step tasks. The agent reads your workspace, runs bash commands, edits files, and loops until the task is done.
- Telegram Remote Control: Authenticate your bot with
@BotFather, set your Chat ID, and control your coding session from anywhere in the world.
- Multi-Provider AI: Works with OpenRouter, OpenAI, Anthropic Claude, Google Gemini, MiniMax, Moonshot (Kimi), and self-hosted Ollama models.
- Native Coding Toolchain:
read_file / write_file / edit_file (exact-line replace)
glob for file discovery
grep (ripgrep with Node.js fallback)
bash with captured stdout/stderr, timeout, and streaming
workspace context: active file, cursor, open documents
- Configurable Response Style: Short, Normal, or Detailed agent responses.
- Session History: Persistent session memory within a VS Code workspace.
💡 Why a VS Code Extension?
- Zero Context Switching: TeleCode AI lives directly in your sidebar. No terminal juggling.
- Native Context: The agent instantly knows your Active File, Cursor Position, and Selected Text.
- Instant Feedback: The agent modifies the exact files you have open. See live diffs without jumping between apps.
- Remote Control via Telegram:
- 🚑 Emergency fix on the go: A bug is reported. Message the bot from your phone — it fixes and commits.
- 🛏 Work from bed: Your dev environment is on your office PC. Just leave VS Code open and instruct remotely.
- 🚶 Background tasks: Ask the agent to build a feature, go for a walk. Code is waiting when you return.
🛠 Getting Started
- Install from the VS Code Marketplace
- Open the TeleCode AI panel from the Activity Bar
- Configure your provider and API key in Settings (
Cmd/Ctrl + , → TeleCode AI)
- Click Start Agent → Run Task and give it an objective
⚙️ Development
npm install # Install dependencies
npm run build # Build extension
npm run watch # Watch mode
For hot reload: open Run and Debug → start Run Extension (Watch).
⚙️ Settings
| Setting |
Description |
telecode.provider |
AI provider (openrouter, openai, anthropic, google, ollama, ...) |
telecode.model |
Model ID (e.g. deepseek/deepseek-chat, openai/gpt-4o) |
telecode.apiKey |
API key for the selected provider |
telecode.baseUrl |
Custom base URL for OpenAI-compatible endpoints (e.g. Ollama) |
telecode.maxSteps |
Max agent steps per task (default: 100) |
telecode.autoApprove |
Auto-approve tool actions without confirmation |
telecode.responseStyle |
Response verbosity (concise, normal, detailed) |
telecode.language |
Agent communication language (auto, ru, en) |
telecode.telegram.enabled |
Enable Telegram bot |
telecode.telegram.botToken |
Token from @BotFather |
telecode.telegram.chatId |
Your Telegram User ID (send /start to the bot to get it) |
telecode.allowOutOfWorkspace |
Allow the agent to access files outside the workspace |
📄 License
MIT © Uginy
| |