summaryrefslogtreecommitdiff
path: root/README.md
blob: cea1f998af7527b92c7a5e4a8d3861ddd2cf81b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# panto-antigravity
Use `panto -m antigravity:gemini-4-neon -r high` for human-driven Gemini chat in the normal Panto thread. Requires macOS, Google's signed `agy`, and a Panto build with `request.tui_submission`. No API keys, companion client or rig required.

```toml
[extensions]
paths = ["/absolute/path/to/panto-antigravity/extensions"]
[providers.antigravity]
protocol = "antigravity-acp"
# tools = ["std.read"] # optional allowlist; [] exports none
```
In `models.toml`, use one entry per family, with the levels shown by `agy models` for your account:

```toml
[antigravity.gemini-4-neon]
reasoning_levels = ["low", "medium", "high", "xhigh"]
```

`-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. For a locally built rock (`luarocks --lua-version 5.4 --tree <Panto rock tree> make`), use `rocks = ["panto-antigravity"]` instead of `paths`. Nothing is published or installed globally by the checks.

**Usage footer (TUI only):** One shared row across aliases alongside Claude, Codex, Copilot and OpenCode Go. It shows **percent used**, a five-cell bar and reset countdown per reported bucket (73% remaining → `27% ━────`). No account request on startup. An authenticated direct turn refreshes through the CLI’s fixed read-only `/usage` command, at most once a minute. The extension reads only the signed CLI’s stdout: it never calls Google quota endpoints or reads account tokens. [Google’s `/usage` command](https://antigravity.google/docs/cli/commands/usage/) may itself refresh from Google’s backend. Malformed or failed reads show unavailable; expired/reset readings aren't shown as current. No token-count estimates or raw CLI messages. `usage_footer = false` opts a provider out. The footer validates the `/usage` output, not the CLI version.

**Setup & diagnostics:** `/antigravity-status` shows local connection state; `/antigravity-models` lists advertised families; for split ACP settings, levels are shown only for the selected model. Neither contacts Google. The isolated profile is `~/.local/share/panto-antigravity/google`. For native login once that directory exists: `profile="$HOME/.local/share/panto-antigravity/google"; HOME="$profile" agy acp --gemini-dir "$profile" --login`. When upgrading from the prototype, update your extension path, protocol and model selection, then start a new thread. No credentials or old checkpoints are migrated automatically.

**Tools:** By default the `pantograph` MCP server exports the active Panto tools, including extension tools. They run with Panto's permissions, not agy's shell sandbox. Use a trusted rig; if it contains tools you don't want Neon to run, narrow `tools` or disable those extensions in the rig. Full input schemas are listed, including nested arrays and objects; an unsupported schema constraint rejects the call rather than disabling the catalog. On `session/new` and `session/resume`, the adapter requests `_meta.disableBuiltInTools = true` (recognized by agy 1.5.19). Before launching ACP with tools, the extension creates `antigravity-cli/settings.json` in its isolated profile if absent, allowing `mcp(pantograph/*)` so exported tools don't prompt by default. Existing settings are never overwritten. To restore prompts, replace that allow rule with an `ask` rule for the same server. Other servers and native tools receive no grant. After restarting Panto, start a **fresh thread**, ask Neon to read `README.md`, and check for the Panto read card. `/antigravity-status` distinguishes configured tools from an actual MCP list request and counts accepted MCP calls.

**Boundaries:** Direct idle text submissions only: no startup prompts, print/proxy calls, child agents, compaction, queued input or automatic retries. Enter 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 relay supports text/image results. Unexpected ACP permission requests still show a macOS allow-once/deny dialog. Turns share one warm ACP process. Optional `save_session = true` resumes a completed matching checkpoint (writes local state even under `--incognito`); no transcript replay. Force-kill can leave a stale socket or lock: 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 [evidence and compatibility](docs/findings.md).