Commit Graph
84 Commits
Author SHA1 Message Date
wassnameandClaude d115950d5a Start goals files from a template; keep approved headings and the user's words
- /goals new writes the goals skeleton (with the user's default loop statement) into the file, as
  main did; the planning prompt points at it instead of repeating the shape.
- The ## headings at Ready are the approved structure. A write/edit of the goals file that drops one
  is undone, and the tool result says why.
- turn_end also checks the file, to catch shell edits: it restores removed Interview entries and
  reports a lost heading once. The Interview snapshot is taken at turn start, so the user's own edits
  between turns (for example deleting a pasted secret) are respected.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 14:27:57 +08:00
wassnameandClaude 90bb6b84d8 Put back Interview entries that an agent write/edit removes
steering-lite-bsbench session, 04:29 UTC: the input hook saved the user's answer, then the agent
wrote the whole goals file from memory with an empty ## Interview and erased it. The extension now
snapshots Interview entries before each write/edit of the goals file, restores any that are missing
afterwards, and adds a note to the tool result.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 14:19:13 +08:00
wassnameandClaude 6878b48a2a Name goals files <last 6 of session id>-vN.md, as main's plan files did
Session IDs start with a timestamp, so the last 6 characters are the distinguishing part.
A new /goals new in the same session makes the next version and never overwrites (flag wx).

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 12:39:46 +08:00
wassnameandClaude 22041d4680 Use the installed pi-subagents instead of bundling its extension
Loading a second pi-subagents copy forced an "extensions": [] filter in user settings. pi-goals
now only imports its event helper; tests run against 0.70.1, which ships its own types, so the local
.d.ts shim is removed.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 11:08:30 +08:00
wassnameandClaude 8dd48f6a4d Push against false stops: keep all user messages, anti-wait wake line, Resources section
wassname: "I'd rather waste some tokens and avoid a model mistakenly waiting".
- Every interactive user message is saved verbatim under ## Interview, so answers survive compaction.
- Each loop wake ends with one extension line: search the goals file, Interview and project setup
  before waiting; check access by trying it; do not invent limits; else record an assumption and continue.
- Planning asks about credentials, compute and limits and records them under ## Resources.
- Loop statement and User voice: agent proposes, edits only after the user agrees.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 10:48:03 +08:00
wassnameandClaude 512edbfd61 Save the /goals new text verbatim in Interview
Herdr trial (GLM 5.3 flash): slash commands skip the input hook, so the opening request was not
recorded and the model paraphrased it with wrong context in User voice. The trial also showed
planning, Ready, one scheduler task, real judge accepts, loop removal, stale-wake drop and a live
transformed loop wake working.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 09:45:19 +08:00
wassnameandClaude c317ef6a24 Use wassname's loop statement; allow exploration in planning; document design intent
- Default loop statement is wassname's 2026-09-24 text, spelling fixed only.
- Planning prompt states the aim: the agent starts uncertain and reduces that uncertainty.
- Planning now allows normal tools (bash, subagent scouts); only file edits outside the goals
  file and CompleteGoal are blocked.
- README: design intent quote, and what the agent versus the user sees at each step.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 09:35:53 +08:00
wassnameandClaude c580b7113e Rename contract tests to real-parsers tests
Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 09:24:56 +08:00
wassnameandClaude 0ca344d741 Single agent goals loop with stock scheduler and pi-subagents judge
- One goals file per /goals new, planning is read-only except that file, Ready starts work.
- Ready creates a session-scoped pi-scheduler prompt task with an owned marker. Each owned wake is
  transformed into the user's Loop statement plus the current goals read from disk. Wakes from an
  older Ready or another session are dropped. Pause, clear or no remaining goals remove the task.
- Whole goals file is re-sent once after compaction or resume.
- CompleteGoal delegates to a fresh read-only pi-subagents runtime agent. Accept with quoted checks
  marks [✓]. Reject, malformed output or judge failure leaves the goal open (the old version
  accepted on judge failure). /goals judge off records [x] self-verification.
- Tests: fake Pi harness plus contract tests against real scheduler core and pi-subagents parsers.
  Mutation check: 7 deliberate bugs each failed at least one test.
- Removes the old subprocess judge, private auto-continue timer, historical docs and scripts.

Co-Authored-By: Claude <288921227+claudypoo@users.noreply.github.com>
2026-09-24 09:24:32 +08:00
wassname f09d443d88 Improve goal reminder cadence and auto continuation 2026-09-01 18:29:00 +08:00
wassname 4fce680f2d bump 0.2.2 for npm publish (0.2.1 was staged conflict) 2026-08-31 19:15:46 +08:00
wassnameandPI/OpenAI a45cc7d9c6 Anchor goals to the user-visible result
Co-Authored-By: PI/OpenAI <288921227+claudypoo@users.noreply.github.com>
2026-08-30 18:44:36 +08:00
wassname d0070d18b8 Correct planning prompt assertion 2026-08-26 14:03:59 +08:00
wassname 7f274a691c Ask questions that discover the plan 2026-08-26 14:03:23 +08:00
wassname 17a3b25a82 Batch high-impact planning questions 2026-08-26 13:43:42 +08:00
wassname 2362073d04 Make planning research conditional 2026-08-26 13:42:44 +08:00
wassname c1bf91f3db Resolve planning uncertainty before approval 2026-08-26 13:32:06 +08:00
wassname 3dd0668963 Document Pi test workflow 2026-08-26 13:28:54 +08:00
wassname 389af540d1 Test review flow through Pi RPC 2026-08-26 12:12:05 +08:00
wassname fa7195eafb Make planning goals concrete 2026-08-26 12:05:04 +08:00
wassname 0d972e81c3 Align planning state with review flow 2026-08-26 10:46:05 +08:00
wassname 1426877817 Test Keep planning stays idle 2026-08-26 10:00:51 +08:00
wassname 6bb34f18cf Show plans after agent settles 2026-08-26 09:58:01 +08:00
wassname 36b0d98c2a Record plan interview replies 2026-08-26 09:54:12 +08:00
wassname b173d145db Version plans and expose judge review 2026-08-24 21:38:45 +08:00
wassname (Michael J Clark) 8de5c35248 Update README.md 2026-08-24 21:35:56 +08:00
wassname (Michael J Clark) a778480fec Update README.md 2026-08-24 21:34:38 +08:00
wassname (Michael J Clark) 45d59e1edc Update README.md 2026-08-24 21:32:49 +08:00
wassname (Michael J Clark) d026e06b41 Update README.md 2026-08-24 21:31:45 +08:00
wassname (Michael J Clark) 9ebcd3f4a6 Update README.md 2026-08-24 21:28:56 +08:00
wassname (Michael J Clark) 4850b5195e Merge pull request #4 from wassname2/patch-1
Refine planDrafting prompt for clarity and engagement
2026-08-24 15:07:26 +08:00
Michael.Clark2 e8bcba0fa7 Refine planDrafting prompt for clarity and engagement
Updated the planDrafting prompt to improve clarity and user engagement. Added details on user interaction and refined language for better understanding.
2026-08-24 14:34:53 +08:00
wassnameandClaudypoo 0a349b056e review: deepseek approves the ready menu after 2 rounds
Both round-1 findings were withdrawn once the reviewer had the plan-mode
facts. Comment the state-flip order, which is the part that reads like a bug
and is not.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-21 08:25:54 +08:00
wassnameandClaudypoo 3a1afd4c8e ready menu: print the plan, add "Ready + compact"
"Ready?" over an unread file is not a review -- the only copy of the plan was
inside a collapsed edit tool call. Print the working set before the menu.

The 4th option compacts the planning conversation before the work turn starts.
session_compact already re-sends the whole plan file, so the exploration is
summarized away and the agreed goals are not.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-21 08:14:29 +08:00
wassnameandClaudypoo d5766c1a34 deps: caret ranges on dev dependencies, not exact pins
Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-19 11:42:28 +08:00
wassname 310ab730cc archive: superseded by pi-goals 2026-08-18 18:02:21 +08:00
wassname 6892801fcc prompts: one goal per distinct outcome, qualitative over invented thresholds 2026-08-18 18:02:03 +08:00
wassname (Michael J Clark) 35713760ad Merge pull request #2 from wassname2/fix/package-supply-chain
Use Pi's bundled core dependencies
2026-08-18 11:07:25 +08:00
wassname2 144f4b95b4 fix: use Pi bundled dependencies 2026-08-18 09:21:02 +08:00
wassname 87cf14a28c drafting prompt: goal count follows the distinct evidence, no cap 2026-08-17 18:11:26 +08:00
wassname 2adba3da45 release 0.2.1 2026-08-17 17:49:25 +08:00
wassname 842f1b85c7 drafting prompt: soften the one-goal default to a low goal count (1-3) 2026-08-17 17:49:18 +08:00
wassnameandClaudypoo e6af6db3d9 release 0.2.0: docs and description follow the per-session plan path
Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-14 16:07:26 +08:00
wassnameandClaudypoo 7c36c119c6 plan file is per session: .pi/plan/<session_id>.md
A subagent runs pi -p --no-session with extensions on, so it loaded pi-goals, got the
parent's plan injected, and could sign off the parent's goals. Two windows on one checkout
also stomped each other's file. The session id in the name fixes both, and doubles as the
on switch: no /goals means no file at this session's path, so nothing fires.

Drops the v1 goals.md rename, and /goals clear now deletes the file.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-14 16:07:26 +08:00
wassnameandClaudypoo 7e427d2ca6 spec: one plan file per session, .pi/plan/<session_id>.md
Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-14 16:07:26 +08:00
wassname 4827808575 release 0.1.1: gallery preview image v0.1.1 2026-08-12 11:12:16 +08:00
wassnameandClaudypoo 7d4fc32cc9 gallery preview: widget screenshot + pi.image (jsDelivr serves it with an image content-type)
Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-12 08:45:10 +08:00
wassname 6df9390d2f drop pi-lgtm references from description, README and spec 2026-08-10 18:07:04 +08:00
wassname 230b7bd343 package: publishable as @wassname2/pi-goals 0.1.0 (files, public access, prepublish checks); README install from npm 2026-08-10 18:06:27 +08:00
wassnameandClaudypoo 751e20b7ee drafting prompt: this skeleton wins over any plan format a loaded skill also supplies
~/.pi/skills is a symlink to ~/.claude/skills, so a pi session loads the plan-format skill and this
prompt at once. A dogfooding agent merged the two by hand on every redraft.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-05 12:11:22 +08:00