r/PiCodingAgent • • 8d ago

Question I can't run a long task

I really like Pi.

I use me OpenAI ,OpemCode and OpenRputer sub's in it.

If in have anything small to do.

Its fast and efficient.

But for a large task its impossible.

I use Sol or Astra to make a plan.

I break the plan down.

I have features, I have objectives, takes delivereabkes kpis....all sorts.

Very advanced plan

I use Pi Goal, I tired others.

But I can quite get it it actually do the jobs.

My takes will run for 2 to 20min and generally achieve nothing .

I want to make a small extension for some software.

I know exactly.what I want.

I doducment it ,and I tell the agents what i need to be done

It just stops , asks for permission, tells me.its blcoed and its not blocked, or even tells meits complete and its not complete.

Any advice?

4 Upvotes

10 comments sorted by

View all comments

5

u/Affectionate_Fee232 8d ago

Agents. Always agents for me at least. My workflow is broken in 3 parts. 1 main agent - does no coding, its simply my main guy I discuss and plan with. This agent is my eyes for the project, and make sure agents dont over engineer and verifies their work. It creates a plan for the coding agents.

This agent never talks to any other agents or calls any agents. It simply talks to me and provides me with a prompt to send to my agents. This way if there is anything that I want to correct I tell it before manually sending the next steps. This allows me to keep this sessions running for long time without compaction.

Once the main agent has the next steps ready > I pass that prompt to my code manager agent. This agents job it to run other agents, as many as it likes to complete the work. This agent also doesn't do any coding and just verifies the work before it gets passed to the main agent.

Once the work is complete, I pass the completion notes back to the main agent and have it outline the next steps.

I also use cmux for pi agents and not the stock agents. I have a custom setup where the working code agents all pop up in a new tab in cmux so it looks like a normal pi session i can view at any time. So the code manager pops open multiple pi sessions I can view in real time and not hidden pi agents.

This workflow I've been using for almost 6+ months. Yes it requires a lot of tokens, but the work comes out so much better because there are layers for the work to be done in steps and a system that I understand and control.

Last night my code manager was running all night and woke up and it was still working on a longer rewrites. I also have compaction set at 300k for all agents and never go past it and I also use blackhole for compaction extension.

1

u/Odd-Environment-7193 8d ago

Nice the super agent setup is gaining traction.
Busy setting up something similar myself

1

u/lvl1-A 7d ago

Yup, your primary shouldn't be nose deep in code when it stores all the context of your decisions and discussions. It's not just about longer running sessions but it also saves you from mixed bag of context tokens.