
Wasting Inferences with Aider by Stwerner
This week’s ‘Works on My Machine’ explores a pattern that leans into the “Waste Inferences!” concept I’ve shared in the past and asks the question: what if we just trigger multiple AI attempts automatically from our project management tool and just pick the best result? Inspired by Steve Yegge’s thoughts on Agent Clusters/Fleets in Revenge of The Junior Developer, this experiment connects Asana directly to the Aider coding agent via a Sublayer agent.
This demo showcases an automated workflow triggered entirely by assigning an Asana task:
-
A bug exists in a simple Rails Todo app, tracked as a task in Asana.
-
We assign the task to our designated “BugfixAgent” user in Asana.
-
A running Sublayer BugMonitorAgent (code below!) detects this assignment via an AsanaAssignedToAgentTrigger.
-
The agent takes a step: it fetches the task details (title, description) from Asana.
-
It then scripts the Aider coding agent, instructing it to fix the bug based on the task info.
-
Crucially, the agent runs Aider three separate times using the exact same prompt but targeting different powerful LLMs: GPT-4o, Claude 3.5 Sonnet, and Gemini 2.0 Flash.
-
Each Aider run operates in its own Git branch, applying the changes and running tests.
-
The result: Three distinct PRs are automatically created on GitHub, each representing one LLM’s attempt to fix the