opencode-antigravity-autopilot 2.2.0 → 2.2.2
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/README.md +19 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,15 @@ Zero OpenCode source modifications required - works as a pure plugin!
|
|
|
18
18
|
|
|
19
19
|
## 🚀 Quick Start
|
|
20
20
|
|
|
21
|
+
### 🤖 Install with LLM
|
|
22
|
+
|
|
23
|
+
Simply copy and paste this prompt to your OpenCode assistant:
|
|
24
|
+
|
|
25
|
+
> Please read the documentation at https://github.com/Gooseware/opencode-antigravity-autopilot#readme to understand the installation steps.
|
|
26
|
+
> Install the `opencode-antigravity-autopilot` plugin from npm.
|
|
27
|
+
> Then, configure `~/.config/opencode/opencode.json` to add `"opencode-antigravity-autopilot"` to the `plugin` list.
|
|
28
|
+
> Finally, create a default quota config in `~/.config/opencode/quota.json` with auto-rotation enabled for models like `antigravity-gemini-3-pro-high` and `antigravity-claude-sonnet-4-5`.
|
|
29
|
+
|
|
21
30
|
### From NPM
|
|
22
31
|
|
|
23
32
|
```bash
|
|
@@ -49,7 +58,7 @@ Add to `~/.config/opencode/opencode.json`:
|
|
|
49
58
|
```json
|
|
50
59
|
{
|
|
51
60
|
"plugin": [
|
|
52
|
-
"opencode-antigravity-auth
|
|
61
|
+
"opencode-antigravity-auth",
|
|
53
62
|
"opencode-antigravity-autopilot"
|
|
54
63
|
]
|
|
55
64
|
}
|
|
@@ -63,9 +72,9 @@ Create `~/.config/opencode/quota.json` to configure thresholds and models:
|
|
|
63
72
|
{
|
|
64
73
|
"quotaThreshold": 0.05,
|
|
65
74
|
"preferredModels": [
|
|
66
|
-
"gemini-
|
|
67
|
-
"claude-
|
|
68
|
-
"gemini-
|
|
75
|
+
"antigravity-gemini-3-pro-high", // Try this first
|
|
76
|
+
"antigravity-claude-sonnet-4-5", // Then this
|
|
77
|
+
"antigravity-gemini-3-flash" // Fallback
|
|
69
78
|
],
|
|
70
79
|
"autoRotate": true
|
|
71
80
|
}
|
|
@@ -82,7 +91,7 @@ Simply ask your assistant:
|
|
|
82
91
|
```
|
|
83
92
|
"Check my quota status"
|
|
84
93
|
"Show detailed quota for all models"
|
|
85
|
-
"Can I use gemini-3-pro right now?"
|
|
94
|
+
"Can I use antigravity-gemini-3-pro-high right now?"
|
|
86
95
|
```
|
|
87
96
|
|
|
88
97
|
The LLM will call the appropriate tools and show results like:
|
|
@@ -90,7 +99,7 @@ The LLM will call the appropriate tools and show results like:
|
|
|
90
99
|
```
|
|
91
100
|
# Quota Status
|
|
92
101
|
|
|
93
|
-
✓ **Current Model:** gemini-3-pro
|
|
102
|
+
✓ **Current Model:** antigravity-gemini-3-pro-high
|
|
94
103
|
**Status:** Quota healthy at 67%
|
|
95
104
|
|
|
96
105
|
**Accounts:** 1 of 3 active
|
|
@@ -112,7 +121,7 @@ quota_status({ detailed: true })
|
|
|
112
121
|
Check if a specific model has enough quota
|
|
113
122
|
|
|
114
123
|
```typescript
|
|
115
|
-
quota_check_model({ model: "gemini-3-pro" })
|
|
124
|
+
quota_check_model({ model: "antigravity-gemini-3-pro-high" })
|
|
116
125
|
```
|
|
117
126
|
|
|
118
127
|
#### `quota_rotate_account`
|
|
@@ -130,13 +139,13 @@ import { HardLimitDetector } from 'opencode-antigravity-autopilot';
|
|
|
130
139
|
const detector = new HardLimitDetector({
|
|
131
140
|
quotaThreshold: 0.2, // Switch when below 20%
|
|
132
141
|
preferredModels: [
|
|
133
|
-
'google/antigravity-gemini-3-pro',
|
|
142
|
+
'google/antigravity-gemini-3-pro-high',
|
|
134
143
|
'google/antigravity-claude-sonnet-4-5'
|
|
135
144
|
]
|
|
136
145
|
});
|
|
137
146
|
|
|
138
147
|
// Before using a model
|
|
139
|
-
const result = await detector.checkHardLimit('gemini-3-pro');
|
|
148
|
+
const result = await detector.checkHardLimit('antigravity-gemini-3-pro-high');
|
|
140
149
|
|
|
141
150
|
if (result.shouldRotate) {
|
|
142
151
|
console.log(`Switching to: ${result.nextModel}`);
|
|
@@ -194,7 +203,7 @@ import { HardLimitDetector } from 'opencode-antigravity-autopilot';
|
|
|
194
203
|
|
|
195
204
|
const detector = new HardLimitDetector({
|
|
196
205
|
preferredModels: [
|
|
197
|
-
'google/antigravity-gemini-3-pro',
|
|
206
|
+
'google/antigravity-gemini-3-pro-high', // Try first
|
|
198
207
|
'google/antigravity-claude-sonnet-4-5', // Try second
|
|
199
208
|
'google/antigravity-gemini-3-flash' // Fallback
|
|
200
209
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-antigravity-autopilot",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Intelligent quota monitoring and model auto-switching for OpenCode with Antigravity. Plugin-based, zero source modifications required.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|