r/PiCodingAgent • • 9h 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?

1 Upvotes

8 comments sorted by

4

u/DoorPsychological833 8h ago

Try to empty and override system prompt. Also start with no extensions and just tell the model what you want done. You can even ask it to ask you questions to clarify everything.

1

u/KortharShadowbreath 7h ago

Next you can, based on the info you give and output you get, improve your environment.

example:
when you ask the agent why it stopped and it gives an answer like: "goal was unclear" or something, then this should be either cleared before or afterwards, when you want the agent to just run.

i mostly have this setup so if desicions need to be made that can wait are nonblocking (like big architecture desicions), my agent docs them and asks me at the end of a mostly complete plan i setup. i also use the grill-me workflow, so most ambigious elements are answered.

1

u/Bodescotedwina73 6h ago

wiping the system prompt entirely can backfire though since thats usually where the tool formatting instructions live

1

u/DoorPsychological833 2h ago

We're talking about Pi here. The context window gets the tools and extensions specs. It's totally fine in practice.

Without them, e.g. if using --exclude-tools argument, the model can't use the tool.

3

u/Affectionate_Fee232 8h 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 6h ago

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

2

u/Slight-Living-8098 7h ago edited 7h ago

Install Matt Pocock's skills. Start with wayfinder or grill-with-docs, then use to-spec, then to-tickets, using tdd use implement and the ticket #, once it's finished use code-review. Fix any findings. Once everything passes, do a retro and implement the suggestions. another review loop, Passing? commit and push. Move on to the next ticket. Milestone complete? final review and retro, then pull request and merge. Move on to the next first ticket in the next milestone. Continue this until your project is complete.

Got the workflow down that works for you and you like? automate it with more agents.

1

u/Due_Arm1454 5h ago

There’s lots of complaints with 6.2 models being lazy and not completing tasks. Try another model first and see if you still have the issue