@juanbenjumea/pi-agy 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@juanbenjumea/pi-agy",
3
- "version": "0.6.1",
4
- "description": "Enhanced Antigravity CLI (agy) bridge for Pi — streaming progress, conversation continuity, repo-aware verify, and diff summaries.",
3
+ "version": "0.6.3",
4
+ "description": "Reliable Antigravity delegation for Pi — quota-aware runs, resumable tasks, repo verification, cancellation, and trustworthy diff summaries.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Juan Benjumea",
@@ -45,9 +45,11 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@earendil-works/pi-coding-agent": "*",
48
+ "@earendil-works/pi-tui": "*",
48
49
  "@sinclair/typebox": "*"
49
50
  },
50
51
  "devDependencies": {
52
+ "@earendil-works/pi-tui": "^0.85.1",
51
53
  "@sinclair/typebox": "^0.34.41",
52
54
  "@types/node": "^22.0.0",
53
55
  "typescript": "^5.0.0"
@@ -40,6 +40,7 @@ repetitive refactors, or exhaustive test generation via the Antigravity CLI.
40
40
  agy_execute prompt="Refactor all snake_case variables to camelCase in src/models/"
41
41
  agy_execute prompt="Generate exhaustive unit tests for src/auth/" model=flash-low
42
42
  agy_execute prompt="Plan the migration to ESM" model=sonnet mode=plan digest=true
43
+ agy_execute prompt="Review our earlier API decision" model=sonnet mode=plan context=summary
43
44
  agy_execute prompt="Implement the approved plan" conversation_id=<id> mode=accept-edits
44
45
  agy_execute prompt="Adversarial review the diff" model=opus effort=high mode=plan
45
46
  agy_history
@@ -61,19 +62,21 @@ agy_usage
61
62
  - **Run `just ci`** (or the project gate) after write modes in this repo.
62
63
  - **Never use agy for irreversible production changes.**
63
64
  - Reuse `conversation_id` or `continue=true` for multi-step plan → implement → review.
65
+ - Keep `context=none` (default) unless the task depends on prior Pi discussion; prefer `summary` over `recent` to minimize disclosure. Context handoff excludes system prompts, thinking, tool arguments/results, images, and custom messages.
64
66
  - Use `flash-medium` by default, `flash-low` for trivial/high-volume work, and `flash-high` for difficult agentic work.
65
67
  - Escalate within the Gemini quota group to `pro-low` or `pro-high` only when needed.
66
68
  - Use `sonnet` for normal Claude-group coding/review; reserve `opus` for the hardest architecture or root-cause work.
67
69
  - Use `gpt-oss` when an open-model alternative is specifically desired.
68
- - Set `effort` (low/medium/high) for finer reasoning control on `sonnet`/`opus`/`gpt-oss` runs; Gemini aliases encode effort in the model id.
70
+ - Set `effort` only for `gpt-oss`; Claude thinking models reject `--effort`, and Gemini aliases encode effort in the model id.
69
71
  - For consequential work, have one family produce and the opposite family review with `mode=plan`; do not spend both groups on trivial tasks.
70
72
  - Batch related work, avoid parallel calls within one shared-quota group or directory, and use `digest=true` (default) for non-write tasks.
71
73
 
72
74
  ## Enhancements over upstream pi-agy
73
75
 
74
- - **Quota discovery** — `agy_usage` and `/agy usage` report model-specific remaining quota and reset times; executions refresh quota snapshots and return machine-readable `quota_status` as well.
75
- - **Streaming progress** — live tool steps via `stream-json` and Pi `onUpdate`.
76
+ - **Quota discovery** — `agy_usage` and `/agy usage` report model-specific remaining quota and reset times; executions refresh quota snapshots, automatically fall back when an implicit default is exhausted, and return machine-readable `quota_status` as well.
77
+ - **Streaming progress and receipts** — live tool steps via `stream-json` and Pi `onUpdate`; direct `/agy` runs persist bounded, expandable TUI-only receipts without feeding them to the primary model.
76
78
  - **Conversation continuity** — `conversation_id`, `continue`, session store under `$PI_CODING_AGENT_DIR/agy-sessions.json` (or `~/.pi/agent/agy-sessions.json` by default) with one-line task summaries; runs that time out or are cancelled are recorded too and stay resumable, and the `agy_history` tool lets agents list past conversations.
79
+ - **Optional Pi context handoff** — `context=summary|recent` sends bounded text-only history while excluding system prompts, thinking, tool calls/results, images, and custom messages; default is `none`.
77
80
  - **Repo-aware verify** — prefers `just ci` when a justfile defines `ci:`.
78
81
  - **Diff summary** — accept-edits results append newly-dirty files only; pre-existing dirt is listed separately, never misattributed.
79
82
  - **Per-directory lock** — serializes concurrent agy calls on the same tree across Pi processes (symlink-aware).