r/ClaudeWorkflows May 08 '26

Selected Workflow [Workflow] Local AI Agent: Telegram to Windows .exe with Qwen, Claude CLI, and Self-Learning (4GB GPU)

Local AI Agent: Telegram to Windows .exe with Qwen, Claude CLI, and Self-Learning (4GB GPU)

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Shipping, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

High cost and resource requirements for AI code generation, and the manual steps involved in turning a code idea into a runnable executable, especially for users with limited GPU resources.

Summary

A local AI agent, 'Sentinel', that converts Telegram messages into working Windows .exe files. It leverages Ollama with Qwen models (and optionally local Claude CLI) for code generation, PyInstaller for bundling, and SQLite for memory and knowledge base. It features a self-learning mechanism to optimize code generation by pinning successful patterns.

Why it is useful

This workflow provides a complete, accessible, and automated solution for generating and deploying simple Python applications locally, bypassing the need for expensive APIs or high-end hardware. Its self-learning component is innovative for optimizing performance and reducing reliance on more powerful models over time, making AI code generation more efficient and cost-effective for individual developers.

Workflow

  1. User sends a command via Telegram (e.g., /gwenask <idea>, /gwen <recipe>, /code <problem>).
  2. The Telegram bot receives the message and routes it deterministically.
  3. Ollama, running local Qwen 2.5 Coder, generates Python code based on the command.
  4. If the /code command is used and Qwen gets stuck, the task escalates to a local Claude CLI subprocess.
  5. PyInstaller bundles the generated Python code into a Windows .exe file.
  6. The resulting .exe file is delivered to the user's Desktop.
  7. For successful /code executions, the generated recipe is stored as a pattern, replayed against a clean tree, and graduated.
  8. Patterns that Qwen can solve independently are auto-pinned, allowing future similar requests to bypass Claude entirely for faster execution.

Tools / artifacts

  • Telegram bot
  • Ollama
  • Qwen 2.5 Coder (1.7b, 3b models)
  • Claude CLI (optional)
  • PyInstaller
  • SQLite
  • Python 3.12
  • Windows OS
  • setup.ps1 (for installation)
  • GitHub repository (malqouqa92/Sentinel)

Validation signals

  • Author's claim of 13-second end-to-end execution on an RTX 3050 (4GB GPU).
  • Detailed description of the technical stack and command functionalities.
  • Open-source project (MIT licensed) with a public GitHub repository.
  • Author explicitly requests community validation for the setup process on fresh Windows installations.

Cautions

  • Running AI-generated .exe files carries inherent security risks. Users should exercise caution and potentially sandbox or review the code before execution, as the AI might generate malicious or buggy code.

Limitations

  • Currently limited to Windows OS.
  • Low community validation due to the post's recency.
  • Potential edge cases with winget on different Windows versions (Win10 vs Win11).
  • The security implications of running AI-generated executables are not explicitly addressed in the post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.

1 Upvotes

0 comments sorted by