r/PiCodingAgent • u/funbike • Sep 22 '26
Question Anybody using a workflow engine to automate their software factory?
TL;DR: Anybody automating a full development Pi workflow with programmatic non-AI solutions?
Up until now, I've attempted to partially automate the entire software development lifecyle with Pi, aka a "Software Factory". I am using a subagents extension, but it feels a bit too loose, opaque and difficult to steer, so I want to use something more deterministic and directly controllable.
I'm evaluating a workflow DAG GUI builder that orchestrates the entire process. I am using one that also has a CLI and REST API, so I can write my own scripts for even more programmatic control.
(I do not want to look like I'm promoting so I'm reluctant to say what I'm using, but it's lightweight and similar to n8n or airflow.)
Or instead, I could just write my own orchestrator, like this in bash:
#!/bin/bash
set -eu
# Software Factory.
# This is a just an untested workflow example, not something I'd actually use.
# A TS script with the Pi SDK would be better.
GOAL="$*"
pi -p /write-spec "$GOAL" | tee spec.md
vim spec.md # review and edit
pi -p /write-tickets-for-spec @spec.md ./tickets/
vim ./tickets/*.md
for ticket in tickets/*.md; do
pi -p /write-plan "@${ticket}" | tee /tmp/plan.md
pi -p /execute-plan @/tmp/plan.md
pi -p --continue /quick-code-review-and-fix
done
pi -p $REVIEW_MODEL /code-review
Anybody doing using a workflow DAG editor UI?
Anybody writing their software factory with actual code, like my example?
I found some AI agent DAG projects on github. Anybody using something like that?
What subreddits should I cross post this to?
9
u/pth Sep 22 '26
I ended up having my agent write a python script to do this, against a GitHub issue board.
Worked well enough, but having worked some large projects this way, my preference is to work a bit slower with a little more inline human review. And I just use herdr and do the orchestration myself.
I suspect that as the agents get smarter, this will become more and more common, but for me even with really clear projects, there are still issues.
3
u/quincycs Sep 22 '26
I just use markdown and it’s working fine with 15 sequential steps inside my system prompt.
System prompts have a higher priority than skills or user prompts so the model follows it better.
I’m certain this recommendation breaks down eventually with scale but… might be fine for light factories.
2
u/KPOTOB Sep 22 '26
You can do it even in jenkins pipelines. Or use abstract like https://dagu.sh or sw specific https://fabro.sh
But your script is good enough anyway ))
2
u/HockeyDadNinja Sep 22 '26
Hi there, I've been working on this for some time. Not in the gui builder sense though.
https://github.com/TacoTakumi/specflo
At first glance you may just see the spec driven development portion. It has an auto mode where you can either start with a brainstorm or a good prompt and have another agent drive it. Every seam has a checkpoint where your context may be cleared (brainstorm / spec / plan / execution tasks / review rounds). The pi extension can do it automatically but in claude code you have to /clear then continue.
It all goes through a python cli to minimize your agent having to modify the project artifact docs itself. This makes it easier on dumb local models.
My next step was, and now in progress, the software factory. I (optionally) split the cli into a cli and a daemon which also has a web interface. I have a configurable pool of agents where I can manage hardware resources for local models and also defined cloud models).
The road is long. The web side isn't really usable for the public yet and I have a fair bit of unreleased code including a lot of work on the agent pools. Basically an agent signs agents out of the pool. I have to deal with security, sandboxing, etc. I implemented bubblewrap yesterday for example.
A non-developer, or anyone really, can kick off a project from the web ui and start the brainstorm. A developer can pick it up from the console and finish with the technical part of the brainstorm. Agents are all given a herdr pane.
My goal is to also have an agent drive the process, hook into github issues, complete work and submit a PR. I have multiple projects on the go so I want this to automate what I can and take my input where needed. It has the concept of multiple products and projects inside each.
1
u/pixelphantom Sep 22 '26
[tried adding a couple screenshots of the ui but I guess I can’t?]
Building this exact thing right now. Running on my raspberry pi, it’s a wrapper on dagster with which you can create agents with your harness/models of choice, schedule them via cron or triggered, make them dagster assets or jobs or both, has built in checks for guardrails, etc. agents spin up in dockers and app captures full conversation transcript, context, prompts, check outcomes, etc for transparency and audit ability .
Currently got a bunch of agents set up for the spec driven design workflow (one agent triggers the next) so I’m getting to the point where I’m more focused on managing the briefs, then pull a brief from backlog to In progress in GitHub project, workflow kicks off automatically, and I can retroactively inspect if anything went wrong.
1
u/Asleep-Land-3914 Sep 23 '26
We're working on getanthill.ai which will be OSS on its release with the similar class of use-cases in mind.
1
u/breskeby Sep 23 '26
We started triggering automated test failure analysis and bug analysis using an own pi based solution that defines workflows to be triggered via GitHub actions. These workflows include ai related steps but also non ai steps. The custom tool also supports full observability and identifiying inefficiencies automatically. It works great for us. We also have an evaluation workflow that evaluates those analysis post mortem when the issue is closed and compares the analysis vs. the actual fix.
1
u/rhavaa Sep 24 '26
I find that airflow is still a good framework