How I use a Claude Code agent ... Note

How I use a Claude Code agent in Telegram to track my hackathon deadlines

The author built a Claude Code agent within a Telegram group to manage multiple hackathon deadlines and requirements. This agent, named "copilot," helps track what is due and checks submission progress. The system uses an open-source tool called Switch, which connects AI agents to chat applications. Switch allows the Claude Code agent to run on the author's computer while interacting via Telegram. The setup involves configuration files like hackathons.toml for deadlines and requirements, and copilot.py for logic. A CLAUDE.md file instructs the agent on how to behave. Setting up requires Python, Node.js, GitHub CLI, and accounts for Claude Code and Telegram. The process includes creating a Telegram bot, configuring Switch Console, and linking the bot to a Telegram group. A Claude Code agent is then created and linked to the project's folder. Users can then interact with the copilot agent in the Telegram group. The author shares some mistakes made during setup, such as privacy settings and folder linking. Future plans include automated morning deadline reminders, though Switch currently lacks scheduling capabilities. The author encourages others with similar needs to adapt the project.
CdXz5zHNQW_t2C9VP8cgj.webp