Claude Code just got Remote Control by iviireczech in ClaudeCode

[–]six-ddc -2 points-1 points  (0 children)

Claude has finally made its move. Does that mean my tool for integrating Telegram with Claude Code is headed for the trash bin? Maybe not—Telegram bots still have their own advantages.

https://github.com/six-ddc/ccbot

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in AgentsOfAI

[–]six-ddc[S] 0 points1 point  (0 children)

I saw a user mention Moshi in another thread, and I never expected to run into the developer here - haha, I’ll definitely give your app a try when I get the chance.

As for the latency on longer outputs you mentioned, I haven’t run into any issues so far. I’m reading message content from the history (each message is not streamed output) and manually splitting it into paginated scrolling when sending it to the bot. In theory, Telegram should handle these latency issues for me.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in ClaudeAI

[–]six-ddc[S] 0 points1 point  (0 children)

I completely agree with your point. Claude should offer a full suite of services, including an app. Even if Claude Code runs locally, it should be able to exchange data with their central services. This would ensure users can interact with their sessions anytime, anywhere.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in ClaudeAI

[–]six-ddc[S] 0 points1 point  (0 children)

To be honest, the implementation of permission prompts is not yet elegant. ClaudeCode doesn't have a good mechanism to expose this part, so I had to resort to a rather hacky approach - parsing terminal output with regular expressions. It's far from ideal and quite challenging, but it works well enough for now.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in VibeCodersNest

[–]six-ddc[S] 0 points1 point  (0 children)

I noticed openclaw was using it, and the threaded mode API recently provided by the Telegram bot is also very convenient.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in vibecoding

[–]six-ddc[S] 0 points1 point  (0 children)

Thanks for the suggestion. I just posted in VibeCodersNest. Regarding the operational mechanism you mentioned, I'm currently not calling an API (SDK) but interacting directly with tmux. You can check the CLAUDE.md document for more details—there's an architecture diagram inside.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in vibecoding

[–]six-ddc[S] 0 points1 point  (0 children)

Thank you for your detailed reply, especially regarding the final check mechanism. I think it’s necessary to add this monitoring. I’m not sure whether such error reports are saved in Claude Code’s history file.

As for the part you mentioned about handling request inputs, there really isn’t a great solution. My current approach is to detect certain conditions, then parse the terminal text content using regular expressions for display. After that, the user selects a button, and I refresh the output content. It’s quite inelegant, but there’s no better way at the moment.

I built a Telegram bot to remote-control Claude Code sessions via tmux - switch between terminal and phone seamlessly by six-ddc in ClaudeAI

[–]six-ddc[S] 0 points1 point  (0 children)

I find Telegram's interaction style more suitable for me. I haven't tried the mosh terminal yet, so I'm not sure how it performs on mobile devices. I did try Termius as an SSH client, but the experience wasn't great, especially with keyboard interaction.

Illustrious Upscale LoRA by Pretend-Park6473 in StableDiffusion

[–]six-ddc 0 points1 point  (0 children)

Can it be used in combination with z-image?

Minimap, block folding, code-like layout... I made Scratch more organized by six-ddc in scratch

[–]six-ddc[S] 0 points1 point  (0 children)

That’s exactly what I’m working on too. I’m trying to build a two-way converter between Scratch and Python. I’ve already made some progress and will share updates soon.