Telegram ↔ Claude Code bridge bot with per-chat isolation and a cron scheduler.
- Long-polling Telegram bot
- Per-chat working directory under
~/.haskclaw/chats/<chat_id>/ - Session resume via
claude -p --resume - Scheduler MCP server (
schedule_task,list_tasks,cancel_task, ...) — register recurring tasks in natural language
- Stack
- Claude Code CLI on
PATH - A Telegram bot token (@BotFather)
stack build
TELEGRAM_BOT_TOKEN=xxx stack exec haskclaw-exe~/.haskclaw/
├── CLAUDE.md # shared instructions (auto-seeded)
├── state.json # chat → session id
└── chats/<chat_id>/
├── .mcp.json # haskclaw MCP server registration
├── .claude/settings.json
├── schedules.json # scheduled tasks
└── bot.log
Send to the bot in Telegram:
"Every morning at 8am, give me the weather."
Claude registers a cron task; the bot delivers the response each tick.
MIT.