diff options
| author | t <t@tjp.lol> | 2026-12-05 10:01:32 -0700 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-12-05 10:02:00 -0700 |
| commit | 0b5892bc31fb576099421ecddfbdc7a7b243d02d (patch) | |
| tree | 89193b0bb377e02d449fa591a2f72d58763689b8 /README.md | |
| parent | 48b14add01cb106217832e036e3569e494f1d65c (diff) | |
Allow Antigravity requests from any Panto context
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1,9 +1,9 @@ # panto-antigravity -Chat with Gemini in the Panto TUI through Google's signed Antigravity CLI on macOS. The CLI handles sign-in; you don't need an API key or a separate Panto rig. +Use Gemini from Panto through Google's signed Antigravity CLI on macOS. The CLI handles sign-in; you don't need an API key or a separate Panto rig. ## Setup -Install Google's `agy` and use a Panto build with `request.tui_submission`. Add the provider to `config.toml`: +Install Google's `agy`. Add the provider to `config.toml`: ```toml [extensions] @@ -28,6 +28,12 @@ panto -m antigravity:gemini-4-neon -r high `-r high` or Ctrl+R requests `high` for the next turn. On `agy` 1.5.19 the provider selects the ACP model first, then checks that model’s `thought_level` choices and confirms the requested level before prompting. Without an explicit level it leaves the ACP setting alone. Pickers that advertise suffixed model IDs still use those variants (exact configured ID, otherwise `medium` when no level is requested). Panto currently shows the protocol-wide levels in Ctrl+R, so a narrower family can reject an unavailable level; the provider never silently substitutes one. The same configuration works in a rig. +Print a single answer (or omit `-- "..."` to read piped stdin): + +```sh +panto -p -m antigravity:gemini-4-neon -- "What is today's date?" +``` + To load a checkout instead of the rock, replace `rocks` with `paths = ["/absolute/path/to/panto-antigravity/extensions"]`. ## Usage and context @@ -67,16 +73,18 @@ Every ACP chat launch uses `--dangerously-skip-permissions` and `--sandbox`, eve ## Steering and thinking -Plain Enter during a tool-using turn steers at the next tool boundary. Queued text and workflow notices go to the same live agy session as user input, not as tool output. Ctrl+Enter queues a separate follow-up. Esc sends ACP `session/cancel` to stop the active turn while keeping the warm ACP session for the next prompt (force-killing `agy` if it does not settle within 3s). If an earlier failure left an unanswered text message, resume that Panto thread and press Ctrl+P (`/proceed`) in the idle TUI to send the pending message once; this requires the Panto build with direct `/proceed` provenance. Reload alone does not retry it. Ctrl+K shows thinking text **if agy sends it**; reasoning-token counts are not displayable text. +Plain Enter during a tool-using turn steers at the next tool boundary. Queued text and workflow notices go to the same live agy session as user input, not as tool output. Ctrl+Enter queues a separate follow-up. Esc sends ACP `session/cancel` to stop the active turn while keeping the warm ACP session for the next prompt (force-killing `agy` if it does not settle within 3s). If an earlier failure left an unanswered text message, resume that Panto thread and press Ctrl+P (`/proceed`) in the idle TUI to send the pending message once. Reload alone does not retry it. Ctrl+K shows thinking text **if agy sends it**; reasoning-token counts are not displayable text. ## Branch and resume -Matching live turns keep the warm ACP session. Exact saved checkpoints record their current tip in the isolated profile and resume natively via ACP `session/resume`. Otherwise, the next direct submission after `/tree` or a cold resume starts a new ACP session: Panto sends its selected `history_transcript` as background and the new request once, in a single user message. agy keeps only the first ~191 KB of a user message, so when the transcript and request exceed 160 KB the older part of the transcript goes into the new session's system prompt append, marked as a verbatim record rather than instructions, and the newest part stays in the user message with the request. Nothing is dropped, the order is kept and it is still one model call. A single request over ~159 KB is refused. Past tool calls and results are text, not dispatches. If Panto cannot supply the transcript for existing history, the turn fails rather than silently dropping context. +Matching live turns keep the warm ACP session. Exact saved checkpoints record their current tip in the isolated profile and resume natively via ACP `session/resume`. Otherwise, the next submission after `/tree` or a cold resume starts a new ACP session: Panto sends its selected `history_transcript` as background and the new request once, in a single user message. agy keeps only the first ~191 KB of a user message, so when the transcript and request exceed 160 KB the older part of the transcript goes into the new session's system prompt append, marked as a verbatim record rather than instructions, and the newest part stays in the user message with the request. Nothing is dropped, the order is kept and it is still one model call. A single request over ~159 KB is refused. Past tool calls and results are text, not dispatches. If Panto cannot supply the transcript for existing history, the turn fails rather than silently dropping context. ## Session boundaries -Only a direct idle TUI submission can start, resume or reseed an ACP session. Once a turn completes, extension-submitted text (including workflow completion notices) can continue the same live primary thread if its checkpoint still matches. This checks session continuity, not the text prefix or which extension submitted it. An explicit `panto -m antigravity:gemini-4-hydrogen -- "prompt"` in an interactive terminal counts as direct input; an automatic rig `PROMPT.md` does not. No print/proxy calls, child-provider requests, compaction or automatic retries. Direct input identifies a TUI path, not proof of personhood; don't automate this route. Keep the profile free of delegation hooks/servers and exclude delegation tools from the rig or use an explicit allowlist on this personal route. The adapter sends text and dropped images natively over ACP `session/prompt` (non-image attachments such as PDFs are refused) and relays text/image tool results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it. +The adapter accepts prompts regardless of their source: interactive and print mode, rig startup prompts, ACP clients, `panto serve`, and extension or child-agent requests. Separate Panto contexts have separate ACP sessions and tool relays. Compaction uses a temporary session without tools. + +Choose which callers can reach your host and which tools they can invoke. Requests run under your signed-in CLI account. Before sharing a server with others, check the [Antigravity terms](https://antigravity.google/terms/); accepting a request in Panto is not permission to redistribute model access. The adapter sends text and dropped images natively over ACP `session/prompt` (non-image attachments such as PDFs are refused) and relays text/image tool results. Force-kill can leave a stale socket, lock or generated `config/agents/panto-*.md` in the isolated profile: confirm the owner is gone before removing it. ## Offline release check -`PANTO=/path/to/provenance-aware/panto mise run check` exercises source and installed-rock loading, renders the real footer with a fake CLI, and checks tool execution, resume, and headless rejection. No installed `agy` or Google account is used. See `docs/findings.md` in the source repository for compatibility evidence. +`PANTO=/path/to/panto mise run check` exercises source and installed-rock loading, renders the real footer with a fake CLI, and checks tool execution, resume, print-mode prompts and provider diagnostics on stderr. No installed `agy` or Google account is used. See `docs/findings.md` in the source repository for compatibility evidence. |
