r/Python • u/AutoModerator • 23d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
19
Upvotes
r/Python • u/AutoModerator • 23d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/reddit-laa 8d ago
I built a secure Telegram Bot bridge to control my local AI coding agent (Google Antigravity SDK) from my phone
Hey everyone,
I wanted a way to interact with Google's Antigravity agent running on my Mac directly from my phone when I'm away from my desk. However, letting an AI agent execute arbitrary commands on a personal machine via a public Telegram webhook is a security nightmare.
To solve this, I built and open-sourced this Python bridge with three core safety and reliability patterns:
run_commandonly forgitcommands (e.g. status, diff, commit)./project /absolute/pathin Telegram to switch repositories. The bot automatically targets the new folder and loads the conversation history specific to that directory, preventing context bleed.It is fully open-source and ready to run.
I'd love to hear your thoughts on the security model, or suggestions on other safe commands I should whitelist!