omp packages

@hitori-chan/pi-goal0.2.0

/goal for pi: keep working until an independent evaluator judges the condition met

hitori-chan Published 4 days ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@hitori-chan/pi-goal

/goal <condition> keeps the agent working until an independent evaluator model judges the condition met. Each "not met" reason becomes the agent's next instruction.

pi install npm:@hitori-chan/pi-goal

Usage

/goal <condition>   set the goal and start
/goal               status
/goal clear         remove it
/goal resume        continue after a hold or an interrupt

Write one checkable end state and the check that proves it:

/goal `npm test` exits 0, shown in a tool result

The evaluator replays the agent's last request with a judge prompt appended, so it reuses the agent's prompt cache. met needs tool output; the agent's word doesn't count.

The goal is held after 3 goal-driven turns without tool use, a failed model request, or a failed evaluation. Your next prompt or /goal resume continues. With pi-tasks, it waits for background tasks instead of judging every turn.

The footer shows ◎ /goal active (4m) at its right end. pi -p '/goal …' blocks until the goal ends and prints the outcome on stderr.

Settings

Under "goal" in settings.json, or in /config:

Key Default
model session model evaluator provider/id; another model gets no cache
thinking session evaluator thinking level, off to max
stallTurns 3 goal-driven turns without tool use before a hold; 0 is off
checkinMinutes 30 idle wait on background tasks before a check-in; 0 is off