@zvada/agent-server 0.3.25 → 0.3.26
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/CHANGELOG.md +80 -0
- package/README.md +3 -0
- package/dist/core/agents/acp/acp-agent.js +91 -14
- package/dist/core/agents/acp/mappings.js +5 -1
- package/dist/core/agents/claude-code/approvals.js +2 -1
- package/dist/core/agents/claude-code/claude-agent.js +12 -2
- package/dist/core/agents/claude-code/mcp.js +9 -1
- package/dist/core/agents/claude-code/models.js +16 -10
- package/dist/core/agents/claude-code/options.js +23 -2
- package/dist/core/agents/claude-code/session.js +21 -1
- package/dist/core/agents/claude-code/tools.js +9 -4
- package/dist/core/agents/claude-code/turn.js +2 -0
- package/dist/core/agents/codex-app-server/adapter.js +2 -0
- package/dist/core/agents/codex-app-server/client.js +8 -5
- package/dist/core/agents/codex-app-server/codex-agent.js +35 -2
- package/dist/core/agents/codex-app-server/effort.js +13 -6
- package/dist/core/agents/codex-app-server/mcp.js +35 -18
- package/dist/core/agents/codex-app-server/models.js +10 -10
- package/dist/core/agents/codex-app-server/options.js +11 -2
- package/dist/core/agents/codex-app-server/session.js +11 -4
- package/dist/core/agents/codex-app-server/thread-settings.js +30 -11
- package/dist/core/agents/host-tools.js +493 -0
- package/dist/core/agents/mcp-config.js +6 -2
- package/dist/core/agents/scripted/scripted-agent.js +9 -3
- package/dist/core/agents/scripted/steps.js +5 -1
- package/dist/core/agents/session-agent.js +70 -2
- package/dist/core/agents/thinking-levels.js +8 -5
- package/dist/core/index.js +1 -0
- package/dist/core/presets.js +12 -2
- package/dist/core/processes/lifeline.js +9 -5
- package/dist/core/provision/pins.js +7 -16
- package/dist/core/provision/releases.js +25 -25
- package/dist/core/proxy/loopback.js +22 -4
- package/dist/protocol/config.js +21 -1
- package/dist/protocol/model-catalog.js +58 -18
- package/dist/protocol/models.js +6 -27
- package/dist/protocol/thinking.js +22 -9
- package/dist/protocol/wire-api.js +2 -2
- package/dist/server/bin.js +6 -4
- package/dist/types/core/agents/acp/acp-agent.d.ts +15 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +5 -1
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/acp/requests.d.ts +2 -0
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts +2 -1
- package/dist/types/core/agents/claude-code/approvals.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +1 -0
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts +8 -1
- package/dist/types/core/agents/claude-code/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/models.d.ts +9 -5
- package/dist/types/core/agents/claude-code/models.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +10 -1
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/session.d.ts +2 -0
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/tools.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/turn.d.ts +3 -0
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts +11 -0
- package/dist/types/core/agents/codex-app-server/codex-agent.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/effort.d.ts +7 -7
- package/dist/types/core/agents/codex-app-server/effort.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/mcp.d.ts +11 -3
- package/dist/types/core/agents/codex-app-server/mcp.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts +4 -1
- package/dist/types/core/agents/codex-app-server/models.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/options.d.ts +9 -2
- package/dist/types/core/agents/codex-app-server/options.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/requests.d.ts +2 -0
- package/dist/types/core/agents/codex-app-server/requests.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/session.d.ts +6 -3
- package/dist/types/core/agents/codex-app-server/session.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/thread-settings.d.ts.map +1 -1
- package/dist/types/core/agents/host-tools.d.ts +162 -0
- package/dist/types/core/agents/host-tools.d.ts.map +1 -0
- package/dist/types/core/agents/mcp-config.d.ts +11 -2
- package/dist/types/core/agents/mcp-config.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/scripted-agent.d.ts.map +1 -1
- package/dist/types/core/agents/scripted/steps.d.ts.map +1 -1
- package/dist/types/core/agents/session-agent.d.ts +2 -7
- package/dist/types/core/agents/session-agent.d.ts.map +1 -1
- package/dist/types/core/agents/thinking-levels.d.ts +7 -3
- package/dist/types/core/agents/thinking-levels.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +11 -1
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/lifeline.d.ts.map +1 -1
- package/dist/types/core/provision/pins.d.ts +5 -4
- package/dist/types/core/provision/pins.d.ts.map +1 -1
- package/dist/types/core/proxy/loopback.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +12 -19
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +4 -36
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +2 -18
- package/dist/types/protocol/execution.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +8 -72
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/model-catalog.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +4 -42
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/thinking.d.ts +19 -19
- package/dist/types/protocol/thinking.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +20 -105
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +16 -117
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/docs/consuming.md +68 -11
- package/docs/deploy.md +6 -5
- package/docs/harnesses.md +79 -31
- package/package.json +4 -4
- package/src/core/agents/acp/acp-agent.ts +123 -17
- package/src/core/agents/acp/mappings.ts +5 -1
- package/src/core/agents/acp/requests.ts +2 -0
- package/src/core/agents/claude-code/approvals.ts +2 -1
- package/src/core/agents/claude-code/claude-agent.ts +14 -2
- package/src/core/agents/claude-code/mcp.ts +11 -1
- package/src/core/agents/claude-code/models.ts +15 -10
- package/src/core/agents/claude-code/options.ts +33 -3
- package/src/core/agents/claude-code/session.ts +26 -1
- package/src/core/agents/claude-code/tools.ts +10 -4
- package/src/core/agents/claude-code/turn.ts +4 -0
- package/src/core/agents/codex-app-server/adapter.ts +2 -0
- package/src/core/agents/codex-app-server/client.ts +11 -5
- package/src/core/agents/codex-app-server/codex-agent.ts +45 -1
- package/src/core/agents/codex-app-server/effort.ts +15 -20
- package/src/core/agents/codex-app-server/mcp.ts +46 -23
- package/src/core/agents/codex-app-server/models.ts +10 -10
- package/src/core/agents/codex-app-server/options.ts +16 -2
- package/src/core/agents/codex-app-server/requests.ts +2 -0
- package/src/core/agents/codex-app-server/session.ts +19 -4
- package/src/core/agents/codex-app-server/thread-settings.ts +31 -11
- package/src/core/agents/host-tools.ts +649 -0
- package/src/core/agents/mcp-config.ts +15 -3
- package/src/core/agents/scripted/scripted-agent.ts +9 -2
- package/src/core/agents/scripted/steps.ts +5 -1
- package/src/core/agents/session-agent.ts +78 -2
- package/src/core/agents/thinking-levels.ts +9 -6
- package/src/core/index.ts +9 -0
- package/src/core/presets.ts +24 -3
- package/src/core/processes/lifeline.ts +9 -5
- package/src/core/provision/pins.ts +7 -16
- package/src/core/provision/releases.ts +25 -25
- package/src/core/proxy/loopback.ts +25 -4
- package/src/protocol/config.ts +22 -1
- package/src/protocol/model-catalog.ts +58 -18
- package/src/protocol/models.ts +6 -26
- package/src/protocol/thinking.ts +27 -14
- package/src/protocol/wire-api.ts +2 -2
- package/src/server/bin.ts +6 -4
|
@@ -221,15 +221,7 @@ export declare const TurnStartParamsSchema: z.ZodObject<{
|
|
|
221
221
|
scripted: "scripted";
|
|
222
222
|
}>;
|
|
223
223
|
model: z.ZodOptional<z.ZodString>;
|
|
224
|
-
thinkingLevel: z.ZodOptional<z.
|
|
225
|
-
off: "off";
|
|
226
|
-
low: "low";
|
|
227
|
-
medium: "medium";
|
|
228
|
-
high: "high";
|
|
229
|
-
xhigh: "xhigh";
|
|
230
|
-
max: "max";
|
|
231
|
-
ultra: "ultra";
|
|
232
|
-
}>>;
|
|
224
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
233
225
|
cwd: z.ZodString;
|
|
234
226
|
additionalDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
235
227
|
systemPromptAppend: z.ZodOptional<z.ZodString>;
|
|
@@ -252,16 +244,19 @@ export declare const TurnStartParamsSchema: z.ZodObject<{
|
|
|
252
244
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
253
245
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
254
246
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
255
248
|
}, z.core.$strip>, z.ZodObject<{
|
|
256
249
|
type: z.ZodLiteral<"http">;
|
|
257
250
|
url: z.ZodString;
|
|
258
251
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
259
252
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
260
254
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
255
|
type: z.ZodLiteral<"sse">;
|
|
262
256
|
url: z.ZodString;
|
|
263
257
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
264
258
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
265
260
|
}, z.core.$strip>], "type">>>;
|
|
266
261
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
267
262
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
@@ -282,25 +277,9 @@ export declare const TurnStartResultSchema: z.ZodObject<{
|
|
|
282
277
|
execution: z.ZodOptional<z.ZodObject<{
|
|
283
278
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
284
279
|
model: z.ZodOptional<z.ZodString>;
|
|
285
|
-
thinkingLevel: z.ZodOptional<z.
|
|
286
|
-
off: "off";
|
|
287
|
-
low: "low";
|
|
288
|
-
medium: "medium";
|
|
289
|
-
high: "high";
|
|
290
|
-
xhigh: "xhigh";
|
|
291
|
-
max: "max";
|
|
292
|
-
ultra: "ultra";
|
|
293
|
-
}>>;
|
|
280
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
294
281
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
295
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
296
|
-
off: "off";
|
|
297
|
-
low: "low";
|
|
298
|
-
medium: "medium";
|
|
299
|
-
high: "high";
|
|
300
|
-
xhigh: "xhigh";
|
|
301
|
-
max: "max";
|
|
302
|
-
ultra: "ultra";
|
|
303
|
-
}>>;
|
|
282
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
304
283
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
305
284
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
306
285
|
}, z.core.$strip>>;
|
|
@@ -493,25 +472,9 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
493
472
|
execution: z.ZodOptional<z.ZodObject<{
|
|
494
473
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
495
474
|
model: z.ZodOptional<z.ZodString>;
|
|
496
|
-
thinkingLevel: z.ZodOptional<z.
|
|
497
|
-
off: "off";
|
|
498
|
-
low: "low";
|
|
499
|
-
medium: "medium";
|
|
500
|
-
high: "high";
|
|
501
|
-
xhigh: "xhigh";
|
|
502
|
-
max: "max";
|
|
503
|
-
ultra: "ultra";
|
|
504
|
-
}>>;
|
|
475
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
505
476
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
506
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
507
|
-
off: "off";
|
|
508
|
-
low: "low";
|
|
509
|
-
medium: "medium";
|
|
510
|
-
high: "high";
|
|
511
|
-
xhigh: "xhigh";
|
|
512
|
-
max: "max";
|
|
513
|
-
ultra: "ultra";
|
|
514
|
-
}>>;
|
|
477
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
515
478
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
479
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
517
480
|
}, z.core.$strip>>;
|
|
@@ -733,25 +696,9 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
733
696
|
execution: z.ZodOptional<z.ZodObject<{
|
|
734
697
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
735
698
|
model: z.ZodOptional<z.ZodString>;
|
|
736
|
-
thinkingLevel: z.ZodOptional<z.
|
|
737
|
-
off: "off";
|
|
738
|
-
low: "low";
|
|
739
|
-
medium: "medium";
|
|
740
|
-
high: "high";
|
|
741
|
-
xhigh: "xhigh";
|
|
742
|
-
max: "max";
|
|
743
|
-
ultra: "ultra";
|
|
744
|
-
}>>;
|
|
699
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
745
700
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
746
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
747
|
-
off: "off";
|
|
748
|
-
low: "low";
|
|
749
|
-
medium: "medium";
|
|
750
|
-
high: "high";
|
|
751
|
-
xhigh: "xhigh";
|
|
752
|
-
max: "max";
|
|
753
|
-
ultra: "ultra";
|
|
754
|
-
}>>;
|
|
701
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
755
702
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
756
703
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
757
704
|
}, z.core.$strip>>;
|
|
@@ -982,25 +929,9 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
982
929
|
execution: z.ZodOptional<z.ZodObject<{
|
|
983
930
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
984
931
|
model: z.ZodOptional<z.ZodString>;
|
|
985
|
-
thinkingLevel: z.ZodOptional<z.
|
|
986
|
-
off: "off";
|
|
987
|
-
low: "low";
|
|
988
|
-
medium: "medium";
|
|
989
|
-
high: "high";
|
|
990
|
-
xhigh: "xhigh";
|
|
991
|
-
max: "max";
|
|
992
|
-
ultra: "ultra";
|
|
993
|
-
}>>;
|
|
932
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
994
933
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
995
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
996
|
-
off: "off";
|
|
997
|
-
low: "low";
|
|
998
|
-
medium: "medium";
|
|
999
|
-
high: "high";
|
|
1000
|
-
xhigh: "xhigh";
|
|
1001
|
-
max: "max";
|
|
1002
|
-
ultra: "ultra";
|
|
1003
|
-
}>>;
|
|
934
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1004
935
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1005
936
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1006
937
|
}, z.core.$strip>>;
|
|
@@ -1222,25 +1153,9 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
1222
1153
|
execution: z.ZodOptional<z.ZodObject<{
|
|
1223
1154
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
1224
1155
|
model: z.ZodOptional<z.ZodString>;
|
|
1225
|
-
thinkingLevel: z.ZodOptional<z.
|
|
1226
|
-
off: "off";
|
|
1227
|
-
low: "low";
|
|
1228
|
-
medium: "medium";
|
|
1229
|
-
high: "high";
|
|
1230
|
-
xhigh: "xhigh";
|
|
1231
|
-
max: "max";
|
|
1232
|
-
ultra: "ultra";
|
|
1233
|
-
}>>;
|
|
1156
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1234
1157
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
1235
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
1236
|
-
off: "off";
|
|
1237
|
-
low: "low";
|
|
1238
|
-
medium: "medium";
|
|
1239
|
-
high: "high";
|
|
1240
|
-
xhigh: "xhigh";
|
|
1241
|
-
max: "max";
|
|
1242
|
-
ultra: "ultra";
|
|
1243
|
-
}>>;
|
|
1158
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1244
1159
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1245
1160
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1246
1161
|
}, z.core.$strip>>;
|
|
@@ -1504,25 +1419,9 @@ export declare const TurnReceiptSchema: z.ZodObject<{
|
|
|
1504
1419
|
execution: z.ZodOptional<z.ZodObject<{
|
|
1505
1420
|
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
1506
1421
|
model: z.ZodOptional<z.ZodString>;
|
|
1507
|
-
thinkingLevel: z.ZodOptional<z.
|
|
1508
|
-
off: "off";
|
|
1509
|
-
low: "low";
|
|
1510
|
-
medium: "medium";
|
|
1511
|
-
high: "high";
|
|
1512
|
-
xhigh: "xhigh";
|
|
1513
|
-
max: "max";
|
|
1514
|
-
ultra: "ultra";
|
|
1515
|
-
}>>;
|
|
1422
|
+
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1516
1423
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
1517
|
-
appliedThinkingLevel: z.ZodOptional<z.
|
|
1518
|
-
off: "off";
|
|
1519
|
-
low: "low";
|
|
1520
|
-
medium: "medium";
|
|
1521
|
-
high: "high";
|
|
1522
|
-
xhigh: "xhigh";
|
|
1523
|
-
max: "max";
|
|
1524
|
-
ultra: "ultra";
|
|
1525
|
-
}>>;
|
|
1424
|
+
appliedThinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1526
1425
|
reportedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1527
1426
|
notApplied: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1528
1427
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["../../../src/protocol/wire.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AAI,CAAC;IACzB,KAAK,CAAC,IAAI,IAAI,CAAC;IACf,cAAc,CAAC,IAAI,MAAM,CAAC;CAC1B,GAAG;IACH,SAAS,EAAE,aAAa,CAAC;IACzB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CA6CA;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,GAAE,CAAC,MAAM,EAAE,MAAM,IAAI,KAAK,IAAqB,GAAG;IACpF,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAkBA"}
|
package/docs/consuming.md
CHANGED
|
@@ -420,6 +420,11 @@ const choice = models.find((m) => m.isDefault) ?? models[0];
|
|
|
420
420
|
const level = savedLevelFor(choice.id) ?? choice.thinking.default; // never invent one
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
+
Show `thinking.levels` as listed, in that order, and a name your app has no
|
|
424
|
+
label for as it is: a harness may list a level agent-server does not know
|
|
425
|
+
(`KnownThinkingLevel` is the seven it does). A level the model does not list
|
|
426
|
+
is fitted to the nearest level the engine can order, and when there is none
|
|
427
|
+
it is not applied (`execution.notApplied` names `thinkingLevel`).
|
|
423
428
|
`thinking.levels` empty means the model has no thinking control: a turn
|
|
424
429
|
that names a level for it runs without one (`off` is still sent on Claude),
|
|
425
430
|
and reports no `appliedThinkingLevel`. Keep the
|
|
@@ -486,7 +491,8 @@ above. A product that must keep sessions longer sets it for
|
|
|
486
491
|
its own processes through `claudeCode.sdkOptions`
|
|
487
492
|
(`settings: { cleanupPeriodDays }`), which holds only where no other Claude
|
|
488
493
|
process shares that config folder. The engine sets none: at `all` it would
|
|
489
|
-
override the person's own choice.
|
|
494
|
+
override the person's own choice. What was measured: LLP 0015.001, Claude's
|
|
495
|
+
transcript sweep.
|
|
490
496
|
|
|
491
497
|
## Steer a running turn
|
|
492
498
|
|
|
@@ -642,11 +648,13 @@ per-turn MCP in a home below. A fresh home has no login: run it on the
|
|
|
642
648
|
person's own Codex login (`codexAppServer.userLogin`, below), or hand one over
|
|
643
649
|
with [`credentials`](harnesses.md#host-managed-codex-authentication) or the
|
|
644
650
|
turn's `apiKey`. Below `all` Codex's apps, the ChatGPT account's connectors,
|
|
645
|
-
are off in every thread, as Claude's claude.ai connectors are, and
|
|
646
|
-
|
|
647
|
-
(`-c features.plugins=false`), so
|
|
648
|
-
|
|
649
|
-
|
|
651
|
+
are off in every thread, as Claude's claude.ai connectors are, and every
|
|
652
|
+
app-server that runs in such a home starts with plugins off
|
|
653
|
+
(`-c features.plugins=false`), so Codex's plugin catalogue is not downloaded
|
|
654
|
+
and a fresh home stays about 4 MB where it cloned the catalogue (about
|
|
655
|
+
85 MB). A plugin you install in a home you own still loads: the thread's
|
|
656
|
+
own `features`, which the engine sends, decide for it. A product that wants
|
|
657
|
+
a plugin installs it there, runs at `all`, or brings it as an MCP server. A home removed and made again
|
|
650
658
|
under a session's warm process starts a new process on the next turn, which
|
|
651
659
|
resumes the thread if the home still holds it, or fails `resume_failed`.
|
|
652
660
|
Codex loads the repository's skills and
|
|
@@ -714,9 +722,20 @@ await runtime.run({
|
|
|
714
722
|
first. Signed out, the turn fails `auth` before Codex starts. Codex still
|
|
715
723
|
loads the repository's skills and `~/.agents/skills`.
|
|
716
724
|
- `builtInTools`: each of Codex's own tool groups is on unless set `false`.
|
|
717
|
-
`local: false` takes away the shell, `
|
|
718
|
-
|
|
719
|
-
|
|
725
|
+
`local: false` takes away the shell, `view_image` and `write_stdin`, from
|
|
726
|
+
the sub-agents Codex spawns too. Codex still lists `apply_patch` to the
|
|
727
|
+
model and refuses a call to it without touching a file, and the stream
|
|
728
|
+
shows nothing of the attempt: say in your agent's instructions that it has
|
|
729
|
+
no files. So nothing the agent runs reads or writes the disk. That holds
|
|
730
|
+
for code mode's `exec` itself (measured on Codex 0.160.0 in `default` and
|
|
731
|
+
`bypass_permissions`, and on 0.169.1 with full access): its JavaScript
|
|
732
|
+
has no `process`, `require` or `fetch`, every `import()` fails, and it
|
|
733
|
+
read no file, saw no environment variable, started no process and made no
|
|
734
|
+
request. What it reaches is your MCP servers' tools and resources;
|
|
735
|
+
`read_mcp_resource` hands any URI to the server it names, so a server of
|
|
736
|
+
yours decides what a `file://` URI gives back (LLP 0015.001, What a
|
|
737
|
+
code-mode `exec` can reach; LLP 0017.000, Codex's local tools since
|
|
738
|
+
0.164.0);
|
|
720
739
|
`webSearch: false` and `imageGeneration: false` take away those. With
|
|
721
740
|
image generation on, a picture comes as an `image_generation` tool part
|
|
722
741
|
without its bytes: `metadata.savedPath`, when Codex gives one, names a file
|
|
@@ -757,7 +776,7 @@ applied through the harness's native configuration API before the prompt
|
|
|
757
776
|
(a Codex turn that names no home starts a new process for them, below);
|
|
758
777
|
finishing a turn does not restart the agent or its servers. Omitting the map
|
|
759
778
|
on a later turn removes the previous wire-configured set, just like `{}`.
|
|
760
|
-
|
|
779
|
+
The host's own tools (`hostTools`, below) and Claude's `sdkMcpServers` remain attached. The native CLI may also load MCP servers
|
|
761
780
|
from settings or plugins (Claude not at `inheritConfig: "none"`); this map is
|
|
762
781
|
not an exclusive tool allowlist.
|
|
763
782
|
|
|
@@ -865,6 +884,43 @@ the turn; an explicitly submitted next turn reapplies the configuration so a
|
|
|
865
884
|
previously failed native client can reconnect. No model turn or tool call is
|
|
866
885
|
automatically replayed.
|
|
867
886
|
|
|
887
|
+
### Give your agents your own tools
|
|
888
|
+
|
|
889
|
+
`createAgentRuntime({ hostTools })` gives every session's agent the product's
|
|
890
|
+
own tools, on every harness, with no MCP server of yours to run (LLP 0018):
|
|
891
|
+
|
|
892
|
+
```ts
|
|
893
|
+
createAgentRuntime({
|
|
894
|
+
hostTools: ({ sessionId, cwd, harness }) => ({
|
|
895
|
+
name: "product", // the MCP server's name, on every harness
|
|
896
|
+
instructions: "The product's tools: get_diff …",
|
|
897
|
+
tools: [{ name: "get_diff", description: "…", inputSchema: { type: "object" },
|
|
898
|
+
annotations: { readOnly: true } }],
|
|
899
|
+
async call(name, args, caller, signal) {
|
|
900
|
+
// caller: { sessionId, harness, turnId, permissionMode }, as they stand now
|
|
901
|
+
return { content: [{ type: "text", text: "…" }] }; // or { type: "image", data, mimeType }
|
|
902
|
+
},
|
|
903
|
+
}),
|
|
904
|
+
});
|
|
905
|
+
```
|
|
906
|
+
|
|
907
|
+
- Asked once per session, at its first turn; released with the session.
|
|
908
|
+
- Claude runs it in process. Codex, and an ACP agent that takes HTTP MCP
|
|
909
|
+
servers, reach it at the engine's loopback with a secret of the session's
|
|
910
|
+
own in a header (never the URL); a call carrying it is that session's. An
|
|
911
|
+
ACP agent that takes no HTTP server goes without, and its turn says so.
|
|
912
|
+
- `caller` is read at the call: the turn running and the mode the session
|
|
913
|
+
runs in then (a plan approved mid-turn included). A call while no turn of
|
|
914
|
+
the session runs is refused before you see it.
|
|
915
|
+
- A tool marked `readOnly` runs unasked; any other asks through
|
|
916
|
+
`permission.requested` unless the session runs with full access, and is
|
|
917
|
+
refused where nobody can be asked (`dont_ask`).
|
|
918
|
+
- A call may run 30 minutes (`timeoutMs` on the source changes it); `signal`
|
|
919
|
+
aborts when the agent gives the call up or the session is released. A
|
|
920
|
+
throw is a failed call whose message the model reads.
|
|
921
|
+
- A turn's own MCP server may not take the source's name. Draw your cards
|
|
922
|
+
from the tool part's `mcp: { server, tool }`, not `toolName`.
|
|
923
|
+
|
|
868
924
|
### Resume a suspended host
|
|
869
925
|
|
|
870
926
|
After thawing a VM, call `runtime.invalidateMcpConnections()` before admitting
|
|
@@ -903,7 +959,8 @@ host resume replaced the subprocess — usually respawns immediately with contex
|
|
|
903
959
|
answers at once; `onSessionEnd(sessionId, "released")` for that process can
|
|
904
960
|
come after the cancel's answer (130 to 325 ms on the real CLI), and comes
|
|
905
961
|
before that turn's end. Set up the next turn's per-session resources after
|
|
906
|
-
the turn's end, not after the cancel's answer
|
|
962
|
+
the turn's end, not after the cancel's answer (LLP 0015.001, `onSessionEnd`
|
|
963
|
+
and a cancelled Claude start). On the wire, call `session/close`
|
|
907
964
|
when a logical session will not be resumed: it frees the replay buffer and
|
|
908
965
|
the harness-native state (until then, memory cost ≈ `bufferSize` events per
|
|
909
966
|
session).
|
package/docs/deploy.md
CHANGED
|
@@ -243,11 +243,12 @@ AGENT_SERVER_CREDENTIALS_TOKEN=<this sandbox's token> \
|
|
|
243
243
|
Claude's credential stays in the engine (its proxy on 127.0.0.1), not in the
|
|
244
244
|
CLI's environment its tools can read; Codex keeps ChatGPT tokens in memory.
|
|
245
245
|
|
|
246
|
-
Every process the engine starts itself (each CLI, the
|
|
247
|
-
`
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
Every process the engine starts itself (each CLI, the `ps`, `sysctl` and
|
|
247
|
+
`tar` it runs) gets the engine's `process.env` as it is at that start, with
|
|
248
|
+
the turn's `env` over it for a CLI, under Bun as under Node. The lifeline
|
|
249
|
+
shell, which lives as long as the engine, gets `PATH` alone. A secret your
|
|
250
|
+
product deletes from `process.env` before it starts the engine reaches none
|
|
251
|
+
of them; the bin takes its own tokens out the same way (LLP
|
|
251
252
|
0007, The environment a process is given).
|
|
252
253
|
|
|
253
254
|
## App bundles and images for another machine
|
package/docs/harnesses.md
CHANGED
|
@@ -146,13 +146,27 @@ ACP server binding, a client's stdio and HTTP servers take the first path;
|
|
|
146
146
|
an SSE server or one named `codex_apps` is refused at `session/new` or
|
|
147
147
|
`session/resume`, naming it.
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
An MCP server's `timeoutMs` says how long one call to its tools may run, in
|
|
150
|
+
milliseconds, on any transport: past it the call fails and the model is told
|
|
151
|
+
it timed out. The engine gives it to Claude as that server's `timeout`
|
|
152
|
+
(Claude ignores a value under 1000) and to Codex as its `tool_timeout_sec`,
|
|
153
|
+
in whole seconds rounded up (1118 becomes 2 s). It is at most 2,147,483,647,
|
|
154
|
+
a timer's own limit. A changed value applies from a warm session's
|
|
155
|
+
next turn. Without it each agent's own limit applies. Claude cuts a call to an HTTP or SSE server at 60 s: the tool part
|
|
156
|
+
fails with "The operation timed out." and the turn goes on.
|
|
157
|
+
`MCP_TOOL_TIMEOUT` (milliseconds) in the turn's `env`, or in the engine's
|
|
158
|
+
own, still sets that limit on Claude. A call to a stdio server or to an
|
|
159
|
+
in-process SDK server is not cut at 60 s (one ran 70 s, one 75 s); longer
|
|
160
|
+
was not measured, and Claude's own limits for those still apply. Codex cuts a call at 300 s ("timed
|
|
161
|
+
out awaiting tools/call after 300s"). Neither agent sends the server a
|
|
162
|
+
cancel when it cuts a call. An ACP agent is not given the limit, since ACP
|
|
163
|
+
has no field for it, and keeps its own. What was measured: LLP 0015.001, How long an
|
|
164
|
+
MCP tool call may run. The host's own tools
|
|
165
|
+
(`hostTools`) run 30 minutes unless their source says otherwise (LLP 0018,
|
|
166
|
+
Timeouts). Over ACP a host tool not marked read-only runs only when the
|
|
167
|
+
session has full access (`bypass_permissions`): an ACP agent need not ask
|
|
168
|
+
before it calls one, so the engine answers it that the tool needs full
|
|
169
|
+
access (LLP 0018, Permissions).
|
|
156
170
|
|
|
157
171
|
Below `inheritConfig: "all"` every Codex turn needs a home of its session's
|
|
158
172
|
own, so the bin refuses `--acp --harness codex-app-server` with
|
|
@@ -199,20 +213,37 @@ turn runs at `none`. Claude's built-in plugins and skills and the host's
|
|
|
199
213
|
managed policy load at every level, and `~/.claude.json` is read for the
|
|
200
214
|
account (its MCP servers follow the user and local sources). A Codex session at `project` or `none`
|
|
201
215
|
runs in the `CODEX_HOME` its turn names, of the session's own, with Codex's
|
|
202
|
-
apps (the ChatGPT account's connectors) off,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
216
|
+
apps (the ChatGPT account's connectors) off, Codex's plugin catalogue not
|
|
217
|
+
downloaded (plugins off from the moment its process starts,
|
|
218
|
+
`-c features.plugins=false`: a fresh home otherwise clones the catalogue,
|
|
219
|
+
about 85 MB and 5,500 files, before any thread opens) while a plugin a
|
|
220
|
+
product installs in a home it owns still loads, and at `none` without the
|
|
221
|
+
repository's `AGENTS.md`. A session whose
|
|
206
222
|
home was removed or made again under its warm process starts a new one on its
|
|
207
223
|
next turn, which resumes the thread there or fails `resume_failed` as a cold
|
|
208
224
|
start would; the repository's skills and `~/.agents/skills` load
|
|
209
225
|
at every level. With `codexAppServer.userLogin` such a session runs on the
|
|
210
226
|
user's own Codex login ([below](#the-users-own-codex-login-in-a-sessions-home)).
|
|
211
227
|
|
|
212
|
-
`thinkingLevel`
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
228
|
+
`thinkingLevel` names one of the model's `thinking.levels`: the harness's own
|
|
229
|
+
names, in the order it lists them (both CLIs list lowest first). `off`, `low`,
|
|
230
|
+
`medium`, `high`, `xhigh`, `max` and `ultra` are the levels agent-server knows
|
|
231
|
+
and orders (`THINKING_LEVELS`); a model may list others, and they are kept as
|
|
232
|
+
named. agent-server fits a level to the model's levels when it knows them. A
|
|
233
|
+
level the model lists is sent as it is. A level the model does not list is
|
|
234
|
+
fitted to the nearest level the engine can order: a level above the model's
|
|
235
|
+
top becomes that top (`ultra` on a model whose top is `max` runs `max`), and
|
|
236
|
+
on Codex `off` becomes the model's lowest (current models reject `minimal`).
|
|
237
|
+
When there is none (a level agent-server does not know, or a model that lists
|
|
238
|
+
none it knows), it is not applied: the harness is sent no level, the model
|
|
239
|
+
runs as on a turn that names none, and `turn.ended.execution.notApplied`
|
|
240
|
+
names `thinkingLevel`. When the model's levels are unknown (no list read, and
|
|
241
|
+
not in the catalog), any level is sent as asked (on Claude, `ultra` as
|
|
242
|
+
`max`). Measured on Claude Code
|
|
243
|
+
2.1.327 on 2026-11-19, Claude Code ignores an effort it does not know and
|
|
244
|
+
runs the model's default (it warns `Unknown --effort value` on stderr); on
|
|
245
|
+
Codex 0.169.1, the same day, Codex passes it to the provider as the request's
|
|
246
|
+
`reasoning.effort`, and the provider decides. The levels come
|
|
216
247
|
from the list `models()` read for the turn's login and folder; for a concrete
|
|
217
248
|
model id, any login's list or the catalog also serves, even one that names the
|
|
218
249
|
model only as what an alias runs (an API key's Claude list names Opus 5.5 only
|
|
@@ -224,15 +255,20 @@ cancelled before the model answered:
|
|
|
224
255
|
- **claude-code** fits the level before starting Claude, because Claude Code
|
|
225
256
|
lowers a level its model lacks without saying so (`xhigh` on Sonnet 4.6 runs
|
|
226
257
|
`high`). With no known levels the level passes through and no applied level
|
|
227
|
-
is reported. A model known to have no levels (`thinking.levels: []`, Haiku
|
|
228
|
-
is started without one, as Claude Code runs it by default (Haiku
|
|
229
|
-
thinks
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
258
|
+
is reported. A model known to have no levels (`thinking.levels: []`, Haiku
|
|
259
|
+
4.5) is started without one, as Claude Code runs it by default (Haiku 4.5
|
|
260
|
+
then still thinks: 53 reasoning tokens on a turn that asked for `high`),
|
|
261
|
+
and no applied level is reported. `off` is sent as is, on Haiku 4.5 too,
|
|
262
|
+
where it stops that default thinking. Some models do not let thinking be
|
|
263
|
+
disabled: Haiku 5.5 at `off` still spends thinking tokens (36, with one
|
|
264
|
+
empty reasoning part; both measured on Claude Code 2.1.327, 2026-11-19).
|
|
265
|
+
An operator `sdkOptions` that sets `effort` or `thinking` wins, and then no
|
|
266
|
+
level is reported.
|
|
233
267
|
- **codex-app-server** reads what the thread's model accepts from its own
|
|
234
268
|
`model/list`. A model it lists with no efforts at all, or the engine knows
|
|
235
|
-
has no levels, is sent no effort, and no level is reported.
|
|
269
|
+
has no levels, is sent no effort, and no level is reported. A level with no
|
|
270
|
+
fit among the levels the model lists runs as a turn that names no level,
|
|
271
|
+
below, and the thread's effort is the level reported. With no level
|
|
236
272
|
requested it reports the thread's effort (for
|
|
237
273
|
example from `~/.codex/config.toml`), and the thread's model in
|
|
238
274
|
`reportedModels` when the stream names none. Codex runs the effort it is
|
|
@@ -292,8 +328,9 @@ operator's, and not named as not applied.
|
|
|
292
328
|
|
|
293
329
|
## What each permission mode does, per agent
|
|
294
330
|
|
|
295
|
-
Measured on
|
|
296
|
-
Haiku
|
|
331
|
+
Measured on macOS on Claude Code 2.1.327 (Claude SDK 0.3.327, model `haiku`,
|
|
332
|
+
which is Haiku 5.5 and runs its `plan` turns on Sonnet 5.5) on 2026-11-19, and
|
|
333
|
+
on Codex 0.160.0 on 2026-11-15, through the engine at `inheritConfig: "none"`. Each
|
|
297
334
|
call ran in a fresh session and folder, with every `permission.requested`
|
|
298
335
|
answered `allow_once`, and each call that asked ran again with the request
|
|
299
336
|
answered `reject_once`. Whether a call ran is read from the file on disk, the
|
|
@@ -309,8 +346,10 @@ bun run harness -- --harness=claude-code,codex-app-server --scenario=permission-
|
|
|
309
346
|
```
|
|
310
347
|
|
|
311
348
|
On Claude it costs one small paid turn per cell on this computer's own Claude
|
|
312
|
-
login (64 turns
|
|
313
|
-
|
|
349
|
+
login (64 turns before retries: one per cell, and one more for each of the 19
|
|
350
|
+
that ask). On
|
|
351
|
+
Codex it is free; its 5 web-search turns are paid and run only with
|
|
352
|
+
`PERMISSION_MODES_PAID=1`.
|
|
314
353
|
|
|
315
354
|
In each cell, Claude's result comes first, then Codex's. **asks**: a
|
|
316
355
|
`permission.requested` arrives, and the call runs when allowed and does not
|
|
@@ -333,7 +372,12 @@ nothing is asked and the call does not run.
|
|
|
333
372
|
Claude reads with `Read` and runs commands with `Bash`. Codex runs both reads
|
|
334
373
|
and commands as shell commands (`cat`, `echo pm > file`). \*Claude's `WebFetch`
|
|
335
374
|
of a page on loopback switches to https and fails, so for it only whether it
|
|
336
|
-
asks is measured.
|
|
375
|
+
asks is measured. On a Claude login that has Claude's `web-fetch` agent, a
|
|
376
|
+
direct `WebFetch` is refused and names that agent, which makes the call: its
|
|
377
|
+
request reaches the broker as any other, from the sub-agent
|
|
378
|
+
(`parentToolCallId` is the `Agent` call), and the cell reads that request
|
|
379
|
+
(Claude Code 2.1.288 and 2.1.327 alike, 2026-11-19; behind a custom base URL
|
|
380
|
+
neither has the agent, and a direct call runs).
|
|
337
381
|
|
|
338
382
|
What differs, and so what a product should not assume of one agent from the
|
|
339
383
|
other:
|
|
@@ -350,7 +394,10 @@ other:
|
|
|
350
394
|
in every mode. Claude asks for it as for any MCP tool, and refuses it in
|
|
351
395
|
`dont_ask`.
|
|
352
396
|
- **`plan` does not stop writes.** On Claude every write the model makes is
|
|
353
|
-
asked and runs when allowed
|
|
397
|
+
asked and runs when allowed: the engine keeps plan mode off auto mode's
|
|
398
|
+
semantics (`useAutoModeDuringPlan: false`), under which a model that has
|
|
399
|
+
auto mode, Sonnet 5.5 among them, runs a read outside the folder, a shell
|
|
400
|
+
write and an MCP tool unasked. On Codex `apply_patch` is refused, but a shell
|
|
354
401
|
write the model retries with escalation is asked and runs when allowed.
|
|
355
402
|
- **`dont_ask` refuses different calls.** Claude runs only a read in the
|
|
356
403
|
folder and a command that writes nothing. Codex refuses writes and MCP tools
|
|
@@ -370,7 +417,7 @@ a turn with the same `cwd`, `env` and `apiKey` would use:
|
|
|
370
417
|
|
|
371
418
|
| Harness | Source | Notes |
|
|
372
419
|
| --- | --- | --- |
|
|
373
|
-
| `claude-code` | `query().supportedModels()` on an idle CLI (no prompt, MCP servers or hooks), at the operator's `inheritConfig` | The folder's `availableModels` setting narrows the list. `default` is a model id: the account's default. Haiku lists no levels. Operator `sdkOptions` are not applied. |
|
|
420
|
+
| `claude-code` | `query().supportedModels()` on an idle CLI (no prompt, MCP servers or hooks), at the operator's `inheritConfig` | The folder's `availableModels` setting narrows the list. `default` is a model id: the account's default. Haiku 4.5 lists no levels; `haiku` runs Haiku 5.5, which does. Operator `sdkOptions` are not applied. |
|
|
374
421
|
| `codex-app-server` | `model/list`, on the session's own process when `sessionId` has one | Lists what the login can run (a ChatGPT login gets no `gpt-5.5`). The default is the model `~/.codex/config.toml` selects, else Codex's own. With host-managed auth, pass the `sessionId` whose account to list. |
|
|
375
422
|
| `acp` | none | The catalog (empty). ACP agents describe models as session config options. |
|
|
376
423
|
| `scripted` | the harness | One model, `scripted`, with no thinking levels. |
|
|
@@ -501,7 +548,8 @@ account: the engine refuses another account and a renewal that outlives its
|
|
|
501
548
|
turn. The host owns sign-in, durable refresh-token storage, serialized
|
|
502
549
|
renewal and revocation (`@zvada/agent-server/accounts` has them). No
|
|
503
550
|
credentials are added to `RunConfig` or the engine's public wire.
|
|
504
|
-
The protocol
|
|
551
|
+
The protocol is checked at every pin bump against the pinned Codex CLI (the
|
|
552
|
+
version `core/provision/pins.ts` names) and the
|
|
505
553
|
[official app-server authentication documentation](https://learn.chatgpt.com/docs/app-server#3c-log-in-with-externally-managed-chatgpt-tokens-chatgptauthtokens).
|
|
506
554
|
|
|
507
555
|
## What a tool call says, per harness
|
|
@@ -660,7 +708,7 @@ refused when the script is read, never skipped.
|
|
|
660
708
|
| `{ echo: "input" }` | Says the turn's input as a model reads it (`inputToText`). |
|
|
661
709
|
| `{ echo: "config" }` | Says the turn's config as JSON: `model`, `thinkingLevel`, `cwd`, `additionalDirectories`, `systemPromptAppend`, `permissionMode`, the names of its MCP servers and the keys of its `env`, never their values. |
|
|
662
710
|
| `{ wait: ms }` | A pause; a cancel ends it. |
|
|
663
|
-
| `{ hang: true, stopTakes?: ms }` | Runs until the turn is cancelled; `stopTakes` ms more before it stops, as a harness slow to stop, also when the cancel came before the hang began. The cancel is confirmed at once. |
|
|
711
|
+
| `{ hang: true, stopTakes?: ms }` | Runs until the turn is cancelled; `stopTakes` ms more before it stops, as a harness slow to stop, also when the cancel came before the hang began, the turn's start included; not in a script an async generator makes, whose next step a cancel does not wait for. The cancel is confirmed at once. |
|
|
664
712
|
| `{ fail: string, category? }` | Ends the turn in an error: of `category` when given, else what the engine's classifier makes of the text. |
|
|
665
713
|
| `{ end: true, stopReason?, usage?, cost? }` | Ends the turn: `end_turn` and zero usage by default. |
|
|
666
714
|
|