pi-better-goal
v0.5.0
Published
Pi extension for goal tracking with background-aware continuation.
Maintainers
Readme
pi-better-goal
pi-better-goal is a Pi extension for goal tracking with background-aware continuation.
Quick Answer
Use pi-better-goal when a Pi session should keep an explicit objective visible until the foreground work and registered background activity are both done. It tracks active versus elapsed time and wakes the foreground when background work drains.
Screenshots
Core Features
/goalruntime for starting, pausing, resuming, completing, and clearing the current objective.escapepauses the active goal, and it stays paused while you talk to the agent. Say "go" (the agent then callsgoal_resume), or use/goal resumeoralt+g./goal pauseresumes only through/goal resumeoralt+g. The status line showsgoal paused · say "go" or /goal resume, and paused goals are never poked. On a macOS terminal without Option-as-Meta,alt+gtypes©; use/goal resumethere.- Background work that finishes while an
ask_user_questionis pending is handed to the agent right after the answer. - A compact goal widget that does not replace Pi's footer.
- Background activity tracking for subagents and other registered providers.
- A progress-aware follow-up loop that holds after repeated identical outcomes.
- An observable-progress stall state for active goals.
Skill-Owned Workflows
Skills that own execution and their own task plan can opt in through SKILL.md frontmatter:
metadata:
workflow-role: coordinatorInvoke the skill with Pi's /skill:name command, or supervise it with /goal /skill:name task. The goal extension resolves the command against Pi's registry, persists its source, and expands the skill on kickoff and continuation (including after session resume). A bound command that disappears or changes source pauses the goal. /goal /template task also re-expands prompt templates on continuation; /goal /extension-command task dispatches the extension command once, then continues with ordinary goal supervision to avoid repeating side effects. Plain-language goals work as before. This command binding requires Pi 0.84.4 or later. Legacy slash-shaped goals without a binding pause on resume rather than running without the skill. /workflow shows a coordinator skill owner; call release_workflow after the workflow's completion audit (or use /workflow clear to release it manually). Completing an active goal also releases ownership.
A skill that is only an alias of a coordinator declares the target instead of a role:
metadata:
workflow-alias-of: rush-issuesInvoking the alias (/skill:resolve-issues, or /goal /skill:resolve-issues task) records the target coordinator, with the target's registered path, as the workflow owner, so its task plan, continuation instructions, and plan tools behave exactly as if the target had been invoked. The target must be a registered workflow-role: coordinator skill; an unregistered target, a non-coordinator target, or a chain of aliases is refused with a notice.
When pi-better-plan is installed, it defers its prompt, checklist, and update_plan tool to a skill-owned task plan. Skills without this metadata retain normal goal and plan behavior. The skill itself owns its planning format and worker policy; the harness does not enumerate skills or impose a shared workflow schema. The former pi-better-plan-workflow: coordinator metadata remains supported for installed skills.
Install
pi install npm:pi-better-goalTry it for one run:
pi -e npm:pi-better-goalWhen To Use
Use this package for longer Pi sessions where subagents, background tasks, or other providers may still be active after the foreground message is idle.
Do not use it when you only need a note or checklist outside Pi's runtime state.
Compatibility
| Requirement | Support |
|-------------|---------|
| Pi | Required |
| Install method | pi install npm:pi-better-goal |
| Background providers | Works with registered providers |
| Development runtime | Node.js 22+ |
Update Or Remove
pi update npm:pi-better-goal
pi remove npm:pi-better-goalMore Detail
- Repository: https://github.com/1aboveio/pi-better-harness
- Detailed notes: https://github.com/1aboveio/pi-better-harness/blob/main/packages/pi-better-goal/docs/usage.md
- License: https://github.com/1aboveio/pi-better-harness/blob/main/LICENSE
