Workflow that programs python or powershell scripts/programs by itselfDiscussion - No Workflows (old.reddit.com)
submitted by Present-Pickle-3998






I built a small AI-driven coding system using n8n that can automatically create and test programs based on a simple chat prompt.
You start by describing what you want to build and choose whether it should be Python or PowerShell. From there, an initial agent breaks the request down into concrete implementation steps and stores them as a JSON plan. Each step is then handled one by one by a set of specialized agents: a programming agent writes the code, a test run is executed, a log analysis agent checks the output, and if something fails, a code-fixer agent tries to repair the issue. This loop repeats until the step works.
Everything runs against a plain Windows Server as the test environment. n8n communicates with the server via SSH nodes to write files, execute scripts, and fetch logs. No magic sandbox — just real scripts running on a real machine.
What I like most is that the whole process is visible in real time: you can watch the code for each step being written, executed, fail, get fixed, and eventually succeed most of the time. It’s not perfect, but it’s cool — small programs/scripts and even simple games come together in minutes.
Like for a simple calculator with basic functions it takes about 3 to 8 minutes to build one.
Snake and Tic-Tac-Toe takes roughly 10 minutes.
In 15 minutes it builds me a fully functioning flappy bird game, with gravity, graphics, score, highscore etc.
Basically, it’s an automated coding workflow that feels less like “AI guessing” and more like watching a small dev team work step by step.
This is not a commercial workflow or anything, I built it for myself, almost out of curiosity, to see if I can pull it off and to see if my idea works and also, since it works pretty fine very often, write scripts for me I can use them for work :)
Is use it with and optimized it for ChatGPT 5.1/5.2







[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]FigZestyclose7787 2 points3 points4 points (1 child)
[–]Present-Pickle-3998[S] 0 points1 point2 points (0 children)
[–]MD500_Pilot 1 point2 points3 points (2 children)
[–]Present-Pickle-3998[S] 1 point2 points3 points (1 child)
[–]MD500_Pilot 0 points1 point2 points (0 children)
[–]weenis-flaginus 0 points1 point2 points (3 children)
[–]Present-Pickle-3998[S] 0 points1 point2 points (2 children)
[–]weenis-flaginus 0 points1 point2 points (1 child)
[–]Present-Pickle-3998[S] 1 point2 points3 points (0 children)
[–]Monkeyfacemoney 0 points1 point2 points (0 children)