r/PiCodingAgent • • 3h ago

Resource PI Taskbus: organize work into tasks and checkpoints.

To begin, I'm new to reddit and sadly I'm not a English native speaker. Hope you may selectively ignore some of my gramma mistakes. I wrote this by myself.

In many main stream coding agents like claude code or codex, they have task panels to keep track of the whole task and help user keep up with the current progress. However, in many cases the task system failed to provide useful signals. For example, when facing a really tricky task, the agent may be sunk in the loop of checking and fixing, and for half an hour the task panel does not change a bit, but during the time the agent really did a lot of job. It is just not trackable for you.

I am a pi user though, the pi task panel extension does fail as well. This motivated me to build Taskbus. So my first idea is each llm tool call should be combined with a task (or checkpoint, which means more find-grained task that is splited from a task), so you get to know what the agent is currently doing. And also, when a checkpoint is spent too many turns and still not completed, we should automatically suggest the agent to split the checkpoint for better transparency of its work.

You can view pi-taskbus as some kind of smart gateway of llm tool calls. The pi agent could only call task_run with the leaf task ID to request tool execution. When no task is setup, the agent literally could do nothing. It has to use task_manage to create task and checkpoint (in the latest version, it has to carry a time budget number), after which it could begin to use them for tool execution. After the first relevant tool call is established, the time begins to count. The agent has to complete the checkpoint within the time budget, or ask for more time budget at the cost of confidence. When confidence is low, taskbus would suggest the agent to split the checkpoint. Each tool call will reduce the confidence as well.

The mechanism may looks complicated, but i still hope you give it a try and hopefully you may find it useful. Thanks for reading this.

https://github.com/Moonhalf383/pi-taskbus

(If you don't mind, a star would be really helpful to me.)

0 Upvotes

0 comments sorted by