modelpace 0.0.0-stage → 0.1.0
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/AGENTS.md +147 -0
- package/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +216 -2
- package/README.zh-CN.md +198 -0
- package/SECURITY.md +16 -0
- package/bin/modelpace-mcp.mjs +337 -0
- package/bin/modelpace.mjs +383 -0
- package/docs/SCHEMA.md +170 -0
- package/examples/multi-account.config.json +168 -0
- package/examples/multi-account.snapshot.json +227 -0
- package/examples/record.example.json +23 -0
- package/examples/sample-snapshot.json +173 -0
- package/llms.txt +26 -0
- package/package.json +56 -4
- package/skills/modelpace/SKILL.md +82 -0
- package/src/adapters/json-snapshot.mjs +360 -0
- package/src/adapters/t3-auto.mjs +160 -0
- package/src/adapters/t3-config.mjs +337 -0
- package/src/adapters/t3-rpc.mjs +275 -0
- package/src/context.mjs +73 -0
- package/src/core/decide.mjs +435 -0
- package/src/core/pacing.mjs +569 -0
- package/src/core/policy.mjs +252 -0
- package/src/core/scores.mjs +491 -0
- package/src/index.mjs +48 -0
- package/src/speed/collect.mjs +47 -0
- package/src/speed/histogram.mjs +170 -0
- package/src/speed/scanner.mjs +390 -0
- package/src/ui/client.js +522 -0
- package/src/ui/dashboard.css +106 -0
- package/src/ui/dashboard.mjs +150 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"tiers": ["work", "personal", "public"],
|
|
4
|
+
"defaultTier": "personal",
|
|
5
|
+
"taskToSlot": {
|
|
6
|
+
"general": "worker",
|
|
7
|
+
"research": "worker",
|
|
8
|
+
"review": "review",
|
|
9
|
+
"slice": "worker",
|
|
10
|
+
"long": "heavy"
|
|
11
|
+
},
|
|
12
|
+
"instances": {
|
|
13
|
+
"codex": {
|
|
14
|
+
"driver": "codex",
|
|
15
|
+
"scoreProvider": "codex",
|
|
16
|
+
"tiers": ["work", "personal", "public"],
|
|
17
|
+
"enabled": true,
|
|
18
|
+
"shortWindowMaxUsedPercent": 90
|
|
19
|
+
},
|
|
20
|
+
"claude": {
|
|
21
|
+
"driver": "claudeAgent",
|
|
22
|
+
"scoreProvider": "claude",
|
|
23
|
+
"tiers": ["work", "personal", "public"],
|
|
24
|
+
"enabled": true,
|
|
25
|
+
"shortWindowMaxUsedPercent": 90
|
|
26
|
+
},
|
|
27
|
+
"antigravity": {
|
|
28
|
+
"driver": "antigravity",
|
|
29
|
+
"scoreProvider": "antigravity-ultra",
|
|
30
|
+
"tiers": ["work", "personal", "public"],
|
|
31
|
+
"enabled": true,
|
|
32
|
+
"shortWindowMaxUsedPercent": 90
|
|
33
|
+
},
|
|
34
|
+
"antigravity-pro": {
|
|
35
|
+
"driver": "antigravity",
|
|
36
|
+
"scoreProvider": "antigravity-pro",
|
|
37
|
+
"tiers": ["personal", "public"],
|
|
38
|
+
"enabled": true,
|
|
39
|
+
"shortWindowMaxUsedPercent": 70
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"slots": {
|
|
43
|
+
"worker": {
|
|
44
|
+
"candidates": [
|
|
45
|
+
{
|
|
46
|
+
"id": "codex-worker",
|
|
47
|
+
"instanceId": "codex",
|
|
48
|
+
"model": "gpt-5.3-codex",
|
|
49
|
+
"effort": "high",
|
|
50
|
+
"options": { "reasoningEffort": "high" },
|
|
51
|
+
"priority": 1
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "gemini-pro-worker",
|
|
55
|
+
"instanceId": "antigravity-pro",
|
|
56
|
+
"model": "gemini-4-hydrogen",
|
|
57
|
+
"pool": "gemini",
|
|
58
|
+
"effort": "high",
|
|
59
|
+
"maxShortUsedPercent": 70,
|
|
60
|
+
"priority": 2
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "gemini-ultra-worker",
|
|
64
|
+
"instanceId": "antigravity",
|
|
65
|
+
"model": "gemini-4-hydrogen",
|
|
66
|
+
"pool": "gemini",
|
|
67
|
+
"effort": "high",
|
|
68
|
+
"priority": 3
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "claude-worker",
|
|
72
|
+
"instanceId": "claude",
|
|
73
|
+
"model": "claude-sonnet-4-5",
|
|
74
|
+
"effort": "high",
|
|
75
|
+
"priority": 4
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"heavy": {
|
|
80
|
+
"candidates": [
|
|
81
|
+
{
|
|
82
|
+
"id": "gemini-carbon-heavy",
|
|
83
|
+
"instanceId": "antigravity",
|
|
84
|
+
"model": "gemini-4-carbon",
|
|
85
|
+
"pool": "carbon",
|
|
86
|
+
"effort": "high",
|
|
87
|
+
"tasks": ["long", "general", "slice"],
|
|
88
|
+
"priority": 1
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "claude-opus-heavy",
|
|
92
|
+
"instanceId": "claude",
|
|
93
|
+
"model": "claude-opus-4-5",
|
|
94
|
+
"effort": "high",
|
|
95
|
+
"priority": 2
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "codex-heavy",
|
|
99
|
+
"instanceId": "codex",
|
|
100
|
+
"model": "gpt-5.3-codex",
|
|
101
|
+
"effort": "xhigh",
|
|
102
|
+
"options": { "reasoningEffort": "xhigh" },
|
|
103
|
+
"priority": 3
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"review": {
|
|
108
|
+
"candidates": [
|
|
109
|
+
{
|
|
110
|
+
"id": "claude-review",
|
|
111
|
+
"instanceId": "claude",
|
|
112
|
+
"model": "claude-sonnet-4-5",
|
|
113
|
+
"effort": "high",
|
|
114
|
+
"tasks": ["review", "research"],
|
|
115
|
+
"priority": 1
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "codex-review",
|
|
119
|
+
"instanceId": "codex",
|
|
120
|
+
"model": "gpt-5.3-codex",
|
|
121
|
+
"effort": "high",
|
|
122
|
+
"priority": 2
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"pacing": {
|
|
128
|
+
"paceMarginPercent": 10,
|
|
129
|
+
"longTaskMinRemainingPercent": 30,
|
|
130
|
+
"defaultMinRemainingPercent": 20,
|
|
131
|
+
"shortWindowMaxUsedPercent": 90,
|
|
132
|
+
"recheckAfterMinutes": 15,
|
|
133
|
+
"maxSnapshotAgeMinutes": 15,
|
|
134
|
+
"resetCredit": {
|
|
135
|
+
"skipIfResetWithinHours": 6,
|
|
136
|
+
"expiryWarnHours": 72
|
|
137
|
+
},
|
|
138
|
+
"expiringBoost": {
|
|
139
|
+
"resetWithinHours": 24,
|
|
140
|
+
"minRemainingPercent": 30,
|
|
141
|
+
"maxShortUsedPercent": 70
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"scoring": {
|
|
145
|
+
"mode": "demote",
|
|
146
|
+
"minPassRate": 0.85,
|
|
147
|
+
"minSamples": 5,
|
|
148
|
+
"speedTieBreakerMarginRatio": 0.15,
|
|
149
|
+
"costWeight": 0,
|
|
150
|
+
"aliases": {
|
|
151
|
+
"provider": { "claudeAgent": "claude" },
|
|
152
|
+
"tier": { "-": "default" }
|
|
153
|
+
},
|
|
154
|
+
"durationUnreadableProviders": [],
|
|
155
|
+
"rejectRules": [],
|
|
156
|
+
"disabledProviders": [],
|
|
157
|
+
"pricing": {
|
|
158
|
+
"currency": "USD",
|
|
159
|
+
"exchangeRates": { "USD": 6.67, "CNY": 1 },
|
|
160
|
+
"monthlyPrice": {
|
|
161
|
+
"codex": { "amount": 200, "currency": "USD" },
|
|
162
|
+
"claude": { "amount": 200, "currency": "USD" },
|
|
163
|
+
"antigravity-ultra": { "amount": 250, "currency": "USD" },
|
|
164
|
+
"antigravity-pro": { "amount": 20, "currency": "USD" }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"observedAt": "2026-11-23T07:00:00.000Z",
|
|
4
|
+
"source": "json",
|
|
5
|
+
"instances": {
|
|
6
|
+
"codex": {
|
|
7
|
+
"instanceId": "codex",
|
|
8
|
+
"driver": "codex",
|
|
9
|
+
"displayName": "Codex Pro",
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"status": "ready",
|
|
12
|
+
"plan": "ChatGPT Pro 200 Subscription",
|
|
13
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
14
|
+
"detail": null,
|
|
15
|
+
"windows": [
|
|
16
|
+
{
|
|
17
|
+
"id": "primary",
|
|
18
|
+
"kind": "session",
|
|
19
|
+
"label": "5-hour limit",
|
|
20
|
+
"pool": null,
|
|
21
|
+
"modelIds": null,
|
|
22
|
+
"providerIds": null,
|
|
23
|
+
"usedPercent": 22,
|
|
24
|
+
"remainingPercent": 78,
|
|
25
|
+
"resetsAt": "2026-11-23T11:30:00.000Z",
|
|
26
|
+
"windowDurationMins": 300
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "secondary",
|
|
30
|
+
"kind": "weekly",
|
|
31
|
+
"label": "Weekly limit",
|
|
32
|
+
"pool": null,
|
|
33
|
+
"modelIds": null,
|
|
34
|
+
"providerIds": null,
|
|
35
|
+
"usedPercent": 40,
|
|
36
|
+
"remainingPercent": 60,
|
|
37
|
+
"resetsAt": "2026-11-27T07:00:00.000Z",
|
|
38
|
+
"windowDurationMins": 10080
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"resetCredits": {
|
|
42
|
+
"known": true,
|
|
43
|
+
"availableCount": 1,
|
|
44
|
+
"nextExpiresAt": "2026-11-30T00:00:00.000Z",
|
|
45
|
+
"cards": [
|
|
46
|
+
{
|
|
47
|
+
"creditId": "codex-card-1",
|
|
48
|
+
"resetType": "codexRateLimits",
|
|
49
|
+
"status": "available",
|
|
50
|
+
"resetsLeft": 1,
|
|
51
|
+
"coversWindowIds": null,
|
|
52
|
+
"coversWindowPrefixes": null,
|
|
53
|
+
"expiresAt": "2026-11-30T00:00:00.000Z"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"budget": null
|
|
58
|
+
},
|
|
59
|
+
"claude": {
|
|
60
|
+
"instanceId": "claude",
|
|
61
|
+
"driver": "claudeAgent",
|
|
62
|
+
"displayName": "Claude Max",
|
|
63
|
+
"enabled": true,
|
|
64
|
+
"status": "ready",
|
|
65
|
+
"plan": "Max",
|
|
66
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
67
|
+
"detail": null,
|
|
68
|
+
"windows": [
|
|
69
|
+
{
|
|
70
|
+
"id": "five_hour",
|
|
71
|
+
"kind": "session",
|
|
72
|
+
"label": "5-hour limit",
|
|
73
|
+
"pool": null,
|
|
74
|
+
"modelIds": null,
|
|
75
|
+
"providerIds": null,
|
|
76
|
+
"usedPercent": 15,
|
|
77
|
+
"remainingPercent": 85,
|
|
78
|
+
"resetsAt": "2026-11-23T11:00:00.000Z",
|
|
79
|
+
"windowDurationMins": 300
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "seven_day",
|
|
83
|
+
"kind": "weekly",
|
|
84
|
+
"label": "Weekly · all models",
|
|
85
|
+
"pool": null,
|
|
86
|
+
"modelIds": null,
|
|
87
|
+
"providerIds": null,
|
|
88
|
+
"usedPercent": 30,
|
|
89
|
+
"remainingPercent": 70,
|
|
90
|
+
"resetsAt": "2026-11-25T07:00:00.000Z",
|
|
91
|
+
"windowDurationMins": 10080
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"resetCredits": {
|
|
95
|
+
"known": true,
|
|
96
|
+
"availableCount": 1,
|
|
97
|
+
"nextExpiresAt": "2026-11-29T00:00:00.000Z",
|
|
98
|
+
"cards": [
|
|
99
|
+
{
|
|
100
|
+
"creditId": "claude-weekly-1",
|
|
101
|
+
"resetType": "claudeWeekly",
|
|
102
|
+
"status": "available",
|
|
103
|
+
"resetsLeft": 1,
|
|
104
|
+
"coversWindowIds": null,
|
|
105
|
+
"coversWindowPrefixes": ["seven_day"],
|
|
106
|
+
"expiresAt": "2026-11-29T00:00:00.000Z"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"budget": null
|
|
111
|
+
},
|
|
112
|
+
"antigravity": {
|
|
113
|
+
"instanceId": "antigravity",
|
|
114
|
+
"driver": "antigravity",
|
|
115
|
+
"displayName": "Antigravity Ultra",
|
|
116
|
+
"enabled": true,
|
|
117
|
+
"status": "ready",
|
|
118
|
+
"plan": "ultra",
|
|
119
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
120
|
+
"detail": null,
|
|
121
|
+
"windows": [
|
|
122
|
+
{
|
|
123
|
+
"id": "gemini-5h",
|
|
124
|
+
"kind": "session",
|
|
125
|
+
"label": "Gemini · 5-hour",
|
|
126
|
+
"pool": "gemini",
|
|
127
|
+
"modelIds": ["gemini-4-neon", "gemini-4-hydrogen"],
|
|
128
|
+
"providerIds": null,
|
|
129
|
+
"usedPercent": 10,
|
|
130
|
+
"remainingPercent": 90,
|
|
131
|
+
"resetsAt": "2026-11-23T12:00:00.000Z",
|
|
132
|
+
"windowDurationMins": 300
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "gemini-weekly",
|
|
136
|
+
"kind": "weekly",
|
|
137
|
+
"label": "Gemini · Weekly",
|
|
138
|
+
"pool": "gemini",
|
|
139
|
+
"modelIds": ["gemini-4-neon", "gemini-4-hydrogen"],
|
|
140
|
+
"providerIds": null,
|
|
141
|
+
"usedPercent": 20,
|
|
142
|
+
"remainingPercent": 80,
|
|
143
|
+
"resetsAt": "2026-11-28T07:00:00.000Z",
|
|
144
|
+
"windowDurationMins": 10080
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "gemini-carbon-5h",
|
|
148
|
+
"kind": "session",
|
|
149
|
+
"label": "Carbon · 5-hour",
|
|
150
|
+
"pool": "carbon",
|
|
151
|
+
"modelIds": ["gemini-4-carbon"],
|
|
152
|
+
"providerIds": null,
|
|
153
|
+
"usedPercent": 5,
|
|
154
|
+
"remainingPercent": 95,
|
|
155
|
+
"resetsAt": "2026-11-23T12:00:00.000Z",
|
|
156
|
+
"windowDurationMins": 300
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"resetCredits": null,
|
|
160
|
+
"budget": null
|
|
161
|
+
},
|
|
162
|
+
"antigravity-pro": {
|
|
163
|
+
"instanceId": "antigravity-pro",
|
|
164
|
+
"driver": "antigravity",
|
|
165
|
+
"displayName": "Antigravity Pro",
|
|
166
|
+
"enabled": true,
|
|
167
|
+
"status": "ready",
|
|
168
|
+
"plan": "pro",
|
|
169
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
170
|
+
"detail": null,
|
|
171
|
+
"windows": [
|
|
172
|
+
{
|
|
173
|
+
"id": "gemini-5h",
|
|
174
|
+
"kind": "session",
|
|
175
|
+
"label": "Gemini · 5-hour",
|
|
176
|
+
"pool": "gemini",
|
|
177
|
+
"modelIds": ["gemini-4-neon", "gemini-4-hydrogen"],
|
|
178
|
+
"providerIds": null,
|
|
179
|
+
"usedPercent": 25,
|
|
180
|
+
"remainingPercent": 75,
|
|
181
|
+
"resetsAt": "2026-11-23T12:00:00.000Z",
|
|
182
|
+
"windowDurationMins": 300
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "gemini-weekly",
|
|
186
|
+
"kind": "weekly",
|
|
187
|
+
"label": "Gemini · Weekly",
|
|
188
|
+
"pool": "gemini",
|
|
189
|
+
"modelIds": ["gemini-4-neon", "gemini-4-hydrogen"],
|
|
190
|
+
"providerIds": null,
|
|
191
|
+
"usedPercent": 35,
|
|
192
|
+
"remainingPercent": 65,
|
|
193
|
+
"resetsAt": "2026-11-27T07:00:00.000Z",
|
|
194
|
+
"windowDurationMins": 10080
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"resetCredits": null,
|
|
198
|
+
"budget": null
|
|
199
|
+
},
|
|
200
|
+
"grok": {
|
|
201
|
+
"instanceId": "grok",
|
|
202
|
+
"driver": "grok",
|
|
203
|
+
"displayName": "Grok",
|
|
204
|
+
"enabled": true,
|
|
205
|
+
"status": "ready",
|
|
206
|
+
"plan": "supergrok",
|
|
207
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
208
|
+
"detail": null,
|
|
209
|
+
"windows": [
|
|
210
|
+
{
|
|
211
|
+
"id": "primary",
|
|
212
|
+
"kind": "weekly",
|
|
213
|
+
"label": "Grok Weekly",
|
|
214
|
+
"pool": null,
|
|
215
|
+
"modelIds": null,
|
|
216
|
+
"providerIds": null,
|
|
217
|
+
"usedPercent": 15,
|
|
218
|
+
"remainingPercent": 85,
|
|
219
|
+
"resetsAt": "2026-11-28T07:00:00.000Z",
|
|
220
|
+
"windowDurationMins": 10080
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"resetCredits": null,
|
|
224
|
+
"budget": null
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"date": "2026-11-23",
|
|
3
|
+
"taskId": "task-123",
|
|
4
|
+
"title": "Add retry to the sync job",
|
|
5
|
+
"task": "slice",
|
|
6
|
+
"executor": {
|
|
7
|
+
"provider": "codex",
|
|
8
|
+
"model": "gpt-5.3-codex",
|
|
9
|
+
"effort": "high",
|
|
10
|
+
"tier": "default",
|
|
11
|
+
"site": "local"
|
|
12
|
+
},
|
|
13
|
+
"scorer": "orchestrator",
|
|
14
|
+
"accepted": true,
|
|
15
|
+
"firstPass": true,
|
|
16
|
+
"reworkRounds": 0,
|
|
17
|
+
"scopeViolation": false,
|
|
18
|
+
"falseReport": false,
|
|
19
|
+
"stoppedOnDenial": null,
|
|
20
|
+
"durationMin": 4.2,
|
|
21
|
+
"quotaDelta": 3,
|
|
22
|
+
"note": "Verified with unit tests."
|
|
23
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"observedAt": "2026-11-23T07:00:00.000Z",
|
|
4
|
+
"source": "json",
|
|
5
|
+
"instances": {
|
|
6
|
+
"codex": {
|
|
7
|
+
"instanceId": "codex",
|
|
8
|
+
"driver": "codex",
|
|
9
|
+
"displayName": "Codex Pro",
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"status": "ready",
|
|
12
|
+
"plan": "ChatGPT Pro 200 Subscription",
|
|
13
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
14
|
+
"detail": null,
|
|
15
|
+
"windows": [
|
|
16
|
+
{
|
|
17
|
+
"id": "primary",
|
|
18
|
+
"kind": "session",
|
|
19
|
+
"label": "5-hour limit",
|
|
20
|
+
"pool": null,
|
|
21
|
+
"modelIds": null,
|
|
22
|
+
"providerIds": null,
|
|
23
|
+
"usedPercent": 22,
|
|
24
|
+
"remainingPercent": 78,
|
|
25
|
+
"resetsAt": "2026-11-23T11:30:00.000Z",
|
|
26
|
+
"windowDurationMins": 300
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "secondary",
|
|
30
|
+
"kind": "weekly",
|
|
31
|
+
"label": "Weekly limit",
|
|
32
|
+
"pool": null,
|
|
33
|
+
"modelIds": null,
|
|
34
|
+
"providerIds": null,
|
|
35
|
+
"usedPercent": 40,
|
|
36
|
+
"remainingPercent": 60,
|
|
37
|
+
"resetsAt": "2026-11-27T07:00:00.000Z",
|
|
38
|
+
"windowDurationMins": 10080
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"resetCredits": {
|
|
42
|
+
"known": true,
|
|
43
|
+
"availableCount": 1,
|
|
44
|
+
"nextExpiresAt": "2026-11-30T00:00:00.000Z",
|
|
45
|
+
"cards": [
|
|
46
|
+
{
|
|
47
|
+
"creditId": "codex-card-1",
|
|
48
|
+
"resetType": "codexRateLimits",
|
|
49
|
+
"status": "available",
|
|
50
|
+
"resetsLeft": 1,
|
|
51
|
+
"coversWindowIds": null,
|
|
52
|
+
"coversWindowPrefixes": null,
|
|
53
|
+
"expiresAt": "2026-11-30T00:00:00.000Z"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"budget": null
|
|
58
|
+
},
|
|
59
|
+
"claudeAgent": {
|
|
60
|
+
"instanceId": "claudeAgent",
|
|
61
|
+
"driver": "claudeAgent",
|
|
62
|
+
"displayName": "Claude Max",
|
|
63
|
+
"enabled": true,
|
|
64
|
+
"status": "ready",
|
|
65
|
+
"plan": "Max",
|
|
66
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
67
|
+
"detail": null,
|
|
68
|
+
"windows": [
|
|
69
|
+
{
|
|
70
|
+
"id": "five_hour",
|
|
71
|
+
"kind": "session",
|
|
72
|
+
"label": "5-hour limit",
|
|
73
|
+
"pool": null,
|
|
74
|
+
"modelIds": null,
|
|
75
|
+
"providerIds": null,
|
|
76
|
+
"usedPercent": 15,
|
|
77
|
+
"remainingPercent": 85,
|
|
78
|
+
"resetsAt": "2026-11-23T11:00:00.000Z",
|
|
79
|
+
"windowDurationMins": 300
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "seven_day",
|
|
83
|
+
"kind": "weekly",
|
|
84
|
+
"label": "Weekly · all models",
|
|
85
|
+
"pool": null,
|
|
86
|
+
"modelIds": null,
|
|
87
|
+
"providerIds": null,
|
|
88
|
+
"usedPercent": 30,
|
|
89
|
+
"remainingPercent": 70,
|
|
90
|
+
"resetsAt": "2026-11-25T07:00:00.000Z",
|
|
91
|
+
"windowDurationMins": 10080
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"resetCredits": {
|
|
95
|
+
"known": true,
|
|
96
|
+
"availableCount": 1,
|
|
97
|
+
"nextExpiresAt": "2026-11-29T00:00:00.000Z",
|
|
98
|
+
"cards": [
|
|
99
|
+
{
|
|
100
|
+
"creditId": "claude-weekly-1",
|
|
101
|
+
"resetType": "claudeWeekly",
|
|
102
|
+
"status": "available",
|
|
103
|
+
"resetsLeft": 1,
|
|
104
|
+
"coversWindowIds": null,
|
|
105
|
+
"coversWindowPrefixes": [
|
|
106
|
+
"seven_day"
|
|
107
|
+
],
|
|
108
|
+
"expiresAt": "2026-11-29T00:00:00.000Z"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"budget": null
|
|
113
|
+
},
|
|
114
|
+
"antigravity": {
|
|
115
|
+
"instanceId": "antigravity",
|
|
116
|
+
"driver": "antigravity",
|
|
117
|
+
"displayName": "Antigravity Ultra",
|
|
118
|
+
"enabled": true,
|
|
119
|
+
"status": "ready",
|
|
120
|
+
"plan": "ultra",
|
|
121
|
+
"checkedAt": "2026-11-23T07:00:00.000Z",
|
|
122
|
+
"detail": null,
|
|
123
|
+
"windows": [
|
|
124
|
+
{
|
|
125
|
+
"id": "gemini-5h",
|
|
126
|
+
"kind": "session",
|
|
127
|
+
"label": "Gemini · 5-hour",
|
|
128
|
+
"pool": "gemini",
|
|
129
|
+
"modelIds": [
|
|
130
|
+
"gemini-4-neon",
|
|
131
|
+
"gemini-4-hydrogen"
|
|
132
|
+
],
|
|
133
|
+
"providerIds": null,
|
|
134
|
+
"usedPercent": 10,
|
|
135
|
+
"remainingPercent": 90,
|
|
136
|
+
"resetsAt": "2026-11-23T12:00:00.000Z",
|
|
137
|
+
"windowDurationMins": 300
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"id": "gemini-weekly",
|
|
141
|
+
"kind": "weekly",
|
|
142
|
+
"label": "Gemini · Weekly",
|
|
143
|
+
"pool": "gemini",
|
|
144
|
+
"modelIds": [
|
|
145
|
+
"gemini-4-neon",
|
|
146
|
+
"gemini-4-hydrogen"
|
|
147
|
+
],
|
|
148
|
+
"providerIds": null,
|
|
149
|
+
"usedPercent": 20,
|
|
150
|
+
"remainingPercent": 80,
|
|
151
|
+
"resetsAt": "2026-11-28T07:00:00.000Z",
|
|
152
|
+
"windowDurationMins": 10080
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"id": "gemini-carbon-5h",
|
|
156
|
+
"kind": "session",
|
|
157
|
+
"label": "Carbon · 5-hour",
|
|
158
|
+
"pool": "carbon",
|
|
159
|
+
"modelIds": [
|
|
160
|
+
"gemini-4-carbon"
|
|
161
|
+
],
|
|
162
|
+
"providerIds": null,
|
|
163
|
+
"usedPercent": 5,
|
|
164
|
+
"remainingPercent": 95,
|
|
165
|
+
"resetsAt": "2026-11-23T12:00:00.000Z",
|
|
166
|
+
"windowDurationMins": 300
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"resetCredits": null,
|
|
170
|
+
"budget": null
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
package/llms.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# modelpace
|
|
2
|
+
|
|
3
|
+
> Zero-dependency Node.js (>= 22) CLI and MCP server that recommends which T3 Code provider instance and model should take a delegated task, from live quota pacing (Even Pace, reset credits) and past acceptance records. It only advises; the calling agent still runs `delegate_task`.
|
|
4
|
+
|
|
5
|
+
Start with AGENTS.md: it covers install, the validate / plan / record loop, MCP setup for Claude Code and Codex, data and privacy, and troubleshooting. Commands in this index are runnable from a clone with `node ./bin/modelpace.mjs`.
|
|
6
|
+
|
|
7
|
+
## Docs
|
|
8
|
+
|
|
9
|
+
- [AGENTS.md](https://raw.githubusercontent.com/jieyuexing/modelpace/main/AGENTS.md): guide for coding agents — install, commands, MCP tools, privacy, troubleshooting
|
|
10
|
+
- [README](https://raw.githubusercontent.com/jieyuexing/modelpace/main/README.md): overview, quick start, policy, ledger and T3 connection
|
|
11
|
+
- [Schema reference](https://raw.githubusercontent.com/jieyuexing/modelpace/main/docs/SCHEMA.md): config, record and snapshot fields with examples
|
|
12
|
+
- [Agent skill](https://raw.githubusercontent.com/jieyuexing/modelpace/main/skills/modelpace/SKILL.md): when and how to plan before and record after `delegate_task`
|
|
13
|
+
- [中文 README](https://raw.githubusercontent.com/jieyuexing/modelpace/main/README.zh-CN.md): Chinese overview
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
- [Sample snapshot](https://raw.githubusercontent.com/jieyuexing/modelpace/main/examples/sample-snapshot.json): usage snapshot for the built-in policy (replay with `--now 2026-11-23T07:05:00Z`)
|
|
18
|
+
- [Record template](https://raw.githubusercontent.com/jieyuexing/modelpace/main/examples/record.example.json): a complete acceptance record
|
|
19
|
+
- [Multi-account config](https://raw.githubusercontent.com/jieyuexing/modelpace/main/examples/multi-account.config.json): two Antigravity subscriptions plus Codex and Claude
|
|
20
|
+
- [Multi-account snapshot](https://raw.githubusercontent.com/jieyuexing/modelpace/main/examples/multi-account.snapshot.json): matching snapshot for that config
|
|
21
|
+
|
|
22
|
+
## Optional
|
|
23
|
+
|
|
24
|
+
- [Changelog](https://raw.githubusercontent.com/jieyuexing/modelpace/main/CHANGELOG.md): release notes
|
|
25
|
+
- [Security policy](https://raw.githubusercontent.com/jieyuexing/modelpace/main/SECURITY.md): reporting and what the tool touches
|
|
26
|
+
- [Contributing](https://raw.githubusercontent.com/jieyuexing/modelpace/main/CONTRIBUTING.md): development conventions
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modelpace",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Quota-paced multi-model dispatch engine for T3 Code (CLI, MCP, Agent Skill)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/jieyuexing/modelpace.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/jieyuexing/modelpace#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/jieyuexing/modelpace/issues"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">=22.0.0"
|
|
17
|
+
},
|
|
18
|
+
"main": "./src/index.mjs",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./src/index.mjs",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"modelpace": "bin/modelpace.mjs",
|
|
25
|
+
"modelpace-mcp": "bin/modelpace-mcp.mjs"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "node --test test/*.test.mjs"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin/",
|
|
32
|
+
"src/",
|
|
33
|
+
"skills/",
|
|
34
|
+
"examples/",
|
|
35
|
+
"docs/",
|
|
36
|
+
"AGENTS.md",
|
|
37
|
+
"llms.txt",
|
|
38
|
+
"README.md",
|
|
39
|
+
"README.zh-CN.md",
|
|
40
|
+
"CHANGELOG.md",
|
|
41
|
+
"SECURITY.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"keywords": [
|
|
45
|
+
"agent",
|
|
46
|
+
"ai-agent",
|
|
47
|
+
"claude",
|
|
48
|
+
"codex",
|
|
49
|
+
"dashboard",
|
|
50
|
+
"dispatch",
|
|
51
|
+
"even-pace",
|
|
52
|
+
"mcp",
|
|
53
|
+
"multi-model",
|
|
54
|
+
"quota",
|
|
55
|
+
"speed",
|
|
56
|
+
"t3-code"
|
|
57
|
+
]
|
|
58
|
+
}
|