The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 07:00 UTC
feat(provider-kiro): add Kiro as an ACP provider (#14693)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Henry Stern <6068107+hstern@users.noreply.github.com> Co-authored-by: Ashish Patil <7754022+ash663@users.noreply.github.com> Co-authored-by: TinBane <363069+TinBane@users.noreply.github.com>
Julius Marminge committed
Nov 2, 2026 at 14:39 UTC
55e25385619c7680dad0b0f34f5185187806c57a
84 files changed
+7098
-115
AGENTS.md
+2
-2
@@ -1,6 +1,6 @@
1
# T3 Code
2
3
-T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs and agents (Codex, Claude Code, Cursor, Grok, OpenCode, Antigravity) and serves web, desktop, and mobile clients.
3
+T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs and agents (Codex, Claude Code, Cursor, Grok, OpenCode, Antigravity, Kiro) and serves web, desktop, and mobile clients.
4
5
You can think of T3 Code as an open source "bring-your-own-subscription" alternative to apps like Claude Desktop, Codex App, Cursor Glass and Conductor.
6
@@ -68,7 +68,7 @@ The most common defect in this repo is a change that works on the path you teste
68
69
- **Entry points.** A behavior reachable from the chat view is usually also reachable from Settings, the command palette, and a keybinding. Fixing one is not fixing the feature.
70
- **Clients.** Web, desktop (wraps web, adds Electron shell/IPC), and mobile (React Native, separate navigation). Shared logic lives in `packages/client-runtime`
71
-- **Providers.** Codex, Claude, Cursor, Grok, OpenCode, and Antigravity each have an adapter. Provider-shaped features need a decision per adapter, even if the decision is "not supported here".
71
+- **Providers.** Codex, Claude, Cursor, Grok, OpenCode, Antigravity, and Kiro each have an adapter. Provider-shaped features need a decision per adapter, even if the decision is "not supported here".
72
- **Agents.** A capability a user can trigger is usually one an agent should reach through MCP tools, and scheduled tasks run the same paths. That only works when it is a service method, not handler code.
73
- **Contracts.** Anything crossing the wire is typed in `packages/contracts`. Change the schema and the server, web, mobile, and desktop all follow.
74
- **Reverse states.** If you added a way in, add the way out and the way to see it. Snooze needs unsnooze. Close needs reopen. A one-way door is a bug.
apps/server/package.json
+2
@@ -28,6 +28,7 @@
28
"record:pi-replay": "node scripts/record-pi-rpc-replay-fixture.ts",
29
"record:grok-replay": "node scripts/record-grok-acp-replay-fixture.ts",
30
"record:fx-replay": "node scripts/record-fx-acp-replay-fixture.ts",
31
+ "record:kiro-replay": "node scripts/record-kiro-acp-replay-fixture.ts",
32
"record:muse-replay": "node scripts/record-muse-msp-replay-fixture.ts",
33
"generate": "graphqlgen",
34
"generate:expo-schema": "node scripts/fetch-expo-schema.ts"
@@ -46,6 +47,7 @@
47
"@t3tools/provider-cursor": "workspace:*",
48
"@t3tools/provider-fx": "workspace:*",
49
"@t3tools/provider-grok": "workspace:*",
50
+ "@t3tools/provider-kiro": "workspace:*",
51
"@t3tools/provider-muse": "workspace:*",
52
"@t3tools/provider-opencode": "workspace:*",
53
"@t3tools/provider-pi": "workspace:*",
apps/server/scripts/acp-replay-agent.ts
+25
-2
@@ -50,7 +50,27 @@ const transcript = JSON.parse(
50
? Buffer.from(encodedTranscript ?? "", "base64").toString("utf8")
51
: NodeFS.readFileSync(transcriptPath, "utf8"),
52
) as ReplayTranscript;
53
-let cursor = 0;
53
+/**
54
+ * A recording can span processes: a `runtime_exit` mid-transcript marks where
55
+ * one agent process ended, and a respawned replay agent continues from the
56
+ * cursor the previous one left in the status file.
57
+ */
58
+function resumedCursor(): number {
59
+ try {
60
+ const previous = JSON.parse(NodeFS.readFileSync(statusPath ?? "", "utf8")) as {
61
+ readonly cursor?: unknown;
62
+ readonly failure?: unknown;
63
+ };
64
+ const resumeAt = typeof previous.cursor === "number" ? previous.cursor : 0;
65
+ return previous.failure === undefined &&
66
+ transcript.entries[resumeAt - 1]?.type === "runtime_exit"
67
+ ? resumeAt
68
+ : 0;
69
+ } catch {
70
+ return 0;
71
+ }
72
+}
73
+let cursor = resumedCursor();
74
let stopped = false;
75
let nextAgentRequestId = 1;
76
const pendingClientRequestIds = new Map<string, string | number>();
@@ -232,6 +252,8 @@ function flushInbound(): void {
252
break;
253
}
254
cursor += 1;
255
+ // Frames after a mid-transcript exit belong to the next process.
256
+ if (cursor < transcript.entries.length) break;
257
continue;
258
}
259
const frame = entry.frame as LogicalFrame;
@@ -294,7 +316,8 @@ input.on("line", (line) => {
316
});
317
318
input.on("close", () => {
297
- if (!stopped && cursor !== transcript.entries.length) {
319
+ const processEnded = transcript.entries[cursor - 1]?.type === "runtime_exit";
320
+ if (!stopped && cursor !== transcript.entries.length && !processEnded) {
321
stopWithFailure("ACP replay input closed before transcript completion");
322
}
323
});
apps/server/scripts/record-kiro-acp-replay-fixture.ts
new
+608
@@ -0,0 +1,608 @@
1
+/**
2
+ * Records a Kiro ACP replay transcript through the real orchestrator and
3
+ * KiroAdapterV2, teeing only the protocol logger. Run from apps/server, signed in
4
+ * with `kiro-cli login`, with `kiro-cli` on PATH (or T3_KIRO_BIN):
5
+ * node scripts/record-kiro-acp-replay-fixture.ts --scenario simple
6
+ */
7
+import * as NodeServices from "@effect/platform-node/NodeServices";
8
+import type { ProviderReplayEntry } from "@t3tools/contracts";
9
+import { KiroSettings } from "@t3tools/provider-kiro/settings";
10
+import * as HostProcess from "@t3tools/shared/HostProcess";
11
+import { resolveSelfInvocation } from "@t3tools/shared/nodeRuntime";
12
+import * as Clock from "effect/Clock";
13
+import * as Console from "effect/Console";
14
+import * as Effect from "effect/Effect";
15
+import * as FileSystem from "effect/FileSystem";
16
+import * as Layer from "effect/Layer";
17
+import * as Path from "effect/Path";
18
+import * as Schema from "effect/Schema";
19
+import type * as EffectAcpProtocol from "effect-acp/protocol";
20
+
21
+import * as TestProviderHost from "@t3tools/provider-testing/TestProviderHost";
22
+import { KIRO_PROVIDER, makeKiroAdapterV2 } from "@t3tools/provider-kiro/testing";
23
+import { ACP_PROTOCOL } from "@t3tools/provider-acp/server/adapter";
24
+import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
25
+import type * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter";
26
+import * as ProviderAdapterRegistry from "../src/orchestration-v2/ProviderAdapterRegistry.ts";
27
+import { provideDeterministicTestRuntime } from "../src/orchestration-v2/testkit/DeterministicRuntime.ts";
28
+import { ORCHESTRATOR_REPLAY_FIXTURES } from "../src/orchestration-v2/testkit/fixtures/index.ts";
29
+import { materializeFixtureInput } from "../src/orchestration-v2/testkit/fixtures/shared.ts";
30
+import { runOrchestratorV2Scenario } from "../src/orchestration-v2/testkit/OrchestratorScenario.ts";
31
+import * as ProviderReplayHarness from "../src/orchestration-v2/testkit/ProviderReplayHarness.ts";
32
+import { checkpointWorkspace } from "@t3tools/provider-testing/replayWorkspace";
33
+import { makeKiroAcpRuntime } from "@t3tools/provider-kiro/testing";
34
+import { buildRuntimeInstructions } from "@t3tools/provider-core/server/runtimeInstructions";
35
+
36
+const wallClock = Clock.Clock.defaultValue();
37
+const encodeJson = Schema.encodeSync(Schema.fromJsonString(Schema.Unknown));
38
+const decodeJson = Schema.decodeUnknownSync(Schema.fromJsonString(Schema.Unknown));
39
+
40
+// Kiro broadcasts T3 never reads. They carry the account's governance flags,
41
+// the full text of Kiro's bundled steering documents, its powers, the user's
42
+// hooks, the session roster and memory sync state; the client ignores every
43
+// one of them (no handler is registered).
44
+const DROPPED_INBOUND_METHODS = new Set([
45
+ "_kiro/governance/state",
46
+ "_kiro/powers/items_changed",
47
+ "_kiro/steering/documents_changed",
48
+ "_kiro/progressive_context/items_changed",
49
+ "_kiro/sessions/changed",
50
+ "_kiro/tools/didChange",
51
+ "_kiro/hooks/didChange",
52
+ "_kiro/mcp/status",
53
+ "_kiro/memory/syncStatus",
54
+]);
55
+const HOME_PLACEHOLDER = "/home/kiro-replay";
56
+
57
+interface JsonRpcMessage {
58
+ readonly id?: string | number | null;
59
+ readonly method?: string;
60
+ readonly params?: unknown;
61
+ readonly result?: unknown;
62
+ readonly error?: unknown;
63
+}
64
+
65
+type WireMessage =
66
+ | { readonly direction: "incoming" | "outgoing"; readonly message: JsonRpcMessage }
67
+ /** One ACP process ended and the adapter spawned the next (an idle release). */
68
+ | { readonly direction: "respawn" };
69
+
70
+function readArgValues(name: string): ReadonlyArray<string> {
71
+ const args = process.argv.slice(2);
72
+ return args.flatMap((arg, index) => (arg === name && args[index + 1] ? [args[index + 1]!] : []));
73
+}
74
+
75
+function isRecord(value: unknown): value is Record<string, unknown> {
76
+ return typeof value === "object" && value !== null && !Array.isArray(value);
77
+}
78
+
79
+function mapStrings(value: unknown, map: (text: string) => string): unknown {
80
+ if (typeof value === "string") return map(value);
81
+ if (Array.isArray(value)) return value.map((entry) => mapStrings(entry, map));
82
+ if (!isRecord(value)) return value;
83
+ return Object.fromEntries(
84
+ Object.entries(value).map(([key, entry]) => [key, mapStrings(entry, map)]),
85
+ );
86
+}
87
+
88
+/**
89
+ * Tees raw ACP lines in wire order. A later process (the idle release the
90
+ * resume fixture forces) is marked as a respawn, which replay turns into a
91
+ * fresh replay agent that continues the transcript.
92
+ */
93
+function makeWireTee() {
94
+ const wire: Array<WireMessage> = [];
95
+ let runtimeCount = 0;
96
+ const attachRuntime = () => {
97
+ runtimeCount += 1;
98
+ if (runtimeCount > 1) wire.push({ direction: "respawn" });
99
+ let incomingBuffer = "";
100
+ const push = (direction: WireMessage["direction"], line: string) => {
101
+ if (line.trim().length === 0) return;
102
+ wire.push({ direction, message: decodeJson(line) as JsonRpcMessage });
103
+ };
104
+ return {
105
+ logIncoming: true,
106
+ logOutgoing: true,
107
+ logger: (event: EffectAcpProtocol.AcpProtocolLogEvent) =>
108
+ Effect.sync(() => {
109
+ if (event.stage !== "raw" || typeof event.payload !== "string") return;
110
+ if (event.direction === "outgoing") {
111
+ for (const line of event.payload.split("\n")) push("outgoing", line);
112
+ return;
113
+ }
114
+ incomingBuffer += event.payload;
115
+ const lines = incomingBuffer.split("\n");
116
+ incomingBuffer = lines.pop() ?? "";
117
+ for (const line of lines) push("incoming", line);
118
+ }),
119
+ };
120
+ };
121
+ // Kiro settles every turn through the session/prompt response, so it is
122
+ // done once each prompt T3 sent has been answered.
123
+ const kiroHasPendingWork = () => {
124
+ const pending = new Set<string>();
125
+ for (const wireMessage of wire) {
126
+ if (wireMessage.direction === "respawn") {
127
+ pending.clear();
128
+ continue;
129
+ }
130
+ const { direction, message } = wireMessage;
131
+ if (direction === "outgoing" && message.method === "session/prompt") {
132
+ pending.add(String(message.id));
133
+ } else if (direction === "incoming" && message.method === undefined) {
134
+ pending.delete(String(message.id));
135
+ }
136
+ }
137
+ return pending.size > 0;
138
+ };
139
+ return { wire, attachRuntime, kiroHasPendingWork };
140
+}
141
+
142
+function frameLabel(kind: string, method: string, params: unknown): string {
143
+ const update = isRecord(params) && isRecord(params.update) ? params.update : undefined;
144
+ const updateType = typeof update?.sessionUpdate === "string" ? `:${update.sessionUpdate}` : "";
145
+ return `${kind}:${method}${updateType}`;
146
+}
147
+
148
+/** Pairs JSON-RPC ids with their methods and emits the logical frames acp-replay-agent reads. */
149
+function wireToEntries(wire: ReadonlyArray<WireMessage>): {
150
+ readonly entries: Array<ProviderReplayEntry>;
151
+ readonly droppedFrames: number;
152
+} {
153
+ const entries: Array<ProviderReplayEntry> = [];
154
+ const t3Requests = new Map<string, string>();
155
+ const agentRequests = new Map<string, string>();
156
+ let droppedFrames = 0;
157
+ for (const wireMessage of wire) {
158
+ if (wireMessage.direction === "respawn") {
159
+ // JSON-RPC ids restart with the process.
160
+ t3Requests.clear();
161
+ agentRequests.clear();
162
+ entries.push({ type: "runtime_exit", status: "success" });
163
+ continue;
164
+ }
165
+ const { direction, message } = wireMessage;
166
+ const type = direction === "outgoing" ? "expect_outbound" : "emit_inbound";
167
+ if (typeof message.method === "string") {
168
+ if (direction === "incoming" && DROPPED_INBOUND_METHODS.has(message.method)) {
169
+ droppedFrames += 1;
170
+ continue;
171
+ }
172
+ const isRequest = message.id !== undefined && message.id !== null;
173
+ if (isRequest) {
174
+ (direction === "outgoing" ? t3Requests : agentRequests).set(
175
+ String(message.id),
176
+ message.method,
177
+ );
178
+ }
179
+ const kind = isRequest ? "request" : "notification";
180
+ entries.push({
181
+ type,
182
+ label: frameLabel(kind, message.method, message.params),
183
+ frame: {
184
+ kind,
185
+ method: message.method,
186
+ ...(message.params === undefined ? {} : { params: message.params }),
187
+ },
188
+ });
189
+ continue;
190
+ }
191
+ const pending = direction === "outgoing" ? agentRequests : t3Requests;
192
+ const method = pending.get(String(message.id));
193
+ if (method === undefined) {
194
+ // A response to a request T3 never saw; T3's protocol drops it, so replay
195
+ // never sees it either.
196
+ droppedFrames += 1;
197
+ continue;
198
+ }
199
+ pending.delete(String(message.id));
200
+ entries.push({
201
+ type,
202
+ label: `response:${method}`,
203
+ frame: {
204
+ kind: "response",
205
+ method,
206
+ ...(message.result === undefined ? {} : { result: message.result }),
207
+ ...(message.error === undefined ? {} : { error: message.error }),
208
+ },
209
+ });
210
+ }
211
+ return { entries, droppedFrames };
212
+}
213
+
214
+const T3_INSTRUCTIONS_BODY = /<t3_code_instructions>\n[\s\S]*?\n<\/t3_code_instructions>/u;
215
+// A turn on another model sends its own runtime info, which the filter below
216
+// keeps; its model stays pinned and the linking guidance does not.
217
+const PULL_REQUEST_LINKING_BODY = /<pull_request_linking>\n[\s\S]*?\n<\/pull_request_linking>/u;
218
+
219
+/** Replaces T3-owned request content so prompt wording changes do not invalidate recordings. */
220
+function normalizeOutboundFrame(frame: Record<string, unknown>, runtimeInstructions: string) {
221
+ const params = isRecord(frame.params) ? frame.params : undefined;
222
+ if (params === undefined) return frame;
223
+ switch (frame.method) {
224
+ case "initialize":
225
+ // Pin what T3 advertises (fs and terminal capabilities decide whether
226
+ // Kiro routes file and shell work through T3); the rest is <any>.
227
+ return {
228
+ ...frame,
229
+ params: Object.fromEntries(
230
+ Object.keys(params).map((key) => [
231
+ key,
232
+ key === "protocolVersion" || key === "clientCapabilities" || key === "_meta"
233
+ ? params[key]
234
+ : "<any>",
235
+ ]),
236
+ ),
237
+ };
238
+ case "session/new":
239
+ case "session/load":
240
+ case "session/resume":
241
+ return { ...frame, params: { ...params, mcpServers: "<any>" } };
242
+ case "session/prompt": {
243
+ if (!Array.isArray(params.prompt)) return frame;
244
+ const prompt = params.prompt.filter(
245
+ (part) => !(isRecord(part) && part.type === "text" && part.text === runtimeInstructions),
246
+ );
247
+ return {
248
+ ...frame,
249
+ params: {
250
+ ...params,
251
+ prompt: prompt.map((part) =>
252
+ isRecord(part) && typeof part.text === "string"
253
+ ? {
254
+ ...part,
255
+ text: part.text
256
+ .replace(
257
+ T3_INSTRUCTIONS_BODY,
258
+ "<t3_code_instructions>\n<any>\n</t3_code_instructions>",
259
+ )
260
+ .replace(
261
+ PULL_REQUEST_LINKING_BODY,
262
+ "<pull_request_linking>\n<any>\n</pull_request_linking>",
263
+ ),
264
+ }
265
+ : part,
266
+ ),
267
+ },
268
+ };
269
+ }
270
+ default:
271
+ return frame;
272
+ }
273
+}
274
+
275
+/**
276
+ * Drops the account-specific parts of Kiro's frames: user-scoped commands and
277
+ * agents, and the log directory `initialize` names.
278
+ */
279
+function normalizeInboundFrame(frame: Record<string, unknown>): Record<string, unknown> {
280
+ const params = isRecord(frame.params) ? frame.params : undefined;
281
+ const update = isRecord(params?.update) ? params.update : undefined;
282
+ if (
283
+ update?.sessionUpdate === "available_commands_update" &&
284
+ Array.isArray(update.availableCommands)
285
+ ) {
286
+ return {
287
+ ...frame,
288
+ params: {
289
+ ...params,
290
+ update: {
291
+ ...update,
292
+ availableCommands: update.availableCommands.filter((command) => {
293
+ const kiro =
294
+ isRecord(command) && isRecord(command._meta) && isRecord(command._meta.kiro)
295
+ ? command._meta.kiro
296
+ : undefined;
297
+ const resource = isRecord(kiro?.resource) ? kiro.resource : undefined;
298
+ const source = isRecord(resource?.source) ? resource.source : undefined;
299
+ return source === undefined || source.origin === "bundled";
300
+ }),
301
+ },
302
+ },
303
+ };
304
+ }
305
+ const result = isRecord(frame.result) ? frame.result : undefined;
306
+ const capabilities = isRecord(result?.agentCapabilities) ? result.agentCapabilities : undefined;
307
+ const meta = isRecord(capabilities?._meta) ? capabilities._meta : undefined;
308
+ const kiro = isRecord(meta?.kiro) ? meta.kiro : undefined;
309
+ if (frame.method === "initialize" && kiro !== undefined && "logging" in kiro) {
310
+ const { logging: _logging, ...kiroWithoutLogging } = kiro;
311
+ return {
312
+ ...frame,
313
+ result: {
314
+ ...result,
315
+ agentCapabilities: { ...capabilities, _meta: { ...meta, kiro: kiroWithoutLogging } },
316
+ },
317
+ };
318
+ }
319
+ return frame;
320
+}
321
+
322
+const OTHER_UUID = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/giu;
323
+
324
+/** Collects Kiro session ids in first-seen order. */
325
+function collectSessionIds(entries: ReadonlyArray<ProviderReplayEntry>): ReadonlyArray<string> {
326
+ const ids: Array<string> = [];
327
+ const add = (value: unknown) => {
328
+ if (typeof value === "string" && value.length > 0 && !ids.includes(value)) ids.push(value);
329
+ };
330
+ for (const entry of entries) {
331
+ if (entry.type === "runtime_exit" || !isRecord(entry.frame)) continue;
332
+ const frame = entry.frame;
333
+ if (frame.kind === "response" && frame.method === "session/new" && isRecord(frame.result)) {
334
+ add(frame.result.sessionId);
335
+ }
336
+ if (entry.type === "emit_inbound" && isRecord(frame.params)) add(frame.params.sessionId);
337
+ }
338
+ return ids;
339
+}
340
+
341
+function normalizeEntries(input: {
342
+ readonly entries: ReadonlyArray<ProviderReplayEntry>;
343
+ readonly workspace: string;
344
+ readonly home: string;
345
+ readonly user: string;
346
+ readonly runtimeInstructions: string;
347
+}): Array<ProviderReplayEntry> {
348
+ const sessionIds = collectSessionIds(input.entries);
349
+ const replacements: Array<readonly [string, string]> = [
350
+ ...sessionIds.map(
351
+ (id, index) =>
352
+ [id, `sess_00000000-0000-4000-8000-${String(index + 1).padStart(12, "0")}`] as const,
353
+ ),
354
+ // Kiro's snapshot URIs carry paths URL-encoded once or twice
355
+ // (`?originalPath%3D%252Fhome%252F…`); replace those forms first.
356
+ // A HOME of "/" (root) or "" would replace every slash, method names included.
357
+ ...[input.workspace, input.home].flatMap((path) => {
358
+ if (path.length <= 1) return [];
359
+ const once = encodeURIComponent(path);
360
+ const twice = encodeURIComponent(once);
361
+ const placeholder = path === input.workspace ? "<workspace>" : HOME_PLACEHOLDER;
362
+ return [
363
+ [twice, encodeURIComponent(encodeURIComponent(placeholder))] as const,
364
+ [once, encodeURIComponent(placeholder)] as const,
365
+ ];
366
+ }),
367
+ ...(input.workspace.length <= 1 ? [] : [[input.workspace, "<workspace>"] as const]),
368
+ ...(input.home.length <= 1 ? [] : [[input.home, HOME_PLACEHOLDER] as const]),
369
+ ];
370
+ // Kiro's message and backend request ids, numbered in first-seen order.
371
+ const otherIds: Array<string> = [];
372
+ const numberOtherIds = (text: string) =>
373
+ text.replace(OTHER_UUID, (id) => {
374
+ if (id.startsWith("00000000-0000-4000-8000-")) return id;
375
+ if (!otherIds.includes(id)) otherIds.push(id);
376
+ return `00000000-0000-4000-9000-${String(otherIds.indexOf(id) + 1).padStart(12, "0")}`;
377
+ });
378
+ // Shell output (e.g. `ls -l`) names the recording user.
379
+ const user = /^[a-z_][a-z0-9_-]*$/iu.test(input.user) ? input.user : "";
380
+ const userPattern = user.length === 0 ? undefined : new RegExp(`\\b${user}\\b`, "gu");
381
+ const replaceAll = (text: string) => {
382
+ const replaced = replacements.reduce(
383
+ (current, [from, to]) => (from.length === 0 ? current : current.replaceAll(from, to)),
384
+ text,
385
+ );
386
+ const named =
387
+ userPattern === undefined ? replaced : replaced.replace(userPattern, "kiro-replay");
388
+ return numberOtherIds(named);
389
+ };
390
+ return input.entries.map((entry) => {
391
+ if (entry.type === "runtime_exit" || !isRecord(entry.frame)) return entry;
392
+ const frame =
393
+ entry.type === "expect_outbound"
394
+ ? normalizeOutboundFrame(entry.frame, input.runtimeInstructions)
395
+ : normalizeInboundFrame(entry.frame);
396
+ return {
397
+ ...entry,
398
+ ...(entry.label === undefined ? {} : { label: replaceAll(entry.label) }),
399
+ frame: mapStrings(frame, replaceAll),
400
+ };
401
+ });
402
+}
403
+
404
+const KIRO_RECORDING_SETTINGS = Schema.decodeSync(KiroSettings)({
405
+ enabled: true,
406
+ binaryPath: process.env.T3_KIRO_BIN ?? "kiro-cli",
407
+});
408
+
409
+const recordScenario = Effect.fn("recordKiroScenario")(function* (fixtureName: string) {
410
+ const fixture = ORCHESTRATOR_REPLAY_FIXTURES.find((candidate) => candidate.name === fixtureName);
411
+ const variant = fixture?.providers.find((provider) => provider.driver === KIRO_PROVIDER);
412
+ if (fixture === undefined || variant === undefined) {
413
+ return yield* Effect.die(new Error(`No Kiro replay fixture named '${fixtureName}'.`));
414
+ }
415
+ const fs = yield* FileSystem.FileSystem;
416
+ const path = yield* Path.Path;
417
+ const fixtureInput = fixture.buildInput();
418
+ // Same README and seeded files as the replay workspace, so client-mediated
419
+ // fs reads answer identically at replay time.
420
+ const workspace = yield* checkpointWorkspace(fixtureName, fixtureInput.workspaceFiles);
421
+ const realWorkspace = yield* fs.realPath(workspace);
422
+ const materialized = yield* materializeFixtureInput({
423
+ scenario: fixtureName,
424
+ fixtureInput,
425
+ driver: KIRO_PROVIDER,
426
+ modelSelection: variant.modelSelection,
427
+ }).pipe(Effect.provide(IdAllocator.layer), provideDeterministicTestRuntime);
428
+ const scenario = {
429
+ name: `${fixtureName}/kiro-record`,
430
+ commands: materialized.commands,
431
+ // Gated fixtures pace replay with gates on the test clock. Live, Kiro and
432
+ // wall time pace themselves, so a fixture that gates records its
433
+ // dispatches only and then waits for Kiro to idle.
434
+ steps: materialized.steps.some(
435
+ (step) =>
436
+ step.type === "release_replay_gate" || step.type === "release_replay_gate_after_waiting",
437
+ )
438
+ ? materialized.steps.filter((step) => step.type === "dispatch")
439
+ : materialized.steps.map((step) =>
440
+ step.type === "finish_held_run" ? { ...step, type: "await_run_status" as const } : step,
441
+ ),
442
+ projectionThreadIds: materialized.projectionThreadIds,
443
+ runtimePolicyOverride: { ...variant.runtimePolicyOverride, cwd: realWorkspace },
444
+ };
445
+
446
+ const tee = makeWireTee();
447
+ const layerRegistry = ProviderAdapterRegistry.layerFromAdaptersEffect(
448
+ Effect.gen(function* () {
449
+ const environment = yield* HostProcess.Environment;
450
+ const adapter = yield* makeKiroAdapterV2({
451
+ instanceId: variant.modelSelection.instanceId,
452
+ settings: KIRO_RECORDING_SETTINGS,
453
+ environment,
454
+ selfInvocation: yield* resolveSelfInvocation(),
455
+ // Production's runtime factory, with the protocol logger teeing raw lines.
456
+ makeRuntime: ({ runtimePolicy: _runtimePolicy, processEnvironment, ...input }) =>
457
+ makeKiroAcpRuntime({
458
+ ...input,
459
+ protocolLogging: tee.attachRuntime(),
460
+ settings: KIRO_RECORDING_SETTINGS,
461
+ environment: { ...environment, ...processEnvironment },
462
+ }),
463
+ });
464
+ // The scenario runs on the replay TestClock so its clock steps order
465
+ // dispatches as replay will. Kiro itself runs on wall time, so the
466
+ // adapter's session does too.
467
+ const onWallClock = <A, E, R>(effect: Effect.Effect<A, E, R>) =>
468
+ Effect.provideService(effect, Clock.Clock, wallClock);
469
+ return [
470
+ {
471
+ ...adapter,
472
+ openSession: (input) =>
473
+ adapter.openSession(input).pipe(
474
+ Effect.map((session): ProviderAdapter.ProviderAdapterV2SessionRuntime => ({
475
+ ...session,
476
+ startTurn: (turnInput) => onWallClock(session.startTurn(turnInput)),
477
+ steerTurn: (turnInput) => onWallClock(session.steerTurn(turnInput)),
478
+ interruptTurn: (turnInput) => onWallClock(session.interruptTurn(turnInput)),
479
+ respondToRuntimeRequest: (turnInput) =>
480
+ onWallClock(session.respondToRuntimeRequest(turnInput)),
481
+ })),
482
+ onWallClock,
483
+ ),
484
+ },
485
+ ];
486
+ }),
487
+ ).pipe(
488
+ Layer.provide(
489
+ Layer.mergeAll(
490
+ TestProviderHost.layer().pipe(Layer.provide(NodeServices.layer)),
491
+ NodeServices.layer,
492
+ IdAllocator.layer,
493
+ ),
494
+ ),
495
+ );
496
+
497
+ // Same deterministic runtime as replay (TestClock, seeded ids), so the
498
+ // scenario's clock steps order dispatches exactly as they will on replay.
499
+ // The session stays open until every prompt is answered and Kiro has been
500
+ // quiet for a few seconds, so the transcript holds everything replay emits.
501
+ let quietPolls = 0;
502
+ let seenFrames = -1;
503
+ const waitForKiroIdle = Effect.sleep("1 second").pipe(
504
+ Effect.andThen(
505
+ Effect.sync(() => {
506
+ quietPolls = seenFrames === tee.wire.length ? quietPolls + 1 : 0;
507
+ seenFrames = tee.wire.length;
508
+ return quietPolls >= 3 && !tee.kiroHasPendingWork();
509
+ }),
510
+ ),
511
+ Effect.repeat({ until: (idle) => idle }),
512
+ Effect.timeout("5 minutes"),
513
+ Effect.orDie,
514
+ Effect.asVoid,
515
+ Effect.provideService(Clock.Clock, wallClock),
516
+ );
517
+ const result = yield* runOrchestratorV2Scenario(scenario, { afterSteps: waitForKiroIdle }).pipe(
518
+ Effect.provide(
519
+ ProviderReplayHarness.layerWithRegistry(
520
+ scenario,
521
+ layerRegistry,
522
+ variant.runContinuationWorker === true ? { runContinuationWorker: true } : {},
523
+ ),
524
+ ),
525
+ provideDeterministicTestRuntime,
526
+ Effect.scoped,
527
+ );
528
+
529
+ const { entries, droppedFrames } = wireToEntries(tee.wire);
530
+ const closedCleanly = entries.some(
531
+ (entry) =>
532
+ entry.type === "expect_outbound" &&
533
+ isRecord(entry.frame) &&
534
+ entry.frame.method === "session/close",
535
+ );
536
+ const transcript = {
537
+ provider: KIRO_PROVIDER,
538
+ protocol: ACP_PROTOCOL,
539
+ version: "1",
540
+ scenario: fixtureName,
541
+ metadata: {
542
+ generatedBy: "live-kiro-recorder",
543
+ kiroVersion: process.env.T3_KIRO_VERSION ?? "unknown",
544
+ normalization:
545
+ "Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster, memory sync) are removed. Timestamps are kept as recorded.",
546
+ droppedFrames,
547
+ },
548
+ entries: [
549
+ ...normalizeEntries({
550
+ entries,
551
+ workspace: realWorkspace,
552
+ home: process.env.HOME ?? "",
553
+ user: process.env.USER ?? "",
554
+ runtimeInstructions: buildRuntimeInstructions({
555
+ harness: "Kiro",
556
+ model: variant.modelSelection.model,
557
+ }),
558
+ }),
559
+ { type: "runtime_exit", status: closedCleanly ? "success" : "cancelled" } as const,
560
+ ],
561
+ };
562
+
563
+ // The live orchestration must already satisfy the fixture's assertions
564
+ // before anything is written, so a changed Kiro response can never replace
565
+ // a good fixture with one that fails replay. `--force` writes it anyway to
566
+ // inspect the frames.
567
+ const liveFailure = (() => {
568
+ try {
569
+ variant.assertOutput(result, transcript);
570
+ return undefined;
571
+ } catch (cause) {
572
+ return cause;
573
+ }
574
+ })();
575
+ if (liveFailure !== undefined && !process.argv.includes("--force")) {
576
+ return yield* Effect.die(
577
+ new Error(`Live orchestration failed ${fixtureName} assertions; nothing was written.`, {
578
+ cause: liveFailure,
579
+ }),
580
+ );
581
+ }
582
+
583
+ const outputPath = readArgValues("--out")[0] ?? (yield* path.fromFileUrl(variant.transcriptFile));
584
+ const { entries: transcriptEntries, ...header } = transcript;
585
+ yield* fs.writeFileString(
586
+ outputPath,
587
+ [
588
+ encodeJson({ type: "transcript_start", ...header }),
589
+ ...transcriptEntries.map((entry) => encodeJson(entry)),
590
+ "",
591
+ ].join("\n"),
592
+ );
593
+ yield* Console.log(`Wrote ${transcriptEntries.length} Kiro ACP replay entries to ${outputPath}`);
594
+});
595
+
596
+const scenarios = readArgValues("--scenario").flatMap((value) => value.split(","));
597
+if (scenarios.length === 0) {
598
+ throw new Error("Pass --scenario <fixture name>[,<fixture name>...]");
599
+}
600
+if (scenarios.length > 1 && readArgValues("--out").length > 0) {
601
+ throw new Error("--out cannot be used with multiple scenarios; run them separately.");
602
+}
603
+
604
+await Effect.runPromise(
605
+ Effect.forEach(scenarios, (name) => Effect.scoped(recordScenario(name)), {
606
+ discard: true,
607
+ }).pipe(Effect.provide(NodeServices.layer)),
608
+);
apps/server/src/orchestration-v2/Adapters/KiroAdapterV2.test.ts
new
+1438
@@ -0,0 +1,1438 @@
1
+import * as NodeServices from "@effect/platform-node/NodeServices";
2
+import { assert, describe, it } from "@effect/vitest";
3
+import {
4
+ MessageId,
5
+ type ModelSelection,
6
+ NodeId,
7
+ type ProviderApprovalDecision,
8
+ ProjectId,
9
+ ProviderInstanceId,
10
+ ProviderSessionId,
11
+ type ProviderTurnId,
12
+ RunAttemptId,
13
+ RunId,
14
+ type RuntimeMode,
15
+ type RuntimeRequestId,
16
+ ThreadId,
17
+} from "@t3tools/contracts";
18
+import { resolveSelfInvocation } from "@t3tools/shared/nodeRuntime";
19
+import { htmlRenderFromToolItem } from "@t3tools/shared/toolOutput";
20
+import * as DateTime from "effect/DateTime";
21
+import * as Deferred from "effect/Deferred";
22
+import * as Effect from "effect/Effect";
23
+import * as Exit from "effect/Exit";
24
+import * as Fiber from "effect/Fiber";
25
+import * as FileSystem from "effect/FileSystem";
26
+import * as Layer from "effect/Layer";
27
+import * as Option from "effect/Option";
28
+import * as Path from "effect/Path";
29
+import * as Schema from "effect/Schema";
30
+import * as Stream from "effect/Stream";
31
+import * as TestClock from "effect/testing/TestClock";
32
+import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
33
+import type * as EffectAcpSchema from "effect-acp/compat";
34
+
35
+import * as TestProviderHost from "@t3tools/provider-testing/TestProviderHost";
36
+import type * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime";
37
+import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
38
+import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions";
39
+import {
40
+ type ProviderAdapterV2Error,
41
+ type ProviderAdapterV2Event,
42
+ ProviderAdapterV2RuntimePolicy,
43
+} from "@t3tools/provider-core/server/ProviderAdapter";
44
+import {
45
+ decodeAcpReplayTranscript,
46
+ makeAcpReplayCompletenessAssertion,
47
+ makeAcpReplayRuntime,
48
+} from "./AcpAdapterV2.testkit.ts";
49
+import {
50
+ makeProviderReplayGate,
51
+ type ProviderReplayGate,
52
+} from "@t3tools/provider-testing/replayGate";
53
+import { readProviderReplayTranscript } from "@t3tools/provider-testing/replayTranscript";
54
+import { KiroSettings } from "@t3tools/provider-kiro/settings";
55
+import {
56
+ KIRO_PROVIDER,
57
+ kiroApprovalOptions,
58
+ kiroAutopilotValue,
59
+ kiroPermissionDisposition,
60
+ makeKiroAdapterV2,
61
+} from "@t3tools/provider-kiro/testing";
62
+
63
+const testLayer = Layer.mergeAll(
64
+ NodeServices.layer,
65
+ IdAllocator.layer,
66
+ McpProviderSessions.layer,
67
+ TestProviderHost.layer().pipe(Layer.provide(NodeServices.layer)),
68
+);
69
+
70
+const SESSION_ID = "sess_abb5e0cf-d4a2-4360-9f03-2f8f0889a707";
71
+const ENABLED_KIRO_SETTINGS = Schema.decodeSync(KiroSettings)({ enabled: true });
72
+
73
+type Frame = Record<string, unknown>;
74
+const outbound = (method: string, params: unknown = "<any>", label = method): Frame => ({
75
+ type: "expect_outbound",
76
+ label,
77
+ frame: { kind: "request", method, params },
78
+});
79
+const answer = (method: string, result: unknown, label = `${method}.result`): Frame => ({
80
+ type: "emit_inbound",
81
+ label,
82
+ frame: { kind: "response", method, result },
83
+});
84
+const update = (sessionUpdate: Record<string, unknown>): Frame => ({
85
+ type: "emit_inbound",
86
+ label: `update.${String(sessionUpdate.sessionUpdate)}`,
87
+ frame: {
88
+ kind: "notification",
89
+ method: "session/update",
90
+ params: { sessionId: SESSION_ID, update: sessionUpdate },
91
+ },
92
+});
93
+const kiroNotification = (method: string, params: unknown): Frame => ({
94
+ type: "emit_inbound",
95
+ label: method,
96
+ frame: { kind: "notification", method, params },
97
+});
98
+
99
+/**
100
+ * Kiro CLI 2.27.0 (KAS 0.66.22) `initialize` result, recorded with
101
+ * `kiro-cli acp --agent-engine=v3 --auth-method=cli`. Only the extension
102
+ * method list is shortened and the log paths dropped.
103
+ */
104
+const KIRO_V3_INITIALIZE = {
105
+ protocolVersion: 1,
106
+ agentCapabilities: {
107
+ loadSession: true,
108
+ promptCapabilities: { image: true, embeddedContext: true },
109
+ mcpCapabilities: { http: true, sse: true },
110
+ sessionCapabilities: {
111
+ list: {},
112
+ close: {},
113
+ delete: {},
114
+ fork: { _meta: { kiro: { messageId: true } } },
115
+ },
116
+ _meta: {
117
+ kiro: {
118
+ checkpoints: true,
119
+ sessionList: true,
120
+ policyNotifications: true,
121
+ extensionMethods: ["_kiro/session/context", "_kiro/session/compact", "_kiro/knowledge"],
122
+ sessionSources: ["local", "remote"],
123
+ sessionListScopes: ["workspace", "user"],
124
+ executionTargets: ["local", "cloud-sandbox"],
125
+ replayMarking: true,
126
+ },
127
+ },
128
+ },
129
+ authMethods: [
130
+ { id: "aws-builder-id", name: "AWS Builder ID" },
131
+ { id: "aws-iam-identity-center", name: "AWS IAM Identity Center" },
132
+ ],
133
+};
134
+
135
+/** A deployment that advertises no Kiro extensions at all. */
136
+const KIRO_V3_INITIALIZE_WITHOUT_EXTENSIONS = {
137
+ protocolVersion: 1,
138
+ agentCapabilities: {
139
+ loadSession: true,
140
+ promptCapabilities: { image: true, embeddedContext: true },
141
+ mcpCapabilities: { http: true, sse: true },
142
+ },
143
+ authMethods: [],
144
+};
145
+
146
+const option = (value: string, name = value) => ({ value, name });
147
+const autopilotOption = (currentValue: "on" | "off") => ({
148
+ type: "select",
149
+ id: "autopilot",
150
+ name: "Autopilot",
151
+ currentValue,
152
+ options: [option("on", "Autopilot"), option("off", "Supervised")],
153
+});
154
+const modeOption = {
155
+ type: "select",
156
+ id: "mode",
157
+ name: "Mode",
158
+ category: "mode",
159
+ currentValue: "vibe",
160
+ options: [option("vibe", "Default"), option("spec", "Spec"), option("plan", "Plan")],
161
+};
162
+// Recorded sessions without a signed-in account carry no `model` option; the
163
+// migration guide documents it as `configId: "model"`.
164
+const modelOption = (currentValue: string) => ({
165
+ type: "select",
166
+ id: "model",
167
+ name: "Model",
168
+ category: "model",
169
+ currentValue,
170
+ options: [option("auto", "Auto"), option("claude-sonnet", "Claude Sonnet")],
171
+});
172
+
173
+/**
174
+ * Kiro's `model` option as 2.27.0 advertises it (fixtures/kiro_model_switch),
175
+ * trimmed to three choices. Each choice's `_meta.kiro` names its effort levels.
176
+ */
177
+const kiroModelChoice = (
178
+ value: string,
179
+ name: string,
180
+ effort?: { readonly levels: ReadonlyArray<string>; readonly defaultLevel: string },
181
+) => ({
182
+ value,
183
+ name,
184
+ _meta: {
185
+ kiro:
186
+ effort === undefined
187
+ ? { hasEffort: false, thinkingToggleable: false }
188
+ : {
189
+ hasEffort: true,
190
+ effortSchemaPath: "output_config",
191
+ effortLevels: effort.levels,
192
+ defaultEffortLevel: effort.defaultLevel,
193
+ thinkingToggleable: false,
194
+ },
195
+ },
196
+});
197
+const CLAUDE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
198
+const CLAUDE_4_6_EFFORT_LEVELS = ["low", "medium", "high", "max"];
199
+const kiroModelOption = (currentValue: string) => ({
200
+ type: "select",
201
+ id: "model",
202
+ name: "Model",
203
+ category: "model",
204
+ currentValue,
205
+ options: [
206
+ kiroModelChoice("auto", "Auto"),
207
+ kiroModelChoice("claude-opus-5.5", "Claude Opus 5.5", {
208
+ levels: CLAUDE_EFFORT_LEVELS,
209
+ defaultLevel: "medium",
210
+ }),
211
+ kiroModelChoice("claude-opus-4.6", "Claude Opus 4.6", {
212
+ levels: CLAUDE_4_6_EFFORT_LEVELS,
213
+ defaultLevel: "high",
214
+ }),
215
+ kiroModelChoice("claude-sonnet-4.5", "Claude Sonnet 4.5"),
216
+ ],
217
+});
218
+/**
219
+ * Kiro's effort option as kiro-cli 2.27.0 advertised it to a direct ACP probe
220
+ * on Claude Opus 5.5: a `thought_level` select with id `effortLevel`, present
221
+ * only while a model with effort runs and starting at that model's default
222
+ * level. No replay fixture records it yet.
223
+ */
224
+const effortOption = (currentValue: string, levels: ReadonlyArray<string>) => ({
225
+ type: "select",
226
+ id: "effortLevel",
227
+ name: "Effort",
228
+ category: "thought_level",
229
+ currentValue,
230
+ options: levels.map((level) => option(level)),
231
+});
232
+const setConfig = (configId: string, value: string) =>
233
+ outbound("session/set_config_option", { sessionId: SESSION_ID, configId, value });
234
+const configResult = (configOptions: ReadonlyArray<unknown>) =>
235
+ answer("session/set_config_option", { configOptions });
236
+const reasoning = (value: string) => [{ id: "reasoningEffort", value }];
237
+
238
+/** Kiro's `session/new` result, recorded from 2.27.0 and trimmed to what T3 reads. */
239
+const sessionSetup = (configOptions: ReadonlyArray<unknown>) => ({
240
+ _meta: { schemaVersion: "1.0.0", id: SESSION_ID, agentMode: "vibe", source: "local" },
241
+ sessionId: SESSION_ID,
242
+ modes: {
243
+ currentModeId: "vibe",
244
+ availableModes: [
245
+ { id: "vibe", name: "Default" },
246
+ { id: "spec", name: "Spec" },
247
+ { id: "plan", name: "Plan" },
248
+ ],
249
+ },
250
+ configOptions,
251
+});
252
+
253
+/** What Kiro sends right after `initialize` and around `session/new`, all unknown to T3. */
254
+const kiroSessionNoise: ReadonlyArray<Frame> = [
255
+ kiroNotification("_kiro/mcp/status", { sessionId: SESSION_ID, servers: [] }),
256
+ kiroNotification("_kiro/sessions/changed", { upserted: [], deleted: [] }),
257
+];
258
+
259
+// Kiro advertises `sessionCapabilities.close`, so T3 closes the session on teardown.
260
+const closeSession: ReadonlyArray<Frame> = [
261
+ outbound("session/close", { sessionId: SESSION_ID }),
262
+ answer("session/close", {}),
263
+];
264
+
265
+const turnPrompt = outbound("session/prompt", {
266
+ sessionId: SESSION_ID,
267
+ prompt: "<any>",
268
+});
269
+
270
+const openSessionFrames = (input: {
271
+ readonly initialize: unknown;
272
+ readonly configOptions: ReadonlyArray<unknown>;
273
+}): ReadonlyArray<Frame> => [
274
+ outbound("initialize"),
275
+ answer("initialize", input.initialize),
276
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
277
+ ...kiroSessionNoise,
278
+ answer("session/new", sessionSetup(input.configOptions)),
279
+ // Supervised threads run Kiro with Autopilot off, its native ask-first posture.
280
+ outbound("session/set_config_option", {
281
+ sessionId: SESSION_ID,
282
+ configId: "autopilot",
283
+ value: "off",
284
+ }),
285
+ answer("session/set_config_option", {
286
+ configOptions: input.configOptions.map((entry) =>
287
+ (entry as { id: string }).id === "autopilot" ? autopilotOption("off") : entry,
288
+ ),
289
+ }),
290
+];
291
+
292
+const runKiroScript = Effect.fn("runKiroScript")(function* (input: {
293
+ readonly scenario: string;
294
+ readonly frames: ReadonlyArray<Frame>;
295
+ readonly model?: string;
296
+ /** Option selections (e.g. reasoningEffort) for the session and `startTurn`. */
297
+ readonly options?: ModelSelection["options"];
298
+ readonly runtimeMode?: RuntimeMode;
299
+ /** Holds the script's inbound frames at labels the test releases. */
300
+ readonly replayGate?: ProviderReplayGate;
301
+ readonly testHooks?: Parameters<typeof makeKiroAdapterV2>[0]["testHooks"];
302
+ /** Wraps the runtime's `session/cancel` send. */
303
+ readonly wrapCancel?: (
304
+ send: AcpSessionRuntime.AcpSessionRuntime["Service"]["cancel"],
305
+ ) => AcpSessionRuntime.AcpSessionRuntime["Service"]["cancel"];
306
+ readonly drive: (session: {
307
+ readonly events: Stream.Stream<ProviderAdapterV2Event, ProviderAdapterV2Error>;
308
+ readonly startTurn: Effect.Effect<void, ProviderAdapterV2Error>;
309
+ /** Starts turn `ordinal` (from 1) on `model`, with `options` if given. */
310
+ readonly startTurnOn: (
311
+ ordinal: number,
312
+ model: string,
313
+ options?: ModelSelection["options"],
314
+ ) => Effect.Effect<void, ProviderAdapterV2Error>;
315
+ readonly interrupt: (
316
+ providerTurnId: ProviderTurnId,
317
+ ) => Effect.Effect<void, ProviderAdapterV2Error>;
318
+ readonly respond: (
319
+ requestId: RuntimeRequestId,
320
+ decision: ProviderApprovalDecision,
321
+ ) => Effect.Effect<void, ProviderAdapterV2Error>;
322
+ }) => Effect.Effect<void, ProviderAdapterV2Error>;
323
+}) {
324
+ const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
325
+ const fileSystem = yield* FileSystem.FileSystem;
326
+ const path = yield* Path.Path;
327
+ const replayDir = yield* fileSystem.makeTempDirectoryScoped({
328
+ prefix: `t3-kiro-${input.scenario}-`,
329
+ });
330
+ const statusPath = path.join(replayDir, "status.json");
331
+ const transcript = yield* decodeAcpReplayTranscript(
332
+ {
333
+ provider: KIRO_PROVIDER,
334
+ protocol: "acp.ndjson-jsonrpc",
335
+ version: "1",
336
+ scenario: input.scenario,
337
+ entries: input.frames as never,
338
+ },
339
+ KIRO_PROVIDER,
340
+ );
341
+ const instanceId = ProviderInstanceId.make(`kiro-${input.scenario}`);
342
+ const scriptPath = yield* path.fromFileUrl(
343
+ new URL("../../../scripts/acp-replay-agent.ts", import.meta.url),
344
+ );
345
+ const adapter = yield* makeKiroAdapterV2({
346
+ instanceId,
347
+ settings: ENABLED_KIRO_SETTINGS,
348
+ environment: {},
349
+ selfInvocation: yield* resolveSelfInvocation(),
350
+ makeRuntime: (runtimeInput) =>
351
+ makeAcpReplayRuntime({
352
+ transcript,
353
+ statusPath,
354
+ scriptPath,
355
+ childProcessSpawner,
356
+ fileSystem,
357
+ ...(input.replayGate === undefined ? {} : { replayGate: input.replayGate }),
358
+ })(runtimeInput).pipe(
359
+ Effect.map((runtime) =>
360
+ input.wrapCancel === undefined
361
+ ? runtime
362
+ : { ...runtime, cancel: input.wrapCancel(runtime.cancel) },
363
+ ),
364
+ ),
365
+ ...(input.testHooks === undefined ? {} : { testHooks: input.testHooks }),
366
+ });
367
+ // Held frames must not outlive a failed drive and wedge teardown.
368
+ yield* Effect.addFinalizer(() => Effect.sync(() => input.replayGate?.releaseAll()));
369
+ const threadId = ThreadId.make(`thread-kiro-${input.scenario}`);
370
+ const modelSelection = {
371
+ instanceId,
372
+ model: input.model ?? "default",
373
+ ...(input.options === undefined ? {} : { options: input.options }),
374
+ };
375
+ const runtimePolicy = ProviderAdapterV2RuntimePolicy.make({
376
+ runtimeMode: input.runtimeMode ?? "approval-required",
377
+ interactionMode: "default",
378
+ cwd: replayDir,
379
+ });
380
+ yield* Effect.gen(function* () {
381
+ const session = yield* adapter.openSession({
382
+ threadId,
383
+ providerSessionId: ProviderSessionId.make(`provider-session-kiro-${input.scenario}`),
384
+ modelSelection,
385
+ runtimePolicy,
386
+ });
387
+ const providerThread = yield* session.ensureThread({ threadId, modelSelection, runtimePolicy });
388
+ const now = yield* DateTime.now;
389
+ const startTurnOn = (ordinal: number, model: string, options?: ModelSelection["options"]) => {
390
+ const suffix = `${threadId}:${ordinal}`;
391
+ const turnSelection = { instanceId, model, ...(options === undefined ? {} : { options }) };
392
+ return session.startTurn({
393
+ appThread: {
394
+ createdBy: "user",
395
+ creationSource: "web",
396
+ id: threadId,
397
+ projectId: ProjectId.make(`project:${threadId}`),
398
+ title: "Kiro adapter test",
399
+ providerInstanceId: instanceId,
400
+ modelSelection: turnSelection,
401
+ runtimeMode: runtimePolicy.runtimeMode,
402
+ interactionMode: "default",
403
+ branch: null,
404
+ worktreePath: null,
405
+ activeProviderThreadId: providerThread.id,
406
+ lineage: { parentThreadId: null, relationshipToParent: null, rootThreadId: threadId },
407
+ forkedFrom: null,
408
+ createdAt: now,
409
+ updatedAt: now,
410
+ archivedAt: null,
411
+ settledOverride: null,
412
+ settledAt: null,
413
+ lastVisitedAt: null,
414
+ deletedAt: null,
415
+ },
416
+ threadId,
417
+ runId: RunId.make(`run:${suffix}`),
418
+ runOrdinal: ordinal,
419
+ providerTurnOrdinal: ordinal,
420
+ attemptId: RunAttemptId.make(`attempt:${suffix}`),
421
+ rootNodeId: NodeId.make(`node:${suffix}`),
422
+ providerThread,
423
+ message: {
424
+ createdBy: "user",
425
+ creationSource: "web",
426
+ messageId: MessageId.make(`message:${suffix}`),
427
+ text: "Say hello",
428
+ attachments: [],
429
+ },
430
+ modelSelection: turnSelection,
431
+ runtimePolicy,
432
+ });
433
+ };
434
+ yield* input.drive({
435
+ events: session.events,
436
+ startTurn: startTurnOn(1, modelSelection.model, input.options),
437
+ startTurnOn,
438
+ interrupt: (providerTurnId) => session.interruptTurn({ providerThread, providerTurnId }),
439
+ respond: (requestId, decision) => session.respondToRuntimeRequest({ requestId, decision }),
440
+ });
441
+ }).pipe(Effect.scoped);
442
+ // Closing the session stops the replay agent; every scripted frame must be used.
443
+ yield* makeAcpReplayCompletenessAssertion(fileSystem, statusPath, transcript);
444
+});
445
+
446
+const collectTurn = (events: Stream.Stream<ProviderAdapterV2Event, ProviderAdapterV2Error>) =>
447
+ events.pipe(
448
+ Stream.takeUntil((event) => event.type === "turn.terminal"),
449
+ Stream.runCollect,
450
+ Effect.map((collected) => Array.from(collected)),
451
+ );
452
+
453
+const terminalStatus = (events: ReadonlyArray<ProviderAdapterV2Event>) => {
454
+ const terminal = events.find((event) => event.type === "turn.terminal");
455
+ return terminal?.type === "turn.terminal" ? terminal.status : undefined;
456
+};
457
+
458
+describe("KiroAdapterV2", () => {
459
+ it.effect("opens a session on a deployment that advertises no Kiro extensions", () =>
460
+ runKiroScript({
461
+ scenario: "no-extensions",
462
+ frames: [
463
+ outbound("initialize"),
464
+ answer("initialize", KIRO_V3_INITIALIZE_WITHOUT_EXTENSIONS),
465
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
466
+ // No autopilot option advertised, so T3 sends no config write.
467
+ answer("session/new", sessionSetup([modeOption])),
468
+ turnPrompt,
469
+ update({
470
+ sessionUpdate: "agent_message_chunk",
471
+ content: { type: "text", text: "ok" },
472
+ }),
473
+ answer("session/prompt", { stopReason: "end_turn" }),
474
+ ],
475
+ drive: ({ events, startTurn }) =>
476
+ Effect.gen(function* () {
477
+ yield* startTurn;
478
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
479
+ }),
480
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
481
+ );
482
+
483
+ it.effect("switches back to Kiro's default model after a named one", () =>
484
+ runKiroScript({
485
+ scenario: "default-after-named",
486
+ frames: [
487
+ ...openSessionFrames({
488
+ initialize: KIRO_V3_INITIALIZE,
489
+ configOptions: [modeOption, modelOption("auto"), autopilotOption("on")],
490
+ }),
491
+ turnPrompt,
492
+ answer("session/prompt", { stopReason: "end_turn" }),
493
+ outbound("session/set_config_option", {
494
+ sessionId: SESSION_ID,
495
+ configId: "model",
496
+ value: "claude-sonnet",
497
+ }),
498
+ answer("session/set_config_option", {
499
+ configOptions: [modeOption, modelOption("claude-sonnet"), autopilotOption("off")],
500
+ }),
501
+ turnPrompt,
502
+ answer("session/prompt", { stopReason: "end_turn" }),
503
+ // "Kiro default" is Kiro's `auto`, so the session leaves the named model.
504
+ outbound("session/set_config_option", {
505
+ sessionId: SESSION_ID,
506
+ configId: "model",
507
+ value: "auto",
508
+ }),
509
+ answer("session/set_config_option", {
510
+ configOptions: [modeOption, modelOption("auto"), autopilotOption("off")],
511
+ }),
512
+ turnPrompt,
513
+ answer("session/prompt", { stopReason: "end_turn" }),
514
+ ...closeSession,
515
+ ],
516
+ drive: ({ events, startTurnOn }) =>
517
+ Effect.gen(function* () {
518
+ // The session already runs `auto`, so the first default turn sends no write.
519
+ for (const [ordinal, model] of [
520
+ [1, "default"],
521
+ [2, "claude-sonnet"],
522
+ [3, "default"],
523
+ ] as const) {
524
+ yield* startTurnOn(ordinal, model);
525
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
526
+ }
527
+ }),
528
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
529
+ );
530
+
531
+ it.effect("sets the thread's effort once the model write advertises it, and after a switch", () =>
532
+ runKiroScript({
533
+ scenario: "effort-after-model",
534
+ frames: [
535
+ outbound("initialize"),
536
+ answer("initialize", KIRO_V3_INITIALIZE),
537
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
538
+ // On `auto` Kiro offers no effort option.
539
+ answer(
540
+ "session/new",
541
+ sessionSetup([modeOption, kiroModelOption("auto"), autopilotOption("on")]),
542
+ ),
543
+ // Turn 1: the model write's result is the first to advertise effort,
544
+ // at the model's default, so the chosen level goes out after it.
545
+ setConfig("model", "claude-opus-5.5"),
546
+ configResult([
547
+ modeOption,
548
+ kiroModelOption("claude-opus-5.5"),
549
+ autopilotOption("on"),
550
+ effortOption("medium", CLAUDE_EFFORT_LEVELS),
551
+ ]),
552
+ setConfig("effortLevel", "high"),
553
+ configResult([
554
+ modeOption,
555
+ kiroModelOption("claude-opus-5.5"),
556
+ autopilotOption("on"),
557
+ effortOption("high", CLAUDE_EFFORT_LEVELS),
558
+ ]),
559
+ setConfig("autopilot", "off"),
560
+ configResult([
561
+ modeOption,
562
+ kiroModelOption("claude-opus-5.5"),
563
+ autopilotOption("off"),
564
+ effortOption("high", CLAUDE_EFFORT_LEVELS),
565
+ ]),
566
+ turnPrompt,
567
+ answer("session/prompt", { stopReason: "end_turn" }),
568
+ // Turn 2: same model and effort, so nothing is written.
569
+ turnPrompt,
570
+ answer("session/prompt", { stopReason: "end_turn" }),
571
+ // Turn 3: a model without effort drops the option; no effort write.
572
+ setConfig("model", "claude-sonnet-4.5"),
573
+ configResult([modeOption, kiroModelOption("claude-sonnet-4.5"), autopilotOption("off")]),
574
+ turnPrompt,
575
+ answer("session/prompt", { stopReason: "end_turn" }),
576
+ // Turn 4: back on an effort model, Kiro starts at its default again.
577
+ setConfig("model", "claude-opus-5.5"),
578
+ configResult([
579
+ modeOption,
580
+ kiroModelOption("claude-opus-5.5"),
581
+ autopilotOption("off"),
582
+ effortOption("medium", CLAUDE_EFFORT_LEVELS),
583
+ ]),
584
+ setConfig("effortLevel", "high"),
585
+ configResult([
586
+ modeOption,
587
+ kiroModelOption("claude-opus-5.5"),
588
+ autopilotOption("off"),
589
+ effortOption("high", CLAUDE_EFFORT_LEVELS),
590
+ ]),
591
+ turnPrompt,
592
+ answer("session/prompt", { stopReason: "end_turn" }),
593
+ ...closeSession,
594
+ ],
595
+ model: "claude-opus-5.5",
596
+ options: reasoning("high"),
597
+ drive: ({ events, startTurnOn }) =>
598
+ Effect.gen(function* () {
599
+ for (const [ordinal, model] of [
600
+ [1, "claude-opus-5.5"],
601
+ [2, "claude-opus-5.5"],
602
+ [3, "claude-sonnet-4.5"],
603
+ [4, "claude-opus-5.5"],
604
+ ] as const) {
605
+ yield* startTurnOn(ordinal, model, reasoning("high"));
606
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
607
+ }
608
+ }),
609
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
610
+ );
611
+
612
+ it.effect("waits for Kiro to advertise the model before setting its effort", () =>
613
+ runKiroScript({
614
+ scenario: "effort-after-advert",
615
+ frames: [
616
+ outbound("initialize"),
617
+ answer("initialize", KIRO_V3_INITIALIZE),
618
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
619
+ // Kiro 2.27.0 leaves `model` out of `session/new`.
620
+ answer("session/new", sessionSetup([modeOption, autopilotOption("on")])),
621
+ // Written before Kiro advertised anything: the result carries neither
622
+ // the model nor its effort, and an effort write now would be ignored.
623
+ setConfig("model", "claude-opus-5.5"),
624
+ configResult([modeOption, autopilotOption("on")]),
625
+ update({
626
+ sessionUpdate: "config_option_update",
627
+ configOptions: [
628
+ modeOption,
629
+ kiroModelOption("claude-opus-5.5"),
630
+ effortOption("medium", CLAUDE_EFFORT_LEVELS),
631
+ autopilotOption("on"),
632
+ ],
633
+ }),
634
+ setConfig("effortLevel", "high"),
635
+ configResult([
636
+ modeOption,
637
+ kiroModelOption("claude-opus-5.5"),
638
+ effortOption("high", CLAUDE_EFFORT_LEVELS),
639
+ autopilotOption("on"),
640
+ ]),
641
+ setConfig("autopilot", "off"),
642
+ configResult([
643
+ modeOption,
644
+ kiroModelOption("claude-opus-5.5"),
645
+ effortOption("high", CLAUDE_EFFORT_LEVELS),
646
+ autopilotOption("off"),
647
+ ]),
648
+ turnPrompt,
649
+ answer("session/prompt", { stopReason: "end_turn" }),
650
+ ...closeSession,
651
+ ],
652
+ model: "claude-opus-5.5",
653
+ options: reasoning("high"),
654
+ drive: ({ events, startTurnOn }) =>
655
+ Effect.gen(function* () {
656
+ yield* startTurnOn(1, "claude-opus-5.5", reasoning("high"));
657
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
658
+ }),
659
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
660
+ );
661
+
662
+ it.effect("never sends an effort level the model does not offer", () =>
663
+ runKiroScript({
664
+ scenario: "effort-not-offered",
665
+ frames: [
666
+ outbound("initialize"),
667
+ answer("initialize", KIRO_V3_INITIALIZE),
668
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
669
+ answer(
670
+ "session/new",
671
+ sessionSetup([modeOption, kiroModelOption("auto"), autopilotOption("on")]),
672
+ ),
673
+ // Turn 1 asks for xhigh, which Opus 4.6 does not offer: no effort
674
+ // write, and the turn runs at Kiro's default.
675
+ setConfig("model", "claude-opus-4.6"),
676
+ configResult([
677
+ modeOption,
678
+ kiroModelOption("claude-opus-4.6"),
679
+ autopilotOption("on"),
680
+ effortOption("high", CLAUDE_4_6_EFFORT_LEVELS),
681
+ ]),
682
+ setConfig("autopilot", "off"),
683
+ configResult([
684
+ modeOption,
685
+ kiroModelOption("claude-opus-4.6"),
686
+ autopilotOption("off"),
687
+ effortOption("high", CLAUDE_4_6_EFFORT_LEVELS),
688
+ ]),
689
+ turnPrompt,
690
+ answer("session/prompt", { stopReason: "end_turn" }),
691
+ // Turn 2 picks max, which it offers.
692
+ setConfig("effortLevel", "max"),
693
+ configResult([
694
+ modeOption,
695
+ kiroModelOption("claude-opus-4.6"),
696
+ autopilotOption("off"),
697
+ effortOption("max", CLAUDE_4_6_EFFORT_LEVELS),
698
+ ]),
699
+ turnPrompt,
700
+ answer("session/prompt", { stopReason: "end_turn" }),
701
+ ...closeSession,
702
+ ],
703
+ model: "claude-opus-4.6",
704
+ options: reasoning("xhigh"),
705
+ drive: ({ events, startTurnOn }) =>
706
+ Effect.gen(function* () {
707
+ for (const [ordinal, effort] of [
708
+ [1, "xhigh"],
709
+ [2, "max"],
710
+ ] as const) {
711
+ yield* startTurnOn(ordinal, "claude-opus-4.6", reasoning(effort));
712
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
713
+ }
714
+ }),
715
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
716
+ );
717
+
718
+ it.effect("answers a stale 'this session' approval with Kiro's allow_once", () =>
719
+ runKiroScript({
720
+ scenario: "stale-session-approval",
721
+ frames: [
722
+ ...openSessionFrames({
723
+ initialize: KIRO_V3_INITIALIZE,
724
+ configOptions: [modeOption, autopilotOption("on")],
725
+ }),
726
+ turnPrompt,
727
+ {
728
+ type: "emit_inbound",
729
+ label: "session/request_permission",
730
+ frame: {
731
+ kind: "request",
732
+ method: "session/request_permission",
733
+ // Kiro 2.27's options for a write (kiro_supervised_transcript.ndjson).
734
+ params: {
735
+ sessionId: SESSION_ID,
736
+ toolCall: { toolCallId: "call-1", title: "Write File", kind: "edit" },
737
+ options: [
738
+ { optionId: "accept", name: "Allow", kind: "allow_once" },
739
+ { optionId: "always-accept", name: "Always allow", kind: "allow_always" },
740
+ { optionId: "reject", name: "Deny", kind: "reject_once" },
741
+ ],
742
+ },
743
+ },
744
+ },
745
+ // The card offered no "this session" choice, so the answer is one-time
746
+ // rather than Kiro's workspace-wide `allow_always`.
747
+ {
748
+ type: "expect_outbound",
749
+ label: "session/request_permission.result",
750
+ frame: {
751
+ kind: "response",
752
+ method: "session/request_permission",
753
+ result: { outcome: { outcome: "selected", optionId: "accept" } },
754
+ },
755
+ },
756
+ answer("session/prompt", { stopReason: "end_turn" }),
757
+ ...closeSession,
758
+ ],
759
+ drive: ({ events, startTurn, respond }) =>
760
+ Effect.gen(function* () {
761
+ const pending = yield* Deferred.make<RuntimeRequestId>();
762
+ const turn = yield* collectTurn(
763
+ events.pipe(
764
+ Stream.tap((event) =>
765
+ event.type === "runtime_request.updated" &&
766
+ event.runtimeRequest.status === "pending"
767
+ ? Deferred.succeed(pending, event.runtimeRequest.id)
768
+ : Effect.void,
769
+ ),
770
+ ),
771
+ ).pipe(Effect.forkChild);
772
+ yield* startTurn;
773
+ yield* respond(yield* Deferred.await(pending), "acceptForSession");
774
+ assert.equal(terminalStatus(yield* Fiber.join(turn)), "completed");
775
+ }),
776
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
777
+ );
778
+
779
+ it.effect("sends a model Kiro does not list, and fails with Kiro's own message", () =>
780
+ runKiroScript({
781
+ scenario: "unlisted-model",
782
+ model: "claude-opus-9",
783
+ frames: [
784
+ outbound("initialize"),
785
+ answer("initialize", KIRO_V3_INITIALIZE),
786
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
787
+ // Kiro has already listed its models, without the thread's custom one.
788
+ answer(
789
+ "session/new",
790
+ sessionSetup([modeOption, modelOption("auto"), autopilotOption("on")]),
791
+ ),
792
+ // Shapes from kiro-cli 2.27.0, probed live with this id: Kiro takes
793
+ // the write and fails the prompt.
794
+ setConfig("model", "claude-opus-9"),
795
+ configResult([modeOption, modelOption("claude-opus-9"), autopilotOption("on")]),
796
+ setConfig("autopilot", "off"),
797
+ configResult([modeOption, modelOption("claude-opus-9"), autopilotOption("off")]),
798
+ turnPrompt,
799
+ {
800
+ type: "emit_inbound",
801
+ label: "session/prompt.error",
802
+ frame: {
803
+ kind: "response",
804
+ method: "session/prompt",
805
+ error: {
806
+ code: -32000,
807
+ message:
808
+ "The model 'claude-opus-9' is not available. Please select a different model and try again.",
809
+ data: { errorType: "InvalidModelError", retryErrorType: "CLIENT_ERROR" },
810
+ },
811
+ },
812
+ },
813
+ ...closeSession,
814
+ ],
815
+ drive: ({ events, startTurn }) =>
816
+ Effect.gen(function* () {
817
+ yield* startTurn;
818
+ const terminal = (yield* collectTurn(events)).find(
819
+ (event) => event.type === "turn.terminal",
820
+ );
821
+ if (terminal?.type !== "turn.terminal" || terminal.status !== "failed") {
822
+ return yield* Effect.die("the unavailable model must fail its turn");
823
+ }
824
+ assert.include(terminal.failure.message, "'claude-opus-9' is not available");
825
+ }),
826
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
827
+ );
828
+});
829
+
830
+describe("KiroAdapterV2 agents", () => {
831
+ // A user agent from `~/.kiro/agents` whose config sets `"model": "claude-sonnet-4.5"`.
832
+ const agentModeOption = (currentValue: string) => ({
833
+ ...modeOption,
834
+ currentValue,
835
+ options: [...modeOption.options, option("reviewer", "reviewer")],
836
+ });
837
+ const agent = (value: string) => [{ id: "mode", value }];
838
+
839
+ it.effect("selects the thread's agent before its model, which the agent would replace", () =>
840
+ runKiroScript({
841
+ scenario: "agent-then-model",
842
+ model: "claude-opus-5.5",
843
+ options: agent("reviewer"),
844
+ frames: [
845
+ outbound("initialize"),
846
+ answer("initialize", KIRO_V3_INITIALIZE),
847
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
848
+ answer(
849
+ "session/new",
850
+ sessionSetup([agentModeOption("vibe"), kiroModelOption("auto"), autopilotOption("on")]),
851
+ ),
852
+ // Shapes from kiro-cli 2.27.0, probed live: switching to an agent runs
853
+ // the agent's own model.
854
+ setConfig("mode", "reviewer"),
855
+ configResult([
856
+ agentModeOption("reviewer"),
857
+ kiroModelOption("claude-sonnet-4.5"),
858
+ autopilotOption("on"),
859
+ ]),
860
+ setConfig("model", "claude-opus-5.5"),
861
+ configResult([
862
+ agentModeOption("reviewer"),
863
+ kiroModelOption("claude-opus-5.5"),
864
+ autopilotOption("on"),
865
+ ]),
866
+ setConfig("autopilot", "off"),
867
+ configResult([
868
+ agentModeOption("reviewer"),
869
+ kiroModelOption("claude-opus-5.5"),
870
+ autopilotOption("off"),
871
+ ]),
872
+ turnPrompt,
873
+ answer("session/prompt", { stopReason: "end_turn" }),
874
+ // Turn 2 picks Spec; its model is the thread's again.
875
+ setConfig("mode", "spec"),
876
+ configResult([
877
+ agentModeOption("spec"),
878
+ kiroModelOption("claude-opus-5.5"),
879
+ autopilotOption("off"),
880
+ ]),
881
+ turnPrompt,
882
+ answer("session/prompt", { stopReason: "end_turn" }),
883
+ ...closeSession,
884
+ ],
885
+ drive: ({ events, startTurnOn }) =>
886
+ Effect.gen(function* () {
887
+ yield* startTurnOn(1, "claude-opus-5.5", agent("reviewer"));
888
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
889
+ yield* startTurnOn(2, "claude-opus-5.5", agent("spec"));
890
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
891
+ }),
892
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
893
+ );
894
+
895
+ it.effect("puts Kiro default back after an agent switch moved the session off it", () =>
896
+ runKiroScript({
897
+ scenario: "agent-then-default-model",
898
+ options: agent("reviewer"),
899
+ frames: [
900
+ outbound("initialize"),
901
+ answer("initialize", KIRO_V3_INITIALIZE),
902
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
903
+ // A new session has not advertised `model` yet.
904
+ answer("session/new", sessionSetup([agentModeOption("vibe"), autopilotOption("on")])),
905
+ setConfig("mode", "reviewer"),
906
+ configResult([
907
+ agentModeOption("reviewer"),
908
+ kiroModelOption("claude-sonnet-4.5"),
909
+ autopilotOption("on"),
910
+ ]),
911
+ setConfig("model", "auto"),
912
+ configResult([agentModeOption("reviewer"), kiroModelOption("auto"), autopilotOption("on")]),
913
+ setConfig("autopilot", "off"),
914
+ configResult([
915
+ agentModeOption("reviewer"),
916
+ kiroModelOption("auto"),
917
+ autopilotOption("off"),
918
+ ]),
919
+ turnPrompt,
920
+ answer("session/prompt", { stopReason: "end_turn" }),
921
+ ...closeSession,
922
+ ],
923
+ drive: ({ events, startTurn }) =>
924
+ Effect.gen(function* () {
925
+ yield* startTurn;
926
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
927
+ }),
928
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
929
+ );
930
+
931
+ it.effect("keeps the session's agent when the thread's agent no longer exists", () =>
932
+ runKiroScript({
933
+ scenario: "agent-removed",
934
+ options: agent("deleted-agent"),
935
+ frames: [
936
+ outbound("initialize"),
937
+ answer("initialize", KIRO_V3_INITIALIZE),
938
+ outbound("session/new", { cwd: "<workspace>", mcpServers: "<any>" }),
939
+ // No `mode` write: the replay agent fails on any frame not scripted here.
940
+ answer(
941
+ "session/new",
942
+ sessionSetup([agentModeOption("vibe"), kiroModelOption("auto"), autopilotOption("on")]),
943
+ ),
944
+ setConfig("autopilot", "off"),
945
+ configResult([agentModeOption("vibe"), kiroModelOption("auto"), autopilotOption("off")]),
946
+ turnPrompt,
947
+ answer("session/prompt", { stopReason: "end_turn" }),
948
+ ...closeSession,
949
+ ],
950
+ drive: ({ events, startTurn }) =>
951
+ Effect.gen(function* () {
952
+ yield* startTurn;
953
+ assert.equal(terminalStatus(yield* collectTurn(events)), "completed");
954
+ }),
955
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
956
+ );
957
+});
958
+
959
+describe("KiroAdapterV2 early Stop", () => {
960
+ // Stop holds its cancel until Kiro starts the prompt, for at most 2 s.
961
+ // Replay gates hold Kiro's frames until Stop is holding; reaching a gate's
962
+ // label means every frame before it was handled. The test clock moves only
963
+ // where a test adjusts it, so the 2 s bound releases a cancel nowhere else.
964
+ const kiroInfo = (label: string, kiro: Record<string, unknown>): Frame => ({
965
+ ...update({ sessionUpdate: "session_info_update", _meta: { kiro } }),
966
+ label,
967
+ });
968
+ // Shapes recorded from Kiro 2.27 (fixtures/queued_turn/kiro_transcript.ndjson).
969
+ const messageIdEcho = kiroInfo("message-id", {
970
+ userMessageId: "message-2",
971
+ kind: "user_message_id_assigned",
972
+ });
973
+ const turnStart = kiroInfo("turn-start", {
974
+ turnStart: true,
975
+ kind: "turn_start",
976
+ messageId: "message-2-turn-start",
977
+ });
978
+ const cancel: Frame = {
979
+ type: "expect_outbound",
980
+ label: "session/cancel",
981
+ frame: { kind: "notification", method: "session/cancel", params: { sessionId: SESSION_ID } },
982
+ };
983
+ const cancelled = answer("session/prompt", { stopReason: "cancelled" });
984
+ const runningProviderTurnId = (event: ProviderAdapterV2Event) =>
985
+ event.type === "provider_turn.updated" && event.providerTurn.status === "running"
986
+ ? event.providerTurn.id
987
+ : undefined;
988
+
989
+ /**
990
+ * Runs a Kiro turn and presses Stop as soon as it runs. Once Stop holds its
991
+ * cancel, `drive` gets the replay gate, a receipt for the cancel T3 sends,
992
+ * and Stop's exit.
993
+ */
994
+ const earlyStop = (input: {
995
+ readonly frames: ReadonlyArray<Frame>;
996
+ readonly gates: ReadonlyArray<string>;
997
+ readonly drive: (stop: {
998
+ readonly replayGate: ProviderReplayGate;
999
+ readonly cancelSent: Deferred.Deferred<void>;
1000
+ /** Completed once the cancel was written, right before Stop's acknowledgement wait. */
1001
+ readonly cancelWritten: Deferred.Deferred<void>;
1002
+ readonly stopFiber: Fiber.Fiber<Exit.Exit<void, ProviderAdapterV2Error>>;
1003
+ }) => Effect.Effect<void>;
1004
+ }) =>
1005
+ Effect.gen(function* () {
1006
+ const replayGate = makeProviderReplayGate(input.gates);
1007
+ const cancelHeld = yield* Deferred.make<void>();
1008
+ const cancelSent = yield* Deferred.make<void>();
1009
+ const cancelWritten = yield* Deferred.make<void>();
1010
+ yield* runKiroScript({
1011
+ scenario: "early-stop",
1012
+ replayGate,
1013
+ testHooks: {
1014
+ onCancelHeld: () => Deferred.succeed(cancelHeld, undefined).pipe(Effect.asVoid),
1015
+ },
1016
+ // `cancelSent` marks the decision to cancel, `cancelWritten` the write.
1017
+ wrapCancel: (send) =>
1018
+ Deferred.succeed(cancelSent, undefined).pipe(
1019
+ Effect.andThen(send),
1020
+ Effect.andThen(Deferred.succeed(cancelWritten, undefined)),
1021
+ Effect.asVoid,
1022
+ ),
1023
+ frames: [
1024
+ ...openSessionFrames({
1025
+ initialize: KIRO_V3_INITIALIZE,
1026
+ configOptions: [modeOption, autopilotOption("on")],
1027
+ }),
1028
+ turnPrompt,
1029
+ ...input.frames,
1030
+ ...closeSession,
1031
+ ],
1032
+ drive: ({ events, startTurn, interrupt }) =>
1033
+ Effect.gen(function* () {
1034
+ const running = yield* Deferred.make<ProviderTurnId>();
1035
+ const turn = yield* collectTurn(
1036
+ events.pipe(
1037
+ Stream.tap((event) => {
1038
+ const providerTurnId = runningProviderTurnId(event);
1039
+ return providerTurnId === undefined
1040
+ ? Effect.void
1041
+ : Deferred.succeed(running, providerTurnId);
1042
+ }),
1043
+ ),
1044
+ ).pipe(Effect.forkChild);
1045
+ yield* startTurn;
1046
+ const stop = yield* interrupt(yield* Deferred.await(running)).pipe(
1047
+ Effect.exit,
1048
+ Effect.forkChild,
1049
+ );
1050
+ yield* Deferred.await(cancelHeld);
1051
+ yield* input.drive({ replayGate, cancelSent, cancelWritten, stopFiber: stop });
1052
+ // Stop decides the run's outcome. A Stop Kiro never acknowledges leaves the
1053
+ // turn open, since Kiro may still be working, for the user to Force stop.
1054
+ if (Exit.isSuccess(yield* Fiber.join(stop))) {
1055
+ assert.equal(terminalStatus(yield* Fiber.join(turn)), "interrupted");
1056
+ } else {
1057
+ assert.isUndefined(turn.pollUnsafe());
1058
+ }
1059
+ }),
1060
+ });
1061
+ }).pipe(Effect.provide(testLayer), Effect.scoped);
1062
+
1063
+ /**
1064
+ * Lets Kiro's frames through one gate at a time. No cancel may go out
1065
+ * before the last gate's frame, and Stop must succeed.
1066
+ */
1067
+ const releaseInOrder = (input: {
1068
+ readonly frames: ReadonlyArray<Frame>;
1069
+ readonly gates: ReadonlyArray<string>;
1070
+ readonly expectCancel: boolean;
1071
+ }) =>
1072
+ earlyStop({
1073
+ frames: input.frames,
1074
+ gates: input.gates,
1075
+ drive: ({ replayGate, cancelSent, stopFiber }) =>
1076
+ Effect.gen(function* () {
1077
+ for (const [index, label] of input.gates.entries()) {
1078
+ replayGate.release(label);
1079
+ const next = input.gates[index + 1];
1080
+ if (next === undefined) continue;
1081
+ yield* Effect.promise(() => replayGate.waitForReached(next));
1082
+ assert.isFalse(
1083
+ yield* Deferred.isDone(cancelSent),
1084
+ `Stop must still hold its cancel after ${label}`,
1085
+ );
1086
+ }
1087
+ assert.isTrue(Exit.isSuccess(yield* Fiber.join(stopFiber)));
1088
+ assert.equal(yield* Deferred.isDone(cancelSent), input.expectCancel);
1089
+ }),
1090
+ });
1091
+
1092
+ it.effect("holds Stop past Kiro's message-id echo until its turn_start", () =>
1093
+ releaseInOrder({
1094
+ gates: ["message-id", "turn-start"],
1095
+ expectCancel: true,
1096
+ frames: [
1097
+ messageIdEcho,
1098
+ kiroInfo("focus", {
1099
+ focus: { status: "in_progress" },
1100
+ kind: "focus_update",
1101
+ status: "in_progress",
1102
+ }),
1103
+ turnStart,
1104
+ cancel,
1105
+ cancelled,
1106
+ ],
1107
+ }),
1108
+ );
1109
+
1110
+ it.effect("does not take the previous prompt's late context usage as the start", () =>
1111
+ releaseInOrder({
1112
+ // Kiro reports the finished prompt's context usage after answering it,
1113
+ // so it can arrive once the next `session/prompt` went out.
1114
+ gates: ["previous-context-usage", "turn-start"],
1115
+ expectCancel: true,
1116
+ frames: [
1117
+ kiroInfo("previous-context-usage", {
1118
+ contextUsage: { usagePercentage: 8.8 },
1119
+ kind: "context_usage",
1120
+ usagePercentage: 8.8,
1121
+ }),
1122
+ turnStart,
1123
+ cancel,
1124
+ cancelled,
1125
+ ],
1126
+ }),
1127
+ );
1128
+
1129
+ it.effect("does not take Kiro's background cloud-config fetch as the start", () =>
1130
+ releaseInOrder({
1131
+ // Kiro 2.31 fetches an Identity Center account's cloud config as a tool
1132
+ // call of its own, which can arrive once `session/prompt` went out
1133
+ // (frames reported by @hstern; the tool call id is invented).
1134
+ gates: ["cloud-config", "cloud-config-done", "turn-start"],
1135
+ expectCancel: true,
1136
+ frames: [
1137
+ {
1138
+ ...update({
1139
+ sessionUpdate: "tool_call",
1140
+ toolCallId: "tooluse_cloud_config",
1141
+ title: "Fetching your cloud config",
1142
+ kind: "other",
1143
+ status: "in_progress",
1144
+ _meta: { kiro: { toolId: "fetch_cloud_config" } },
1145
+ }),
1146
+ label: "cloud-config",
1147
+ },
1148
+ messageIdEcho,
1149
+ {
1150
+ ...update({
1151
+ sessionUpdate: "tool_call_update",
1152
+ toolCallId: "tooluse_cloud_config",
1153
+ status: "completed",
1154
+ rawOutput: { kind: "upToDate" },
1155
+ }),
1156
+ label: "cloud-config-done",
1157
+ },
1158
+ turnStart,
1159
+ cancel,
1160
+ cancelled,
1161
+ ],
1162
+ }),
1163
+ );
1164
+
1165
+ it.effect("cancels on Kiro's first reply text when it sends no turn_start", () =>
1166
+ releaseInOrder({
1167
+ gates: ["message-id", "reply"],
1168
+ expectCancel: true,
1169
+ frames: [
1170
+ messageIdEcho,
1171
+ {
1172
+ ...update({
1173
+ sessionUpdate: "agent_message_chunk",
1174
+ content: { type: "text", text: "On it" },
1175
+ }),
1176
+ label: "reply",
1177
+ },
1178
+ cancel,
1179
+ cancelled,
1180
+ ],
1181
+ }),
1182
+ );
1183
+
1184
+ it.effect("cancels 2 s after the prompt when Kiro shows nothing but the echo", () =>
1185
+ earlyStop({
1186
+ gates: ["message-id", "focus"],
1187
+ frames: [
1188
+ messageIdEcho,
1189
+ kiroInfo("focus", {
1190
+ focus: { status: "in_progress" },
1191
+ kind: "focus_update",
1192
+ status: "in_progress",
1193
+ }),
1194
+ cancel,
1195
+ cancelled,
1196
+ ],
1197
+ drive: ({ replayGate, cancelSent, stopFiber }) =>
1198
+ Effect.gen(function* () {
1199
+ replayGate.release("message-id");
1200
+ yield* Effect.promise(() => replayGate.waitForReached("focus"));
1201
+ yield* TestClock.adjust("1999 millis");
1202
+ assert.isFalse(yield* Deferred.isDone(cancelSent), "the echo must not release Stop");
1203
+ yield* TestClock.adjust("1 millis");
1204
+ yield* Deferred.await(cancelSent);
1205
+ // Kiro acknowledges, and Stop still has its own time to see it.
1206
+ replayGate.release("focus");
1207
+ assert.isTrue(Exit.isSuccess(yield* Fiber.join(stopFiber)));
1208
+ }),
1209
+ }),
1210
+ );
1211
+
1212
+ it.effect("fails a Stop Kiro never acknowledges after the 10 s wait and keeps the turn", () =>
1213
+ earlyStop({
1214
+ gates: [],
1215
+ // Kiro never starts the prompt and never answers it.
1216
+ frames: [messageIdEcho, cancel],
1217
+ drive: ({ cancelWritten, stopFiber }) =>
1218
+ Effect.gen(function* () {
1219
+ yield* TestClock.adjust("2 seconds");
1220
+ yield* Deferred.await(cancelWritten);
1221
+ // The acknowledgement wait gets its full 10 s after the cancel.
1222
+ yield* TestClock.adjust("9999 millis");
1223
+ assert.isUndefined(stopFiber.pollUnsafe(), "Stop must still wait for Kiro's answer");
1224
+ yield* TestClock.adjust("1 millis");
1225
+ const error = Exit.findErrorOption(yield* Fiber.join(stopFiber));
1226
+ assert.equal(Option.getOrUndefined(error)?._tag, "ProviderAdapterInterruptTimeoutError");
1227
+ }),
1228
+ }),
1229
+ );
1230
+
1231
+ it.effect("sends no cancel when Kiro finishes the prompt before starting it", () =>
1232
+ releaseInOrder({
1233
+ gates: ["session/prompt.result"],
1234
+ expectCancel: false,
1235
+ frames: [answer("session/prompt", { stopReason: "end_turn" })],
1236
+ }),
1237
+ );
1238
+});
1239
+
1240
+describe("KiroAdapterV2 MCP tools", () => {
1241
+ // Probed live on Kiro 2.33.1 against a stdio MCP server named t3-code, without
1242
+ // the permission round trip. Kiro titles the call "@t3-code/html_render", names
1243
+ // it in `tool_id`, and keeps only the result's text.
1244
+ it.effect("shows T3's html_render as T3's tool with the page T3 published", () =>
1245
+ Effect.gen(function* () {
1246
+ const mcpSessions = yield* McpProviderSessions.McpProviderSessions;
1247
+ const toolCallId = "tooluse_4N3LnlI9PRlphUtzdBQGDD";
1248
+ const args = { html: "<p>hi</p>", title: "Probe", height: 120 };
1249
+ const rawInput = { tool_id: "t3-code::html_render", arguments: args };
1250
+ const kiroMeta = { kiro: { serverName: "t3-code", toolOrigin: "default" } };
1251
+ const page = { attachmentId: "kiro-mcp-html-render-page", title: "Probe", height: 120 };
1252
+ yield* runKiroScript({
1253
+ scenario: "mcp-html-render",
1254
+ frames: [
1255
+ ...openSessionFrames({
1256
+ initialize: KIRO_V3_INITIALIZE,
1257
+ configOptions: [modeOption, autopilotOption("on")],
1258
+ }),
1259
+ turnPrompt,
1260
+ update({
1261
+ sessionUpdate: "tool_call",
1262
+ toolCallId,
1263
+ title: "@t3-code/html_render",
1264
+ kind: "other",
1265
+ status: "pending",
1266
+ rawInput,
1267
+ _meta: kiroMeta,
1268
+ }),
1269
+ update({
1270
+ sessionUpdate: "tool_call_update",
1271
+ toolCallId,
1272
+ status: "in_progress",
1273
+ rawInput,
1274
+ _meta: kiroMeta,
1275
+ }),
1276
+ update({
1277
+ sessionUpdate: "tool_call_update",
1278
+ toolCallId,
1279
+ status: "completed",
1280
+ title: "@t3-code/html_render",
1281
+ rawInput,
1282
+ rawOutput: { response: "Rendered.", imageBase64Urls: [], message: "Rendered." },
1283
+ content: [{ type: "content", content: { type: "text", text: "Rendered." } }],
1284
+ _meta: kiroMeta,
1285
+ }),
1286
+ answer("session/prompt", { stopReason: "end_turn" }),
1287
+ ...closeSession,
1288
+ ],
1289
+ drive: ({ events, startTurn }) =>
1290
+ Effect.gen(function* () {
1291
+ // T3's MCP server records the page when Kiro calls html_render.
1292
+ yield* mcpSessions.recordHtmlRender(
1293
+ ThreadId.make("thread-kiro-mcp-html-render"),
1294
+ args,
1295
+ page,
1296
+ );
1297
+ yield* startTurn;
1298
+ const turn = yield* collectTurn(events);
1299
+ const items = turn.flatMap((event) =>
1300
+ event.type === "turn_item.updated" &&
1301
+ event.turnItem.type === "dynamic_tool" &&
1302
+ event.turnItem.nativeItemRef?.nativeId === toolCallId
1303
+ ? [event.turnItem]
1304
+ : [],
1305
+ );
1306
+ const completed = items.at(-1);
1307
+ assert.deepEqual(
1308
+ items.map((item) => item.toolName),
1309
+ items.map(() => "t3-code.html_render"),
1310
+ );
1311
+ assert.equal(completed?.status, "completed");
1312
+ assert.deepEqual(completed?.input, args);
1313
+ assert.deepEqual(
1314
+ completed === undefined ? undefined : htmlRenderFromToolItem(completed),
1315
+ page,
1316
+ );
1317
+ }),
1318
+ });
1319
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
1320
+ );
1321
+});
1322
+
1323
+describe("KiroAdapterV2 unknown model", () => {
1324
+ // Recorded live from Kiro 2.27.0 with the thread on a model id the account
1325
+ // lacks. Kiro has not advertised `model` yet, so T3 sends the id; Kiro
1326
+ // accepts it and fails the prompt with its own explanation.
1327
+ it.effect("fails the turn with Kiro's own unavailable-model message", () =>
1328
+ Effect.gen(function* () {
1329
+ const recorded = yield* readProviderReplayTranscript(
1330
+ new URL("../testkit/fixtures/kiro_unknown_model/kiro_transcript.ndjson", import.meta.url),
1331
+ );
1332
+ const firstPromptAnswer = recorded.entries.findIndex(
1333
+ (entry) =>
1334
+ entry.type === "emit_inbound" &&
1335
+ (entry.frame as { kind?: unknown; method?: unknown }).kind === "response" &&
1336
+ (entry.frame as { method?: unknown }).method === "session/prompt",
1337
+ );
1338
+ const frames = recorded.entries.slice(0, firstPromptAnswer + 1).map((entry) => {
1339
+ const frame = entry.type === "runtime_exit" ? undefined : (entry.frame as Frame);
1340
+ return frame?.method === "session/prompt" && frame.kind === "request"
1341
+ ? { ...entry, frame: { ...frame, params: "<any>" } }
1342
+ : entry;
1343
+ });
1344
+ const sessionId = recorded.entries.flatMap((entry) => {
1345
+ const frame = entry.type === "runtime_exit" ? undefined : (entry.frame as Frame);
1346
+ const result = frame?.result as { sessionId?: unknown } | undefined;
1347
+ return frame?.method === "session/new" && typeof result?.sessionId === "string"
1348
+ ? [result.sessionId]
1349
+ : [];
1350
+ })[0];
1351
+ yield* runKiroScript({
1352
+ scenario: "unknown-model",
1353
+ model: "not-a-kiro-model",
1354
+ // As recorded: Kiro already runs on Autopilot, so T3 writes only the model.
1355
+ runtimeMode: "full-access",
1356
+ frames: [
1357
+ ...(frames as ReadonlyArray<Frame>),
1358
+ outbound("session/close", { sessionId }),
1359
+ answer("session/close", {}),
1360
+ ],
1361
+ drive: ({ events, startTurn }) =>
1362
+ Effect.gen(function* () {
1363
+ yield* startTurn;
1364
+ const turn = yield* collectTurn(events);
1365
+ const terminal = turn.find((event) => event.type === "turn.terminal");
1366
+ if (terminal?.type !== "turn.terminal" || terminal.status !== "failed") {
1367
+ return yield* Effect.die("the unknown model must fail its turn");
1368
+ }
1369
+ assert.include(terminal.failure.message, "not-a-kiro-model");
1370
+ assert.include(terminal.failure.message, "is not available");
1371
+ assert.equal(terminal.failure.code, "-32000");
1372
+ }),
1373
+ });
1374
+ }).pipe(Effect.provide(testLayer), Effect.scoped),
1375
+ );
1376
+});
1377
+
1378
+describe("Kiro permission policy", () => {
1379
+ const policy = (input: {
1380
+ readonly runtimeMode: RuntimeMode;
1381
+ readonly approvalPolicy?: unknown;
1382
+ readonly sandboxPolicy?: unknown;
1383
+ }) =>
1384
+ ProviderAdapterV2RuntimePolicy.make({
1385
+ interactionMode: "default",
1386
+ cwd: "/workspace",
1387
+ ...input,
1388
+ });
1389
+
1390
+ it("keeps Autopilot on only for an unrestricted Full access thread", () => {
1391
+ assert.equal(kiroAutopilotValue(policy({ runtimeMode: "full-access" })), "on");
1392
+ assert.equal(kiroAutopilotValue(policy({ runtimeMode: "approval-required" })), "off");
1393
+ // An explicit override restricts Full access, so Kiro's review stays on.
1394
+ assert.equal(
1395
+ kiroAutopilotValue(policy({ runtimeMode: "full-access", approvalPolicy: "on-request" })),
1396
+ "off",
1397
+ );
1398
+ assert.equal(
1399
+ kiroAutopilotValue(
1400
+ policy({ runtimeMode: "full-access", sandboxPolicy: { type: "readOnly" } }),
1401
+ ),
1402
+ "off",
1403
+ );
1404
+ });
1405
+
1406
+ const writeRequest = (
1407
+ options: EffectAcpSchema.RequestPermissionRequest["options"],
1408
+ ): EffectAcpSchema.RequestPermissionRequest => ({
1409
+ sessionId: "session-1",
1410
+ toolCall: { toolCallId: "call-1", title: "Write File", kind: "edit" },
1411
+ options,
1412
+ });
1413
+
1414
+ it("never lets a policy approval persist Kiro's workspace-wide allow_always", () => {
1415
+ const fullAccess = policy({ runtimeMode: "full-access" });
1416
+ assert.equal(
1417
+ kiroPermissionDisposition(
1418
+ fullAccess,
1419
+ writeRequest([
1420
+ { optionId: "accept", name: "Allow", kind: "allow_once" },
1421
+ { optionId: "always-accept", name: "Always allow", kind: "allow_always" },
1422
+ ]),
1423
+ ),
1424
+ "allow",
1425
+ );
1426
+ // With no one-time choice, approving would save a rule beyond the thread,
1427
+ // so the request goes to the user, whose card can still allow it.
1428
+ const alwaysOnly = writeRequest([
1429
+ { optionId: "always-accept", name: "Always allow", kind: "allow_always" },
1430
+ { optionId: "reject", name: "Deny", kind: "reject_once" },
1431
+ ]);
1432
+ assert.equal(kiroPermissionDisposition(fullAccess, alwaysOnly), "ask");
1433
+ assert.deepEqual(
1434
+ kiroApprovalOptions(alwaysOnly).map((option) => option.decision),
1435
+ ["acceptForSession", "decline", "cancel"],
1436
+ );
1437
+ });
1438
+});
apps/server/src/orchestration-v2/Adapters/KiroAdapterV2.testkit.ts
new
+81
@@ -0,0 +1,81 @@
1
+import * as NodeServices from "@effect/platform-node/NodeServices";
2
+import { ProviderInstanceId } from "@t3tools/contracts";
3
+import { KiroSettings } from "@t3tools/provider-kiro/settings";
4
+import { resolveSelfInvocation } from "@t3tools/shared/nodeRuntime";
5
+import * as Effect from "effect/Effect";
6
+import * as FileSystem from "effect/FileSystem";
7
+import * as Layer from "effect/Layer";
8
+import * as Path from "effect/Path";
9
+import * as Schema from "effect/Schema";
10
+import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
11
+
12
+import * as TestProviderHost from "@t3tools/provider-testing/TestProviderHost";
13
+import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
14
+import * as ProviderAdapterRegistry from "../ProviderAdapterRegistry.ts";
15
+import type { ProviderReplayGate } from "@t3tools/provider-testing/replayGate";
16
+import type { OrchestratorV2ProviderReplayHarness } from "../testkit/ProviderReplayHarness.ts";
17
+import {
18
+ type AcpReplayTranscript,
19
+ AcpReplayTranscriptDecodeError,
20
+ decodeAcpReplayTranscript,
21
+ makeAcpReplayCompletenessAssertion,
22
+ makeAcpReplayRuntime,
23
+} from "./AcpAdapterV2.testkit.ts";
24
+import { KIRO_PROVIDER, makeKiroAdapterV2 } from "@t3tools/provider-kiro/testing";
25
+
26
+const KIRO_REPLAY_SETTINGS = Schema.decodeSync(KiroSettings)({ enabled: true });
27
+
28
+function layerKiroProviderAdapterRegistryReplay(
29
+ transcript: AcpReplayTranscript,
30
+ options: { readonly replayGate?: ProviderReplayGate } = {},
31
+) {
32
+ const layerHost = TestProviderHost.layer().pipe(Layer.provide(NodeServices.layer));
33
+
34
+ return ProviderAdapterRegistry.layerFromAdaptersEffect(
35
+ Effect.gen(function* () {
36
+ const fileSystem = yield* FileSystem.FileSystem;
37
+ const path = yield* Path.Path;
38
+ const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
39
+ const replayDir = yield* fileSystem
40
+ .makeTempDirectory({ prefix: `t3-orchestration-v2-kiro-replay-${transcript.scenario}-` })
41
+ .pipe(Effect.orDie);
42
+ const statusPath = path.join(replayDir, "status.json");
43
+ const scriptPath = yield* path
44
+ .fromFileUrl(new URL("../../../scripts/acp-replay-agent.ts", import.meta.url))
45
+ .pipe(Effect.orDie);
46
+ const adapter = yield* makeKiroAdapterV2({
47
+ instanceId: ProviderInstanceId.make("kiro"),
48
+ settings: KIRO_REPLAY_SETTINGS,
49
+ environment: {},
50
+ selfInvocation: yield* resolveSelfInvocation(),
51
+ makeRuntime: makeAcpReplayRuntime({
52
+ transcript,
53
+ statusPath,
54
+ scriptPath,
55
+ childProcessSpawner,
56
+ fileSystem,
57
+ ...(options.replayGate === undefined ? {} : { replayGate: options.replayGate }),
58
+ }),
59
+ assertComplete: makeAcpReplayCompletenessAssertion(fileSystem, statusPath, transcript),
60
+ });
61
+ return [adapter];
62
+ }),
63
+ ).pipe(
64
+ Layer.provide(Layer.mergeAll(layerHost, NodeServices.layer, IdAllocator.layer)),
65
+ // Held inbound lines must not outlive the scenario and wedge teardown.
66
+ Layer.merge(
67
+ Layer.effectDiscard(
68
+ Effect.addFinalizer(() => Effect.sync(() => options.replayGate?.releaseAll())),
69
+ ),
70
+ ),
71
+ );
72
+}
73
+
74
+export const KiroOrchestratorReplayHarness: OrchestratorV2ProviderReplayHarness<
75
+ AcpReplayTranscript,
76
+ AcpReplayTranscriptDecodeError
77
+> = {
78
+ driver: KIRO_PROVIDER,
79
+ decodeTranscript: (transcript) => decodeAcpReplayTranscript(transcript, KIRO_PROVIDER),
80
+ makeProviderAdapterRegistryLayer: layerKiroProviderAdapterRegistryReplay,
81
+};
apps/server/src/orchestration-v2/Orchestrator.ts
+4
-1
@@ -4918,13 +4918,16 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
4918
const selectionMustApplyNow =
4919
selectionChanged &&
4920
(providerInstanceChanged || selectionTransition?.type !== "apply_on_next_turn");
4921
+ const attachmentsNeedRestart =
4922
+ input.attachments.length > 0 &&
4923
+ session.providerSession.capabilities.turns.activeSteeringAcceptsAttachments === false;
4924
const steeringPolicy = yield* mapDispatchError(input.command)(
4925
commandPolicy.decideSteeringExecution({
4926
commandId: input.command.commandId,
4927
threadId: input.command.threadId,
4928
providerInstanceId: targetRun.providerInstanceId,
4929
capabilities: session.providerSession.capabilities,
4927
- forceRestart: input.forceRestart || selectionMustApplyNow,
4930
+ forceRestart: input.forceRestart || selectionMustApplyNow || attachmentsNeedRestart,
4931
}),
4932
);
4933
apps/server/src/orchestration-v2/SteeringCompletion.integration.test.ts
+88
-20
@@ -1,5 +1,6 @@
1
import { assert, it } from "@effect/vitest";
2
import {
3
+ ChatAttachmentId,
4
CommandId,
5
MessageId,
6
EventId,
@@ -449,6 +450,7 @@ const nextTurnSelectionHarness = Effect.fn("nextTurnSelectionHarness")(function*
450
canRestart = false,
451
canSteer = true,
452
interruptTurn: Effect.Effect<void> = Effect.void,
453
+ steeringAcceptsAttachments = true,
454
) {
455
const cwd = yield* checkpointWorkspace(name);
456
const events = yield* Queue.unbounded<ProviderAdapter.ProviderAdapterV2Event>();
@@ -461,6 +463,7 @@ const nextTurnSelectionHarness = Effect.fn("nextTurnSelectionHarness")(function*
463
...CodexProviderCapabilitiesV2.turns,
464
supportsActiveSteering: canSteer,
465
supportsSteeringByInterruptRestart: canRestart,
466
+ activeSteeringAcceptsAttachments: steeringAcceptsAttachments,
467
},
468
};
469
const adapter: ProviderAdapter.ProviderAdapterV2["Service"] = {
@@ -471,28 +474,33 @@ const nextTurnSelectionHarness = Effect.fn("nextTurnSelectionHarness")(function*
474
openSession: (input) =>
475
Effect.gen(function* () {
476
const now = yield* DateTime.now;
477
+ const turnUpdated = (
478
+ turn: ProviderAdapter.ProviderAdapterV2TurnInput,
479
+ status: "running" | "interrupted",
480
+ ) =>
481
+ Queue.offer(events, {
482
+ type: "provider_turn.updated",
483
+ driver,
484
+ providerTurn: {
485
+ id: ProviderTurnId.make(`provider-turn:${turn.attemptId}`),
486
+ providerThreadId: turn.providerThread.id,
487
+ nodeId: turn.rootNodeId,
488
+ runAttemptId: turn.attemptId,
489
+ nativeTurnRef: {
490
+ driver,
491
+ nativeId: `native:${turn.attemptId}`,
492
+ strength: "strong",
493
+ },
494
+ ordinal: turn.providerTurnOrdinal,
495
+ status,
496
+ startedAt: now,
497
+ completedAt: status === "running" ? null : now,
498
+ },
499
+ });
500
const startTurn = (turn: ProviderAdapter.ProviderAdapterV2TurnInput) =>
501
Effect.gen(function* () {
502
started.push(turn);
477
- yield* Queue.offer(events, {
478
- type: "provider_turn.updated",
479
- driver,
480
- providerTurn: {
481
- id: ProviderTurnId.make(`provider-turn:${turn.attemptId}`),
482
- providerThreadId: turn.providerThread.id,
483
- nodeId: turn.rootNodeId,
484
- runAttemptId: turn.attemptId,
485
- nativeTurnRef: {
486
- driver,
487
- nativeId: `native:${turn.attemptId}`,
488
- strength: "strong",
489
- },
490
- ordinal: turn.providerTurnOrdinal,
491
- status: "running",
492
- startedAt: now,
493
- completedAt: null,
494
- },
495
- });
503
+ yield* turnUpdated(turn, "running");
504
});
505
return {
506
instanceId,
@@ -539,7 +547,19 @@ const nextTurnSelectionHarness = Effect.fn("nextTurnSelectionHarness")(function*
547
interruptTurn: ({ providerTurnId }) =>
548
Effect.sync(() => {
549
interrupted.push(providerTurnId);
542
- }).pipe(Effect.andThen(interruptTurn)),
550
+ }).pipe(
551
+ Effect.andThen(interruptTurn),
552
+ Effect.andThen(
553
+ Effect.forEach(
554
+ started.filter(
555
+ (turn) =>
556
+ ProviderTurnId.make(`provider-turn:${turn.attemptId}`) === providerTurnId,
557
+ ),
558
+ (turn) => turnUpdated(turn, "interrupted"),
559
+ { discard: true },
560
+ ),
561
+ ),
562
+ ),
563
respondToRuntimeRequest: () => Effect.void,
564
readThreadSnapshot: () => Effect.die("unused"),
565
rollbackThread: () => Effect.die("unused"),
@@ -878,6 +898,54 @@ it.effect(
898
),
899
);
900
901
+it.effect("restarts the turn for an image when native steering takes text only", () =>
902
+ Effect.scoped(
903
+ Effect.gen(function* () {
904
+ const { started, steered, layer, startFirstTurn } = yield* nextTurnSelectionHarness(
905
+ "steering-text-only-attachment",
906
+ true,
907
+ true,
908
+ Effect.void,
909
+ false,
910
+ );
911
+ yield* Effect.gen(function* () {
912
+ const orchestrator = yield* Orchestrator.OrchestratorV2;
913
+ const worker = yield* EffectWorker.OrchestrationEffectWorkerV2;
914
+ const threadId = yield* startFirstTurn;
915
+ yield* orchestrator.dispatch({
916
+ type: "message.dispatch",
917
+ commandId: CommandId.make("steer-image"),
918
+ threadId,
919
+ messageId: MessageId.make("message:steer-image"),
920
+ text: "look at this",
921
+ attachments: [
922
+ {
923
+ type: "image",
924
+ id: ChatAttachmentId.make("steer-image"),
925
+ name: "screenshot.png",
926
+ mimeType: "image/png",
927
+ sizeBytes: 4,
928
+ },
929
+ ],
930
+ modelSelection: runSelection,
931
+ dispatchMode: { type: "steer_active", targetRunId: started[0]!.runId },
932
+ createdBy: "user",
933
+ creationSource: "web",
934
+ });
935
+ yield* worker.drain();
936
+ assert.deepEqual(steered, []);
937
+ assert.deepEqual(
938
+ started.map((turn) => [turn.message.text, turn.message.attachments.length]),
939
+ [
940
+ ["first", 0],
941
+ ["look at this", 1],
942
+ ],
943
+ );
944
+ }).pipe(Effect.provide(layer));
945
+ }),
946
+ ),
947
+);
948
+
949
it.effect("starts a steer that missed the turn on the saved next-turn selection", () =>
950
Effect.scoped(
951
Effect.gen(function* () {
apps/server/src/orchestration-v2/testkit/KiroReplayFixtures.integration.test.ts
new
+10
@@ -0,0 +1,10 @@
1
+import { describe } from "@effect/vitest";
2
+
3
+import { KiroOrchestratorReplayHarness } from "../Adapters/KiroAdapterV2.testkit.ts";
4
+import { itRunsReplayFixtures, runReplayFixture } from "./ProviderReplayFixtures.ts";
5
+
6
+describe("Kiro replay fixtures", () => {
7
+ itRunsReplayFixtures("kiro", (input) =>
8
+ runReplayFixture({ ...input, harness: KiroOrchestratorReplayHarness }),
9
+ );
10
+});
apps/server/src/orchestration-v2/testkit/OrchestratorScenario.ts
+26
-7
@@ -75,6 +75,10 @@ export type OrchestratorV2ScenarioStep =
75
readonly threadId: ThreadId;
76
readonly runId: OrchestrationV2Run["id"];
77
readonly itemType: OrchestrationV2TurnItem["type"];
78
+ /** Wait until the item also has this status. */
79
+ readonly itemStatus?: OrchestrationV2TurnItem["status"];
80
+ /** Look in the threads of the run's provider subagents instead of the run itself. */
81
+ readonly inSubagentThreads?: boolean;
82
}
83
| {
84
readonly type: "release_replay_gate_after_waiting";
@@ -446,6 +450,8 @@ export function runOrchestratorV2Scenario(
450
threadId: ThreadId,
451
runId: OrchestrationV2Run["id"],
452
itemType: OrchestrationV2TurnItem["type"],
453
+ itemStatus: OrchestrationV2TurnItem["status"] | undefined,
454
+ inSubagentThreads: boolean,
455
attemptsRemaining = SCENARIO_WAIT_ATTEMPTS,
456
deadlineAt = scenarioWaitDeadline(),
457
): Effect.Effect<
@@ -455,16 +461,21 @@ export function runOrchestratorV2Scenario(
461
> =>
462
Effect.gen(function* () {
463
const projection = yield* orchestrator.getThreadProjection(threadId);
458
- const hasTurnItem = projection.turnItems.some(
459
- (item) => item.runId === runId && item.type === itemType,
460
- );
461
- if (hasTurnItem) {
462
- return;
464
+ const matches = (item: OrchestrationV2TurnItem) =>
465
+ item.type === itemType && (itemStatus === undefined || item.status === itemStatus);
466
+ if (!inSubagentThreads) {
467
+ if (projection.turnItems.some((item) => item.runId === runId && matches(item))) return;
468
+ } else {
469
+ for (const subagent of projection.subagents) {
470
+ if (subagent.runId !== runId || subagent.childThreadId === null) continue;
471
+ const child = yield* orchestrator.getThreadProjection(subagent.childThreadId);
472
+ if (child.turnItems.some(matches)) return;
473
+ }
474
}
475
if (scenarioWaitExhausted(attemptsRemaining, deadlineAt)) {
476
return yield* new OrchestratorV2ScenarioStepError({
477
scenario: scenario.name,
467
- step: `await_run_turn_item:${runId}:${itemType}`,
478
+ step: `await_run_turn_item:${runId}:${itemType}${itemStatus === undefined ? "" : `:${itemStatus}`}`,
479
});
480
}
481
yield* yieldToRuntime;
@@ -472,6 +483,8 @@ export function runOrchestratorV2Scenario(
483
threadId,
484
runId,
485
itemType,
486
+ itemStatus,
487
+ inSubagentThreads,
488
attemptsRemaining - 1,
489
deadlineAt,
490
);
@@ -661,7 +674,13 @@ export function runOrchestratorV2Scenario(
674
yield* finishHeldRun(step);
675
break;
676
case "await_run_turn_item":
664
- yield* waitForRunTurnItem(step.threadId, step.runId, step.itemType);
677
+ yield* waitForRunTurnItem(
678
+ step.threadId,
679
+ step.runId,
680
+ step.itemType,
681
+ step.itemStatus,
682
+ step.inSubagentThreads === true,
683
+ );
684
break;
685
case "release_replay_gate_after_waiting":
686
yield* releaseReplayGateAfterWaiting(step.label, step.threadId, step.runId);
apps/server/src/orchestration-v2/testkit/ProviderReplayFixtures.ts
+9
-1
@@ -32,6 +32,7 @@ const DRIVERS_WITH_REPLAY_FIXTURE_FILES = new Set([
32
"cursor",
33
"fx",
34
"grok",
35
+ "kiro",
36
"muse",
37
"opencode",
38
"pi",
@@ -173,7 +174,14 @@ const runFixtureProvider = Effect.fn("runOrchestratorReplayFixture")(function* <
174
const projection = result.projections.get(projectionThreadId);
175
assert.isDefined(projection);
176
const latestRun = projection.runs.at(-1);
176
- assert.deepEqual(latestRun?.modelSelection, input.driver.modelSelection);
177
+ // A `set_model` step moves later runs to another model of the same instance.
178
+ const finalModel = fixtureInput.steps.findLast((step) => step.type === "set_model");
179
+ assert.deepEqual(
180
+ latestRun?.modelSelection,
181
+ finalModel?.type === "set_model"
182
+ ? { ...input.driver.modelSelection, model: finalModel.model }
183
+ : input.driver.modelSelection,
184
+ );
185
if (projection.runs.some((run) => run.status === "completed")) {
186
const threadStartCheckpoint = projection.checkpoints.find(
187
(checkpoint) => checkpoint.ordinalWithinScope === 0 && checkpoint.appRunOrdinal === null,
apps/server/src/orchestration-v2/testkit/ReplayRuntimeInstructions.ts
+11
-6
@@ -11,11 +11,13 @@ export function materializeReplayTranscriptRuntimeInstructions(
11
? "Cursor"
12
: runtime.driver === "grok"
13
? "Grok"
14
- : runtime.driver === "acpRegistry"
15
- ? "acpRegistry"
16
- : runtime.driver === "fx"
17
- ? "fx"
18
- : undefined;
14
+ : runtime.driver === "kiro"
15
+ ? "Kiro"
16
+ : runtime.driver === "acpRegistry"
17
+ ? "acpRegistry"
18
+ : runtime.driver === "fx"
19
+ ? "fx"
20
+ : undefined;
21
if (harness === undefined) return transcript;
22
const instructions = buildRuntimeInstructions({ harness, model: runtime.model });
23
@@ -53,7 +55,10 @@ export function materializeReplayTranscriptRuntimeInstructions(
55
"type" in lastPart &&
56
lastPart.type === "text" &&
57
"text" in lastPart &&
56
- lastPart.text === instructions
58
+ typeof lastPart.text === "string" &&
59
+ // A recording that switched models mid-thread already carries the
60
+ // instructions for the model each prompt ran on.
61
+ (lastPart.text === instructions || lastPart.text.startsWith("<runtime_info>"))
62
) {
63
return entry;
64
}
apps/server/src/orchestration-v2/testkit/fixtures/index.ts
+223
-2
@@ -37,6 +37,26 @@ import { assertClaudeMcpToolPresentationOutput } from "./claude_mcp_tool_present
37
import { claudeResultIsErrorInput } from "./claude_result_is_error/input.ts";
38
import { assertClaudeResultIsErrorOutput } from "./claude_result_is_error/output.ts";
39
import { grokAutoBlockedCommandInput } from "./grok_auto_blocked_command/input.ts";
40
+import { kiroCompactionInput } from "./kiro_compaction/input.ts";
41
+import { kiroForkFromTurnInput } from "./kiro_fork_from_turn/input.ts";
42
+import { assertKiroForkFromTurnOutput } from "./kiro_fork_from_turn/output.ts";
43
+import { kiroMessageSteeringInput } from "./kiro_message_steering/input.ts";
44
+import { assertKiroMessageSteeringOutput } from "./kiro_message_steering/output.ts";
45
+import { assertKiroCompactionOutput } from "./kiro_compaction/output.ts";
46
+import { KIRO_EFFORT_LEVEL, KIRO_EFFORT_MODEL, kiroEffortInput } from "./kiro_effort/input.ts";
47
+import { assertKiroEffortOutput } from "./kiro_effort/output.ts";
48
+import { kiroModelSwitchInput } from "./kiro_model_switch/input.ts";
49
+import { assertKiroModelSwitchOutput } from "./kiro_model_switch/output.ts";
50
+import {
51
+ kiroFullAccessWriteInput,
52
+ kiroSupervisedWriteInput,
53
+} from "./kiro_permission_modes/input.ts";
54
+import {
55
+ assertKiroFullAccessWriteOutput,
56
+ assertKiroSupervisedWriteOutput,
57
+} from "./kiro_permission_modes/output.ts";
58
+import { kiroSubagentInterruptInput } from "./kiro_subagent_interrupt/input.ts";
59
+import { assertKiroSubagentInterruptOutput } from "./kiro_subagent_interrupt/output.ts";
60
import { assertGrokAutoBlockedCommandOutput } from "./grok_auto_blocked_command/output.ts";
61
import { grokBackgroundBashInput } from "./grok_background_bash/input.ts";
62
import { assertGrokBackgroundBashOutput } from "./grok_background_bash/output.ts";
@@ -70,6 +90,7 @@ import { assertMuseTurnInterruptOutput } from "./turn_interrupt/muse_output.ts";
90
import { piCompactionInput } from "./pi_compaction/input.ts";
91
import { assertPiCompactionOutput } from "./pi_compaction/output.ts";
92
import { providerThreadResumeInput } from "./provider_thread_resume/input.ts";
93
+import { assertKiroProviderThreadResumeOutput } from "./provider_thread_resume/kiro_output.ts";
94
import { assertPiProviderThreadResumeOutput } from "./provider_thread_resume/pi_output.ts";
95
import { assertMultiTurnClaudeOutput } from "./multi_turn/claude_output.ts";
96
import { assertMultiTurnOutput } from "./multi_turn/codex_output.ts";
@@ -136,6 +157,7 @@ import { assertSubagentOutput } from "./subagent/codex_output.ts";
157
import { assertClaudeSubagentOutput } from "./subagent/claude_output.ts";
158
import { subagentInput } from "./subagent/input.ts";
159
import { assertCursorSubagentOutput } from "./subagent/cursor_output.ts";
160
+import { assertKiroSubagentOutput } from "./subagent/kiro_output.ts";
161
import { assertSubagentContinueOutput } from "./subagent_continue/codex_output.ts";
162
import { subagentContinueInput } from "./subagent_continue/input.ts";
163
import { assertSubagentV2Output } from "./subagent_v2/codex_output.ts";
@@ -174,9 +196,13 @@ import { assertToolCallReadOnlyCursorOutput } from "./tool_call_read_only/cursor
196
import { toolCallReadOnlyInput } from "./tool_call_read_only/input.ts";
197
import {
198
assertToolCallReadOnlyOnRequestGrokOutput,
199
+ assertToolCallReadOnlyOnRequestKiroOutput,
200
assertToolCallReadOnlyOnRequestOutput,
201
} from "./tool_call_read_only_on_request/output.ts";
179
-import { toolCallReadOnlyOnRequestInput } from "./tool_call_read_only_on_request/input.ts";
202
+import {
203
+ toolCallReadOnlyOnRequestInput,
204
+ toolCallReadOnlyOnRequestKiroInput,
205
+} from "./tool_call_read_only_on_request/input.ts";
206
import { assertToolCallReadOnlyOnRequestFxOutput } from "./tool_call_read_only_on_request/fx_output.ts";
207
import {
208
stopBackgroundWorkAfterFailedTurnInput,
@@ -201,7 +227,11 @@ import { assertFxSubagentOutput } from "./fx_subagent/fx_output.ts";
227
import { assertTurnInterruptMidToolClaudeOutput } from "./turn_interrupt_mid_tool/claude_output.ts";
228
import { assertTurnInterruptMidToolCodexOutput } from "./turn_interrupt_mid_tool/codex_output.ts";
229
import { assertTurnInterruptMidToolCursorOutput } from "./turn_interrupt_mid_tool/cursor_output.ts";
204
-import { turnInterruptMidToolInput } from "./turn_interrupt_mid_tool/input.ts";
230
+import {
231
+ turnInterruptMidToolInput,
232
+ turnInterruptMidToolKiroInput,
233
+} from "./turn_interrupt_mid_tool/input.ts";
234
+import { assertTurnInterruptMidToolKiroOutput } from "./turn_interrupt_mid_tool/kiro_output.ts";
235
import { assertTurnInterruptMidToolPiOutput } from "./turn_interrupt_mid_tool/pi_output.ts";
236
import { assertTurnInterruptRestartClaudeOutput } from "./turn_interrupt_restart/claude_output.ts";
237
import { turnInterruptRestartInput } from "./turn_interrupt_restart/input.ts";
@@ -215,6 +245,7 @@ import {
245
CURSOR_MODEL_SELECTION,
246
FX_MODEL_SELECTION,
247
GROK_MODEL_SELECTION,
248
+ KIRO_MODEL_SELECTION,
249
MUSE_MODEL_SELECTION,
250
OPENCODE_MODEL_SELECTION,
251
OPENCODE2_MODEL_SELECTION,
@@ -505,6 +536,144 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
536
},
537
],
538
},
539
+ {
540
+ name: "kiro_tool_call_read_only_on_request",
541
+ buildInput: toolCallReadOnlyOnRequestKiroInput,
542
+ providers: [
543
+ {
544
+ driver: ProviderDriverKind.make("kiro"),
545
+ transcriptFile: new URL(
546
+ "./tool_call_read_only_on_request/kiro_transcript.ndjson",
547
+ import.meta.url,
548
+ ),
549
+ modelSelection: KIRO_MODEL_SELECTION,
550
+ runtimePolicyOverride: READ_ONLY_ON_REQUEST_POLICY,
551
+ assertOutput: assertToolCallReadOnlyOnRequestKiroOutput,
552
+ },
553
+ ],
554
+ },
555
+ {
556
+ name: "kiro_message_steering",
557
+ buildInput: kiroMessageSteeringInput,
558
+ providers: [
559
+ {
560
+ driver: ProviderDriverKind.make("kiro"),
561
+ transcriptFile: new URL("./kiro_message_steering/kiro_transcript.ndjson", import.meta.url),
562
+ modelSelection: KIRO_MODEL_SELECTION,
563
+ assertOutput: assertKiroMessageSteeringOutput,
564
+ },
565
+ ],
566
+ },
567
+ {
568
+ name: "kiro_fork_from_turn",
569
+ buildInput: kiroForkFromTurnInput,
570
+ providers: [
571
+ {
572
+ driver: ProviderDriverKind.make("kiro"),
573
+ transcriptFile: new URL("./kiro_fork_from_turn/kiro_transcript.ndjson", import.meta.url),
574
+ modelSelection: KIRO_MODEL_SELECTION,
575
+ assertOutput: assertKiroForkFromTurnOutput,
576
+ },
577
+ ],
578
+ },
579
+ {
580
+ name: "kiro_compaction",
581
+ buildInput: kiroCompactionInput,
582
+ providers: [
583
+ {
584
+ driver: ProviderDriverKind.make("kiro"),
585
+ transcriptFile: new URL("./kiro_compaction/kiro_transcript.ndjson", import.meta.url),
586
+ modelSelection: KIRO_MODEL_SELECTION,
587
+ assertOutput: assertKiroCompactionOutput,
588
+ },
589
+ ],
590
+ },
591
+ {
592
+ name: "kiro_model_switch",
593
+ buildInput: kiroModelSwitchInput,
594
+ providers: [
595
+ {
596
+ driver: ProviderDriverKind.make("kiro"),
597
+ transcriptFile: new URL("./kiro_model_switch/kiro_transcript.ndjson", import.meta.url),
598
+ modelSelection: KIRO_MODEL_SELECTION,
599
+ assertOutput: assertKiroModelSwitchOutput,
600
+ },
601
+ ],
602
+ },
603
+ {
604
+ name: "kiro_effort",
605
+ buildInput: kiroEffortInput,
606
+ providers: [
607
+ {
608
+ driver: ProviderDriverKind.make("kiro"),
609
+ transcriptFile: new URL("./kiro_effort/kiro_transcript.ndjson", import.meta.url),
610
+ modelSelection: {
611
+ ...KIRO_MODEL_SELECTION,
612
+ model: KIRO_EFFORT_MODEL,
613
+ options: [{ id: "reasoningEffort", value: KIRO_EFFORT_LEVEL }],
614
+ },
615
+ assertOutput: assertKiroEffortOutput,
616
+ },
617
+ ],
618
+ },
619
+ {
620
+ name: "kiro_cloud_config",
621
+ buildInput: turnInterruptInput,
622
+ providers: [
623
+ {
624
+ driver: ProviderDriverKind.make("kiro"),
625
+ transcriptFile: new URL("./kiro_cloud_config/kiro_transcript.ndjson", import.meta.url),
626
+ modelSelection: KIRO_MODEL_SELECTION,
627
+ runtimePolicyOverride: WORKSPACE_NEVER_POLICY,
628
+ assertOutput: assertTurnInterruptOutput,
629
+ },
630
+ ],
631
+ },
632
+ {
633
+ name: "kiro_supervised_write",
634
+ buildInput: kiroSupervisedWriteInput,
635
+ providers: [
636
+ {
637
+ driver: ProviderDriverKind.make("kiro"),
638
+ transcriptFile: new URL(
639
+ "./kiro_permission_modes/kiro_supervised_transcript.ndjson",
640
+ import.meta.url,
641
+ ),
642
+ modelSelection: KIRO_MODEL_SELECTION,
643
+ assertOutput: assertKiroSupervisedWriteOutput,
644
+ },
645
+ ],
646
+ },
647
+ {
648
+ name: "kiro_full_access_write",
649
+ buildInput: kiroFullAccessWriteInput,
650
+ providers: [
651
+ {
652
+ driver: ProviderDriverKind.make("kiro"),
653
+ transcriptFile: new URL(
654
+ "./kiro_permission_modes/kiro_full_access_transcript.ndjson",
655
+ import.meta.url,
656
+ ),
657
+ modelSelection: KIRO_MODEL_SELECTION,
658
+ assertOutput: assertKiroFullAccessWriteOutput,
659
+ },
660
+ ],
661
+ },
662
+ {
663
+ name: "kiro_subagent_interrupt",
664
+ buildInput: kiroSubagentInterruptInput,
665
+ providers: [
666
+ {
667
+ driver: ProviderDriverKind.make("kiro"),
668
+ transcriptFile: new URL(
669
+ "./kiro_subagent_interrupt/kiro_transcript.ndjson",
670
+ import.meta.url,
671
+ ),
672
+ modelSelection: KIRO_MODEL_SELECTION,
673
+ assertOutput: assertKiroSubagentInterruptOutput,
674
+ },
675
+ ],
676
+ },
677
{
678
name: "grok_background_bash",
679
buildInput: grokBackgroundBashInput,
@@ -653,6 +822,12 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
822
modelSelection: FX_MODEL_SELECTION,
823
assertOutput: assertSimpleOutput,
824
},
825
+ {
826
+ driver: ProviderDriverKind.make("kiro"),
827
+ transcriptFile: new URL("./simple/kiro_transcript.ndjson", import.meta.url),
828
+ modelSelection: KIRO_MODEL_SELECTION,
829
+ assertOutput: assertSimpleOutput,
830
+ },
831
{
832
driver: ProviderDriverKind.make("acpRegistry"),
833
transcriptFile: new URL("./simple/registry_transcript.ndjson", import.meta.url),
@@ -888,6 +1063,12 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1063
runtimePolicyOverride: READ_ONLY_NEVER_POLICY,
1064
assertOutput: assertCursorSubagentOutput,
1065
},
1066
+ {
1067
+ driver: ProviderDriverKind.make("kiro"),
1068
+ transcriptFile: new URL("./subagent/kiro_transcript.ndjson", import.meta.url),
1069
+ modelSelection: KIRO_MODEL_SELECTION,
1070
+ assertOutput: assertKiroSubagentOutput,
1071
+ },
1072
],
1073
},
1074
{
@@ -1284,6 +1465,12 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1465
modelSelection: FX_MODEL_SELECTION,
1466
assertOutput: assertMultiTurnOutput,
1467
},
1468
+ {
1469
+ driver: ProviderDriverKind.make("kiro"),
1470
+ transcriptFile: new URL("./multi_turn/kiro_transcript.ndjson", import.meta.url),
1471
+ modelSelection: KIRO_MODEL_SELECTION,
1472
+ assertOutput: assertMultiTurnOutput,
1473
+ },
1474
{
1475
driver: ProviderDriverKind.make("acpRegistry"),
1476
transcriptFile: new URL("./multi_turn/registry_transcript.ndjson", import.meta.url),
@@ -1379,6 +1566,12 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1566
modelSelection: PI_MODEL_SELECTION,
1567
assertOutput: assertPiProviderThreadResumeOutput,
1568
},
1569
+ {
1570
+ driver: ProviderDriverKind.make("kiro"),
1571
+ transcriptFile: new URL("./provider_thread_resume/kiro_transcript.ndjson", import.meta.url),
1572
+ modelSelection: KIRO_MODEL_SELECTION,
1573
+ assertOutput: assertKiroProviderThreadResumeOutput,
1574
+ },
1575
],
1576
},
1577
{
@@ -1441,6 +1634,12 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1634
modelSelection: FX_MODEL_SELECTION,
1635
assertOutput: assertQueuedTurnOutput,
1636
},
1637
+ {
1638
+ driver: ProviderDriverKind.make("kiro"),
1639
+ transcriptFile: new URL("./queued_turn/kiro_transcript.ndjson", import.meta.url),
1640
+ modelSelection: KIRO_MODEL_SELECTION,
1641
+ assertOutput: assertQueuedTurnOutput,
1642
+ },
1643
{
1644
driver: ProviderDriverKind.make("acpRegistry"),
1645
transcriptFile: new URL("./queued_turn/registry_transcript.ndjson", import.meta.url),
@@ -1626,6 +1825,13 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1825
runtimePolicyOverride: WORKSPACE_NEVER_POLICY,
1826
assertOutput: assertTurnInterruptOutput,
1827
},
1828
+ {
1829
+ driver: ProviderDriverKind.make("kiro"),
1830
+ transcriptFile: new URL("./turn_interrupt/kiro_transcript.ndjson", import.meta.url),
1831
+ modelSelection: KIRO_MODEL_SELECTION,
1832
+ runtimePolicyOverride: WORKSPACE_NEVER_POLICY,
1833
+ assertOutput: assertTurnInterruptOutput,
1834
+ },
1835
{
1836
driver: ProviderDriverKind.make("acpRegistry"),
1837
transcriptFile: new URL("./turn_interrupt/registry_transcript.ndjson", import.meta.url),
@@ -1740,6 +1946,21 @@ export const ORCHESTRATOR_REPLAY_FIXTURES: ReadonlyArray<OrchestratorReplayFixtu
1946
},
1947
],
1948
},
1949
+ {
1950
+ name: "kiro_turn_interrupt_mid_tool",
1951
+ buildInput: turnInterruptMidToolKiroInput,
1952
+ providers: [
1953
+ {
1954
+ driver: ProviderDriverKind.make("kiro"),
1955
+ transcriptFile: new URL(
1956
+ "./turn_interrupt_mid_tool/kiro_transcript.ndjson",
1957
+ import.meta.url,
1958
+ ),
1959
+ modelSelection: KIRO_MODEL_SELECTION,
1960
+ assertOutput: assertTurnInterruptMidToolKiroOutput,
1961
+ },
1962
+ ],
1963
+ },
1964
{
1965
name: "turn_interrupt_restart",
1966
buildInput: turnInterruptRestartInput,
apps/server/src/orchestration-v2/testkit/fixtures/kiro_cloud_config/kiro_transcript.ndjson
new
+33
@@ -0,0 +1,33 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_cloud_config","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13,"editedFrames":"Copied from turn_interrupt/kiro_transcript.ndjson. Added by hand: the background `fetch_cloud_config` tool call and its completion, as @hstern recorded them from kiro-cli 2.31.0 with an Identity Center login, in an order that failed there: the call before `session/prompt`, its completion after the `user_message_id_assigned` echo. The tool call id is invented; the reported frames omitted it."}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:48:53.396Z","lastModifiedAt":"2026-10-19T20:48:53.396Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4303,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"autopilot","value":"off"}}}
14
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
15
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
16
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_cloudconfig00000000000001","title":"Fetching your cloud config","kind":"other","status":"in_progress","_meta":{"kiro":{"toolId":"fetch_cloud_config"}}}}}}
17
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nDo not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.\n</user_request>"}]}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_cloudconfig00000000000001","status":"completed","rawOutput":{"kind":"upToDate"}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
23
+{"type":"expect_outbound","label":"notification:session/cancel","frame":{"kind":"notification","method":"session/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
24
+{"type":"emit_inbound","label":"notification:_kiro/hooks/cancel","frame":{"kind":"notification","method":"_kiro/hooks/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[],"elapsedTime":23,"status":"aborted","kind":"turn_completion"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"cancelled"},"kind":"turn_end","stopReason":"cancelled","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
28
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"cancelled"}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":484,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"I can't discuss that","_meta":{"kiro":{"focus":{"title":"I can't discuss that"},"kind":"focus_update","title":"I can't discuss that"}}}}}}
31
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
32
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
33
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_compaction/input.ts
new
+19
@@ -0,0 +1,19 @@
1
+import type { OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+export const KIRO_COMPACTION_MARKER = "compaction-marker-7K2V";
4
+
5
+export function kiroCompactionInput(): OrchestratorFixtureInput {
6
+ return {
7
+ steps: [
8
+ {
9
+ type: "message",
10
+ text: `Remember the opaque marker ${KIRO_COMPACTION_MARKER} for later. Respond with exactly: compaction marker stored`,
11
+ },
12
+ { type: "message", text: "/compact" },
13
+ {
14
+ type: "message",
15
+ text: "Return the opaque marker I asked you to remember. Respond with only the marker.",
16
+ },
17
+ ],
18
+ };
19
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_compaction/kiro_transcript.ndjson
new
+52
@@ -0,0 +1,52 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_compaction","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":15}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-28T00:24:29.974Z","lastModifiedAt":"2026-10-28T00:24:29.974Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4304,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRemember the opaque marker compaction-marker-7K2V for later. Respond with exactly: compaction marker stored\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Store Compaction Marker","_meta":{"kiro":{"focus":{"title":"Store Compaction Marker"},"kind":"focus_update","title":"Store Compaction Marker"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"comp"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"action marker stored"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.305999755859375},"kind":"context_usage","usagePercentage":9.305999755859375}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.305999755859375},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.305999755859375}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023758433101160863}],"elapsedTime":1078,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
25
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.305999755859375},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":6,"percent":0.1},"yourPrompts":{"tokens":445,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.305999755859375}}}}}}
27
+{"type":"expect_outbound","label":"request:_kiro/session/compact","frame":{"kind":"request","method":"_kiro/session/compact","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"summarization":{"status":"success","summary":{"conversationSummary":"## Overview\nThis was a minimal interaction where the user requested that I store an opaque marker \"compaction-marker-7K2V\" for later reference and respond with a specific message. The task has been completed successfully.\n\n## Goal\nStore the marker compaction-marker-7K2V and respond with exactly: \"compaction marker stored\"\n\n## User Intent\nUser: \"Remember the opaque marker compaction-marker-7K2V for later. Respond with exactly: compaction marker stored\"\n\n## Decisions\nAcknowledged the marker storage request and provided the exact response text requested. No alternatives were considered as the instruction was explicit and straightforward.\n\n## Technical\n- Marker: compaction-marker-7K2V\n- Required response: \"compaction marker stored\"\n- No files, commands, or errors involved\n\n## Status\nDone: Marker stored and confirmation response provided\nNow: (none)\nBlocked: (none)\n\n## Next\n(none)\n\n## Appendix - Conversation Outline\n1. user: Remember marker compaction-marker-7K2V, respond with exactly \"compaction marker stored\"\n2. agent: Responded with \"compaction marker stored\"","truncated":false}},"kind":"summarization_completed","conversationSummary":"## Overview\nThis was a minimal interaction where the user requested that I store an opaque marker \"compaction-marker-7K2V\" for later reference and respond with a specific message. The task has been completed successfully.\n\n## Goal\nStore the marker compaction-marker-7K2V and respond with exactly: \"compaction marker stored\"\n\n## User Intent\nUser: \"Remember the opaque marker compaction-marker-7K2V for later. Respond with exactly: compaction marker stored\"\n\n## Decisions\nAcknowledged the marker storage request and provided the exact response text requested. No alternatives were considered as the instruction was explicit and straightforward.\n\n## Technical\n- Marker: compaction-marker-7K2V\n- Required response: \"compaction marker stored\"\n- No files, commands, or errors involved\n\n## Status\nDone: Marker stored and confirmation response provided\nNow: (none)\nBlocked: (none)\n\n## Next\n(none)\n\n## Appendix - Conversation Outline\n1. user: Remember marker compaction-marker-7K2V, respond with exactly \"compaction marker stored\"\n2. agent: Responded with \"compaction marker stored\"","truncated":false}}}}}}
29
+{"type":"emit_inbound","label":"response:_kiro/session/compact","frame":{"kind":"response","method":"_kiro/session/compact","result":{"success":true}}}
30
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nReturn the opaque marker I asked you to remember. Respond with only the marker.\n</user_request>"}]}}}
31
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000005","kind":"user_message_id_assigned"}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000006-turn-start"}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"comp"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"action"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"-"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"marker"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"-"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"7"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"K"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
41
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"2"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"V"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
43
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.460999488830566},"kind":"context_usage","usagePercentage":9.460999488830566}}}}}}
44
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.460999488830566},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.460999488830566}}}}}}
45
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.01848320822553897}],"elapsedTime":1068,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000008"]}}}}}}
46
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000006-turn-end"}}}}}}
47
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
48
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
49
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.460999488830566},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":6,"percent":0.1},"yourPrompts":{"tokens":438,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.460999488830566}}}}}}
50
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
51
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
52
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_compaction/output.ts
new
+56
@@ -0,0 +1,56 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ field,
9
+ projectionFor,
10
+} from "../shared.ts";
11
+import { KIRO_COMPACTION_MARKER } from "./input.ts";
12
+
13
+function promptText(frame: unknown): string {
14
+ const prompt = field(field(frame, "params"), "prompt");
15
+ return Array.isArray(prompt) ? prompt.map((block) => String(field(block, "text"))).join("") : "";
16
+}
17
+
18
+export function assertKiroCompactionOutput(
19
+ result: OrchestratorV2ScenarioResult,
20
+ transcript: ProviderReplayTranscript,
21
+) {
22
+ const outbound = transcript.entries.flatMap((entry) =>
23
+ entry.type === "expect_outbound" ? [entry.frame] : [],
24
+ );
25
+ const prompts = outbound.filter((frame) => field(frame, "method") === "session/prompt");
26
+ assert.lengthOf(prompts, 2, "/compact must not be sent as a prompt");
27
+ assert.lengthOf(
28
+ outbound.filter((frame) => field(frame, "method") === "_kiro/session/compact"),
29
+ 1,
30
+ );
31
+ // Compaction drops T3's instructions from Kiro's context, so the next prompt carries them again.
32
+ assert.deepEqual(
33
+ prompts.map((frame) => promptText(frame).startsWith("<t3_code_instructions>")),
34
+ [true, true],
35
+ );
36
+
37
+ assertBaseProjection({
38
+ result,
39
+ transcript,
40
+ runCount: 3,
41
+ runStatuses: ["completed", "completed", "completed"],
42
+ });
43
+ const projection = projectionFor(result, transcript.scenario);
44
+ assertSemanticProjectionIntegrity(projection);
45
+ assert.deepEqual(
46
+ projection.turnItems
47
+ .filter((item) => item.type === "compaction")
48
+ .map((item) => [item.runId, item.status, item.title]),
49
+ [[projection.runs[1]?.id ?? null, "completed", "Context compacted"]],
50
+ );
51
+ const recall = projection.turnItems
52
+ .filter((item) => item.type === "assistant_message" && item.runId === projection.runs[2]?.id)
53
+ .map((item) => (item.type === "assistant_message" ? item.text : ""))
54
+ .join("");
55
+ assert.include(recall, KIRO_COMPACTION_MARKER);
56
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_effort/input.ts
new
+14
@@ -0,0 +1,14 @@
1
+import type { OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+export const KIRO_EFFORT_PROMPT = "Respond with exactly: kiro effort";
4
+export const KIRO_EFFORT_MODEL = "claude-opus-5.5";
5
+export const KIRO_EFFORT_LEVEL = "high";
6
+
7
+/**
8
+ * One turn on a Kiro model with reasoning effort, the level picked in the
9
+ * thread's model selection. Kiro advertises `effortLevel` only once the
10
+ * written model runs, so the level must go out after that advert.
11
+ */
12
+export function kiroEffortInput(): OrchestratorFixtureInput {
13
+ return { steps: [{ type: "message", text: KIRO_EFFORT_PROMPT }] };
14
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_effort/kiro_transcript.ndjson
new
+31
@@ -0,0 +1,31 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_effort","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:47:14.313Z","lastModifiedAt":"2026-10-19T20:47:14.313Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-opus-5.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4302,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-opus-5.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"effortLevel","name":"Effort","category":"thought_level","currentValue":"medium","options":[{"value":"low","name":"Low"},{"value":"medium","name":"Medium"},{"value":"high","name":"High"},{"value":"xhigh","name":"xHigh"},{"value":"max","name":"Max"}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"effortLevel","value":"high"}}}
13
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-opus-5.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"effortLevel","name":"Effort","category":"thought_level","currentValue":"high","options":[{"value":"low","name":"Low"},{"value":"medium","name":"Medium"},{"value":"high","name":"High"},{"value":"xhigh","name":"xHigh"},{"value":"max","name":"Max"}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
14
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-opus-5.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"effortLevel","name":"Effort","category":"thought_level","currentValue":"high","options":[{"value":"low","name":"Low"},{"value":"medium","name":"Medium"},{"value":"high","name":"High"},{"value":"xhigh","name":"xHigh"},{"value":"max","name":"Max"}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
15
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: kiro effort\n</user_request>"}]}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Kiro Effort Explained","_meta":{"kiro":{"focus":{"title":"Kiro Effort Explained"},"kind":"focus_update","title":"Kiro Effort Explained"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"kiro effort"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":2.626699924468994},"kind":"context_usage","usagePercentage":2.626699924468994}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":2.626699924468994},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":2.1},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":2.626699924468994}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.3238087492537313}],"elapsedTime":1842,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
27
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":2.626699924468994},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":3,"percent":0},"yourPrompts":{"tokens":456,"percent":2.1},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":2.626699924468994}}}}}}
29
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
30
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
31
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_effort/output.ts
new
+100
@@ -0,0 +1,100 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ assertUserMessagesInclude,
9
+ projectionFor,
10
+} from "../shared.ts";
11
+import { KIRO_EFFORT_LEVEL, KIRO_EFFORT_MODEL, KIRO_EFFORT_PROMPT } from "./input.ts";
12
+
13
+interface ConfigOption {
14
+ readonly id?: unknown;
15
+ readonly currentValue?: unknown;
16
+}
17
+interface Frame {
18
+ readonly kind?: unknown;
19
+ readonly method?: unknown;
20
+ readonly params?: {
21
+ readonly configId?: unknown;
22
+ readonly value?: unknown;
23
+ readonly update?: {
24
+ readonly sessionUpdate?: unknown;
25
+ readonly configOptions?: ReadonlyArray<ConfigOption>;
26
+ };
27
+ };
28
+ readonly result?: { readonly configOptions?: ReadonlyArray<ConfigOption> };
29
+}
30
+
31
+const effortOf = (configOptions: ReadonlyArray<ConfigOption> | undefined) =>
32
+ configOptions?.find((option) => option.id === "effortLevel")?.currentValue;
33
+
34
+/**
35
+ * The turn runs at the thread's effort: T3 writes `effortLevel` only after
36
+ * Kiro has advertised it for the written model, and Kiro reports the level
37
+ * back before the prompt goes out.
38
+ */
39
+export function assertKiroEffortOutput(
40
+ result: OrchestratorV2ScenarioResult,
41
+ transcript: ProviderReplayTranscript,
42
+) {
43
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["completed"] });
44
+ const projection = projectionFor(result, transcript.scenario);
45
+ assertSemanticProjectionIntegrity(projection);
46
+ assertUserMessagesInclude(projection, [KIRO_EFFORT_PROMPT]);
47
+
48
+ const frames = transcript.entries.flatMap((entry) =>
49
+ entry.type === "expect_outbound" || entry.type === "emit_inbound"
50
+ ? [{ direction: entry.type, frame: entry.frame as Frame }]
51
+ : [],
52
+ );
53
+ const isWrite = (frame: Frame, configId: string) =>
54
+ frame.kind === "request" &&
55
+ frame.method === "session/set_config_option" &&
56
+ frame.params?.configId === configId;
57
+ const modelWrite = frames.findIndex(
58
+ ({ direction, frame }) =>
59
+ direction === "expect_outbound" &&
60
+ isWrite(frame, "model") &&
61
+ frame.params?.value === KIRO_EFFORT_MODEL,
62
+ );
63
+ const effortWrites = frames.flatMap(({ direction, frame }, index) =>
64
+ direction === "expect_outbound" && isWrite(frame, "effortLevel")
65
+ ? [{ index, value: frame.params?.value }]
66
+ : [],
67
+ );
68
+ const prompt = frames.findIndex(
69
+ ({ direction, frame }) => direction === "expect_outbound" && frame.method === "session/prompt",
70
+ );
71
+ assert.isAtLeast(modelWrite, 0, "the thread's model must be written");
72
+ assert.deepEqual(
73
+ effortWrites.map((write) => write.value),
74
+ [KIRO_EFFORT_LEVEL],
75
+ );
76
+ const effortWrite = effortWrites[0]?.index ?? -1;
77
+ assert.isAbove(effortWrite, modelWrite);
78
+ assert.isBelow(effortWrite, prompt);
79
+
80
+ // Kiro advertised the option for the written model before T3 wrote to it.
81
+ const advertised = frames
82
+ .slice(modelWrite, effortWrite)
83
+ .some(
84
+ ({ direction, frame }) =>
85
+ direction === "emit_inbound" &&
86
+ effortOf(frame.result?.configOptions ?? frame.params?.update?.configOptions) !== undefined,
87
+ );
88
+ assert.isTrue(advertised, "effortLevel must be written only after Kiro advertises it");
89
+ // And reported the chosen level back before the prompt.
90
+ const reported = frames
91
+ .slice(effortWrite, prompt)
92
+ .flatMap(({ direction, frame }) =>
93
+ direction === "emit_inbound"
94
+ ? [effortOf(frame.result?.configOptions ?? frame.params?.update?.configOptions)]
95
+ : [],
96
+ )
97
+ .filter((value) => value !== undefined);
98
+ assert.equal(reported.at(-1), KIRO_EFFORT_LEVEL);
99
+ assert.equal(projection.runs[0]?.modelSelection.model, KIRO_EFFORT_MODEL);
100
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_fork_from_turn/input.ts
new
+17
@@ -0,0 +1,17 @@
1
+import {
2
+ THREAD_FORK_NATIVE_PRIOR_TURN_ALPHA_PROMPT,
3
+ THREAD_FORK_NATIVE_PRIOR_TURN_BETA_PROMPT,
4
+ THREAD_FORK_NATIVE_PRIOR_TURN_REPEAT_PROMPT,
5
+ type OrchestratorFixtureInput,
6
+} from "../shared.ts";
7
+
8
+/** Forks from the first of two turns, so the fork must leave the second behind. */
9
+export function kiroForkFromTurnInput(): OrchestratorFixtureInput {
10
+ return {
11
+ steps: [
12
+ { type: "message", text: THREAD_FORK_NATIVE_PRIOR_TURN_ALPHA_PROMPT },
13
+ { type: "message", text: THREAD_FORK_NATIVE_PRIOR_TURN_BETA_PROMPT },
14
+ { type: "fork", fromRunIndex: 1, text: THREAD_FORK_NATIVE_PRIOR_TURN_REPEAT_PROMPT },
15
+ ],
16
+ };
17
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_fork_from_turn/kiro_transcript.ndjson
new
+94
@@ -0,0 +1,94 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_fork_from_turn","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":39}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-28T00:43:58.779Z","lastModifiedAt":"2026-10-28T00:43:58.779Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nFor this fork-boundary fixture, respond with exactly: fork boundary alpha\n</user_request>"}]}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Fork Boundary Fixture Response","_meta":{"kiro":{"focus":{"title":"Fork Boundary Fixture Response"},"kind":"focus_update","title":"Fork Boundary Fixture Response"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"fork"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" boundary"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" alpha"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.300999641418457},"kind":"context_usage","usagePercentage":9.300999641418457}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.300999641418457},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.300999641418457}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023702897645107798}],"elapsedTime":1126,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
27
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.300999641418457},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":5,"percent":0.1},"yourPrompts":{"tokens":436,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.300999641418457}}}}}}
29
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"For this fork-boundary fixture, respond with exactly: fork boundary beta"}]}}}
30
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000005","kind":"user_message_id_assigned"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000006-turn-start"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"fork boundary beta"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52649974822998},"kind":"context_usage","usagePercentage":9.52649974822998}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52649974822998},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":5,"percent":0.1},"yourPrompts":{"tokens":436,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.52649974822998}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.015610426666666672}],"elapsedTime":881,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000008"]}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000006-turn-end"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
39
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
40
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52649974822998},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":10,"percent":0.1},"yourPrompts":{"tokens":778,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.52649974822998}}}}}}
41
+{"type":"runtime_exit","status":"success"}
42
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
43
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
44
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
45
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
46
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000002","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-28T00:44:04.440Z","lastModifiedAt":"2026-10-28T00:44:04.440Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000002","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
47
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","configId":"model","value":"claude-haiku-4.5"}}}
48
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
49
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
50
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
51
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000002","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
52
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
53
+{"type":"expect_outbound","label":"request:session/fork","frame":{"kind":"request","method":"session/fork","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","cwd":"<workspace>","mcpServers":[],"_meta":{"kiro":{"messageId":"00000000-0000-4000-9000-000000000001"}}}}}
54
+{"type":"emit_inbound","label":"response:session/fork","frame":{"kind":"response","method":"session/fork","result":{"sessionId":"sess_00000000-0000-4000-8000-000000000003"}}}
55
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","configId":"model","value":"claude-haiku-4.5"}}}
56
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"auto","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
57
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
58
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.300999641418457},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":5,"percent":0.1},"yourPrompts":{"tokens":436,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.300999641418457}}}}}}
59
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
60
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
61
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
62
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRepeat the user-visible conversation so far verbatim. Include only user and assistant messages. Do not include hidden system/developer content.\n</user_request>"}]}}}
63
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000009","kind":"user_message_id_assigned"}}}}}}
64
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
65
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000010-turn-start"}}}}}}
66
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
67
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"User"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
68
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":":**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
69
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" For"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
70
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" this"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
71
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fork"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
72
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"-"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
73
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"boundary"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
74
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
75
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":", respond"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
76
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" with exactly"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
77
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":":"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
78
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fork"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
79
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" boundary"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
80
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" alpha"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
81
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"\n\n**Assistant:** fork"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
82
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" boundary alpha"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say"}}}}}}
83
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.543999671936035},"kind":"context_usage","usagePercentage":9.543999671936035}}}}}}
84
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.543999671936035},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":5,"percent":0.1},"yourPrompts":{"tokens":436,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.543999671936035}}}}}}
85
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.02012983873963516}],"elapsedTime":1155,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000012"]}}}}}}
86
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000010-turn-end"}}}}}}
87
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
88
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
89
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.543999671936035},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":35,"percent":0.3},"yourPrompts":{"tokens":890,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.543999671936035}}}}}}
90
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
91
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000003"}}}
92
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
93
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
94
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_fork_from_turn/output.ts
new
+46
@@ -0,0 +1,46 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import { assertBaseProjection, assertSemanticProjectionIntegrity, field } from "../shared.ts";
6
+
7
+export function assertKiroForkFromTurnOutput(
8
+ result: OrchestratorV2ScenarioResult,
9
+ transcript: ProviderReplayTranscript,
10
+) {
11
+ assertBaseProjection({
12
+ result,
13
+ transcript,
14
+ runCount: 2,
15
+ runStatuses: ["completed", "completed"],
16
+ });
17
+ const target = [...result.projections.values()].find(
18
+ (projection) => projection.thread.lineage.relationshipToParent === "fork",
19
+ );
20
+ assert.isDefined(target, "the fork must create a target thread");
21
+ assertSemanticProjectionIntegrity(target);
22
+ assert.equal(target.contextTransfers[0]?.resolution?.strategy, "native_fork");
23
+
24
+ // Kiro forks at the first prompt's `userMessageId`, so its reply comes along and the second turn doesn't.
25
+ const inbound = transcript.entries.flatMap((entry) =>
26
+ entry.type === "emit_inbound" ? [entry.frame] : [],
27
+ );
28
+ const firstMessageId = inbound
29
+ .map((frame) => field(field(field(field(frame, "params"), "update"), "_meta"), "kiro"))
30
+ .find((kiro) => field(kiro, "kind") === "user_message_id_assigned");
31
+ const forks = transcript.entries.flatMap((entry) =>
32
+ entry.type === "expect_outbound" && field(entry.frame, "method") === "session/fork"
33
+ ? [entry.frame]
34
+ : [],
35
+ );
36
+ assert.lengthOf(forks, 1);
37
+ assert.deepEqual(field(field(forks[0], "params"), "_meta"), {
38
+ kiro: { messageId: field(firstMessageId, "userMessageId") },
39
+ });
40
+
41
+ const targetText = target.turnItems
42
+ .map((item) => (item.type === "assistant_message" ? item.text : ""))
43
+ .join("\n");
44
+ assert.include(targetText, "fork boundary alpha");
45
+ assert.notInclude(targetText, "fork boundary beta");
46
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_message_steering/input.ts
new
+15
@@ -0,0 +1,15 @@
1
+import { MESSAGE_STEERING_STEER_PROMPT, type OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+export const KIRO_MESSAGE_STEERING_PROMPT =
4
+ "Run the shell command `sleep 5` once, then respond with exactly: steering fixture initial response";
5
+
6
+/** The command keeps the turn running, so the steer lands before Kiro's last step. */
7
+export function kiroMessageSteeringInput(): OrchestratorFixtureInput {
8
+ return {
9
+ runtimeMode: "full-access",
10
+ steps: [
11
+ { type: "message", text: KIRO_MESSAGE_STEERING_PROMPT },
12
+ { type: "steer", text: MESSAGE_STEERING_STEER_PROMPT, targetRunIndex: 1 },
13
+ ],
14
+ };
15
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_message_steering/kiro_transcript.ndjson
new
+69
@@ -0,0 +1,69 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_message_steering","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-28T00:34:03.403Z","lastModifiedAt":"2026-10-28T00:34:03.403Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRun the shell command `sleep 5` once, then respond with exactly: steering fixture initial response\n</user_request>"}]}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
18
+{"type":"expect_outbound","label":"request:_session/steer","frame":{"kind":"request","method":"_session/steer","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","message":"Actually, respond with exactly: steering fixture observed"}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"kind":"steering_queued","messageId":"steer-00000000-0000-4000-9000-000000000003","content":"Actually, respond with exactly: steering fixture observed"}}}}}}
20
+{"type":"emit_inbound","label":"response:_session/steer","frame":{"kind":"response","method":"_session/steer","result":{"queued":true,"messageId":"steer-00000000-0000-4000-9000-000000000003"}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Run Shell Command and Respond","_meta":{"kiro":{"focus":{"title":"Run Shell Command and Respond"},"kind":"focus_update","title":"Run Shell Command and Respond"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I'll execute"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the shell command `sleep 5`"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" and"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" then provide the requested response."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"run_command_tooluse_rvhQgPf9HqJRCGdI4ZBDLs","title":"Sleep for 5 seconds","kind":"execute","status":"pending","rawInput":{"command":"sleep 5","description":"Sleep for 5 seconds","run_in_background":false},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.345999717712402},"kind":"context_usage","usagePercentage":9.345999717712402}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.345999717712402},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.345999717712402}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_rvhQgPf9HqJRCGdI4ZBDLs","status":"in_progress","rawInput":{"command":"sleep 5","description":"Sleep for 5 seconds","run_in_background":false},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_rvhQgPf9HqJRCGdI4ZBDLs","status":"in_progress","rawInput":{"command":"sleep 5","description":"Sleep for 5 seconds","run_in_background":false},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_rvhQgPf9HqJRCGdI4ZBDLs","status":"completed","title":"Sleep for 5 seconds","rawInput":{"command":"sleep 5","description":"Sleep for 5 seconds","run_in_background":false},"rawOutput":{"output":"","exitCode":0,"message":"Output:\n\n\nExit Code: 0"},"content":[{"type":"content","content":{"type":"text","text":"Output:\n\n\nExit Code: 0"}}],"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"kind":"steering_injected","messageId":"steer-00000000-0000-4000-9000-000000000003","content":"Actually, respond with exactly: steering fixture observed"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"steering"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture observed\n\n["},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"STEERING steer-f5f"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"9d167-1f50-"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"40dc-b7c3-"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"ec82b166bbec: Updated"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" response"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" to match"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
41
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the new"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" user"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
43
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" message which"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
44
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" supers"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
45
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"eded the original"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
46
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" request."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
47
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" The sleep"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
48
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" command completed"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
49
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" successfully,"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
50
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" and I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
51
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" provided"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
52
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the exact response text"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
53
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" as instruct"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
54
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"ed in"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
55
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the live"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
56
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" steering"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
57
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" message"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
58
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".]"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say"}}}}}}
59
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.493999481201172},"kind":"context_usage","usagePercentage":9.493999481201172}}}}}}
60
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.493999481201172},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.493999481201172}}}}}}
61
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.04548854951907132,"usedTools":["execute_bash"]}],"elapsedTime":7758,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000006","00000000-0000-4000-9000-000000000007"]}}}}}}
62
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
63
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"kind":"steering_cleared","messageIds":["steer-00000000-0000-4000-9000-000000000003"]}}}}}}
64
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
65
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
66
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.493999481201172},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":115,"percent":1.9},"yourPrompts":{"tokens":442,"percent":7.1},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.493999481201172}}}}}}
67
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
68
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
69
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_message_steering/output.ts
new
+53
@@ -0,0 +1,53 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertAssistantTextIncludes,
7
+ assertBaseProjection,
8
+ assertSemanticProjectionIntegrity,
9
+ assertUserMessageInputIntents,
10
+ assertUserMessagesInclude,
11
+ field,
12
+ MESSAGE_STEERING_STEER_PROMPT,
13
+ projectionFor,
14
+} from "../shared.ts";
15
+import { KIRO_MESSAGE_STEERING_PROMPT } from "./input.ts";
16
+
17
+export function assertKiroMessageSteeringOutput(
18
+ result: OrchestratorV2ScenarioResult,
19
+ transcript: ProviderReplayTranscript,
20
+) {
21
+ const methods = transcript.entries.flatMap((entry) =>
22
+ entry.type === "expect_outbound" ? [String(field(entry.frame, "method"))] : [],
23
+ );
24
+ // Kiro steers natively: one prompt, one `_session/steer`, and no cancel-and-re-prompt.
25
+ assert.deepEqual(
26
+ ["session/prompt", "_session/steer", "session/cancel"].map(
27
+ (method) => methods.filter((candidate) => candidate === method).length,
28
+ ),
29
+ [1, 1, 0],
30
+ );
31
+
32
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["completed"] });
33
+ const projection = projectionFor(result, transcript.scenario);
34
+ assertSemanticProjectionIntegrity(projection);
35
+ assertUserMessagesInclude(projection, [
36
+ KIRO_MESSAGE_STEERING_PROMPT,
37
+ MESSAGE_STEERING_STEER_PROMPT,
38
+ ]);
39
+ assertUserMessageInputIntents(projection, ["turn_start", "steer"]);
40
+ assertAssistantTextIncludes(projection, "steering fixture observed");
41
+ // Kiro's model appends a `[STEERING steer-…]` note for Kiro's own UI; T3 drops it.
42
+ assert.notInclude(
43
+ projection.turnItems
44
+ .map((item) => (item.type === "assistant_message" ? item.text : ""))
45
+ .join(""),
46
+ "[STEERING",
47
+ );
48
+ assert.equal(
49
+ projection.providerTurns.length,
50
+ 1,
51
+ "active steering must not create a new provider turn",
52
+ );
53
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_model_switch/input.ts
new
+20
@@ -0,0 +1,20 @@
1
+import type { OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+export const KIRO_MODEL_SWITCH_FIRST_PROMPT = "Respond with exactly: kiro model switch first";
4
+export const KIRO_MODEL_SWITCH_SECOND_PROMPT = "Respond with exactly: kiro model switch second";
5
+export const KIRO_MODEL_SWITCH_TARGET = "claude-sonnet-4.5";
6
+
7
+/**
8
+ * One turn, then the user picks another Kiro model for the same thread. The
9
+ * live session must switch in place (`session/set_config_option` on `model`)
10
+ * even though Kiro never listed `model` in its `session/new` result.
11
+ */
12
+export function kiroModelSwitchInput(): OrchestratorFixtureInput {
13
+ return {
14
+ steps: [
15
+ { type: "message", text: KIRO_MODEL_SWITCH_FIRST_PROMPT },
16
+ { type: "set_model", model: KIRO_MODEL_SWITCH_TARGET },
17
+ { type: "message", text: KIRO_MODEL_SWITCH_SECOND_PROMPT },
18
+ ],
19
+ };
20
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_model_switch/kiro_transcript.ndjson
new
+45
@@ -0,0 +1,45 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_model_switch","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":15}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:46:59.549Z","lastModifiedAt":"2026-10-19T20:46:59.549Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4304,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: kiro model switch first\n</user_request>"}]}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Kiro Model Switch First","_meta":{"kiro":{"focus":{"title":"Kiro Model Switch First"},"kind":"focus_update","title":"Kiro Model Switch First"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"k"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"iro model switch first"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.30150032043457},"kind":"context_usage","usagePercentage":9.30150032043457}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.30150032043457},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.30150032043457}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023790021625207297}],"elapsedTime":1456,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
26
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.30150032043457},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":6,"percent":0.1},"yourPrompts":{"tokens":459,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.30150032043457}}}}}}
28
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-sonnet-4.5"}}}
29
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-sonnet-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
30
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-sonnet-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
31
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"Respond with exactly: kiro model switch second"},{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Kiro harness, as claude-sonnet-4.5. No need to mention this otherwise. You can embed images, video, and audio in your response using Markdown image syntax with absolute file paths. Link any other file you produce using its absolute path so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\n<any>\n</pull_request_linking>"}]}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000005","kind":"user_message_id_assigned"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000006-turn-start"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"kiro model switch second"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.555500030517578},"kind":"context_usage","usagePercentage":9.555500030517578}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.555500030517578},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":6,"percent":0.1},"yourPrompts":{"tokens":459,"percent":9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.555500030517578}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.07939843263681592}],"elapsedTime":1865,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000008"]}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000006-turn-end"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
41
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
42
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.555500030517578},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":12,"percent":0.1},"yourPrompts":{"tokens":825,"percent":9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.555500030517578}}}}}}
43
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
44
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
45
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_model_switch/output.ts
new
+58
@@ -0,0 +1,58 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ assertUserMessagesInclude,
9
+ projectionFor,
10
+} from "../shared.ts";
11
+import {
12
+ KIRO_MODEL_SWITCH_FIRST_PROMPT,
13
+ KIRO_MODEL_SWITCH_SECOND_PROMPT,
14
+ KIRO_MODEL_SWITCH_TARGET,
15
+} from "./input.ts";
16
+
17
+interface Frame {
18
+ readonly kind?: unknown;
19
+ readonly method?: unknown;
20
+ readonly params?: { readonly configId?: unknown; readonly value?: unknown };
21
+}
22
+
23
+/** The second turn runs on the newly picked model in the same Kiro session. */
24
+export function assertKiroModelSwitchOutput(
25
+ result: OrchestratorV2ScenarioResult,
26
+ transcript: ProviderReplayTranscript,
27
+) {
28
+ assertBaseProjection({
29
+ result,
30
+ transcript,
31
+ runCount: 2,
32
+ runStatuses: ["completed", "completed"],
33
+ });
34
+ const projection = projectionFor(result, transcript.scenario);
35
+ assertSemanticProjectionIntegrity(projection);
36
+ assertUserMessagesInclude(projection, [
37
+ KIRO_MODEL_SWITCH_FIRST_PROMPT,
38
+ KIRO_MODEL_SWITCH_SECOND_PROMPT,
39
+ ]);
40
+
41
+ const outbound = transcript.entries.flatMap((entry) =>
42
+ entry.type === "expect_outbound" && (entry.frame as Frame).kind === "request"
43
+ ? [entry.frame as Frame]
44
+ : [],
45
+ );
46
+ assert.equal(
47
+ outbound.filter((frame) => frame.method === "session/new").length,
48
+ 1,
49
+ "the switch must reuse the live session",
50
+ );
51
+ const modelWrites = outbound.flatMap((frame) =>
52
+ frame.method === "session/set_config_option" && frame.params?.configId === "model"
53
+ ? [frame.params.value]
54
+ : [],
55
+ );
56
+ assert.equal(modelWrites.at(-1), KIRO_MODEL_SWITCH_TARGET);
57
+ assert.equal(projection.runs.at(-1)?.modelSelection.model, KIRO_MODEL_SWITCH_TARGET);
58
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_permission_modes/input.ts
new
+31
@@ -0,0 +1,31 @@
1
+import type { OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+const KIRO_PERMISSION_FILE = "kiro-permission-probe.txt";
4
+const KIRO_PERMISSION_CONTENT = "kiro permission probe";
5
+export const KIRO_PERMISSION_PROMPT = [
6
+ `Create a file named ${KIRO_PERMISSION_FILE} in the current workspace containing exactly: ${KIRO_PERMISSION_CONTENT}`,
7
+ "Use one file write tool call and nothing else, then reply exactly: kiro permission done",
8
+].join("\n");
9
+
10
+/**
11
+ * Supervised: the user approves the write, then accepts it again in Kiro's
12
+ * own end-of-turn "Review changes", which Kiro asks only with Autopilot off.
13
+ */
14
+export function kiroSupervisedWriteInput(): OrchestratorFixtureInput {
15
+ return {
16
+ runtimeMode: "approval-required",
17
+ steps: [
18
+ { type: "message", text: KIRO_PERMISSION_PROMPT },
19
+ { type: "approve_next_runtime_request" },
20
+ { type: "approve_next_runtime_request" },
21
+ ],
22
+ };
23
+}
24
+
25
+/** Full access: Kiro still asks before the write; T3 answers it by policy, never the user. */
26
+export function kiroFullAccessWriteInput(): OrchestratorFixtureInput {
27
+ return {
28
+ runtimeMode: "full-access",
29
+ steps: [{ type: "message", text: KIRO_PERMISSION_PROMPT }],
30
+ };
31
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_permission_modes/kiro_full_access_transcript.ndjson
new
+45
@@ -0,0 +1,45 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_full_access_write","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:47:42.444Z","lastModifiedAt":"2026-10-19T20:47:42.444Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.8},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":4455,"percent":0.4,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":4455,"percent":0.4}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.8}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nCreate a file named kiro-permission-probe.txt in the current workspace containing exactly: kiro permission probe\nUse one file write tool call and nothing else, then reply exactly: kiro permission done\n</user_request>"}]}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Create Kiro Permission Probe","_meta":{"kiro":{"focus":{"title":"Create Kiro Permission Probe"},"kind":"focus_update","title":"Create Kiro Permission Probe"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I'll create"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" file with the specified"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" content using"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" one"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" file write tool call."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","title":"Write File","kind":"edit","status":"in_progress","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt","modifiedContent":"kiro permission probe"},"toolOrigin":"default"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","status":"pending","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt"},"toolOrigin":"default"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.383500099182129},"kind":"context_usage","usagePercentage":9.383500099182129}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.383500099182129},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.383500099182129}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"pendingInteraction":{"toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]},"kind":"pending_interaction","toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]}}}}}}
30
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","status":"pending","title":"Write File"},"options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}],"_meta":{"kiro":{"toolId":"fs_write","consent":{"capability":"fs_write","resource":"kiro-permission-probe.txt","askType":"implicit","workspaceRoot":"<workspace>"},"consentRound":1}}}}}
31
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","outcome":"selected","selectedOption":"accept"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_nxQz7qPeqdYs95IznqIl1W","status":"completed","title":"Write File","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"rawOutput":{"message":"Created the <workspace>/kiro-permission-probe.txt file."},"content":[{"type":"diff","path":"file://<workspace>/kiro-permission-probe.txt","newText":"kiro permission probe","oldText":""}],"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt","local":"file://<workspace>/kiro-permission-probe.txt","modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:a1a79965/?originalPath%3Dkiro-permission-probe.txt","originalContent":"","modifiedContent":"kiro permission probe"},"toolOrigin":"default","checkpoint":{"modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:a1a79965/?originalPath%3Dkiro-permission-probe.txt","local":"file://<workspace>/kiro-permission-probe.txt"}}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"k"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"iro permission done"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.416999816894531},"kind":"context_usage","usagePercentage":9.416999816894531}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.416999816894531},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.416999816894531}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.04338048271973466,"usedTools":["fs_write"]}],"elapsedTime":3435,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000005","00000000-0000-4000-9000-000000000006"]}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
41
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
42
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.416999816894531},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":93,"percent":1.4},"yourPrompts":{"tokens":498,"percent":7.5},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.416999816894531}}}}}}
43
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
44
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
45
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_permission_modes/kiro_supervised_transcript.ndjson
new
+45
@@ -0,0 +1,45 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_supervised_write","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:47:27.438Z","lastModifiedAt":"2026-10-19T20:47:27.438Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"autopilot","value":"off"}}}
12
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
13
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
14
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
15
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nCreate a file named kiro-permission-probe.txt in the current workspace containing exactly: kiro permission probe\nUse one file write tool call and nothing else, then reply exactly: kiro permission done\n</user_request>"}]}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Create Permission Probe File","_meta":{"kiro":{"focus":{"title":"Create Permission Probe File"},"kind":"focus_update","title":"Create Permission Probe File"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","title":"Write File","kind":"edit","status":"in_progress","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt","modifiedContent":"kiro permission probe"},"toolOrigin":"default"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","status":"pending","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt"},"toolOrigin":"default"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.371500015258789},"kind":"context_usage","usagePercentage":9.371500015258789}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.371500015258789},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.371500015258789}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"pendingInteraction":{"toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]},"kind":"pending_interaction","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]}}}}}}
26
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","status":"pending","title":"Write File"},"options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}],"_meta":{"kiro":{"toolId":"fs_write","consent":{"capability":"fs_write","resource":"kiro-permission-probe.txt","askType":"implicit","workspaceRoot":"<workspace>"},"consentRound":1}}}}}
27
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","outcome":"selected","selectedOption":"accept"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","status":"pending","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"content":[{"type":"diff","path":"file://<workspace>/kiro-permission-probe.txt","newText":"kiro permission probe","oldText":""}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt","local":"file://<workspace>/kiro-permission-probe.txt","modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:c10093f9/?originalPath%3Dkiro-permission-probe.txt","originalContent":"","modifiedContent":"kiro permission probe"},"toolOrigin":"default"}}}}}}
30
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"turn_approval_1792442850111_1792442850111_845lqoed","status":"pending","title":"Review changes"},"options":[{"optionId":"accept","name":"Accept changes","kind":"allow_once"},{"optionId":"reject","name":"Reject changes","kind":"reject_once"}],"_meta":{"kiro":{"type":"turn_approval","executionId":"00000000-0000-4000-9000-000000000002","files":[{"path":"<workspace>/kiro-permission-probe.txt","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz"}]}}}}}
31
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"turn_approval_1792442850111_1792442850111_845lqoed","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"turn_approval_1792442850111_1792442850111_845lqoed","outcome":"selected","selectedOption":"accept"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_mx8qFNt29VcYMEFvVuNoHz","status":"completed","title":"Write File","rawInput":{"path":"<workspace>/kiro-permission-probe.txt","text":"kiro permission probe"},"rawOutput":{"message":"Created the <workspace>/kiro-permission-probe.txt file."},"content":[{"type":"diff","path":"file://<workspace>/kiro-permission-probe.txt","newText":"kiro permission probe","oldText":""}],"locations":[{"path":"<workspace>/kiro-permission-probe.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/kiro-permission-probe.txt","local":"file://<workspace>/kiro-permission-probe.txt","modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:c10093f9/?originalPath%3D%253Cworkspace%253E%252Fkiro-permission-probe.txt%26executionId%3D00000000-0000-4000-9000-000000000002","originalContent":"","modifiedContent":"kiro permission probe"},"toolOrigin":"default","checkpoint":{"modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:c10093f9/?originalPath%3D%253Cworkspace%253E%252Fkiro-permission-probe.txt%26executionId%3D00000000-0000-4000-9000-000000000002","local":"file://<workspace>/kiro-permission-probe.txt"}}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"k"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"iro permission done"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.404000282287598},"kind":"context_usage","usagePercentage":9.404000282287598}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.404000282287598},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.404000282287598}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.042440811343283584,"usedTools":["fs_write"]}],"elapsedTime":3503,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004","00000000-0000-4000-9000-000000000005"]}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
41
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
42
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.404000282287598},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":71,"percent":1.1},"yourPrompts":{"tokens":498,"percent":7.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.404000282287598}}}}}}
43
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
44
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
45
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_permission_modes/output.ts
new
+98
@@ -0,0 +1,98 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ assertUserMessagesInclude,
9
+ projectionFor,
10
+} from "../shared.ts";
11
+import { KIRO_PERMISSION_PROMPT } from "./input.ts";
12
+
13
+interface Frame {
14
+ readonly kind?: unknown;
15
+ readonly method?: unknown;
16
+ readonly params?: { readonly configId?: unknown; readonly value?: unknown };
17
+}
18
+
19
+function frames(transcript: ProviderReplayTranscript) {
20
+ return transcript.entries.flatMap((entry) =>
21
+ entry.type === "runtime_exit" ? [] : [{ type: entry.type, frame: entry.frame as Frame }],
22
+ );
23
+}
24
+
25
+function autopilotWrites(transcript: ProviderReplayTranscript) {
26
+ return frames(transcript).flatMap(({ type, frame }) =>
27
+ type === "expect_outbound" &&
28
+ frame.kind === "request" &&
29
+ frame.method === "session/set_config_option" &&
30
+ frame.params?.configId === "autopilot"
31
+ ? [frame.params.value]
32
+ : [],
33
+ );
34
+}
35
+
36
+interface PermissionParams {
37
+ readonly toolCall?: { readonly title?: unknown };
38
+ readonly _meta?: { readonly kiro?: { readonly type?: unknown } };
39
+}
40
+
41
+/** Kiro's permission requests in order: "tool" for a tool call, "turn" for its review of changes. */
42
+function permissionRequestKinds(transcript: ProviderReplayTranscript) {
43
+ return frames(transcript).flatMap(({ type, frame }) => {
44
+ if (
45
+ type !== "emit_inbound" ||
46
+ frame.kind !== "request" ||
47
+ frame.method !== "session/request_permission"
48
+ ) {
49
+ return [];
50
+ }
51
+ const params = frame.params as PermissionParams | undefined;
52
+ return [params?._meta?.kiro?.type === "turn_approval" ? "turn" : "tool"];
53
+ });
54
+}
55
+
56
+function assertCompletedWrite(
57
+ result: OrchestratorV2ScenarioResult,
58
+ transcript: ProviderReplayTranscript,
59
+) {
60
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["completed"] });
61
+ const projection = projectionFor(result, transcript.scenario);
62
+ assertSemanticProjectionIntegrity(projection);
63
+ assertUserMessagesInclude(projection, [KIRO_PERMISSION_PROMPT]);
64
+ return projection;
65
+}
66
+
67
+/**
68
+ * Supervised turns Kiro's Autopilot off. Kiro asks before the write and then
69
+ * asks for a review of the turn's changes; both reach the user.
70
+ */
71
+export function assertKiroSupervisedWriteOutput(
72
+ result: OrchestratorV2ScenarioResult,
73
+ transcript: ProviderReplayTranscript,
74
+) {
75
+ const projection = assertCompletedWrite(result, transcript);
76
+ assert.deepEqual(autopilotWrites(transcript), ["off"], "Supervised turns Autopilot off");
77
+ assert.deepEqual(permissionRequestKinds(transcript), ["tool", "turn"]);
78
+ assert.deepEqual(
79
+ projection.runtimeRequests.map((request) => request.status),
80
+ ["resolved", "resolved"],
81
+ "the write and the review of changes both reach the user",
82
+ );
83
+}
84
+
85
+/**
86
+ * Full access keeps Kiro's Autopilot on, so Kiro skips its review of changes.
87
+ * It still asks the client before the write, and T3 answers that by policy
88
+ * without involving the user.
89
+ */
90
+export function assertKiroFullAccessWriteOutput(
91
+ result: OrchestratorV2ScenarioResult,
92
+ transcript: ProviderReplayTranscript,
93
+) {
94
+ const projection = assertCompletedWrite(result, transcript);
95
+ assert.deepEqual(autopilotWrites(transcript), [], "Kiro already opens on Autopilot");
96
+ assert.deepEqual(permissionRequestKinds(transcript), ["tool"]);
97
+ assert.lengthOf(projection.runtimeRequests, 0, "Full access never asks the user");
98
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_subagent_interrupt/input.ts
new
+19
@@ -0,0 +1,19 @@
1
+import type { OrchestratorFixtureInput } from "../shared.ts";
2
+
3
+const KIRO_SUBAGENT_INTERRUPT_PROMPT =
4
+ "Delegate this to one sub-agent with your sub-agent tool and run nothing yourself: the sub-agent must run the shell command `sleep 30` with its shell tool and then reply exactly: Done. Wait for it, then reply with exactly what it said.";
5
+
6
+/** Stop lands while the sub-agent's command runs. */
7
+export function kiroSubagentInterruptInput(): OrchestratorFixtureInput {
8
+ return {
9
+ steps: [
10
+ { type: "message", text: KIRO_SUBAGENT_INTERRUPT_PROMPT },
11
+ {
12
+ type: "interrupt",
13
+ targetRunIndex: 1,
14
+ waitForTurnItemType: "dynamic_tool",
15
+ inSubagentThread: true,
16
+ },
17
+ ],
18
+ };
19
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_subagent_interrupt/kiro_transcript.ndjson
new
+53
@@ -0,0 +1,53 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_subagent_interrupt","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-23T00:22:33.313Z","lastModifiedAt":"2026-10-23T00:22:33.313Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4306,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nDelegate this to one sub-agent with your sub-agent tool and run nothing yourself: the sub-agent must run the shell command `sleep 30` with its shell tool and then reply exactly: Done. Wait for it, then reply with exactly what it said.\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Debug T3 Code Sub-Agent Delegation","_meta":{"kiro":{"focus":{"title":"Debug T3 Code Sub-Agent Delegation"},"kind":"focus_update","title":"Debug T3 Code Sub-Agent Delegation"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"'ll delegate"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" this task to a"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" sub"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"-agent"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" to"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" run"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the shell"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" command"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" and"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" reply"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"invoke_subagent_tooluse_TDSmSmtcj1YRO8PjzGHTQ4","title":"Sub-agent: general-task-execution","kind":"other","status":"pending","rawInput":{"name":"general-task-execution","prompt":"Run the shell command `sleep 30` using your bash tool, then reply with exactly: Done","explanation":"Run a shell command and reply with the specified message","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.412500381469727},"kind":"context_usage","usagePercentage":9.412500381469727}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_TDSmSmtcj1YRO8PjzGHTQ4","status":"in_progress","rawInput":{"name":"general-task-execution","prompt":"Run the shell command `sleep 30` using your bash tool, then reply with exactly: Done","explanation":"Run a shell command and reply with the specified message","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.412500381469727},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.412500381469727}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"'ll run the sleep"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" command for"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" you"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000005-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"run_command_tooluse_fNzEPMXpN4qXdcCXl1zwsQ","title":"Sleep for 30 seconds","kind":"execute","status":"pending","rawInput":{"command":"sleep 30","description":"Sleep for 30 seconds","run_in_background":false},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
40
+{"type":"expect_outbound","label":"notification:session/cancel","frame":{"kind":"notification","method":"session/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
41
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_fNzEPMXpN4qXdcCXl1zwsQ","status":"in_progress","rawInput":{"command":"sleep 30","description":"Sleep for 30 seconds","run_in_background":false},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_fNzEPMXpN4qXdcCXl1zwsQ","status":"in_progress","rawInput":{"command":"sleep 30","description":"Sleep for 30 seconds","run_in_background":false},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
43
+{"type":"emit_inbound","label":"notification:_kiro/hooks/cancel","frame":{"kind":"notification","method":"_kiro/hooks/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
44
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_fNzEPMXpN4qXdcCXl1zwsQ","status":"failed","title":"Sleep for 30 seconds","rawInput":{"command":"sleep 30","description":"Sleep for 30 seconds","run_in_background":false},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
45
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_TDSmSmtcj1YRO8PjzGHTQ4","title":"Sub-agent: general-task-execution","status":"failed","rawInput":{"name":"general-task-execution","prompt":"Run the shell command `sleep 30` using your bash tool, then reply with exactly: Done","explanation":"Run a shell command and reply with the specified message","contextFiles":[]},"rawOutput":"Sub-agent execution was cancelled","_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
46
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.05705961651741294,"usedTools":["invoke_sub_agent","execute_bash"]}],"elapsedTime":3889,"status":"aborted","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000006","00000000-0000-4000-9000-000000000007"]}}}}}}
47
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"cancelled"},"kind":"turn_end","stopReason":"cancelled","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
48
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
49
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"cancelled"}}}
50
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.412500381469727},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":80,"percent":1.1},"yourPrompts":{"tokens":546,"percent":7.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.412500381469727}}}}}}
51
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
52
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
53
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_subagent_interrupt/output.ts
new
+62
@@ -0,0 +1,62 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import { assertSemanticProjectionIntegrity, projectionFor } from "../shared.ts";
6
+
7
+/** Tool call ids Kiro reported `failed` after T3's `session/cancel`. */
8
+export function kiroFailedAfterCancel(transcript: ProviderReplayTranscript): Array<string> {
9
+ const cancelIndex = transcript.entries.findIndex(
10
+ (entry) => entry.type === "expect_outbound" && entry.label === "notification:session/cancel",
11
+ );
12
+ assert.isAtLeast(cancelIndex, 0, "Stop must reach Kiro as session/cancel");
13
+ return transcript.entries.slice(cancelIndex).flatMap((entry) => {
14
+ if (entry.type !== "emit_inbound") return [];
15
+ const params = Reflect.get(Object(entry.frame), "params");
16
+ const update = Reflect.get(Object(params), "update");
17
+ return Reflect.get(Object(update), "sessionUpdate") === "tool_call_update" &&
18
+ Reflect.get(Object(update), "status") === "failed"
19
+ ? [String(Reflect.get(Object(update), "toolCallId"))]
20
+ : [];
21
+ });
22
+}
23
+
24
+/** Kiro fails the sub-agent and its running command on cancel; T3 shows both interrupted. */
25
+export function assertKiroSubagentInterruptOutput(
26
+ result: OrchestratorV2ScenarioResult,
27
+ transcript: ProviderReplayTranscript,
28
+) {
29
+ const failed = kiroFailedAfterCancel(transcript);
30
+ assert.isTrue(
31
+ failed.some((id) => id.startsWith("invoke_subagent_")),
32
+ "Kiro must fail the sub-agent after the cancel",
33
+ );
34
+ assert.isTrue(
35
+ failed.some((id) => !id.startsWith("invoke_subagent_")),
36
+ "Kiro must fail the sub-agent's command after the cancel",
37
+ );
38
+
39
+ const projection = projectionFor(result, transcript.scenario);
40
+ assertSemanticProjectionIntegrity(projection);
41
+ assert.deepEqual(
42
+ projection.runs.map((run) => run.status),
43
+ ["interrupted"],
44
+ );
45
+ assert.isFalse(
46
+ projection.turnItems.some((item) => item.status === "running" || item.status === "failed"),
47
+ );
48
+
49
+ assert.lengthOf(projection.subagents, 1);
50
+ const subagent = projection.subagents[0]!;
51
+ assert.equal(subagent.status, "interrupted");
52
+ if (subagent.childThreadId === null) throw new Error("The subagent has no child thread");
53
+ const child = result.projections.get(subagent.childThreadId);
54
+ if (child === undefined) throw new Error("The child thread has no projection");
55
+ const tools = child.turnItems.filter((item) => item.type === "dynamic_tool");
56
+ assert.isNotEmpty(tools);
57
+ assert.deepEqual(
58
+ tools.map((item) => item.status),
59
+ tools.map(() => "interrupted"),
60
+ );
61
+ assert.isFalse(child.nodes.some((node) => node.status === "running" || node.status === "failed"));
62
+}
apps/server/src/orchestration-v2/testkit/fixtures/kiro_unknown_model/kiro_transcript.ndjson
new
+41
@@ -0,0 +1,41 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_unknown_model","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.27.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":14}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-02T06:03:33.462Z","lastModifiedAt":"2026-10-02T06:03:33.462Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"not-a-kiro-model"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":4927,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":4927,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4308,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"not-a-kiro-model","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4","name":"Claude Sonnet 4","description":"[EOL] Hybrid reasoning and coding for regular use. Model reaches end of life on October 14, 2026.","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: kiro unknown model\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"displayError":{"message":"The selected model is not available. Please select a different model and try again. (Request ID: 00000000-0000-4000-9000-000000000003)","errorType":"InvalidModelError","retryErrorType":"CLIENT_ERROR"},"kind":"display_error","message":"The selected model is not available. Please select a different model and try again. (Request ID: 00000000-0000-4000-9000-000000000003)","errorType":"InvalidModelError","retryErrorType":"CLIENT_ERROR"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[],"elapsedTime":433,"status":"failed","kind":"turn_completion"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"error"},"kind":"turn_end","stopReason":"error","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"failed"},"kind":"focus_update","status":"failed","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
21
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","error":{"code":-32000,"message":"The model 'not-a-kiro-model' is not available. Please select a different model and try again. (Request ID: 00000000-0000-4000-9000-000000000003)","data":{"errorType":"InvalidModelError","retryErrorType":"CLIENT_ERROR","requestId":"00000000-0000-4000-9000-000000000003"}}}}
22
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
23
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4","name":"Claude Sonnet 4","description":"[EOL] Hybrid reasoning and coding for regular use. Model reaches end of life on October 14, 2026.","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
24
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4","name":"Claude Sonnet 4","description":"[EOL] Hybrid reasoning and coding for regular use. Model reaches end of life on October 14, 2026.","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
25
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: kiro unknown model recovered\n</user_request>"},{"type":"text","text":"<runtime_info>In case you're asked: you are running in T3 Code through the Kiro harness, as claude-haiku-4.5. No need to mention this otherwise. You can embed images, video, and audio in your response using Markdown image syntax with absolute file paths. Link any other file you produce using its absolute path so the user can open it in T3 Code's files viewer.</runtime_info>\n\n<pull_request_linking>\n<any>\n</pull_request_linking>"}]}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000004","kind":"user_message_id_assigned"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000005-turn-start"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Setup Kiro Unknown Model","_meta":{"kiro":{"focus":{"title":"Setup Kiro Unknown Model"},"kind":"focus_update","title":"Setup Kiro Unknown Model"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"k"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000006-say"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"iro unknown model recovered"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000006-say"}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.105999946594238},"kind":"context_usage","usagePercentage":9.105999946594238}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.105999946594238},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":4927,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":4927,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":371,"percent":8.6},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.105999946594238}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.02329721897180763}],"elapsedTime":1101,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000007"]}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000005-turn-end"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
37
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.105999946594238},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":4927,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":4927,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":7,"percent":0.1},"yourPrompts":{"tokens":745,"percent":8.5},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.105999946594238}}}}}}
39
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
40
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
41
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/multi_turn/kiro_transcript.ndjson
new
+42
@@ -0,0 +1,42 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"multi_turn","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":15}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:47:57.146Z","lastModifiedAt":"2026-10-19T20:47:57.146Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4302,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: first fixture turn complete\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Setup Kiro Session Configuration","_meta":{"kiro":{"focus":{"title":"Setup Kiro Session Configuration"},"kind":"focus_update","title":"Setup Kiro Session Configuration"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"first"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.295999526977539},"kind":"context_usage","usagePercentage":9.295999526977539}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.295999526977539},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.295999526977539}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023733225804311774}],"elapsedTime":1301,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
25
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.295999526977539},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":7,"percent":0.1},"yourPrompts":{"tokens":460,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.295999526977539}}}}}}
27
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"Respond with exactly: second fixture turn complete"}]}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000005","kind":"user_message_id_assigned"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000006-turn-start"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"second"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52400016784668},"kind":"context_usage","usagePercentage":9.52400016784668}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52400016784668},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":7,"percent":0.1},"yourPrompts":{"tokens":460,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.52400016784668}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.015680489485903816}],"elapsedTime":1063,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000008"]}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000006-turn-end"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
38
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.52400016784668},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":14,"percent":0.2},"yourPrompts":{"tokens":827,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.52400016784668}}}}}}
40
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
41
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
42
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/provider_thread_resume/kiro_output.ts
new
+61
@@ -0,0 +1,61 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ assertUserMessagesInclude,
9
+ projectionFor,
10
+ PROVIDER_THREAD_RESUME_FIRST_PROMPT,
11
+ PROVIDER_THREAD_RESUME_SECOND_PROMPT,
12
+} from "../shared.ts";
13
+
14
+const FIRST_FINAL = "provider thread resume fixture first turn complete";
15
+
16
+function field(value: unknown, key: string): unknown {
17
+ return typeof value === "object" && value !== null ? Reflect.get(value, key) : undefined;
18
+}
19
+
20
+/**
21
+ * After the idle release a fresh `kiro-cli acp` process must `session/load`
22
+ * the first session, and the resumed model still sees the first exchange.
23
+ */
24
+export function assertKiroProviderThreadResumeOutput(
25
+ result: OrchestratorV2ScenarioResult,
26
+ transcript: ProviderReplayTranscript,
27
+) {
28
+ const requests = transcript.entries.flatMap((entry) =>
29
+ entry.type === "expect_outbound" && field(entry.frame, "kind") === "request"
30
+ ? [field(entry.frame, "method")]
31
+ : [],
32
+ );
33
+ assert.equal(
34
+ requests.filter((method) => method === "initialize").length,
35
+ 2,
36
+ "the idle release must retire the first Kiro process",
37
+ );
38
+ assert.deepEqual(
39
+ requests.filter((method) => method === "session/new" || method === "session/load"),
40
+ ["session/new", "session/load"],
41
+ "the respawned process must load the first session, not start another",
42
+ );
43
+
44
+ assertBaseProjection({
45
+ result,
46
+ transcript,
47
+ runCount: 2,
48
+ runStatuses: ["completed", "completed"],
49
+ });
50
+ const projection = projectionFor(result, transcript.scenario);
51
+ assertSemanticProjectionIntegrity(projection);
52
+ assertUserMessagesInclude(projection, [
53
+ PROVIDER_THREAD_RESUME_FIRST_PROMPT,
54
+ PROVIDER_THREAD_RESUME_SECOND_PROMPT,
55
+ ]);
56
+ assert.lengthOf(projection.providerThreads, 1, "resume must keep one provider thread");
57
+ const answers = projection.turnItems.flatMap((item) =>
58
+ item.type === "assistant_message" ? [item.text] : [],
59
+ );
60
+ assert.include(answers.at(-1), FIRST_FINAL, "the resumed session must remember the first answer");
61
+}
apps/server/src/orchestration-v2/testkit/fixtures/provider_thread_resume/kiro_transcript.ndjson
new
+65
@@ -0,0 +1,65 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"provider_thread_resume","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":26}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:48:11.040Z","lastModifiedAt":"2026-10-19T20:48:11.040Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4305,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: provider thread resume fixture first turn complete\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"provider thread resume fixture first turn complete","_meta":{"kiro":{"focus":{"title":"provider thread resume fixture first turn complete"},"kind":"focus_update","title":"provider thread resume fixture first turn complete"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"provider"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" thread resume fixture first turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.29900074005127},"kind":"context_usage","usagePercentage":9.29900074005127}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.29900074005127},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.29900074005127}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023869583416252074}],"elapsedTime":1347,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
25
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.29900074005127},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":13,"percent":0.2},"yourPrompts":{"tokens":466,"percent":8.6},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.29900074005127}}}}}}
27
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
28
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
29
+{"type":"runtime_exit","status":"success"}
30
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
31
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
32
+{"type":"expect_outbound","label":"request:session/load","frame":{"kind":"request","method":"session/load","params":{"mcpServers":"<any>","cwd":"<workspace>","sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
33
+{"type":"emit_inbound","label":"notification:session/update:user_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"user_message_chunk","content":{"type":"text","text":"<t3_code_instructions>\n## T3 Code interaction mode: Default\n\nPrefer making reasonable assumptions and carrying out the user's request. Ask a concise question only when a missing user decision would materially change the result. Treat this mode as active until T3 Code supplies a different interaction-mode instruction.\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: provider thread resume fixture first turn complete\n</user_request>\n<runtime_info>In case you're asked: you are running in T3 Code through the Kiro harness, as claude-haiku-4.5. No need to mention this otherwise. You can embed images and videos in your response using Markdown with absolute file paths.</runtime_info>\n\n<pull_request_linking>\nWhen the t3-code MCP server exposes link_pull_request, you must use it to register every pull request you create or work on for this thread. Call link_pull_request with the full PR URL immediately after creating a PR or starting work on an existing PR. For a stack, call it for every layer, not just the current branch or the top PR. This applies when creating or updating PRs through gh, gh stack, another CLI, or the host API: those operations do not register the PRs with this thread. Linking an already-linked PR is safe. Before finishing PR work, call list_thread_pull_requests and link any PR from your work that is missing. Do not link unrelated PRs mentioned only as background. If a linking call fails, report that failure instead of claiming the PR is linked. When asked to monitor, watch, or babysit a PR and watch_pull_request is available, call it and end your turn: T3 Code wakes you when checks finish, someone else comments, or the branch conflicts, so do not poll or run your own watcher. When you hand the work back to the user, call unwatch_pull_request first so the thread returns to their inbox.\n</pull_request_linking>"},"_meta":{"kiro":{"userMessageTag":"prompt_00000000-0000-4000-9000-000000000005","messageId":"00000000-0000-4000-9000-000000000001","timestamp":"2026-10-19T20:48:11.510Z","replay":true}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start","replay":true}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"provider thread resume fixture first turn complete"},"_meta":{"kiro":{"agentMode":"vibe","messageId":"00000000-0000-4000-9000-000000000003-say","timestamp":"2026-10-19T20:48:12.853Z","replay":true}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.29900074005127},"kind":"context_usage","usagePercentage":9.29900074005127,"replay":true}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023869583416252074}],"elapsedTime":1347,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"],"replay":true}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end","replay":true}}}}}}
39
+{"type":"emit_inbound","label":"response:session/load","frame":{"kind":"response","method":"session/load","result":{"_meta":{"agentMode":"vibe","memoryConfig":{"mode":"read_write","reflection":true},"contextUsage":{"summarizationThreshold":80,"truncationThreshold":95,"usagePercentage":9.29900074005127},"createdAt":"2026-10-19T20:48:11.040Z","id":"sess_00000000-0000-4000-8000-000000000001","lastModifiedAt":"2026-10-19T20:48:12.888Z","title":"provider thread resume fixture first turn complete","workspacePaths":["<workspace>"],"source":"local","executionTarget":{"kind":"local"},"kiro":{"loadTiming":{"schema":1,"totalMs":331,"startedAt":1792442894443,"phases":[{"id":"init-wait","label":"Wait for agent init","startMs":0,"endMs":0},{"id":"read-session","label":"Read session record","startMs":1,"endMs":14},{"id":"shell-type","label":"Resolve shell type","startMs":15,"endMs":15},{"id":"hooks","label":"Load hooks","startMs":17,"endMs":20},{"id":"agent-registry","label":"Load agent profiles","startMs":20,"endMs":50},{"id":"policy","label":"Load and compile policy","startMs":50,"endMs":54},{"id":"knowledge","label":"Init knowledge registry","startMs":55,"endMs":66},{"id":"sandbox","label":"Create session sandbox","startMs":66,"endMs":66},{"id":"memory","label":"Load memory learnings","startMs":66,"endMs":66},{"id":"workspace-connection","label":"Build workspace connection","startMs":66,"endMs":68},{"id":"governance","label":"Refresh governance","startMs":72,"endMs":72},{"id":"user-agent-gate","label":"Wait for user-agent experiment","startMs":77,"endMs":320},{"id":"read-messages","label":"Read transcript","startMs":320,"endMs":323},{"id":"replay","label":"Replay history to client","startMs":323,"endMs":326},{"id":"build-context","label":"Rebuild model context","startMs":328,"endMs":329},{"id":"tools","label":"Build tool list","startMs":329,"endMs":331}],"counts":{"events":6}}}},"modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
40
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
41
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.29900074005127},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":13,"percent":0.2},"yourPrompts":{"tokens":466,"percent":8.6},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.29900074005127}}}}}}
43
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
44
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
45
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
46
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
47
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nUsing the conversation history available in this resumed thread, first repeat the exact final answer you gave in the previous turn. Then on a new line write exactly: provider thread resume fixture second turn complete\n</user_request>"}]}}}
48
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000006","kind":"user_message_id_assigned"}}}}}}
49
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
50
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000007-turn-start"}}}}}}
51
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"provider"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say"}}}}}}
52
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" thread resume fixture first"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say"}}}}}}
53
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say"}}}}}}
54
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"\nprovider"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say"}}}}}}
55
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" thread resume fixture second turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say"}}}}}}
56
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.546499252319336},"kind":"context_usage","usagePercentage":9.546499252319336}}}}}}
57
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.546499252319336},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":13,"percent":0.2},"yourPrompts":{"tokens":466,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.546499252319336}}}}}}
58
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.0199145304145937}],"elapsedTime":1180,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000009"]}}}}}}
59
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000007-turn-end"}}}}}}
60
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
61
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
62
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.546499252319336},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":39,"percent":0.4},"yourPrompts":{"tokens":968,"percent":8.6},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.546499252319336}}}}}}
63
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
64
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
65
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/queued_turn/kiro_transcript.ndjson
new
+42
@@ -0,0 +1,42 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"queued_turn","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":15}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:48:26.807Z","lastModifiedAt":"2026-10-19T20:48:26.807Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4302,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with exactly: first fixture turn complete\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"First Fixture Turn Complete","_meta":{"kiro":{"focus":{"title":"First Fixture Turn Complete"},"kind":"focus_update","title":"First Fixture Turn Complete"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"first"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.297499656677246},"kind":"context_usage","usagePercentage":9.297499656677246}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.297499656677246},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.297499656677246}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023737006898839137}],"elapsedTime":1343,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
25
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.297499656677246},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":7,"percent":0.1},"yourPrompts":{"tokens":460,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.297499656677246}}}}}}
27
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"Respond with exactly: second fixture turn complete"}]}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000005","kind":"user_message_id_assigned"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000006-turn-start"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"second"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" fixture turn complete"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.525500297546387},"kind":"context_usage","usagePercentage":9.525500297546387}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.525500297546387},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":7,"percent":0.1},"yourPrompts":{"tokens":460,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.525500297546387}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.01568247953565506}],"elapsedTime":963,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000008"]}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000006-turn-end"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
38
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.525500297546387},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":14,"percent":0.2},"yourPrompts":{"tokens":827,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.525500297546387}}}}}}
40
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
41
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
42
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/shared.ts
+91
-6
@@ -22,6 +22,7 @@ import {
22
} from "@t3tools/contracts";
23
import type * as Duration from "effect/Duration";
24
import * as Effect from "effect/Effect";
25
+import * as Predicate from "effect/Predicate";
26
27
import type {
28
OrchestratorV2ScenarioResult,
@@ -174,6 +175,12 @@ export type OrchestratorFixtureInputStep =
175
readonly text: string;
176
readonly attachments?: ReadonlyArray<ChatAttachment>;
177
}
178
+ | {
179
+ /** Forks the thread at a run into a second thread, then sends `text` there. */
180
+ readonly type: "fork";
181
+ readonly fromRunIndex: number;
182
+ readonly text: string;
183
+ }
184
| {
185
readonly type: "queue_message";
186
readonly text: string;
@@ -227,6 +234,10 @@ export type OrchestratorFixtureInputStep =
234
readonly type: "interrupt";
235
readonly targetRunIndex: number;
236
readonly waitForTurnItemType?: OrchestrationV2TurnItem["type"];
237
+ /** With waitForTurnItemType: wait until that item has this status. */
238
+ readonly waitForTurnItemStatus?: OrchestrationV2TurnItem["status"];
239
+ /** With waitForTurnItemType: wait for it in one of the run's subagent threads. */
240
+ readonly inSubagentThread?: boolean;
241
}
242
| {
243
readonly type: "stop_background_work";
@@ -257,6 +268,11 @@ export type OrchestratorFixtureInputStep =
268
| {
269
readonly type: "advance_clock";
270
readonly duration: Duration.Input;
271
+ }
272
+ | {
273
+ /** Picks another model of the same provider instance; later messages use it. */
274
+ readonly type: "set_model";
275
+ readonly model: string;
276
};
277
278
export interface OrchestratorFixtureInput {
@@ -330,6 +346,12 @@ export const FX_MODEL_SELECTION = {
346
model: "default",
347
} satisfies ModelSelection;
348
349
+/** Kiro's cheapest listed model, so recordings stay cheap and do not depend on "auto" routing. */
350
+export const KIRO_MODEL_SELECTION = {
351
+ instanceId: ProviderInstanceId.make("kiro"),
352
+ model: "claude-haiku-4.5",
353
+} satisfies ModelSelection;
354
+
355
export const OPENCODE_MODEL_SELECTION = {
356
instanceId: ProviderInstanceId.make("opencode"),
357
model: "openai/gpt-5.4-mini",
@@ -481,11 +503,14 @@ export function materializeFixtureInput(input: {
503
const steps: Array<OrchestratorV2ScenarioStep> = [];
504
let messageIndex = 0;
505
let runIndex = 0;
506
+ let forkThreadId: ThreadId | undefined;
507
const activeRunDispatchKeys = new Set<string>();
508
509
const runIdFor = (runOrdinal: number) =>
510
idAllocator.derive.run({ threadId: ids.threadId, ordinal: runOrdinal });
511
512
+ // A `set_model` step changes the selection every later message carries.
513
+ let modelSelection = input.modelSelection;
514
const pushDispatch = (
515
command: OrchestrationV2Command,
516
options: {
@@ -514,7 +539,7 @@ export function materializeFixtureInput(input: {
539
}),
540
ids,
541
scenario: input.scenario,
517
- modelSelection: input.modelSelection,
542
+ modelSelection,
543
...(input.fixtureInput.interactionMode === undefined
544
? {}
545
: { interactionMode: input.fixtureInput.interactionMode }),
@@ -557,7 +582,7 @@ export function materializeFixtureInput(input: {
582
commandName: `message-${messageIndex}`,
583
}),
584
ids,
560
- modelSelection: input.modelSelection,
585
+ modelSelection,
586
messageId: yield* idAllocator.allocate.message({
587
threadId: ids.threadId,
588
ordinal: messageIndex,
@@ -591,7 +616,7 @@ export function materializeFixtureInput(input: {
616
commandName: `queue-message-${messageIndex}`,
617
}),
618
ids,
594
- modelSelection: input.modelSelection,
619
+ modelSelection,
620
messageId: yield* idAllocator.allocate.message({
621
threadId: ids.threadId,
622
ordinal: messageIndex,
@@ -729,7 +754,7 @@ export function materializeFixtureInput(input: {
754
commandName: `steer-${messageIndex}`,
755
}),
756
ids,
732
- modelSelection: input.modelSelection,
757
+ modelSelection,
758
messageId: yield* idAllocator.allocate.message({
759
threadId: ids.threadId,
760
ordinal: messageIndex,
@@ -769,7 +794,7 @@ export function materializeFixtureInput(input: {
794
commandName: `restart-${messageIndex}`,
795
}),
796
ids,
772
- modelSelection: input.modelSelection,
797
+ modelSelection,
798
messageId: yield* idAllocator.allocate.message({
799
threadId: ids.threadId,
800
ordinal: messageIndex,
@@ -807,6 +832,10 @@ export function materializeFixtureInput(input: {
832
threadId: ids.threadId,
833
runId: runIdFor(step.targetRunIndex),
834
itemType: step.waitForTurnItemType,
835
+ ...(step.waitForTurnItemStatus === undefined
836
+ ? {}
837
+ : { itemStatus: step.waitForTurnItemStatus }),
838
+ ...(step.inSubagentThread === true ? { inSubagentThreads: true } : {}),
839
});
840
}
841
pushDispatch(
@@ -856,6 +885,56 @@ export function materializeFixtureInput(input: {
885
case "advance_clock":
886
steps.push({ type: "advance_clock", duration: step.duration });
887
break;
888
+ case "set_model":
889
+ modelSelection = { ...input.modelSelection, model: step.model };
890
+ pushDispatch({
891
+ type: "thread.model-selection.set",
892
+ commandId: yield* idAllocator.allocate.command({
893
+ fixtureName: input.scenario,
894
+ commandName: `set-model-${step.model}`,
895
+ }),
896
+ threadId: ids.threadId,
897
+ modelSelection,
898
+ });
899
+ break;
900
+ case "fork":
901
+ {
902
+ const targetThreadId = yield* idAllocator.allocate.thread({
903
+ fixtureName: `${input.scenario}-fork`,
904
+ projectId: ids.projectId,
905
+ });
906
+ forkThreadId = targetThreadId;
907
+ pushDispatch({
908
+ type: "thread.fork",
909
+ createdBy: "user",
910
+ creationSource: "web",
911
+ commandId: yield* idAllocator.allocate.command({
912
+ fixtureName: input.scenario,
913
+ commandName: "thread-fork",
914
+ }),
915
+ sourceThreadId: ids.threadId,
916
+ targetThreadId,
917
+ sourcePoint: { type: "run", runId: runIdFor(step.fromRunIndex) },
918
+ title: "Forked thread",
919
+ });
920
+ pushDispatch(
921
+ dispatchMessageCommand({
922
+ commandId: yield* idAllocator.allocate.command({
923
+ fixtureName: input.scenario,
924
+ commandName: "fork-message",
925
+ }),
926
+ ids: { ...ids, threadId: targetThreadId },
927
+ modelSelection,
928
+ messageId: yield* idAllocator.allocate.message({
929
+ threadId: targetThreadId,
930
+ ordinal: 1,
931
+ }),
932
+ text: step.text,
933
+ }),
934
+ );
935
+ steps.push({ type: "await_thread_idle", threadId: targetThreadId });
936
+ }
937
+ break;
938
case "rollback":
939
{
940
const scopeId = yield* idAllocator.allocate.checkpointScope({
@@ -889,11 +968,17 @@ export function materializeFixtureInput(input: {
968
return {
969
commands,
970
steps,
892
- projectionThreadIds: [ids.threadId],
971
+ projectionThreadIds:
972
+ forkThreadId === undefined ? [ids.threadId] : [ids.threadId, forkThreadId],
973
};
974
});
975
}
976
977
+/** Reads `key` from a recorded frame or payload of unknown shape. */
978
+export function field(value: unknown, key: string): unknown {
979
+ return Predicate.hasProperty(value, key) ? value[key] : undefined;
980
+}
981
+
982
export function projectionFor(
983
result: OrchestratorV2ScenarioResult,
984
scenario: string,
apps/server/src/orchestration-v2/testkit/fixtures/simple/kiro_transcript.ndjson
new
+29
@@ -0,0 +1,29 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"simple","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:46:08.395Z","lastModifiedAt":"2026-10-19T20:46:08.395Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4301,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRespond with the following text: fixture simple ok\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Respond With Fixture Simple OK","_meta":{"kiro":{"focus":{"title":"Respond With Fixture Simple OK"},"kind":"focus_update","title":"Respond With Fixture Simple OK"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"fixture"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" simple ok"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.294500350952148},"kind":"context_usage","usagePercentage":9.294500350952148}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.294500350952148},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.294500350952148}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.023686512902155888}],"elapsedTime":1433,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
25
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.294500350952148},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":5,"percent":0.1},"yourPrompts":{"tokens":460,"percent":8.7},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.294500350952148}}}}}}
27
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
28
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
29
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/subagent/kiro_output.ts
new
+66
@@ -0,0 +1,66 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertExecutionNodeKinds,
8
+ assertNoExtraAppRunsForProviderChildren,
9
+ assertSemanticProjectionIntegrity,
10
+ assertTurnItemTypes,
11
+ assertUserMessagesInclude,
12
+ projectionFor,
13
+ SUBAGENT_PROMPT,
14
+} from "../shared.ts";
15
+
16
+/**
17
+ * Kiro sends a sub-agent's frames on the parent session, tagged with its
18
+ * `agentSubtaskId`. They belong in the sub-agent's thread, not the parent's.
19
+ */
20
+export function assertKiroSubagentOutput(
21
+ result: OrchestratorV2ScenarioResult,
22
+ transcript: ProviderReplayTranscript,
23
+) {
24
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["completed"] });
25
+
26
+ const projection = projectionFor(result, transcript.scenario);
27
+ assertSemanticProjectionIntegrity(projection);
28
+ assertExecutionNodeKinds(projection, ["root_turn", "subagent"]);
29
+ assertNoExtraAppRunsForProviderChildren({ projection, expectedAppRuns: 1 });
30
+ assertUserMessagesInclude(projection, [SUBAGENT_PROMPT]);
31
+ assertTurnItemTypes(projection, ["user_message", "subagent", "assistant_message"]);
32
+ assert.notInclude(
33
+ projection.turnItems.map((item) => item.type),
34
+ "dynamic_tool",
35
+ "the sub-agents' tool calls must not land in the parent thread",
36
+ );
37
+
38
+ assert.lengthOf(projection.subagents, 2);
39
+ assert.lengthOf(result.shellSnapshot.threads, 3);
40
+ const parentText = projection.turnItems
41
+ .flatMap((item) => (item.type === "assistant_message" ? [item.text] : []))
42
+ .join("\n");
43
+ for (const subagent of projection.subagents) {
44
+ assert.equal(subagent.status, "completed");
45
+ assert.equal(subagent.origin, "provider_native");
46
+ assert.equal(subagent.driver, "kiro");
47
+ assert.isNotNull(subagent.nativeTaskRef);
48
+ assert.isNotNull(subagent.title);
49
+ assert.isNotNull(subagent.result);
50
+ if (subagent.childThreadId === null) {
51
+ throw new Error(`Subagent ${subagent.id} is missing its child thread`);
52
+ }
53
+
54
+ const child = result.projections.get(subagent.childThreadId);
55
+ assert.isDefined(child);
56
+ assert.equal(child.thread.lineage.parentThreadId, projection.thread.id);
57
+ assert.equal(child.thread.lineage.relationshipToParent, "subagent");
58
+ assert.lengthOf(child.runs, 0);
59
+ assertTurnItemTypes(child, ["user_message", "dynamic_tool", "assistant_message"]);
60
+ assertUserMessagesInclude(child, [subagent.prompt]);
61
+ for (const item of child.turnItems) {
62
+ if (item.type !== "assistant_message") continue;
63
+ assert.notInclude(parentText, item.text.trim().slice(0, 40));
64
+ }
65
+ }
66
+}
apps/server/src/orchestration-v2/testkit/fixtures/subagent/kiro_transcript.ndjson
new
+173
@@ -0,0 +1,173 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"subagent","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-22T23:23:01.018Z","lastModifiedAt":"2026-10-22T23:23:01.018Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4302,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nSpawn 2 subagents, one to read package.json and one to read tsconfig.json\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Read package.json and tsconfig.json","_meta":{"kiro":{"focus":{"title":"Read package.json and tsconfig.json"},"kind":"focus_update","title":"Read package.json and tsconfig.json"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"'ll spawn"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" two"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" subagents to read"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" those"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" files in"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" parallel"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"invoke_subagent_tooluse_2NMymmwiK17KB0YUNtZgLP","title":"Sub-agent: general-task-execution","kind":"other","status":"pending","rawInput":{"name":"general-task-execution","prompt":"Read the package.json file in the workspace root and return its complete content.","explanation":"Subagent 1: Read package.json to understand project dependencies and configuration.","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_2NMymmwiK17KB0YUNtZgLP","status":"in_progress","rawInput":{"name":"general-task-execution","prompt":"Read the package.json file in the workspace root and return its complete content.","explanation":"Subagent 1: Read package.json to understand project dependencies and configuration.","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"invoke_subagent_tooluse_1DMwxJSARi2dusfsSZGm1O","title":"Sub-agent: general-task-execution","kind":"other","status":"pending","rawInput":{"name":"general-task-execution","prompt":"Read the tsconfig.json file in the workspace root and return its complete content.","explanation":"Subagent 2: Read tsconfig.json to understand TypeScript configuration.","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_1DMwxJSARi2dusfsSZGm1O","status":"in_progress","rawInput":{"name":"general-task-execution","prompt":"Read the tsconfig.json file in the workspace root and return its complete content.","explanation":"Subagent 2: Read tsconfig.json to understand TypeScript configuration.","contextFiles":[]},"_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.439499855041504},"kind":"context_usage","usagePercentage":9.439499855041504}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.439499855041504},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.439499855041504}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000006-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"'ll read the package.json file from"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000006-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the workspace root."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000006-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I'll read the tsconfig.json"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000007-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_oZvIZtKF2PolWeYoE5Ne7p","title":"Read File","kind":"read","status":"pending","rawInput":{"path":"<workspace>/package.json","offset":null,"limit":null},"locations":[{"path":"<workspace>/package.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_oZvIZtKF2PolWeYoE5Ne7p","status":"in_progress","rawInput":{"path":"<workspace>/package.json","offset":null,"limit":null},"locations":[{"path":"<workspace>/package.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_oZvIZtKF2PolWeYoE5Ne7p","status":"failed","title":"Read File","rawInput":{"path":"<workspace>/package.json","offset":null,"limit":null},"rawOutput":{"message":"Caught error reading: ENOENT: no such file or directory, stat '<workspace>/package.json'"},"content":[{"type":"content","content":{"type":"text","text":"Caught error reading: ENOENT: no such file or directory, stat '<workspace>/package.json'"}}],"locations":[{"path":"<workspace>/package.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
39
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_3njTsMrk9MhWAFDab1IJPY","title":"Read File","kind":"read","status":"pending","rawInput":{"path":"<workspace>/tsconfig.json","offset":null,"limit":null},"locations":[{"path":"<workspace>/tsconfig.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"default"}}}}}}
40
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_3njTsMrk9MhWAFDab1IJPY","status":"in_progress","rawInput":{"path":"<workspace>/tsconfig.json","offset":null,"limit":null},"locations":[{"path":"<workspace>/tsconfig.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"default"}}}}}}
41
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_3njTsMrk9MhWAFDab1IJPY","status":"failed","title":"Read File","rawInput":{"path":"<workspace>/tsconfig.json","offset":null,"limit":null},"rawOutput":{"message":"Caught error reading: ENOENT: no such file or directory, stat '<workspace>/tsconfig.json'"},"content":[{"type":"content","content":{"type":"text","text":"Caught error reading: ENOENT: no such file or directory, stat '<workspace>/tsconfig.json'"}}],"locations":[{"path":"<workspace>/tsconfig.json"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"default"}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"The"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
43
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"The"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
44
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" package.json file does"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
45
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" not exist in the workspace root. Let"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
46
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" me check what"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
47
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" files are actually present"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
48
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" in this"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
49
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" directory."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000008-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
50
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" ts"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
51
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"config.json file does"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
52
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" not exist in the workspace root. Let"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
53
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" me check what"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
54
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" files are"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
55
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" available in the workspace:"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000009-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
56
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_yyvStTmR08iupxoGA0OtSq","title":"List Directory","kind":"search","status":"pending","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"acp"}}}}}}
57
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_yyvStTmR08iupxoGA0OtSq","status":"in_progress","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"acp"}}}}}}
58
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_yyvStTmR08iupxoGA0OtSq","status":"completed","title":"List Directory","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"rawOutput":{"message":"Contents of <workspace>:\n [DIR] .git\n [FILE] README.md"},"content":[{"type":"content","content":{"type":"text","text":"Contents of <workspace>:\n [DIR] .git\n [FILE] README.md"}}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"acp"}}}}}}
59
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_6DMrm7IS5Tr2CL6BjoCNwp","title":"List Directory","kind":"search","status":"pending","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"acp"}}}}}}
60
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_6DMrm7IS5Tr2CL6BjoCNwp","status":"in_progress","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"acp"}}}}}}
61
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_6DMrm7IS5Tr2CL6BjoCNwp","status":"completed","title":"List Directory","rawInput":{"path":"<workspace>","explanation":null,"depth":null},"rawOutput":{"message":"Contents of <workspace>:\n [DIR] .git\n [FILE] README.md"},"content":[{"type":"content","content":{"type":"text","text":"Contents of <workspace>:\n [DIR] .git\n [FILE] README.md"}}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"acp"}}}}}}
62
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"The workspace"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
63
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"The"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
64
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" contains"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
65
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" only"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
66
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" a ."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
67
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"git directory and"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
68
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" a README.md file. There"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
69
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" is"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
70
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" no package.json file present"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
71
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" in the workspace root.\n\nLet"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
72
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" workspace root only"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
73
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" contains a `."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
74
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"git` directory and a `README."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
75
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"md` file. There is"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
76
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" no `tsconfig.json` file"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
77
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" present"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
78
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" in the workspace root.\n\nLet"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
79
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" me provide this"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
80
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" me check the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
81
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" README.md to"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
82
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" understand the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
83
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" context"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
84
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" of"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
85
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" this workspace"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
86
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":":"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000010-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
87
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" result"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
88
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" to the parent"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
89
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" agent"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
90
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":":"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000011-say","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
91
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_U9uKdVzLy2xhxQ3Ag3deF5","title":"Read File","kind":"read","status":"pending","rawInput":{"path":"<workspace>/README.md","offset":null,"limit":null},"locations":[{"path":"<workspace>/README.md"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
92
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_U9uKdVzLy2xhxQ3Ag3deF5","status":"in_progress","rawInput":{"path":"<workspace>/README.md","offset":null,"limit":null},"locations":[{"path":"<workspace>/README.md"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
93
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_U9uKdVzLy2xhxQ3Ag3deF5","status":"completed","title":"Read File","rawInput":{"path":"<workspace>/README.md","offset":null,"limit":null},"rawOutput":{"message":"<file name=\"<workspace>/README.md\" language=\"markdown\" >\n<content>\n# subagent\n\n</content>\n</file>"},"content":[{"type":"content","content":{"type":"text","text":"<file name=\"<workspace>/README.md\" language=\"markdown\" >\n<content>\n# subagent\n\n</content>\n</file>"}}],"locations":[{"path":"<workspace>/README.md"}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"default"}}}}}}
94
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_KbG1hmVP5ZzFZ2RkHsyy5S","status":"completed","title":"Subagent Response","rawInput":{"response":"The tsconfig.json file does not exist in the workspace root (<workspace>). The workspace currently only contains a .git directory and a README.md file. Please verify the file location or create the tsconfig.json file if needed.","files":[]},"rawOutput":{"message":"Response recorded."},"content":[{"type":"content","content":{"type":"text","text":"Response recorded."}}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000005","toolOrigin":"acp"}}}}}}
95
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_1DMwxJSARi2dusfsSZGm1O","title":"Sub-agent: general-task-execution","status":"completed","rawInput":{"name":"general-task-execution","prompt":"Read the tsconfig.json file in the workspace root and return its complete content.","explanation":"Subagent 2: Read tsconfig.json to understand TypeScript configuration.","contextFiles":[]},"rawOutput":"The tsconfig.json file does not exist in the workspace root (<workspace>). The workspace currently only contains a .git directory and a README.md file. Please verify the file location or create the tsconfig.json file if needed.","_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000005"}}}}}}
96
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
97
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"Result"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
98
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":":** The package"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
99
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".json file does not exist in the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
100
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" workspace root. The"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
101
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" workspace currently"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
102
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" contains only:"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
103
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"\n- `."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
104
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"git/` directory\n- `README"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
105
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".md` file ("},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
106
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"with"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
107
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" minimal"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
108
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" content:"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
109
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" \"# subagent\")\n\nThere"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
110
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" is no package.json file to"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
111
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" read"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
112
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
113
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" If"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
114
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" you need to create one"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
115
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" or"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
116
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" if it"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
117
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" should"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
118
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" exist"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
119
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" in a"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
120
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" different location, please let me know."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000012-say","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
121
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_HQ0ZaeJjaoUcqKNtVP8baI","status":"completed","title":"Subagent Response","rawInput":{"response":"The package.json file does not exist in the workspace root at <workspace>/. The directory only contains a .git folder and README.md file.","files":[]},"rawOutput":{"message":"Response recorded."},"content":[{"type":"content","content":{"type":"text","text":"Response recorded."}}],"_meta":{"kiro":{"agentSubtaskId":"00000000-0000-4000-9000-000000000004","toolOrigin":"acp"}}}}}}
122
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"invoke_subagent_tooluse_2NMymmwiK17KB0YUNtZgLP","title":"Sub-agent: general-task-execution","status":"completed","rawInput":{"name":"general-task-execution","prompt":"Read the package.json file in the workspace root and return its complete content.","explanation":"Subagent 1: Read package.json to understand project dependencies and configuration.","contextFiles":[]},"rawOutput":"The package.json file does not exist in the workspace root at <workspace>/. The directory only contains a .git folder and README.md file.","_meta":{"kiro":{"kind":"agent-subtask","agentSubtaskId":"00000000-0000-4000-9000-000000000004"}}}}}}
123
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"Both"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
124
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" subagents have"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
125
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" completed"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
126
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" their tasks."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
127
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" Here are"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
128
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the results:\n\n**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
129
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"Subagent 1 "},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
130
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"("},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
131
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"package"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
132
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".json):**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
133
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" The file"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
134
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" does"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
135
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" not exist in the workspace root. The"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
136
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" directory"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
137
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" only contains `."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
138
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"git` and `README.md`."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
139
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"\n\n**Subagent 2"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
140
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" (tsconfig.json):**"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
141
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" The file does not exist in the workspace"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
142
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" root either"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
143
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
144
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"\n\nThe"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
145
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" workspace appears"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
146
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" to be a fresh"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
147
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" or"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
148
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" minimal"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
149
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" setup."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
150
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" Would"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
151
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" you like me to:\n1."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
152
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" Check"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
153
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
154
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" README"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
155
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".md to"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
156
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" understand the project structure"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
157
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"?\n2. Search"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
158
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" for these"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
159
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" files in subd"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
160
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"irectories?\n3. Create these"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
161
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" files with starter"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
162
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" configurations"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
163
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"?"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000013-say"}}}}}}
164
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.607999801635742},"kind":"context_usage","usagePercentage":9.607999801635742}}}}}}
165
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.607999801635742},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":9.1},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.607999801635742}}}}}}
166
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.2113624610281924,"usedTools":["invoke_sub_agent","read_file","read_file","list_directory","list_directory","read_file","subagent_response","subagent_response"]}],"elapsedTime":10937,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000014","00000000-0000-4000-9000-000000000015","00000000-0000-4000-9000-000000000016","00000000-0000-4000-9000-000000000017","00000000-0000-4000-9000-000000000018","00000000-0000-4000-9000-000000000019","00000000-0000-4000-9000-000000000020","00000000-0000-4000-9000-000000000021","00000000-0000-4000-9000-000000000022"]}}}}}}
167
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
168
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
169
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
170
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.607999801635742},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":373,"percent":3.9},"yourPrompts":{"tokens":506,"percent":5.2},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.607999801635742}}}}}}
171
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
172
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
173
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/tool_call_read_only_on_request/input.ts
+14
@@ -8,3 +8,17 @@ export function toolCallReadOnlyOnRequestInput(): OrchestratorFixtureInput {
8
],
9
};
10
}
11
+
12
+/**
13
+ * Kiro under an explicit approval policy runs Supervised, so after the write
14
+ * it also asks the user to review the turn's changes.
15
+ */
16
+export function toolCallReadOnlyOnRequestKiroInput(): OrchestratorFixtureInput {
17
+ return {
18
+ steps: [
19
+ { type: "message", text: TOOL_CALL_WRITE_PROMPT },
20
+ { type: "approve_next_runtime_request" },
21
+ { type: "approve_next_runtime_request" },
22
+ ],
23
+ };
24
+}
apps/server/src/orchestration-v2/testkit/fixtures/tool_call_read_only_on_request/kiro_transcript.ndjson
new
+60
@@ -0,0 +1,60 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_tool_call_read_only_on_request","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:46:44.025Z","lastModifiedAt":"2026-10-19T20:46:44.025Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4308,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"autopilot","value":"off"}}}
12
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
13
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
14
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
15
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nCreate or overwrite .codex-probe-write-action.txt with exactly this text: codex app-server approval fixture. Use a local shell command or file edit only, then briefly report what happened. Do not read package metadata, use GitHub, use web, or use MCP.\n</user_request>"}]}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Create Codex Probe Write Action File","_meta":{"kiro":{"focus":{"title":"Create Codex Probe Write Action File"},"kind":"focus_update","title":"Create Codex Probe Write Action File"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"'ll create"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" file"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" with"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" the exact"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
27
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" text"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" you specified"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","title":"Write File","kind":"edit","status":"in_progress","rawInput":{"path":"<workspace>/.codex-probe-write-action.txt","text":"codex app-server approval fixture"},"locations":[{"path":"<workspace>/.codex-probe-write-action.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/.codex-probe-write-action.txt","modifiedContent":"codex app-server approval fixture"},"toolOrigin":"default"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.403499603271484},"kind":"context_usage","usagePercentage":9.403499603271484}}}}}}
32
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.403499603271484},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.403499603271484}}}}}}
33
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","status":"pending","rawInput":{"path":"<workspace>/.codex-probe-write-action.txt","text":"codex app-server approval fixture"},"locations":[{"path":"<workspace>/.codex-probe-write-action.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/.codex-probe-write-action.txt"},"toolOrigin":"default"}}}}}}
34
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"pendingInteraction":{"toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]},"kind":"pending_interaction","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","interactionType":"tool_approval","question":"Write File","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]}}}}}}
35
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","status":"pending","title":"Write File"},"options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}],"_meta":{"kiro":{"toolId":"fs_write","consent":{"capability":"fs_write","resource":".codex-probe-write-action.txt","askType":"implicit","workspaceRoot":"<workspace>"},"consentRound":1}}}}}
36
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","outcome":"selected","selectedOption":"accept"}}}}}}
38
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","status":"pending","rawInput":{"path":"<workspace>/.codex-probe-write-action.txt","text":"codex app-server approval fixture"},"locations":[{"path":"<workspace>/.codex-probe-write-action.txt"}],"content":[{"type":"diff","path":"file://<workspace>/.codex-probe-write-action.txt","newText":"codex app-server approval fixture","oldText":""}],"_meta":{"kiro":{"preview":{"file":"<workspace>/.codex-probe-write-action.txt","local":"file://<workspace>/.codex-probe-write-action.txt","modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:86572b41/?originalPath%3D.codex-probe-write-action.txt","originalContent":"","modifiedContent":"codex app-server approval fixture"},"toolOrigin":"default"}}}}}}
39
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"turn_approval_1792442807820_1792442807820_e08hicbu","status":"pending","title":"Review changes"},"options":[{"optionId":"accept","name":"Accept changes","kind":"allow_once"},{"optionId":"reject","name":"Reject changes","kind":"reject_once"}],"_meta":{"kiro":{"type":"turn_approval","executionId":"00000000-0000-4000-9000-000000000002","files":[{"path":"<workspace>/.codex-probe-write-action.txt","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y"}]}}}}}
40
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
41
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"turn_approval_1792442807820_1792442807820_e08hicbu","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"turn_approval_1792442807820_1792442807820_e08hicbu","outcome":"selected","selectedOption":"accept"}}}}}}
42
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"tooluse_V4FGuzXTAJuRzWWG8Mkz0Y","status":"completed","title":"Write File","rawInput":{"path":"<workspace>/.codex-probe-write-action.txt","text":"codex app-server approval fixture"},"rawOutput":{"message":"Created the <workspace>/.codex-probe-write-action.txt file."},"content":[{"type":"diff","path":"file://<workspace>/.codex-probe-write-action.txt","newText":"codex app-server approval fixture","oldText":""}],"locations":[{"path":"<workspace>/.codex-probe-write-action.txt"}],"_meta":{"kiro":{"preview":{"file":"<workspace>/.codex-probe-write-action.txt","local":"file://<workspace>/.codex-probe-write-action.txt","modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:86572b41/?originalPath%3D%253Cworkspace%253E%252F.codex-probe-write-action.txt%26executionId%3D00000000-0000-4000-9000-000000000002","originalContent":"","modifiedContent":"codex app-server approval fixture"},"toolOrigin":"default","checkpoint":{"modified":"kiro-snapshot-v2://sess_00000000-0000-4000-8000-000000000001:86572b41/?originalPath%3D%253Cworkspace%253E%252F.codex-probe-write-action.txt%26executionId%3D00000000-0000-4000-9000-000000000002","local":"file://<workspace>/.codex-probe-write-action.txt"}}}}}}}
43
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"Done"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
44
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
45
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" Created"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
46
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" `."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
47
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"codex-probe-write-action"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
48
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":".txt` with the text"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
49
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" \""},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
50
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"codex app-server approval fixture\"."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000004-say"}}}}}}
51
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.452000617980957},"kind":"context_usage","usagePercentage":9.452000617980957}}}}}}
52
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.452000617980957},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.452000617980957}}}}}}
53
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.044813697512437814,"usedTools":["fs_write"]}],"elapsedTime":4651,"status":"success","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000005","00000000-0000-4000-9000-000000000006"]}}}}}}
54
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"end_turn"},"kind":"turn_end","stopReason":"end_turn","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
55
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
56
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}
57
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.452000617980957},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":117,"percent":1.7},"yourPrompts":{"tokens":511,"percent":7.3},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.452000617980957}}}}}}
58
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
59
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
60
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/tool_call_read_only_on_request/output.ts
+35
@@ -96,3 +96,38 @@ function writtenContent(item: OrchestrationV2TurnItem): string | undefined {
96
return undefined;
97
}
98
}
99
+
100
+// Kiro gates the write with its own prompt and, Supervised under the explicit
101
+// approval policy, then asks the user to review the turn's changes. Its
102
+// prompts carry the tool call id but no kind, and only the choices T3 can
103
+// honour (no session-wide "always") reach the card.
104
+export function assertToolCallReadOnlyOnRequestKiroOutput(
105
+ result: OrchestratorV2ScenarioResult,
106
+ transcript: ProviderReplayTranscript,
107
+) {
108
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["completed"] });
109
+ const projection = projectionFor(result, transcript.scenario);
110
+ assertSemanticProjectionIntegrity(projection);
111
+ assertUserMessagesInclude(projection, [TOOL_CALL_WRITE_PROMPT]);
112
+ assertNoAcpClientFileOrTerminalRequests(transcript);
113
+ assert.deepEqual(
114
+ projection.runtimeRequests.map((request) => [request.status, request.decision]),
115
+ [
116
+ ["resolved", "accept"],
117
+ ["resolved", "accept"],
118
+ ],
119
+ "the write and Kiro's review of changes both reach the user",
120
+ );
121
+ const writes = projection.turnItems.filter(
122
+ (item) => item.type === "command_execution" || item.type === "file_change",
123
+ );
124
+ assert.isTrue(
125
+ writes.some((item) => item.status === "completed"),
126
+ "the approved write must complete",
127
+ );
128
+ const approval = projection.turnItems.find((item) => item.type === "approval_request");
129
+ assert.deepEqual(
130
+ approval?.type === "approval_request" ? approval.options?.map((option) => option.decision) : [],
131
+ ["accept", "decline", "cancel"],
132
+ );
133
+}
apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt/kiro_transcript.ndjson
new
+31
@@ -0,0 +1,31 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"turn_interrupt","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.32.0","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-19T20:48:53.396Z","lastModifiedAt":"2026-10-19T20:48:53.396Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4303,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
10
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
13
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"autopilot","value":"off"}}}
14
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
15
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"Experimental preview of OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"Experimental preview of OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"off","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
16
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nDo not answer immediately. First run the local shell command `sleep 30`, then respond with exactly: interrupt fixture should not finish naturally.\n</user_request>"}]}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
21
+{"type":"expect_outbound","label":"notification:session/cancel","frame":{"kind":"notification","method":"session/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
22
+{"type":"emit_inbound","label":"notification:_kiro/hooks/cancel","frame":{"kind":"notification","method":"_kiro/hooks/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
23
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[],"elapsedTime":23,"status":"aborted","kind":"turn_completion"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"cancelled"},"kind":"turn_end","stopReason":"cancelled","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
26
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"cancelled"}}}
27
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":484,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
28
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"I can't discuss that","_meta":{"kiro":{"focus":{"title":"I can't discuss that"},"kind":"focus_update","title":"I can't discuss that"}}}}}}
29
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
30
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
31
+{"type":"runtime_exit","status":"success"}
apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt_mid_tool/input.ts
+15
@@ -8,3 +8,18 @@ export function turnInterruptMidToolInput(): OrchestratorFixtureInput {
8
],
9
};
10
}
11
+
12
+/** Kiro lists a command as pending before it runs, so Stop waits until it is running. */
13
+export function turnInterruptMidToolKiroInput(): OrchestratorFixtureInput {
14
+ return {
15
+ steps: [
16
+ { type: "message", text: TURN_INTERRUPT_MID_TOOL_PROMPT },
17
+ {
18
+ type: "interrupt",
19
+ targetRunIndex: 1,
20
+ waitForTurnItemType: "command_execution",
21
+ waitForTurnItemStatus: "running",
22
+ },
23
+ ],
24
+ };
25
+}
apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt_mid_tool/kiro_output.ts
new
+59
@@ -0,0 +1,59 @@
1
+import { assert } from "@effect/vitest";
2
+import type { ProviderReplayTranscript } from "@t3tools/contracts";
3
+
4
+import type { OrchestratorV2ScenarioResult } from "../../OrchestratorScenario.ts";
5
+import {
6
+ assertBaseProjection,
7
+ assertSemanticProjectionIntegrity,
8
+ assertTurnItemTypes,
9
+ assertUserMessagesInclude,
10
+ projectionFor,
11
+ TURN_INTERRUPT_MID_TOOL_PROMPT,
12
+} from "../shared.ts";
13
+import { kiroFailedAfterCancel } from "../kiro_subagent_interrupt/output.ts";
14
+
15
+/** Tool call ids Kiro reported `in_progress` before T3's `session/cancel`. */
16
+function kiroRunningBeforeCancel(transcript: ProviderReplayTranscript): Set<string> {
17
+ const cancelIndex = transcript.entries.findIndex(
18
+ (entry) => entry.type === "expect_outbound" && entry.label === "notification:session/cancel",
19
+ );
20
+ return new Set(
21
+ transcript.entries.slice(0, Math.max(cancelIndex, 0)).flatMap((entry) => {
22
+ if (entry.type !== "emit_inbound") return [];
23
+ const update = Reflect.get(Object(Reflect.get(Object(entry.frame), "params")), "update");
24
+ return Reflect.get(Object(update), "status") === "in_progress"
25
+ ? [String(Reflect.get(Object(update), "toolCallId"))]
26
+ : [];
27
+ }),
28
+ );
29
+}
30
+
31
+/** Stop reaches Kiro while its command runs; Kiro fails it and T3 shows it interrupted. */
32
+export function assertTurnInterruptMidToolKiroOutput(
33
+ result: OrchestratorV2ScenarioResult,
34
+ transcript: ProviderReplayTranscript,
35
+) {
36
+ const running = kiroRunningBeforeCancel(transcript);
37
+ assert.isTrue(
38
+ kiroFailedAfterCancel(transcript).some((id) => running.has(id)),
39
+ "Kiro must fail, after the cancel, a command that was already running",
40
+ );
41
+ assertBaseProjection({ result, transcript, runCount: 1, runStatuses: ["interrupted"] });
42
+
43
+ const projection = projectionFor(result, transcript.scenario);
44
+ assertSemanticProjectionIntegrity(projection);
45
+ assertTurnItemTypes(projection, [
46
+ "user_message",
47
+ "command_execution",
48
+ "run_interrupt_request",
49
+ "run_interrupt_result",
50
+ ]);
51
+ assertUserMessagesInclude(projection, [TURN_INTERRUPT_MID_TOOL_PROMPT]);
52
+
53
+ const commandItem = projection.turnItems.find((item) => item.type === "command_execution");
54
+ assert.isDefined(commandItem);
55
+ assert.include(commandItem.input, "node -e");
56
+ assert.equal(commandItem.status, "interrupted");
57
+ assert.isFalse(projection.turnItems.some((item) => item.status === "failed"));
58
+ assert.equal(projection.providerTurns[0]?.status, "interrupted");
59
+}
apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt_mid_tool/kiro_transcript.ndjson
new
+42
@@ -0,0 +1,42 @@
1
+{"type":"transcript_start","provider":"kiro","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"kiro_turn_interrupt_mid_tool","metadata":{"generatedBy":"live-kiro-recorder","kiroVersion":"2.33.1","normalization":"Session ids are fixed sess_ UUIDs and other UUIDs (message and request ids) are numbered in first-seen order, the workspace is <workspace>, HOME is /home/kiro-replay and the recording user is kiro-replay. T3-owned prompt text, MCP servers and initialize params other than clientCapabilities and _meta are <any>. Kiro's log directory, user-scoped commands and agents, and the _kiro/* broadcasts T3 ignores (governance, steering documents, powers, tools, hooks, MCP status, session roster) are removed. Timestamps are kept as recorded.","droppedFrames":13}}
2
+{"type":"expect_outbound","label":"request:initialize","frame":{"kind":"request","method":"initialize","params":{"protocolVersion":2,"info":"<any>","capabilities":"<any>","clientCapabilities":{"fs":{"readTextFile":false,"writeTextFile":false},"terminal":false,"session":{"notices":{}},"elicitation":{"form":{}},"_meta":{"kiro":{"hooks":{"enabled":true,"v2":true}}}},"clientInfo":"<any>"}}}
3
+{"type":"emit_inbound","label":"response:initialize","frame":{"kind":"response","method":"initialize","result":{"protocolVersion":2,"agentCapabilities":{"loadSession":true,"promptCapabilities":{"image":true,"embeddedContext":true},"mcpCapabilities":{"http":true,"sse":true},"sessionCapabilities":{"list":{},"close":{},"delete":{},"fork":{"_meta":{"kiro":{"messageId":true}}}},"_meta":{"kiro":{"checkpoints":true,"sessionList":true,"policyNotifications":true,"extensionMethods":["_kiro/knowledge","_kiro/memory/list","_kiro/memory/get","_kiro/memory/create","_kiro/memory/update","_kiro/memory/delete","_kiro/codeIntelligence","_kiro/session/context","_kiro/session/compact","_kiro/session/export","_kiro/session/history","_kiro/config/template","_kiro/workflow/new","_kiro/workflow/invoke","_kiro/workflow/load","_kiro/workflow/inspect","_kiro/workflow/list","_kiro/workflow/pause","_kiro/workflow/cancel","_kiro/workflow/delete","_kiro/workflow/listRecipes","_kiro/workflow/listWatchHandlers","_kiro/workflow/resumeAll","_kiro/workflow/retry","_kiro/workflow/update","_kiro/workflow/resume","_kiro/sourceProviders/list","_kiro/sourceProviders/listResources"],"sessionSources":["local","remote"],"sessionListScopes":["workspace","user"],"executionTargets":["local","cloud-sandbox"],"sourceProviders":true,"replayMarking":true}}},"authMethods":[{"id":"aws-builder-id","name":"AWS Builder ID"},{"id":"aws-iam-identity-center","name":"AWS IAM Identity Center"}]}}}
4
+{"type":"expect_outbound","label":"request:session/new","frame":{"kind":"request","method":"session/new","params":{"cwd":"<workspace>","mcpServers":"<any>"}}}
5
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
6
+{"type":"emit_inbound","label":"response:session/new","frame":{"kind":"response","method":"session/new","result":{"_meta":{"schemaVersion":"1.0.0","id":"sess_00000000-0000-4000-8000-000000000001","title":"New Session","agentMode":"vibe","workspacePaths":["<workspace>"],"createdAt":"2026-10-27T04:52:45.071Z","lastModifiedAt":"2026-10-27T04:52:45.071Z","semanticReviewEnabled":true,"memoryConfig":{"mode":"read_write","reflection":true},"disableAutoCompaction":false,"ftaEnabled":false,"workflowsEnabled":false,"specPlanEnabled":false,"specWorkflow":"quick","specSkipClarificationEnabled":true,"source":"local"},"sessionId":"sess_00000000-0000-4000-8000-000000000001","modes":{"availableModes":[{"id":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"id":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}],"currentModeId":"vibe"},"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
7
+{"type":"expect_outbound","label":"request:session/set_config_option","frame":{"kind":"request","method":"session/set_config_option","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","configId":"model","value":"claude-haiku-4.5"}}}
8
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":0.9},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":4307,"percent":0.4},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":0.9}}}}}}
9
+{"type":"emit_inbound","label":"notification:session/update:available_commands_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"available_commands_update","availableCommands":[{"name":"architecture-selection","description":"Steering: architecture-selection","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:architecture-selection","commandId":"architecture-selection","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"architecture-selection"}}},{"name":"quick-spec","description":"Steering: quick-spec","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:quick-spec","commandId":"quick-spec","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"quick-spec"}}},{"name":"bug-fix","description":"Steering: bug-fix","input":{"hint":"optional context"},"_meta":{"kiro":{"type":"steering","contextQuery":"global:bug-fix","commandId":"bug-fix","resource":{"resourceType":"steering","source":{"origin":"bundled"}},"originalName":"bug-fix"}}},{"name":"general-task-execution","description":"General-purpose sub-agent with access to all tools for executing arbitrary tasks","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"general-task-execution","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"general-task-execution"}}},{"name":"context-gatherer","description":"Investigates the codebase to answer a specific question about it. Deeply analyzes existing code by tracing execution paths, mapping architecture and abstraction layers, understanding patterns, and documenting dependencies, returning a thorough, direct written analysis that explains how the relevant code works and points to the specific files and lines involved. Use it to understand code before you change it: before designing or implementing a change to code you don't already fully understand, start with context-gatherer so your edits are grounded in how the code actually works. When a task requires understanding code you don't already know, dispatch context-gatherer to do that exploration before running your own searches or reads. Rules: 1. Provide a clear, specific prompt that includes your intent: a detailed task description of the context you need and what you're trying to accomplish. 2. The subagent explores the codebase and returns an analysis of your query 3. Trust the returned results. You may still inspect additional code yourself when you need context beyond what was returned. 4. Reuse existing context-gatherer output for related follow-up questions; do not re-invoke on the same question with different phrasing. 5. For multiple distinct questions, dispatch several context-gatherers in parallel, each targeting a different aspect of the codebase.","input":{"hint":"task to delegate"},"_meta":{"kiro":{"type":"custom-agent","commandId":"context-gatherer","resource":{"resourceType":"agent","source":{"origin":"bundled"}},"originalName":"context-gatherer"}}}]}}}}
10
+{"type":"emit_inbound","label":"response:session/set_config_option","frame":{"kind":"response","method":"session/set_config_option","result":{"configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}
11
+{"type":"emit_inbound","label":"notification:session/update:config_option_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"config_option_update","configOptions":[{"type":"select","id":"mode","name":"Mode","category":"mode","currentValue":"vibe","options":[{"value":"vibe","name":"Default","description":"General coding assistance","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"spec","name":"Spec","description":"Structured feature development","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"quick-spec","name":"Quick Spec","description":"Fast spec workflow: clarify, then auto-generate requirements, design, and tasks","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"bug-fix","name":"Bug Fix","description":"Structured bug-fix workflow: investigate, diagnose, and resolve bugs","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"plan","name":"Plan","description":"Plan-only mode that helps break ideas down into an implementation plan without making any changes","_meta":{"kiro":{"welcomeMessage":"Transform any idea into fully working code. What do you want to build today?","source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"autonomous","name":"Autonomous","description":"Autonomous agent execution","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}},{"value":"semantic_reviewer","name":"semantic_reviewer","description":"Behavioral, narrative code review of a local or PR diff. Writes a review document and a verdict.","_meta":{"kiro":{"source":"bundled","resource":{"resourceType":"agent","source":{"origin":"bundled"}}}}}]},{"type":"select","id":"model","name":"Model","category":"model","currentValue":"claude-haiku-4.5","options":[{"value":"auto","name":"Auto","description":"Models chosen by task for optimal usage and consistent quality","_meta":{"kiro":{"rateMultiplier":1,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-opus-5.5","name":"Claude Opus 5.5","description":"Experimental preview of Claude Opus 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":false}}},{"value":"claude-sonnet-5.5","name":"Claude Sonnet 5.5","description":"Claude Sonnet 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"claude-haiku-5.5","name":"Claude Haiku 5.5","description":"Experimental preview of Claude Haiku 5.5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":0.06,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"medium","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"gpt-5.6-sol","name":"GPT 5.6 Sol","description":"Experimental preview of OpenAI GPT 5.6 Sol with 1M context window","_meta":{"kiro":{"rateMultiplier":4.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-terra","name":"GPT 5.6 Terra","description":"OpenAI GPT 5.6 Terra with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"gpt-5.6-luna","name":"GPT 5.6 Luna","description":"OpenAI GPT 5.6 Luna with 1M context window","_meta":{"kiro":{"rateMultiplier":0.6,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["none","low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":false}}},{"value":"kimi-k3","name":"Kimi K3","description":"Experimental preview of Kimi K3. Kimi K3 is a Kiro Excluded Model. For more info, see documentation.","_meta":{"kiro":{"rateMultiplier":2.4,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"reasoning","effortLevels":["low","high","max"],"defaultEffortLevel":"max","thinkingToggleable":false}}},{"value":"claude-opus-5","name":"Claude Opus 5","description":"Claude Opus 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-5","name":"Claude Sonnet 5","description":"Claude Sonnet 5 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.8","name":"Claude Opus 4.8","description":"Claude Opus 4.8 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.7","name":"Claude Opus 4.7","description":"Claude Opus 4.7 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","xhigh","max"],"defaultEffortLevel":"xhigh","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.6","name":"Claude Opus 4.6","description":"Claude Opus 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-sonnet-4.6","name":"Claude Sonnet 4.6","description":"Claude Sonnet 4.6 model with 1M context window","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":true,"effortSchemaPath":"output_config","effortLevels":["low","medium","high","max"],"defaultEffortLevel":"high","thinkingToggleable":true,"defaultThinkingEnabled":true}}},{"value":"claude-opus-4.5","name":"Claude Opus 4.5","description":"Claude Opus 4.5 model","_meta":{"kiro":{"rateMultiplier":2.2,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-sonnet-4.5","name":"Claude Sonnet 4.5","description":"Claude Sonnet 4.5 model","_meta":{"kiro":{"rateMultiplier":1.3,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"claude-haiku-4.5","name":"Claude Haiku 4.5","description":"The latest Claude Haiku model","_meta":{"kiro":{"rateMultiplier":0.4,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"deepseek-3.2","name":"Deepseek v3.2","description":"Experimental preview of DeepSeek V3.2","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.5","name":"MiniMax M2.5","description":"MiniMax M2.5 model","_meta":{"kiro":{"rateMultiplier":0.25,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"minimax-m2.1","name":"MiniMax M2.1","description":"Experimental preview of MiniMax M2.1","_meta":{"kiro":{"rateMultiplier":0.15,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"glm-5","name":"GLM 5","description":"GLM-5 model","_meta":{"kiro":{"rateMultiplier":0.5,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}},{"value":"qwen3-coder-next","name":"Qwen3 Coder Next","description":"Experimental preview of Qwen3 Coder Next","_meta":{"kiro":{"rateMultiplier":0.05,"rateUnit":"Credit","hasEffort":false,"thinkingToggleable":false}}}]},{"type":"select","id":"memoryReflection","name":"Memory reflection","description":"Allow this session to reflect on new memory","currentValue":"on","options":[{"value":"on","name":"On"},{"value":"off","name":"Off"}]},{"type":"select","id":"autopilot","name":"Autopilot","currentValue":"on","options":[{"value":"on","name":"Autopilot","description":"Agent executes tools without confirmation"},{"value":"off","name":"Supervised","description":"Agent asks for approval before file changes"}]},{"type":"select","id":"contentCollection","name":"Content Collection","currentValue":"enabled","options":[{"value":"enabled","name":"Enabled","description":"Allow content to be used for service improvement"},{"value":"disabled","name":"Disabled","description":"Opt out of content collection"}]}]}}}}
12
+{"type":"expect_outbound","label":"request:session/prompt","frame":{"kind":"request","method":"session/prompt","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","prompt":[{"type":"text","text":"<t3_code_instructions>\n<any>\n</t3_code_instructions>\n\n<user_request>\nRun this exact local command: `node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"`. Do not answer until it completes, then respond exactly: interrupt fixture should not finish naturally.\n</user_request>"}]}}}
13
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"userMessageId":"00000000-0000-4000-9000-000000000001","kind":"user_message_id_assigned"}}}}}}
14
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"<t3_code_instructions>","_meta":{"kiro":{"focus":{"title":"<t3_code_instructions>"},"kind":"focus_update","title":"<t3_code_instructions>"}}}}}}
15
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"in_progress"},"kind":"focus_update","status":"in_progress","activity":{"turnActive":true,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
16
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnStart":true,"kind":"turn_start","messageId":"00000000-0000-4000-9000-000000000002-turn-start"}}}}}}
17
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","title":"Run Node Command With Timeout","_meta":{"kiro":{"focus":{"title":"Run Node Command With Timeout"},"kind":"focus_update","title":"Run Node Command With Timeout"}}}}}}
18
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"I'll run"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
19
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" that"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
20
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" exact command and"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
21
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" wait"},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
22
+{"type":"emit_inbound","label":"notification:session/update:agent_message_chunk","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":" for it to complete."},"_meta":{"kiro":{"replayId":"00000000-0000-4000-9000-000000000003-say"}}}}}}
23
+{"type":"emit_inbound","label":"notification:session/update:tool_call","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","title":"Run interrupt fixture tool","kind":"execute","status":"pending","rawInput":{"command":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","description":"Run interrupt fixture tool","run_in_background":false,"timeout":35000},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
24
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.381500244140625},"kind":"context_usage","usagePercentage":9.381500244140625}}}}}}
25
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.381500244140625},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":0,"percent":0},"yourPrompts":{"tokens":0,"percent":8.9},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.381500244140625}}}}}}
26
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"pendingInteraction":{"toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","interactionType":"tool_approval","question":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]},"kind":"pending_interaction","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","interactionType":"tool_approval","question":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}]}}}}}}
27
+{"type":"emit_inbound","label":"request:session/request_permission","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","toolCall":{"toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","status":"pending","title":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\""},"options":[{"optionId":"accept","name":"Allow","kind":"allow_once"},{"optionId":"always-accept","name":"Always allow","kind":"allow_always"},{"optionId":"reject","name":"Deny","kind":"reject_once"},{"optionId":"always-reject","name":"Always deny","kind":"reject_always"}],"_meta":{"kiro":{"toolId":"run_command","command":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","consent":{"capability":"shell","resource":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","askType":"implicit","triggeringResource":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","workspaceRoot":"<workspace>"},"consentRound":1}}}}}
28
+{"type":"expect_outbound","label":"response:session/request_permission","frame":{"kind":"response","method":"session/request_permission","result":{"outcome":{"outcome":"selected","optionId":"accept"}}}}
29
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"interactionResolved":{"toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","outcome":"selected","selectedOption":"accept"},"kind":"interaction_resolved","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","outcome":"selected","selectedOption":"accept"}}}}}}
30
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","status":"in_progress","rawInput":{"command":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","description":"Run interrupt fixture tool","run_in_background":false,"timeout":35000},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
31
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","status":"in_progress","rawInput":{"command":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","description":"Run interrupt fixture tool","run_in_background":false,"timeout":35000},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
32
+{"type":"expect_outbound","label":"notification:session/cancel","frame":{"kind":"notification","method":"session/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
33
+{"type":"emit_inbound","label":"notification:_kiro/hooks/cancel","frame":{"kind":"notification","method":"_kiro/hooks/cancel","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
34
+{"type":"emit_inbound","label":"notification:session/update:tool_call_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"tool_call_update","toolCallId":"run_command_tooluse_y1v4bBCwl4978KEjYmFWrP","status":"failed","title":"Run interrupt fixture tool","rawInput":{"command":"node -e \"console.log('interrupt fixture tool started'); setTimeout(() => {}, 30000)\"","description":"Run interrupt fixture tool","run_in_background":false,"timeout":35000},"_meta":{"kiro":{"toolOrigin":"default"}}}}}}
35
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"promptTurnSummaries":[{"unit":"credit","unitPlural":"credits","usage":0.029057633300165836,"usedTools":["execute_bash"]}],"elapsedTime":1603,"status":"aborted","kind":"turn_completion","requestIds":["00000000-0000-4000-9000-000000000004"]}}}}}}
36
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"turnEnd":{"stopReason":"cancelled"},"kind":"turn_end","stopReason":"cancelled","messageId":"00000000-0000-4000-9000-000000000002-turn-end"}}}}}}
37
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"focus":{"status":"idle"},"kind":"focus_update","status":"idle","activity":{"turnActive":false,"runningWorkflows":0,"pausedWorkflows":0}}}}}}}
38
+{"type":"emit_inbound","label":"response:session/prompt","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"cancelled"}}}
39
+{"type":"emit_inbound","label":"notification:session/update:session_info_update","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001","update":{"sessionUpdate":"session_info_update","_meta":{"kiro":{"contextUsage":{"usagePercentage":9.381500244140625},"breakdown":{"contextFiles":{"tokens":0,"percent":0,"items":[]},"tools":{"tokens":5481,"percent":0.5,"mcp":{"tokens":0,"percent":0},"builtin":{"tokens":5481,"percent":0.5}},"memory":{"tokens":0,"percent":0},"kiroResponses":{"tokens":64,"percent":1.1},"yourPrompts":{"tokens":473,"percent":7.8},"sessionFiles":{"tokens":0,"percent":0,"items":[]}},"kind":"context_usage","usagePercentage":9.381500244140625}}}}}}
40
+{"type":"expect_outbound","label":"request:session/close","frame":{"kind":"request","method":"session/close","params":{"sessionId":"sess_00000000-0000-4000-8000-000000000001"}}}
41
+{"type":"emit_inbound","label":"response:session/close","frame":{"kind":"response","method":"session/close","result":{}}}
42
+{"type":"runtime_exit","status":"success"}
apps/server/src/provider/KiroProvider.test.ts
new
+446
@@ -0,0 +1,446 @@
1
+import * as NodeServices from "@effect/platform-node/NodeServices";
2
+import { assert, describe, it } from "@effect/vitest";
3
+import { KiroSettings } from "@t3tools/provider-kiro/settings";
4
+import * as Deferred from "effect/Deferred";
5
+import * as Effect from "effect/Effect";
6
+import * as Queue from "effect/Queue";
7
+import * as Schema from "effect/Schema";
8
+import * as Sink from "effect/Sink";
9
+import * as Stream from "effect/Stream";
10
+import { ChildProcess, ChildProcessSpawner } from "effect/process";
11
+
12
+import {
13
+ checkKiroProviderStatus,
14
+ kiroAgentDescriptor,
15
+ kiroDefaultModelId,
16
+} from "@t3tools/provider-kiro/testing";
17
+
18
+const encoder = new TextEncoder();
19
+const settings = Schema.decodeSync(KiroSettings)({ enabled: true });
20
+
21
+interface CliOutput {
22
+ readonly stdout: string;
23
+ readonly code: number;
24
+}
25
+
26
+function processHandle(output: CliOutput) {
27
+ return ChildProcessSpawner.makeHandle({
28
+ pid: ChildProcessSpawner.ProcessId(900_000_002),
29
+ exitCode: Effect.succeed(ChildProcessSpawner.ExitCode(output.code)),
30
+ isRunning: Effect.succeed(false),
31
+ kill: () => Effect.void,
32
+ unref: Effect.succeed(Effect.void),
33
+ stdin: Sink.drain,
34
+ stdout:
35
+ output.stdout.length === 0 ? Stream.empty : Stream.succeed(encoder.encode(output.stdout)),
36
+ stderr: Stream.empty,
37
+ all: Stream.empty,
38
+ getInputFd: () => Sink.drain,
39
+ getOutputFd: () => Stream.empty,
40
+ });
41
+}
42
+
43
+const KIRO_ACP_ARGS = "acp --agent-engine=v3 --auth-method=cli";
44
+const decodeRequest = Schema.decodeUnknownSync(
45
+ Schema.fromJsonString(
46
+ Schema.Struct({ id: Schema.Union([Schema.String, Schema.Number]), method: Schema.String }),
47
+ ),
48
+);
49
+
50
+/**
51
+ * A `kiro-cli acp` that answers `initialize` and `_kiro/config/template` and
52
+ * fails anything else, so a probe that opened a session would fail.
53
+ */
54
+const acpProcess = (template: unknown) =>
55
+ Effect.gen(function* () {
56
+ const output = yield* Queue.unbounded<Uint8Array>();
57
+ const exited = yield* Deferred.make<ChildProcessSpawner.ExitCode>();
58
+ const terminate = Deferred.succeed(exited, ChildProcessSpawner.ExitCode(0)).pipe(
59
+ Effect.andThen(Queue.shutdown(output)),
60
+ Effect.asVoid,
61
+ );
62
+ const reply = (line: string) => {
63
+ const request = decodeRequest(line);
64
+ const response =
65
+ request.method === "initialize"
66
+ ? { result: { protocolVersion: 1, agentCapabilities: {}, authMethods: [] } }
67
+ : request.method === "_kiro/config/template"
68
+ ? { result: template }
69
+ : { error: { code: -32601, message: `${request.method} is not scripted` } };
70
+ return Queue.offer(
71
+ output,
72
+ encoder.encode(`${JSON.stringify({ jsonrpc: "2.0", id: request.id, ...response })}\n`),
73
+ );
74
+ };
75
+ return ChildProcessSpawner.makeHandle({
76
+ pid: ChildProcessSpawner.ProcessId(900_000_003),
77
+ exitCode: Deferred.await(exited),
78
+ isRunning: Deferred.isDone(exited).pipe(Effect.map((done) => !done)),
79
+ kill: () => terminate,
80
+ unref: Effect.succeed(Effect.void),
81
+ stdin: Sink.forEach((bytes: Uint8Array) =>
82
+ Effect.forEach(
83
+ new TextDecoder()
84
+ .decode(bytes)
85
+ .split("\n")
86
+ .filter((line) => line.trim().length > 0),
87
+ reply,
88
+ ),
89
+ ),
90
+ stdout: Stream.fromQueue(output),
91
+ stderr: Stream.empty,
92
+ all: Stream.empty,
93
+ getInputFd: () => Sink.drain,
94
+ getOutputFd: () => Stream.empty,
95
+ });
96
+ });
97
+
98
+/** Answers `kiro-cli` invocations by their arguments and records which ran. */
99
+function kiroCli(outputs: Record<string, CliOutput>, template?: unknown) {
100
+ const invoked: Array<string> = [];
101
+ const spawner = ChildProcessSpawner.make((command) => {
102
+ const args = ChildProcess.isStandardCommand(command) ? command.args.join(" ") : "";
103
+ invoked.push(args);
104
+ return args === KIRO_ACP_ARGS && template !== undefined
105
+ ? acpProcess(template)
106
+ : Effect.succeed(processHandle(outputs[args] ?? { stdout: "", code: 127 }));
107
+ });
108
+ return { invoked, spawner };
109
+}
110
+
111
+const check = (
112
+ outputs: Record<string, CliOutput>,
113
+ options: { readonly template?: unknown; readonly settings?: KiroSettings } = {},
114
+) =>
115
+ Effect.gen(function* () {
116
+ const cli = kiroCli(outputs, options.template);
117
+ const snapshot = yield* checkKiroProviderStatus(options.settings ?? settings, {}).pipe(
118
+ Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, cli.spawner),
119
+ );
120
+ return { snapshot, invoked: cli.invoked };
121
+ }).pipe(Effect.provide(NodeServices.layer));
122
+
123
+describe("KiroProvider", () => {
124
+ it.effect("reports a CLI whose version probe exits nonzero as failing to run", () =>
125
+ Effect.gen(function* () {
126
+ const { snapshot, invoked } = yield* check({
127
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 1 },
128
+ });
129
+ assert.equal(snapshot.status, "error");
130
+ assert.isTrue(snapshot.installed);
131
+ assert.equal(snapshot.message, "Kiro CLI is installed but failed to run.");
132
+ // A broken CLI is not asked for its sign-in.
133
+ assert.deepEqual(invoked, ["--version"]);
134
+ }),
135
+ );
136
+
137
+ // `whoami` outputs recorded from Kiro CLI 2.27.0.
138
+ it.effect("asks for kiro-cli login when Kiro is signed out", () =>
139
+ Effect.gen(function* () {
140
+ const { snapshot } = yield* check({
141
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
142
+ "whoami --format json": { stdout: '{"account":null}\n', code: 1 },
143
+ });
144
+ assert.equal(snapshot.status, "error");
145
+ assert.equal(snapshot.version, "2.27.0");
146
+ assert.equal(snapshot.auth.status, "unauthenticated");
147
+ assert.include(snapshot.message ?? "", "kiro-cli login");
148
+ }),
149
+ );
150
+
151
+ it.effect("is ready once Kiro reports a signed-in account", () =>
152
+ Effect.gen(function* () {
153
+ const { snapshot } = yield* check({
154
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
155
+ "whoami --format json": { stdout: '{"accountType":"ApiKey","email":null}\n', code: 0 },
156
+ });
157
+ assert.equal(snapshot.status, "ready");
158
+ assert.equal(snapshot.auth.status, "authenticated");
159
+ // The version advisory is what the compatibility check and update UI read.
160
+ assert.equal(snapshot.versionAdvisory?.currentVersion, "2.27.0");
161
+ assert.isFalse(snapshot.versionAdvisory?.canUpdate);
162
+ }),
163
+ );
164
+
165
+ // Shape of `kiro-cli chat --list-models --format json` on Kiro CLI 2.27.0, trimmed to three models.
166
+ const KIRO_MODEL_LIST = JSON.stringify({
167
+ models: [
168
+ { model_name: "auto", model_id: "auto", description: "Models chosen by task" },
169
+ { model_name: "claude-sonnet-4.5", model_id: "claude-sonnet-4.5" },
170
+ { model_name: "claude-haiku-4.5", model_id: "claude-haiku-4.5" },
171
+ ],
172
+ default_model: "auto",
173
+ });
174
+
175
+ it.effect("lists the signed-in account's models with auto as the Kiro default", () =>
176
+ Effect.gen(function* () {
177
+ const { snapshot } = yield* check({
178
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
179
+ "whoami --format json": { stdout: '{"accountType":"SocialGitHub"}\n', code: 0 },
180
+ "chat --list-models --format json": { stdout: `${KIRO_MODEL_LIST}\n`, code: 0 },
181
+ });
182
+ assert.deepEqual(
183
+ snapshot.models.map((model) => [model.slug, model.name, model.isDefault === true]),
184
+ [
185
+ ["default", "auto", true],
186
+ ["claude-sonnet-4.5", "claude-sonnet-4.5", false],
187
+ ["claude-haiku-4.5", "claude-haiku-4.5", false],
188
+ ],
189
+ );
190
+ }),
191
+ );
192
+
193
+ it.effect("names Kiro default after the model Kiro's list names as its default", () =>
194
+ Effect.gen(function* () {
195
+ const signedIn = {
196
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
197
+ "whoami --format json": { stdout: '{"accountType":"SocialGitHub"}\n', code: 0 },
198
+ };
199
+ const listed = yield* check({
200
+ ...signedIn,
201
+ "chat --list-models --format json": {
202
+ stdout: KIRO_MODEL_LIST.replace(
203
+ '"default_model":"auto"',
204
+ '"default_model":"claude-sonnet-4.5"',
205
+ ),
206
+ code: 0,
207
+ },
208
+ });
209
+ assert.deepEqual(
210
+ listed.snapshot.models.map((model) => [model.slug, model.name]),
211
+ [
212
+ ["auto", "auto"],
213
+ ["default", "claude-sonnet-4.5"],
214
+ ["claude-haiku-4.5", "claude-haiku-4.5"],
215
+ ],
216
+ );
217
+ assert.equal(kiroDefaultModelId(listed.snapshot.models), "claude-sonnet-4.5");
218
+ // An unparsable list keeps the built-in entry, which falls back to `auto`.
219
+ const unlisted = yield* check({
220
+ ...signedIn,
221
+ "chat --list-models --format json": { stdout: "not json\n", code: 0 },
222
+ });
223
+ assert.equal(unlisted.snapshot.models[0]?.name, "Kiro default");
224
+ assert.equal(kiroDefaultModelId(unlisted.snapshot.models), "auto");
225
+ }),
226
+ );
227
+
228
+ it.effect("lists Kiro default even when Kiro's model list leaves its default out", () =>
229
+ Effect.gen(function* () {
230
+ const { snapshot } = yield* check({
231
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
232
+ "whoami --format json": { stdout: '{"accountType":"SocialGitHub"}\n', code: 0 },
233
+ "chat --list-models --format json": {
234
+ stdout: JSON.stringify({ models: [{ model_id: "claude-sonnet-4.5" }] }),
235
+ code: 0,
236
+ },
237
+ });
238
+ assert.deepEqual(
239
+ snapshot.models.map((model) => [model.slug, model.name, model.isDefault === true]),
240
+ [
241
+ ["default", "Kiro default", true],
242
+ ["claude-sonnet-4.5", "claude-sonnet-4.5", false],
243
+ ],
244
+ );
245
+ assert.equal(kiroDefaultModelId(snapshot.models), "auto");
246
+ }),
247
+ );
248
+
249
+ // `--list-models` names no effort levels, so the picker's come from Kiro's ids.
250
+ const KIRO_EFFORT_MODEL_LIST = JSON.stringify({
251
+ models: [
252
+ "auto",
253
+ "claude-fable-5.1",
254
+ "claude-opus-5.5",
255
+ "claude-opus-4.6",
256
+ "kimi-k3",
257
+ "claude-sonnet-4.5",
258
+ ].map((id) => ({
259
+ model_name: id,
260
+ model_id: id,
261
+ })),
262
+ default_model: "auto",
263
+ });
264
+
265
+ it.effect("offers each model only the reasoning levels Kiro takes for it", () =>
266
+ Effect.gen(function* () {
267
+ const { snapshot } = yield* check({
268
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
269
+ "whoami --format json": { stdout: '{"accountType":"SocialGitHub"}\n', code: 0 },
270
+ "chat --list-models --format json": { stdout: KIRO_EFFORT_MODEL_LIST, code: 0 },
271
+ });
272
+ const reasoning = snapshot.models.map((model) => {
273
+ const descriptors = model.capabilities?.optionDescriptors ?? [];
274
+ const select = descriptors.find((descriptor) => descriptor.id === "reasoningEffort");
275
+ return select?.type === "select"
276
+ ? {
277
+ slug: model.slug,
278
+ label: select.label,
279
+ levels: select.options.map((choice) => choice.id),
280
+ defaults: select.options.filter((choice) => choice.isDefault).map((c) => c.id),
281
+ currentValue: select.currentValue,
282
+ }
283
+ : { slug: model.slug, descriptors: descriptors.length };
284
+ });
285
+ assert.deepEqual(reasoning, [
286
+ // Kiro default and models without effort get no Reasoning select.
287
+ { slug: "default", descriptors: 0 },
288
+ {
289
+ slug: "claude-fable-5.1",
290
+ label: "Reasoning",
291
+ levels: ["low", "medium", "high", "xhigh", "max"],
292
+ defaults: ["high"],
293
+ currentValue: "high",
294
+ },
295
+ {
296
+ slug: "claude-opus-5.5",
297
+ label: "Reasoning",
298
+ levels: ["low", "medium", "high", "xhigh", "max"],
299
+ defaults: ["medium"],
300
+ currentValue: "medium",
301
+ },
302
+ // Opus 4.6 has no xhigh, and Kiro runs it at high by default.
303
+ {
304
+ slug: "claude-opus-4.6",
305
+ label: "Reasoning",
306
+ levels: ["low", "medium", "high", "max"],
307
+ defaults: ["high"],
308
+ currentValue: "high",
309
+ },
310
+ // Kimi K3 skips medium and runs at max by default.
311
+ {
312
+ slug: "kimi-k3",
313
+ label: "Reasoning",
314
+ levels: ["low", "high", "max"],
315
+ defaults: ["max"],
316
+ currentValue: "max",
317
+ },
318
+ { slug: "claude-sonnet-4.5", descriptors: 0 },
319
+ ]);
320
+ }),
321
+ );
322
+
323
+ it.effect("gives every model, custom ones too, the agent picker Kiro's template lists", () =>
324
+ Effect.gen(function* () {
325
+ const { snapshot } = yield* check(
326
+ {
327
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
328
+ "whoami --format json": { stdout: '{"accountType":"SocialGitHub"}\n', code: 0 },
329
+ "chat --list-models --format json": { stdout: KIRO_MODEL_LIST, code: 0 },
330
+ },
331
+ {
332
+ template: {
333
+ configOptions: [
334
+ {
335
+ type: "select",
336
+ id: "mode",
337
+ name: "Mode",
338
+ currentValue: "vibe",
339
+ options: [
340
+ { value: "vibe", name: "Default" },
341
+ { value: "reviewer", name: "reviewer" },
342
+ ],
343
+ },
344
+ ],
345
+ },
346
+ settings: { ...settings, customModels: ["my-model"] },
347
+ },
348
+ );
349
+ assert.deepEqual(
350
+ snapshot.models.map((model) => [
351
+ model.slug,
352
+ model.capabilities?.optionDescriptors?.flatMap((descriptor) =>
353
+ descriptor.type === "select" && descriptor.id === "mode"
354
+ ? descriptor.options.map((choice) => choice.id)
355
+ : [],
356
+ ),
357
+ ]),
358
+ [
359
+ ["default", ["vibe", "reviewer"]],
360
+ ["claude-sonnet-4.5", ["vibe", "reviewer"]],
361
+ ["claude-haiku-4.5", ["vibe", "reviewer"]],
362
+ ["my-model", ["vibe", "reviewer"]],
363
+ ],
364
+ );
365
+ }),
366
+ );
367
+
368
+ it("offers Kiro's agents from its config template, Default first", () => {
369
+ // `_kiro/config/template` from kiro-cli 2.27.0 with two user agents in
370
+ // `~/.kiro/agents`, trimmed to three bundled agents and the `mode` option.
371
+ const template = {
372
+ modes: { currentModeId: "vibe", availableModes: [] },
373
+ configOptions: [
374
+ {
375
+ type: "select",
376
+ id: "mode",
377
+ name: "Mode",
378
+ category: "mode",
379
+ currentValue: "vibe",
380
+ options: [
381
+ { value: "vibe", name: "Default", description: "General coding assistance" },
382
+ { value: "spec", name: "Spec", description: "Structured feature development" },
383
+ { value: "plan", name: "Plan", description: "Plan-only mode" },
384
+ { value: "global-probe", name: "global-probe", description: "Global probe agent" },
385
+ { value: "planner", name: "planner", description: null },
386
+ ],
387
+ },
388
+ {
389
+ type: "select",
390
+ id: "autopilot",
391
+ name: "Autopilot",
392
+ currentValue: "on",
393
+ options: [{ value: "on", name: "Autopilot" }],
394
+ },
395
+ ],
396
+ };
397
+ const descriptor = kiroAgentDescriptor(template);
398
+ assert.deepEqual(descriptor, {
399
+ id: "mode",
400
+ label: "Agent",
401
+ type: "select",
402
+ currentValue: "vibe",
403
+ options: [
404
+ { id: "vibe", label: "Default", description: "General coding assistance", isDefault: true },
405
+ { id: "spec", label: "Spec", description: "Structured feature development" },
406
+ { id: "plan", label: "Plan", description: "Plan-only mode" },
407
+ { id: "global-probe", label: "global-probe", description: "Global probe agent" },
408
+ { id: "planner", label: "planner" },
409
+ ],
410
+ });
411
+ // The default follows the agent Kiro starts sessions on.
412
+ const onSpec = kiroAgentDescriptor({
413
+ configOptions: [{ ...template.configOptions[0], currentValue: "spec" }],
414
+ });
415
+ assert.equal(onSpec?.type === "select" ? onSpec.currentValue : undefined, "spec");
416
+ assert.deepEqual(
417
+ onSpec?.type === "select" ? onSpec.options.filter((choice) => choice.isDefault) : [],
418
+ [
419
+ {
420
+ id: "spec",
421
+ label: "Spec",
422
+ description: "Structured feature development",
423
+ isDefault: true,
424
+ },
425
+ ],
426
+ );
427
+ // A template without agents to choose between gives no picker.
428
+ assert.isUndefined(kiroAgentDescriptor({ configOptions: [] }));
429
+ assert.isUndefined(kiroAgentDescriptor("not a template"));
430
+ });
431
+
432
+ it.effect("never lists models while signed out, where listing would start a browser login", () =>
433
+ Effect.gen(function* () {
434
+ const { snapshot, invoked } = yield* check({
435
+ "--version": { stdout: "kiro-cli 2.27.0\n", code: 0 },
436
+ "whoami --format json": { stdout: '{"account":null}\n', code: 1 },
437
+ "chat --list-models --format json": { stdout: `${KIRO_MODEL_LIST}\n`, code: 0 },
438
+ });
439
+ assert.notInclude(invoked, "chat --list-models --format json");
440
+ assert.deepEqual(
441
+ snapshot.models.map((model) => model.slug),
442
+ ["default"],
443
+ );
444
+ }),
445
+ );
446
+});
apps/server/src/provider/builtInDrivers.ts
+3
@@ -15,6 +15,7 @@ import type {
15
AnyProviderDriver,
16
ProviderUsageReaderEnv,
17
} from "@t3tools/provider-core/server/driver";
18
+import { KiroDriver, type KiroDriverEnv } from "@t3tools/provider-kiro/server";
19
20
export type BuiltInDriversEnv =
21
| AcpRegistryDriverEnv
@@ -24,6 +25,7 @@ export type BuiltInDriversEnv =
25
| CursorDriverEnv
26
| FxDriverEnv
27
| GrokDriverEnv
28
+ | KiroDriverEnv
29
| OpenCodeDriverEnv
30
| PiDriverEnv
31
| MuseDriverEnv;
@@ -36,6 +38,7 @@ export const BUILT_IN_DRIVERS: ReadonlyArray<AnyProviderDriver<BuiltInDriversEnv
38
FxDriver,
39
OpenCodeDriver,
40
AntigravityDriver,
41
+ KiroDriver,
42
PiDriver,
43
MuseDriver,
44
AcpRegistryDriver,
apps/server/src/provider/model-manifest.json
+7
-1
@@ -1,6 +1,6 @@
1
{
2
"version": 1,
3
- "updatedAt": "2026-10-28T08:10:39Z",
3
+ "updatedAt": "2026-11-02T21:16:47Z",
4
"compatibility": [
5
{
6
"driver": "codex",
@@ -83,6 +83,12 @@
83
{ "range": "=1.1.1", "status": "supported" }
84
]
85
},
86
+ {
87
+ "driver": "kiro",
88
+ "t3CodeRange": ">=0.0.46",
89
+ "recommendedRange": ">=2.27.0",
90
+ "ranges": [{ "range": ">=2.27.0", "status": "supported" }]
91
+ },
92
{
93
"driver": "pi",
94
"t3CodeRange": ">=0.0.46",
apps/server/src/provider/providerStatusCache.ts
+1
@@ -35,6 +35,7 @@ const BUILT_IN_DRIVER_ORDER: ReadonlyArray<string> = [
35
"opencode",
36
"antigravity",
37
"fx",
38
+ "kiro",
39
];
40
41
const driverRank = (driver: string): number => {
apps/server/src/settingsSecrets.ts
+10
-1
@@ -12,6 +12,7 @@ import {
12
import { acpRegistryClient } from "@t3tools/provider-acp-registry/client";
13
import { cursorClient } from "@t3tools/provider-cursor/client";
14
import { grokClient } from "@t3tools/provider-grok/client";
15
+import { kiroClient } from "@t3tools/provider-kiro/client";
16
import { museClient } from "@t3tools/provider-muse/client";
17
import { openCodeClient } from "@t3tools/provider-opencode/client";
18
import { piClient } from "@t3tools/provider-pi/client";
@@ -28,7 +29,15 @@ const providerSecretFields = new Map([
29
["codex", secretSettingsFields(CodexSettings)],
30
["claudeAgent", secretSettingsFields(ClaudeSettings)],
31
["antigravity", secretSettingsFields(AntigravitySettings)],
31
- ...[cursorClient, grokClient, museClient, openCodeClient, piClient, acpRegistryClient].map(
32
+ ...[
33
+ cursorClient,
34
+ grokClient,
35
+ kiroClient,
36
+ museClient,
37
+ openCodeClient,
38
+ piClient,
39
+ acpRegistryClient,
40
+ ].map(
41
(definition) =>
42
[definition.driverKind, secretSettingsFields(definition.settingsSchema)] as const,
43
),
apps/web/src/components/settings/settingsSearch.ts
+4
-2
@@ -604,7 +604,9 @@ export const SETTINGS_SEARCH_ITEMS = [
604
id: "provider-update-checks",
605
title: "Provider update checks",
606
to: "/settings/maintenance",
607
- searchTerms: ["installed cli versions newer available codex claude cursor grok fx opencode"],
607
+ searchTerms: [
608
+ "installed cli versions newer available codex claude cursor grok fx kiro opencode",
609
+ ],
610
scope: "environment-defaults",
611
},
612
{
@@ -806,7 +808,7 @@ export const SETTINGS_SEARCH_ITEMS = [
808
title: "Providers",
809
to: "/settings/providers",
810
searchTerms: [
809
- "agents cli codex claude cursor grok fx opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory codex_home shadow home endpoint arguments environment variables display name accent color custom favorite hidden auto compact native sessions import resume",
811
+ "agents cli codex claude cursor grok fx kiro opencode antigravity google sign in sign out install subscription instances authentication api key models configuration binary path config directory codex_home shadow home endpoint arguments environment variables display name accent color custom favorite hidden auto compact native sessions import resume",
812
],
813
},
814
{
docs/README.md
+1
-1
@@ -25,7 +25,7 @@
25
- [Running in the background](./user/background-service.md)
26
- [Updating T3 Code](./user/updating.md)
27
- [Triage an issue](./user/triage.md)
28
-- Provider guides: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md) · [OpenCode](./user/providers-opencode.md) · [Antigravity](./user/providers-antigravity.md) · [Pi](./user/providers-pi.md) · [Muse Code](./user/providers-muse.md) · [fx](./user/providers-fx.md)
28
+- Provider guides: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md) · [OpenCode](./user/providers-opencode.md) · [Antigravity](./user/providers-antigravity.md) · [Kiro](./user/providers-kiro.md) · [Pi](./user/providers-pi.md) · [Muse Code](./user/providers-muse.md) · [fx](./user/providers-fx.md)
29
30
---
31
docs/user/install.md
+3
-2
@@ -164,6 +164,7 @@ computer.
164
| Claude | Install [Claude Code](https://claude.com/product/claude-code), then run `claude auth login`. |
165
| Cursor | Install [Cursor CLI](https://cursor.com/cli), then run `agent login`. |
166
| Grok Build | Install [Grok Build CLI](https://x.ai/cli), then run `grok login`. |
167
+| Kiro | Install [Kiro CLI](https://kiro.dev/docs/cli/), then run `kiro-cli login`. |
168
| OpenCode | Install [OpenCode](https://opencode.ai), then run `opencode auth login`. |
169
| Antigravity | Install and sign in with Google from T3 Code's provider settings. |
170
| Pi | Install [Pi](./providers-pi.md#set-up-pi) with Node.js 22.19 or newer, then run `pi` and `/login`. |
@@ -198,8 +199,8 @@ their original values.
199
200
For provider-specific setup and accounts, see [Codex](./providers-codex.md),
201
[Claude](./providers-claude.md), [OpenCode](./providers-opencode.md),
201
-[Antigravity](./providers-antigravity.md), [Pi](./providers-pi.md),
202
-[Muse Code](./providers-muse.md), and [fx](./providers-fx.md).
202
+[Antigravity](./providers-antigravity.md), [Kiro](./providers-kiro.md),
203
+[Pi](./providers-pi.md), [Muse Code](./providers-muse.md), and [fx](./providers-fx.md).
204
205
## Next steps
206
docs/user/permission-modes.md
+3
@@ -54,4 +54,7 @@ directly to the agent that asked, including a subagent. Other pending requests s
54
Antigravity can still send native approval requests in **Full access**. It only offers remembered
55
approvals for actions that support them.
56
57
+Kiro offers only **Supervised** and **Full access**. In **Supervised** Kiro also asks you to
58
+review a turn's file changes. See [Kiro permissions](./providers-kiro.md#permission-modes).
59
+
60
See the [provider guides](./install.md#providers) for setup and provider-specific limits.
docs/user/providers-kiro.md
new
+60
@@ -0,0 +1,60 @@
1
+# Kiro
2
+
3
+T3 Code runs the [Kiro CLI](https://kiro.dev/docs/cli/) as an agent, using your own Kiro account,
4
+custom agents, steering, hooks, and MCP configuration.
5
+
6
+## Set Up Kiro
7
+
8
+1. Install the Kiro CLI on the machine running the T3 Code server. On macOS or Linux, run
9
+ `curl -fsSL https://cli.kiro.dev/install | bash`. On Windows 11, run
10
+ `irm 'https://cli.kiro.dev/install.ps1' | iex` in PowerShell. Kiro's
11
+ [installation guide](https://kiro.dev/docs/getting-started/installation/) lists other options.
12
+2. Run `kiro-cli login` once in a terminal. Kiro Pro and higher plans can instead set an API key as
13
+ `KIRO_API_KEY` in the Kiro provider's environment variables.
14
+3. Open **Settings → Providers**, enable Kiro, and refresh it.
15
+
16
+If `kiro-cli` is not on the server's `PATH`, set its **Binary path**. On macOS and Linux, the
17
+installer usually puts it in `~/.local/bin`. T3 Code starts Kiro's CLI V3 engine, so a Kiro CLI
18
+that cannot run V3 will not start.
19
+
20
+## Models
21
+
22
+The model picker lists the models your Kiro account can use once Kiro is signed in. New threads
23
+start on your Kiro default model: `auto`, which lets Kiro choose, unless your account or
24
+organization sets another. A model your account cannot use stops the turn with an error instead of
25
+running on another model.
26
+
27
+Models with adjustable reasoning effort, such as recent Claude Opus and Sonnet models and GPT-5.6,
28
+show a **Reasoning** setting with only the levels Kiro offers for that model. Your default model and
29
+models without effort control run at Kiro's own setting.
30
+
31
+## Agents
32
+
33
+The **Agent** setting next to the model picks the
34
+[Kiro agent](https://kiro.dev/docs/custom-agents/) a thread runs as: Kiro's built-in agents such as
35
+Spec and Plan, and your own agents in `~/.kiro/agents`. Agents in a project's `.kiro/agents` are
36
+not listed yet. Refresh the Kiro provider after adding or removing an agent.
37
+
38
+The thread's model still applies when an agent sets its own `model`. An agent that was removed
39
+leaves the thread on Kiro's current agent.
40
+
41
+## Permission Modes
42
+
43
+Kiro asks before tool calls such as writes and commands, and T3 Code answers by the permission mode:
44
+
45
+- **Supervised** sends those requests to you. Kiro's Autopilot is off, so Kiro also asks you to
46
+ review the turn's file changes before it finishes.
47
+- **Full access** approves them without asking you. Autopilot stays on, so there is no review step.
48
+
49
+Kiro offers no **Auto** or **Auto-accept edits**. Approvals offer only the choices Kiro sends. Kiro's
50
+**Always allow** saves a rule for the whole workspace, so T3 Code shows it only when Kiro offers no
51
+one-time choice.
52
+
53
+## Steering, Forks and Compaction
54
+
55
+- A message you send while Kiro is working joins the running turn. Kiro reads it once its current
56
+ step or tool call finishes. A message with images stops the turn and starts a new one with it.
57
+- Forking a thread from a message gives the fork Kiro's own copy of the conversation up to that
58
+ message.
59
+- `/compact` uses Kiro's own compaction. Kiro also compacts on its own as the conversation fills its
60
+ context.
package.json
+1
-1
@@ -31,7 +31,7 @@
31
"report:renders": "node scripts/render-metrics.ts",
32
"lint": "vp lint --report-unused-disable-directives",
33
"knip": "knip --preprocessor ./scripts/knip-schemas.ts",
34
- "knip:check": "knip --include files,dependencies --no-config-hints && knip --workspace apps/server --workspace apps/desktop --workspace apps/web --workspace packages/client-runtime --workspace packages/contracts --workspace packages/effect-acp --workspace packages/effect-codex-app-server --workspace packages/shared --workspace packages/ssh --workspace packages/tailscale --workspace packages/provider-core --workspace packages/provider-acp --workspace packages/provider-acp-registry --workspace packages/provider-testing --workspace packages/provider-pi --workspace packages/provider-muse --workspace packages/provider-opencode --workspace packages/provider-cursor --workspace packages/provider-fx --workspace packages/provider-grok --workspace packages/secret-provider-core --workspace packages/secret-provider-definitions --workspace packages/secret-provider-onepassword --workspace packages/source-control-core --workspace packages/source-control-definitions --workspace packages/source-control-azure-devops --workspace packages/source-control-bitbucket --workspace packages/source-control-forgejo --workspace packages/source-control-gitcafe --workspace packages/source-control-github --workspace packages/source-control-gitlab --workspace packages/source-control-testing --exports --preprocessor ./scripts/knip-schemas.ts --no-config-hints",
34
+ "knip:check": "knip --include files,dependencies --no-config-hints && knip --workspace apps/server --workspace apps/desktop --workspace apps/web --workspace packages/client-runtime --workspace packages/contracts --workspace packages/effect-acp --workspace packages/effect-codex-app-server --workspace packages/shared --workspace packages/ssh --workspace packages/tailscale --workspace packages/provider-core --workspace packages/provider-acp --workspace packages/provider-acp-registry --workspace packages/provider-testing --workspace packages/provider-pi --workspace packages/provider-muse --workspace packages/provider-opencode --workspace packages/provider-cursor --workspace packages/provider-fx --workspace packages/provider-grok --workspace packages/provider-kiro --workspace packages/secret-provider-core --workspace packages/secret-provider-definitions --workspace packages/secret-provider-onepassword --workspace packages/source-control-core --workspace packages/source-control-definitions --workspace packages/source-control-azure-devops --workspace packages/source-control-bitbucket --workspace packages/source-control-forgejo --workspace packages/source-control-gitcafe --workspace packages/source-control-github --workspace packages/source-control-gitlab --workspace packages/source-control-testing --exports --preprocessor ./scripts/knip-schemas.ts --no-config-hints",
35
"knip:production": "knip --production --preprocessor ./scripts/knip-schemas.ts",
36
"lint:mobile": "node scripts/mobile-native-static-check.ts",
37
"mobile:install": "node scripts/mobile-native-client.ts ensure",
packages/client-runtime/package.json
+1
@@ -532,6 +532,7 @@
532
"@t3tools/provider-cursor": "workspace:*",
533
"@t3tools/provider-fx": "workspace:*",
534
"@t3tools/provider-grok": "workspace:*",
535
+ "@t3tools/provider-kiro": "workspace:*",
536
"@t3tools/provider-muse": "workspace:*",
537
"@t3tools/provider-opencode": "workspace:*",
538
"@t3tools/provider-pi": "workspace:*",
packages/client-runtime/src/providerClients.ts
+2
@@ -11,6 +11,7 @@ import { modelShortName } from "@t3tools/provider-core/modelShortName";
11
import { cursorClient } from "@t3tools/provider-cursor/client";
12
import { fxClient } from "@t3tools/provider-fx/client";
13
import { grokClient } from "@t3tools/provider-grok/client";
14
+import { kiroClient } from "@t3tools/provider-kiro/client";
15
import { museClient } from "@t3tools/provider-muse/client";
16
import { openCodeClient } from "@t3tools/provider-opencode/client";
17
import { piClient } from "@t3tools/provider-pi/client";
@@ -41,6 +42,7 @@ export const providerClients = makeProviderClientRegistry([
42
acpRegistryAgentIds: ["antigravity-acp"],
43
settingsSchema: AntigravitySettings,
44
},
45
+ kiroClient,
46
museClient,
47
piClient,
48
acpRegistryClient,
packages/contracts/src/model.ts
+4
@@ -119,6 +119,7 @@ const CLAUDE_DRIVER_KIND = ProviderDriverKind.make("claudeAgent");
119
const CURSOR_DRIVER_KIND = ProviderDriverKind.make("cursor");
120
const GROK_DRIVER_KIND = ProviderDriverKind.make("grok");
121
const FX_DRIVER_KIND = ProviderDriverKind.make("fx");
122
+const KIRO_DRIVER_KIND = ProviderDriverKind.make("kiro");
123
const MUSE_DRIVER_KIND = ProviderDriverKind.make("muse");
124
const PI_DRIVER_KIND = ProviderDriverKind.make("pi");
125
const ACP_REGISTRY_DRIVER_KIND = ProviderDriverKind.make("acpRegistry");
@@ -147,6 +148,8 @@ export const DEFAULT_MODEL_BY_PROVIDER: Partial<Record<ProviderDriverKind, strin
148
// Product slug meaning the current session model, never an ACP model id.
149
[GROK_DRIVER_KIND]: "grok-build",
150
[FX_DRIVER_KIND]: "default",
151
+ // Keeps the Kiro session's current model; real models come from its `model` config option.
152
+ [KIRO_DRIVER_KIND]: "default",
153
[MUSE_DRIVER_KIND]: MUSE_DEFAULT_MODEL,
154
[ACP_REGISTRY_DRIVER_KIND]: "default",
155
// "default" defers to the user's own Pi settings.json model selection.
@@ -198,6 +201,7 @@ export const PROVIDER_DISPLAY_NAMES: Partial<Record<ProviderDriverKind, string>>
201
[CURSOR_DRIVER_KIND]: "Cursor",
202
[GROK_DRIVER_KIND]: "Grok",
203
[FX_DRIVER_KIND]: "fx",
204
+ [KIRO_DRIVER_KIND]: "Kiro",
205
[MUSE_DRIVER_KIND]: "Muse Code",
206
[ACP_REGISTRY_DRIVER_KIND]: "ACP Registry",
207
[PI_DRIVER_KIND]: "Pi",
packages/contracts/src/orchestrationV2.ts
+2
@@ -285,6 +285,8 @@ export const OrchestrationV2TurnCapabilities = Schema.Struct({
285
supportsActiveSteering: Schema.Boolean,
286
// Some native steering mechanisms cancel pending tools before consuming the message.
287
activeSteeringInterruptsTools: Schema.optional(Schema.Boolean),
288
+ // Some take text only, so a steer with attachments restarts the turn instead.
289
+ activeSteeringAcceptsAttachments: Schema.optional(Schema.Boolean),
290
supportsSteeringByInterruptRestart: Schema.Boolean,
291
supportsQueuedMessages: Schema.Boolean,
292
terminalStatusQuality: Schema.Literals(["strong", "weak", "none"]),
packages/contracts/src/settings.ts
+1
-1
@@ -1392,7 +1392,7 @@ export const providerInstanceConfigEnabledFlag = (config: unknown): boolean | un
1392
1393
// Must match each driver's enabled decoding default.
1394
const DEFAULT_DISABLED_PROVIDER_DRIVERS: ReadonlySet<ProviderDriverKind> = new Set(
1395
- ["cursor", "grok", "fx", "muse", "pi", "opencode", "antigravity"].map((driver) =>
1395
+ ["cursor", "grok", "fx", "kiro", "muse", "pi", "opencode", "antigravity"].map((driver) =>
1396
ProviderDriverKind.make(driver),
1397
),
1398
);
packages/provider-acp/src/server/AcpSessionRuntime.ts
+66
-27
@@ -21,6 +21,7 @@ import * as Schema from "effect/Schema";
21
import * as Scope from "effect/Scope";
22
import * as Semaphore from "effect/Semaphore";
23
import * as Stream from "effect/Stream";
24
+import * as SubscriptionRef from "effect/SubscriptionRef";
25
import * as ChildProcess from "effect/process/ChildProcess";
26
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
27
import * as EffectAcpClient from "effect-acp/client";
@@ -1126,6 +1127,8 @@ export class AcpSessionRuntime extends Context.Service<
1127
readonly drainEvents: Effect.Effect<void>;
1128
readonly getModeState: Effect.Effect<AcpSessionModeState | undefined>;
1129
readonly getConfigOptions: Effect.Effect<ReadonlyArray<EffectAcpSchema.SessionConfigOption>>;
1130
+ /** The current configuration options, then each later change. */
1131
+ readonly configOptionChanges: Stream.Stream<ReadonlyArray<EffectAcpSchema.SessionConfigOption>>;
1132
readonly loadSession: (
1133
sessionId: string,
1134
options?: AcpSessionActivationOptions,
@@ -1137,6 +1140,7 @@ export class AcpSessionRuntime extends Context.Service<
1140
readonly forkSession: (
1141
sessionId: string,
1142
options?: AcpSessionActivationOptions,
1143
+ meta?: NonNullable<EffectAcpSchema.ForkSessionRequest["_meta"]>,
1144
) => Effect.Effect<AcpSessionRuntimeStartResult, EffectAcpErrors.AcpError>;
1145
readonly listSessions: (
1146
cursor?: string,
@@ -1255,7 +1259,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
1259
),
1260
);
1261
const assistantSegmentRef = yield* Ref.make<AcpAssistantSegmentState>({ nextSegmentIndex: 0 });
1258
- const configOptionsRef = yield* Ref.make(sessionConfigOptionsFromSetup(undefined));
1262
+ const configOptionsRef = yield* SubscriptionRef.make(sessionConfigOptionsFromSetup(undefined));
1263
const initializeStateRef = yield* Ref.make<AcpInitializeState>({ _tag: "NotStarted" });
1264
const startStateRef = yield* Ref.make<AcpStartState>({ _tag: "NotStarted" });
1265
const startupMetadataRef = yield* Ref.make<ReadonlyArray<EffectAcpSchema.SessionNotification>>(
@@ -1682,17 +1686,26 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
1686
1687
const acp = yield* Effect.service(EffectAcpClient.AcpClient).pipe(Effect.provide(acpContext));
1688
1689
+ // Counts applied `config_option_update`s; see setConfigOption.
1690
+ const configOptionUpdates = yield* Ref.make(0);
1691
const processSessionUpdate = (notification: EffectAcpSchema.SessionNotification) =>
1686
- handleSessionUpdate({
1687
- queue: eventQueue,
1688
- modeStateRef,
1689
- configOptionsRef,
1690
- toolCallsRef,
1691
- shownToolCallIds,
1692
- assistantSegmentRef,
1693
- assistantItemRuntimeId,
1694
- params: notification,
1695
- });
1692
+ (notification.update.sessionUpdate === "config_option_update"
1693
+ ? Ref.update(configOptionUpdates, (count) => count + 1)
1694
+ : Effect.void
1695
+ ).pipe(
1696
+ Effect.andThen(
1697
+ handleSessionUpdate({
1698
+ queue: eventQueue,
1699
+ modeStateRef,
1700
+ configOptionsRef,
1701
+ toolCallsRef,
1702
+ shownToolCallIds,
1703
+ assistantSegmentRef,
1704
+ assistantItemRuntimeId,
1705
+ params: notification,
1706
+ }),
1707
+ ),
1708
+ );
1709
1710
yield* acp.handleSessionUpdate((notification) =>
1711
notificationSemaphore.withPermit(
@@ -1807,7 +1820,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
1820
value: string | boolean,
1821
allowUnlistedValue: boolean,
1822
): Effect.fn.Return<void, EffectAcpErrors.AcpError> {
1810
- const configOptions = yield* Ref.get(configOptionsRef);
1823
+ const configOptions = yield* SubscriptionRef.get(configOptionsRef);
1824
const configOption = findSessionConfigOption(configOptions, configId);
1825
if (!configOption) {
1826
return;
@@ -1868,7 +1881,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
1881
| EffectAcpSchema.ResumeSessionResponse,
1882
) {
1883
const configOptions = sessionConfigOptionsFromSetup(response);
1871
- yield* Ref.set(configOptionsRef, configOptions);
1884
+ yield* SubscriptionRef.set(configOptionsRef, configOptions);
1885
yield* Queue.offer(eventQueue, {
1886
_tag: "ConfigOptionsUpdated",
1887
configOptions,
@@ -1911,9 +1924,15 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
1924
sessionSetupResult.configOptions !== undefined &&
1925
sessionSetupResult.configOptions !== null
1926
) {
1914
- yield* Ref.set(configOptionsRef, sessionConfigOptionsFromSetup(sessionSetupResult));
1927
+ yield* SubscriptionRef.set(
1928
+ configOptionsRef,
1929
+ sessionConfigOptionsFromSetup(sessionSetupResult),
1930
+ );
1931
} else if (!syntheticReplayIdle) {
1916
- yield* Ref.set(configOptionsRef, sessionConfigOptionsFromSetup(sessionSetupResult));
1932
+ yield* SubscriptionRef.set(
1933
+ configOptionsRef,
1934
+ sessionConfigOptionsFromSetup(sessionSetupResult),
1935
+ );
1936
}
1937
const nextState = {
1938
sessionId,
@@ -2016,7 +2035,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2035
validateConfigOptionValue(configId, value, options?.allowUnlistedValue === true).pipe(
2036
Effect.andThen(getStartedState),
2037
Effect.flatMap((started) =>
2019
- Ref.get(configOptionsRef).pipe(
2038
+ SubscriptionRef.get(configOptionsRef).pipe(
2039
Effect.flatMap((configOptions) => {
2040
const existing = findSessionConfigOption(configOptions, configId);
2041
if (existing && configOptionCurrentValueMatches(existing, value)) {
@@ -2037,11 +2056,27 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2056
configId,
2057
value: String(value),
2058
} satisfies EffectAcpSchema.SetSessionConfigOptionRequest);
2040
- return runLoggedRequest(
2041
- "session/set_config_option",
2042
- requestPayload,
2043
- acp.agent.setSessionConfigOption(requestPayload),
2044
- ).pipe(Effect.tap((response) => updateConfigOptions(response)));
2059
+ // An update the agent pushed while the write was in flight is
2060
+ // newer than its result: Kiro 2.32 answers a `model` write
2061
+ // without `model`, then advertises it, and that update can be
2062
+ // handled before this fiber resumes. The result then stays out.
2063
+ return Ref.get(configOptionUpdates).pipe(
2064
+ Effect.flatMap((updatesBefore) =>
2065
+ runLoggedRequest(
2066
+ "session/set_config_option",
2067
+ requestPayload,
2068
+ acp.agent.setSessionConfigOption(requestPayload),
2069
+ ).pipe(
2070
+ Effect.tap((response) =>
2071
+ Ref.get(configOptionUpdates).pipe(
2072
+ Effect.flatMap((updatesNow) =>
2073
+ updatesNow === updatesBefore ? updateConfigOptions(response) : Effect.void,
2074
+ ),
2075
+ ),
2076
+ ),
2077
+ ),
2078
+ ),
2079
+ );
2080
}),
2081
),
2082
),
@@ -2249,7 +2284,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2284
);
2285
2286
yield* Ref.set(modeStateRef, parseSessionModeState(sessionSetupResult));
2252
- yield* Ref.set(configOptionsRef, sessionConfigOptionsFromSetup(sessionSetupResult));
2287
+ yield* SubscriptionRef.set(configOptionsRef, sessionConfigOptionsFromSetup(sessionSetupResult));
2288
2289
const nextState = {
2290
sessionId,
@@ -2406,7 +2441,8 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2441
getEvents: () => Stream.fromQueue(eventQueue),
2442
drainEvents,
2443
getModeState: Ref.get(modeStateRef),
2409
- getConfigOptions: Ref.get(configOptionsRef),
2444
+ getConfigOptions: SubscriptionRef.get(configOptionsRef),
2445
+ configOptionChanges: SubscriptionRef.changes(configOptionsRef),
2446
loadSession: (sessionId, activationOptions) =>
2447
start.pipe(
2448
Effect.flatMap((started) => {
@@ -2437,7 +2473,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2473
}),
2474
Effect.flatMap((response) => adoptSession(sessionId, response)),
2475
),
2440
- forkSession: (sessionId, activationOptions) =>
2476
+ forkSession: (sessionId, activationOptions, meta) =>
2477
start.pipe(
2478
Effect.flatMap((started) => {
2479
const requestPayload = {
@@ -2445,6 +2481,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2481
cwd: options.cwd,
2482
...sessionSetupFields(started.initializeResult),
2483
mcpServers: sessionMcpServers(started.initializeResult, activationOptions),
2484
+ ...(meta === undefined ? {} : { _meta: meta }),
2485
} satisfies EffectAcpSchema.ForkSessionRequest;
2486
return runLoggedRequest(
2487
"session/fork",
@@ -2639,7 +2676,7 @@ export const make = Effect.fn("AcpSessionRuntime.make")(function* (
2676
if (modeState?.currentModeId === modeId) {
2677
return {} satisfies EffectAcpSchema.SetSessionModeResponse;
2678
}
2642
- const modeConfigOption = (yield* Ref.get(configOptionsRef))?.find(
2679
+ const modeConfigOption = (yield* SubscriptionRef.get(configOptionsRef))?.find(
2680
(option) => option.category === "mode" && option.type === "select",
2681
);
2682
if (modeConfigOption === undefined && modeState !== undefined) {
@@ -2742,7 +2779,9 @@ const handleSessionUpdate =
2779
}: {
2780
readonly queue: Queue.Queue<AcpSessionRuntimeEvent>;
2781
readonly modeStateRef: Ref.Ref<AcpSessionModeState | undefined>;
2745
- readonly configOptionsRef: Ref.Ref<ReadonlyArray<EffectAcpSchema.SessionConfigOption>>;
2782
+ readonly configOptionsRef: SubscriptionRef.SubscriptionRef<
2783
+ ReadonlyArray<EffectAcpSchema.SessionConfigOption>
2784
+ >;
2785
readonly toolCallsRef: Ref.Ref<Map<string, AcpToolCallTrackedState>>;
2786
readonly shownToolCallIds: Set<string>;
2787
readonly assistantSegmentRef: Ref.Ref<AcpAssistantSegmentState>;
@@ -2751,7 +2790,7 @@ const handleSessionUpdate =
2790
}): Effect.fn.Return<void> {
2791
if (params.update.sessionUpdate === "config_option_update") {
2792
const configOptions = params.update.configOptions;
2754
- yield* Ref.set(configOptionsRef, configOptions);
2793
+ yield* SubscriptionRef.set(configOptionsRef, configOptions);
2794
yield* Ref.update(
2795
modeStateRef,
2796
(current) => parseSessionModeState({ configOptions }) ?? current,
packages/provider-acp/src/server/adapter.ts
+359
-32
@@ -42,10 +42,11 @@ import { resolveT3McpToolId } from "@t3tools/shared/t3McpToolPresentation";
42
import { compactDynamicToolOutput, htmlRenderFromToolItem } from "@t3tools/shared/toolOutput";
43
import { FILE_HEADERS_ONLY, formatPatch, structuredPatch } from "diff";
44
import * as Cause from "effect/Cause";
45
+import * as Clock from "effect/Clock";
46
import * as Crypto from "effect/Crypto";
47
import * as DateTime from "effect/DateTime";
48
import * as Deferred from "effect/Deferred";
48
-import type * as Duration from "effect/Duration";
49
+import * as Duration from "effect/Duration";
50
import * as Effect from "effect/Effect";
51
import * as Equal from "effect/Equal";
52
import * as Exit from "effect/Exit";
@@ -311,6 +312,12 @@ export interface AcpAdapterV2Flavor {
312
readonly normalizeSessionUpdate?: (
313
notification: EffectAcpSchema.SessionNotification,
314
) => EffectAcpSchema.SessionNotification;
315
+ /**
316
+ * Agent updates that belong to no turn (Kiro's own cloud-config fetch). They
317
+ * are dropped before anything reads them, so they neither show in the turn
318
+ * nor count as it starting.
319
+ */
320
+ readonly ignoreSessionUpdate?: (notification: EffectAcpSchema.SessionNotification) => boolean;
321
readonly onAvailableCommandsUpdate?: (
322
commands: ReadonlyArray<EffectAcpSchema.AvailableCommand>,
323
) => Effect.Effect<void>;
@@ -342,6 +349,12 @@ export interface AcpAdapterV2Flavor {
349
>;
350
readonly customModels?: ReadonlyArray<string>;
351
readonly resolveModelId?: (selection: ModelSelection) => string | undefined;
352
+ /**
353
+ * The agent advertises its model option only after `session/new` returns
354
+ * (Kiro sends it in a `config_option_update`), so in-session model switching
355
+ * is not inferred from the setup result.
356
+ */
357
+ readonly modelOptionArrivesLate?: boolean;
358
readonly getModelContextWindow?: (
359
selection: ModelSelection,
360
session: AcpSessionRuntime.AcpSessionRuntimeStartResult,
@@ -351,9 +364,23 @@ export interface AcpAdapterV2Flavor {
364
readonly startResult: AcpSessionRuntime.AcpSessionRuntimeStartResult;
365
readonly modelSelection: ModelSelection;
366
}) => Effect.Effect<string | undefined, EffectAcpErrors.AcpError>;
367
+ /**
368
+ * Model-selection option ids `applyModelSelection` sets itself under a
369
+ * native id, which the generic option loop then skips (Kiro's
370
+ * `reasoningEffort` is its `effortLevel`).
371
+ */
372
+ readonly ownedModelOptionIds?: ReadonlyArray<string>;
373
readonly sessionModeForPolicy?: (
374
policy: ProviderAdapter.ProviderAdapterV2RuntimePolicy,
375
) => string | undefined;
376
+ /**
377
+ * Native select-option values to apply for a runtime policy (e.g. Kiro's
378
+ * `autopilot`), set on every session configure. A value the session does
379
+ * not advertise is skipped; an agent rejecting it fails the session.
380
+ */
381
+ readonly sessionConfigForPolicy?: (
382
+ policy: ProviderAdapter.ProviderAdapterV2RuntimePolicy,
383
+ ) => ReadonlyArray<{ readonly id: string; readonly value: string }>;
384
/**
385
* The runtime mode a native session mode grants, for flavors whose modes are permission levels.
386
* Under a policy ceiling, a mode the user picks that this does not place under it is not applied.
@@ -390,6 +417,41 @@ export interface AcpAdapterV2Flavor {
417
) => Effect.Effect<void>;
418
readonly subagentsIdleOnTurnCompletion?: boolean;
419
readonly supportsCompaction?: boolean;
420
+ /**
421
+ * Native steering: `send` queues a message into the running turn and returns the
422
+ * agent's id for it, which `injectedSteerId` reads from the update that delivers it.
423
+ */
424
+ readonly steering?: {
425
+ readonly send: (
426
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
427
+ sessionId: string,
428
+ text: string,
429
+ ) => Effect.Effect<string, EffectAcpErrors.AcpError>;
430
+ readonly injectedSteerId: (
431
+ notification: EffectAcpSchema.SessionNotification,
432
+ ) => string | undefined;
433
+ };
434
+ /**
435
+ * Native fork from an earlier turn. `nativeTurnId` reads the agent's id for a running
436
+ * turn's prompt, which the turn keeps as its native ref; forking from that turn sends
437
+ * `forkMeta(id)` as the `session/fork` `_meta`.
438
+ */
439
+ readonly forkFromTurn?: {
440
+ readonly supported: (
441
+ initializeResult: AcpSessionRuntime.AcpSessionRuntimeStartResult["initializeResult"],
442
+ ) => boolean;
443
+ readonly nativeTurnId: (
444
+ notification: EffectAcpSchema.SessionNotification,
445
+ ) => string | undefined;
446
+ readonly forkMeta: (
447
+ nativeTurnId: string,
448
+ ) => NonNullable<EffectAcpSchema.ForkSessionRequest["_meta"]>;
449
+ };
450
+ /** Compacts with the agent's own request, for agents that answer a `/compact` prompt as chat. */
451
+ readonly compactSession?: (
452
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
453
+ sessionId: string,
454
+ ) => Effect.Effect<void, EffectAcpErrors.AcpError>;
455
readonly runtimeHarness?: string;
456
readonly registerExtensions?: (
457
context: AcpAdapterV2ExtensionContext,
@@ -430,6 +492,15 @@ export interface AcpAdapterV2Flavor {
492
readonly assertComplete?: Effect.Effect<void, EffectAcpErrors.AcpError>;
493
/** Interrupt the local prompt fiber before `session/cancel` (Grok wedged prompts). */
494
readonly interruptPromptOnCancel?: boolean;
495
+ /**
496
+ * Hold `session/cancel` until an update after `session/prompt` matches `isStart`,
497
+ * or `bound` has passed; skip it if the prompt settles first. Kiro 2.27.1 can
498
+ * drop a cancel sent just after the prompt and run the turn to completion.
499
+ */
500
+ readonly cancelAfterPromptStarts?: {
501
+ readonly isStart: (update: EffectAcpSchema.SessionUpdate) => boolean;
502
+ readonly bound: Duration.Input;
503
+ };
504
/**
505
* The agent's PromptResponse.usage counters read per-turn. The ACP spec
506
* leaves usage semantics open, so this stays unset until proven live.
@@ -533,6 +604,8 @@ export interface AcpAdapterV2Options {
604
};
605
readonly testHooks?: {
606
readonly onDeferredFinalizeScheduled?: (debounce: Duration.Input) => Effect.Effect<void>;
607
+ /** `cancelAfterPromptStarts`: Stop is holding `session/cancel` until the prompt starts. */
608
+ readonly onCancelHeld?: () => Effect.Effect<void>;
609
readonly afterPromptWireSettled?: () => Effect.Effect<void>;
610
readonly afterPromptSettledWithBackgroundWork?: () => Effect.Effect<void>;
611
readonly onNativeResponseLifecycle?: (event: {
@@ -647,15 +720,57 @@ export const AcpProviderCapabilitiesV2 = {
720
},
721
} satisfies OrchestrationV2ProviderCapabilities;
722
723
+const STEER_DELIVERY_BOUND = "2 seconds";
724
+
725
+/**
726
+ * `session/fork` `_meta` for a fork from `providerTurnId`: none for the session head,
727
+ * the flavor's meta for a turn the agent named, or `null` when the agent can't fork there.
728
+ */
729
+function forkFromTurnMetaFor(input: {
730
+ readonly driver: ProviderDriverKind;
731
+ readonly flavor: Pick<AcpAdapterV2Flavor, "forkFromTurn">;
732
+ readonly canForkFromTurn: boolean;
733
+ readonly forkInput: ProviderAdapter.ProviderAdapterV2ForkThreadInput;
734
+}): NonNullable<EffectAcpSchema.ForkSessionRequest["_meta"]> | undefined | null {
735
+ const { forkInput } = input;
736
+ if (forkInput.providerTurnId === undefined) return undefined;
737
+ const turns = (forkInput.sourceProviderTurns ?? []).filter(
738
+ (turn) => turn.providerThreadId === forkInput.sourceProviderThread.id,
739
+ );
740
+ const target = turns.find((turn) => turn.id === forkInput.providerTurnId);
741
+ if (target === undefined) return null;
742
+ if (turns.every((turn) => turn.ordinal <= target.ordinal)) return undefined;
743
+ const ref = target.nativeTurnRef;
744
+ if (
745
+ input.flavor.forkFromTurn === undefined ||
746
+ !input.canForkFromTurn ||
747
+ ref === null ||
748
+ ref.driver !== input.driver ||
749
+ ref.strength !== "strong" ||
750
+ ref.nativeId === null
751
+ ) {
752
+ return null;
753
+ }
754
+ return input.flavor.forkFromTurn.forkMeta(ref.nativeId);
755
+}
756
+
757
+function isCompactionMessage(message: ProviderAdapter.ProviderAdapterV2TurnMessage): boolean {
758
+ return message.text.trim() === "/compact" && message.attachments.length === 0;
759
+}
760
+
761
function negotiatedCapabilities(
762
base: OrchestrationV2ProviderCapabilities,
763
started: AcpSessionRuntime.AcpSessionRuntimeStartResult,
764
+ modelOptionArrivesLate: boolean,
765
+ forksFromTurn: boolean,
766
): OrchestrationV2ProviderCapabilities {
767
const agent = started.initializeResult.agentCapabilities ?? {};
768
const session = agent.sessionCapabilities;
769
const setup = started.sessionSetupResult;
770
const canSwitchModel =
658
- findModelConfigOption(setup.configOptions) !== undefined || setup.models != null;
771
+ modelOptionArrivesLate ||
772
+ findModelConfigOption(setup.configOptions) !== undefined ||
773
+ setup.models != null;
774
const canLoad = agent.loadSession === true;
775
const canFork = session?.fork != null;
776
return {
@@ -668,7 +783,7 @@ function negotiatedCapabilities(
783
...base.threads,
784
canReadThreadSnapshot: canLoad,
785
canForkThread: canFork,
671
- canForkFromTurn: false,
786
+ canForkFromTurn: canFork && forksFromTurn,
787
},
788
tools: {
789
...base.tools,
@@ -1111,6 +1226,18 @@ function toolStatus(
1226
1227
type ProjectedToolStatus = ReturnType<typeof toolStatus> | "interrupted";
1228
1229
+/**
1230
+ * Some agents answer Stop's `session/cancel` by failing the tools and subagents
1231
+ * that were running (Kiro: "Tool execution was cancelled by the user."). After
1232
+ * Stop, a failure is shown as the interruption it was.
1233
+ */
1234
+function stoppedToolStatus(
1235
+ turn: Pick<ActiveAcpTurn, "interrupted">,
1236
+ tool: AcpToolCallState,
1237
+): "interrupted" | undefined {
1238
+ return turn.interrupted && tool.status === "failed" ? "interrupted" : undefined;
1239
+}
1240
+
1241
function nodeStatus(status: ProjectedToolStatus): OrchestrationV2ExecutionNode["status"] {
1242
return status === "pending" ? "running" : status;
1243
}
@@ -1241,8 +1368,16 @@ interface ActiveAcpTurn {
1368
promptSettledStatus: "completed" | "interrupted" | "failed" | "cancelled" | null;
1369
workAccepted: boolean;
1370
readonly promptWireSettled: Deferred.Deferred<void, never>;
1371
+ /** Completed once `session/prompt` is the runtime's active prompt. */
1372
+ readonly promptDispatched: Deferred.Deferred<void, never>;
1373
+ /** Clock millis just before `session/prompt` was handed to the runtime. */
1374
+ promptSentAt: number | null;
1375
+ /** Completed when an update after dispatch matches `cancelAfterPromptStarts.isStart`. */
1376
+ readonly promptStarted: Deferred.Deferred<void, never>;
1377
promptUsage: EffectAcpSchema.Usage | undefined;
1378
backgroundFinalizeGeneration: number;
1379
+ /** The agent's own id for this turn's prompt, from `forkFromTurn.nativeTurnId`. */
1380
+ nativePromptId: string | undefined;
1381
}
1382
1383
type AcpRuntimeTeardownState =
@@ -1708,6 +1843,15 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
1843
input.runtimePolicy;
1844
const events = yield* Queue.unbounded<ProviderAdapter.ProviderAdapterV2Event>();
1845
const activeTurn = yield* Ref.make<ActiveAcpTurn | null>(null);
1846
+ // Keyed by the agent's steer id; an injection can arrive before its send returns.
1847
+ const steerInjections = new Map<string, Deferred.Deferred<void>>();
1848
+ const steerInjection = (steerId: string) => {
1849
+ const existing = steerInjections.get(steerId);
1850
+ if (existing !== undefined) return existing;
1851
+ const created = Deferred.makeUnsafe<void>();
1852
+ steerInjections.set(steerId, created);
1853
+ return created;
1854
+ };
1855
let pendingStopCloseTurn: ActiveAcpTurn | null = null;
1856
let followsAgentWorkState = false;
1857
let agentWork: Extract<
@@ -2858,9 +3002,14 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
3002
3003
const emitSubagent = Effect.fnUntraced(function* (
3004
context: ActiveAcpTurn,
2861
- update: AcpAdapterV2SubagentUpdate,
3005
+ reported: AcpAdapterV2SubagentUpdate,
3006
) {
2863
- // Hydration uses a new toolCallId but references the original child by task id.
3007
+ // See stoppedToolStatus: after Stop, a failed subagent was interrupted.
3008
+ const update: AcpAdapterV2SubagentUpdate =
3009
+ context.interrupted && reported.status === "failed"
3010
+ ? { ...reported, status: "interrupted" }
3011
+ : reported;
3012
+ // Hydration uses a new toolCallId but references the original child by subagent_id or task id.
3013
const existing =
3014
context.subagents.get(update.nativeTaskId) ??
3015
(update.childSessionId !== null
@@ -3356,10 +3505,12 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
3505
if (update.sessionUpdate === "tool_call" || update.sessionUpdate === "tool_call_update") {
3506
for (const event of parseSessionUpdateEvent(notification).events) {
3507
if (event._tag === "ToolCallUpdated") {
3508
+ const tool = flavor.normalizeToolCall?.(event.toolCall) ?? event.toolCall;
3509
yield* projectSubagentTool(
3510
subagent,
3511
notification.sessionId,
3362
- flavor.normalizeToolCall?.(event.toolCall) ?? event.toolCall,
3512
+ tool,
3513
+ stoppedToolStatus(owner.owner, tool),
3514
);
3515
}
3516
}
@@ -3725,7 +3876,8 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
3876
yield* rearmDeferredFinalize(context);
3877
return;
3878
}
3728
- const status = projectedStatus ?? toolStatus(toolCall.status);
3879
+ const status =
3880
+ projectedStatus ?? stoppedToolStatus(context, toolCall) ?? toolStatus(toolCall.status);
3881
const now = yield* DateTime.now;
3882
const nativeItemId = `${context.nativeThreadId}:tool:${toolCall.toolCallId}`;
3883
const ordinal = yield* resolveItemOrdinal(context, nativeItemId);
@@ -5012,7 +5164,12 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
5164
}
5165
continue;
5166
}
5015
- yield* projectSubagentTool(subagent, notification.sessionId, toolCall);
5167
+ yield* projectSubagentTool(
5168
+ subagent,
5169
+ notification.sessionId,
5170
+ toolCall,
5171
+ stoppedToolStatus(context, toolCall),
5172
+ );
5173
}
5174
return;
5175
}
@@ -5977,10 +6134,37 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
6134
}
6135
});
6136
6137
+ // Only the flavor's own start marker counts: agents also send late
6138
+ // updates for the previous prompt (Kiro's context usage) and echoes
6139
+ // that arrive before they would honor a cancel.
6140
+ const markPromptStarted = Effect.fnUntraced(function* (
6141
+ notification: EffectAcpSchema.SessionNotification,
6142
+ ) {
6143
+ const promptStarts = flavor.cancelAfterPromptStarts?.isStart;
6144
+ if (promptStarts === undefined) return;
6145
+ const context = yield* Ref.get(activeTurn);
6146
+ if (context === null || context.nativeThreadId !== notification.sessionId) return;
6147
+ if (!(yield* Deferred.isDone(context.promptDispatched))) return;
6148
+ if (!promptStarts(notification.update)) return;
6149
+ yield* Deferred.succeed(context.promptStarted, undefined);
6150
+ });
6151
const projectAcpRuntimeSessionUpdateEffect =
6152
/* Provider events include streaming deltas; avoid a span for each update. */
6153
Effect.fnUntraced(
6154
function* (rawNotification: EffectAcpSchema.SessionNotification) {
6155
+ if (flavor.ignoreSessionUpdate?.(rawNotification) === true) return;
6156
+ const nativePromptId = flavor.forkFromTurn?.nativeTurnId(rawNotification);
6157
+ if (nativePromptId !== undefined) {
6158
+ const context = yield* Ref.get(activeTurn);
6159
+ if (context !== null && context.nativeThreadId === rawNotification.sessionId) {
6160
+ context.nativePromptId ??= nativePromptId;
6161
+ }
6162
+ }
6163
+ const injectedSteerId = flavor.steering?.injectedSteerId(rawNotification);
6164
+ if (injectedSteerId !== undefined) {
6165
+ yield* Deferred.succeed(steerInjection(injectedSteerId), undefined);
6166
+ }
6167
+ yield* markPromptStarted(rawNotification);
6168
const embedded = embeddedTerminalIdsFromSessionUpdate(rawNotification);
6169
if (embedded !== undefined) {
6170
rememberEmbeddedTerminals({
@@ -6197,8 +6381,10 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
6381
yield* userInput.acknowledgeNativeResponse;
6382
return response ?? ({ outcome: { outcome: "cancelled" } } as const);
6383
}
6200
- const dispositionFor = (policy: ProviderAdapter.ProviderAdapterV2RuntimePolicy) =>
6201
- (flavor.permissionDisposition ?? acpPermissionDisposition)(policy, params);
6384
+ const dispositionFor = (
6385
+ policy: ProviderAdapter.ProviderAdapterV2RuntimePolicy,
6386
+ request: EffectAcpSchema.RequestPermissionRequest = params,
6387
+ ) => (flavor.permissionDisposition ?? acpPermissionDisposition)(policy, request);
6388
if (followsAgentWorkState && dispositionFor(latestRuntimePolicy) === "ask") {
6389
if (!(yield* awaitRequestTurn(handlerGeneration)))
6390
return { outcome: { outcome: "cancelled" } } as const;
@@ -6209,8 +6395,16 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
6395
const context = followsAgentWorkState
6396
? yield* Ref.get(activeTurn)
6397
: yield* activeContext;
6398
+ // Kiro sends the tool's kind on its `tool_call` and leaves it
6399
+ // off the permission request for that call; take it from the
6400
+ // tool already seen under the same id so policy can tell a
6401
+ // read from a write.
6402
+ const knownKind = context?.tools.get(params.toolCall.toolCallId)?.kind;
6403
const disposition = dispositionFor(
6404
context?.input.runtimePolicy ?? latestRuntimePolicy,
6405
+ params.toolCall.kind == null && knownKind !== undefined
6406
+ ? { ...params, toolCall: { ...params.toolCall, kind: knownKind } }
6407
+ : params,
6408
);
6409
if (disposition === "allow") {
6410
const optionId = selectAutoApprovedPermissionOption(params);
@@ -6272,7 +6466,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
6466
transportRequestId: pendingTransportRequestId,
6467
} = admitted.value.pending;
6468
const parsedPermission = parsePermissionRequest(params);
6275
- const decision = yield* Deferred.await(pendingDecision).pipe(
6469
+ const answered = yield* Deferred.await(pendingDecision).pipe(
6470
Effect.ensuring(
6471
runRuntimeCallbackAtGeneration(
6472
handlerGeneration,
@@ -6284,6 +6478,16 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
6478
).pipe(Effect.asVoid),
6479
),
6480
);
6481
+ // A card that never offered "this session" (Kiro's, whose
6482
+ // allow_always saves a workspace rule) cannot be answered with
6483
+ // it by a stale client or a hand-made respond call.
6484
+ const offeredOptions = flavor.approvalOptions?.(params);
6485
+ const decision =
6486
+ answered === "acceptForSession" &&
6487
+ offeredOptions !== undefined &&
6488
+ !offeredOptions.some((option) => option.decision === "acceptForSession")
6489
+ ? "accept"
6490
+ : answered;
6491
if (
6492
parsedPermission.kind !== "unknown" &&
6493
(decision === "accept" || decision === "acceptForSession")
@@ -6816,7 +7020,12 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7020
yield* Ref.set(activeSessionId, started.sessionId);
7021
yield* setActiveSessionSetup(started);
7022
rememberTerminalEnvironment(started.sessionId, yield* readMcpContext(input.threadId));
6819
- const capabilities = negotiatedCapabilities(flavor.capabilities, started);
7023
+ const capabilities = negotiatedCapabilities(
7024
+ flavor.capabilities,
7025
+ started,
7026
+ flavor.modelOptionArrivesLate === true,
7027
+ flavor.forkFromTurn?.supported(started.initializeResult) === true,
7028
+ );
7029
const canLoadSession = started.initializeResult.agentCapabilities?.loadSession === true;
7030
const canResumeSession =
7031
started.initializeResult.agentCapabilities?.sessionCapabilities?.resume != null;
@@ -6974,6 +7183,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7183
return granted !== undefined && !isRuntimeModeAbove(granted, ceiling);
7184
};
7185
const optionSelections = (modelSelection.options ?? []).flatMap((selection) => {
7186
+ if (flavor.ownedModelOptionIds?.includes(selection.id) === true) return [];
7187
if (!withinCeiling(selection)) return [];
7188
return [
7189
selection.value === ACP_EMPTY_OPTION_VALUE ? { ...selection, value: "" } : selection,
@@ -7028,6 +7238,17 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7238
}),
7239
);
7240
}
7241
+ for (const selection of flavor.sessionConfigForPolicy?.(runtimePolicy) ?? []) {
7242
+ const option = (yield* runtime.getConfigOptions).find(
7243
+ (candidate) => candidate.id === selection.id,
7244
+ );
7245
+ if (option?.type !== "select" || option.currentValue === selection.value) continue;
7246
+ const advertisedValues = option.options.flatMap((entry) =>
7247
+ "value" in entry ? [entry.value] : entry.options.map((choice) => choice.value),
7248
+ );
7249
+ if (!advertisedValues.includes(selection.value)) continue;
7250
+ yield* runtime.setConfigOption(selection.id, selection.value);
7251
+ }
7252
const policyMode = flavor.sessionModeForPolicy?.(runtimePolicy);
7253
if (policyMode !== undefined) {
7254
yield* runtime.setMode(policyMode);
@@ -7143,11 +7364,10 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7364
providerThreadId: context.input.providerThread.id,
7365
nodeId: context.input.rootNodeId,
7366
runAttemptId: context.input.attemptId,
7146
- nativeTurnRef: {
7147
- driver,
7148
- nativeId: context.nativeTurnId,
7149
- strength: "weak",
7150
- },
7367
+ nativeTurnRef:
7368
+ context.nativePromptId === undefined
7369
+ ? { driver, nativeId: context.nativeTurnId, strength: "weak" }
7370
+ : { driver, nativeId: context.nativePromptId, strength: "strong" },
7371
ordinal: context.input.providerTurnOrdinal,
7372
status,
7373
startedAt: context.startedAt,
@@ -7206,6 +7426,30 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7426
}
7427
});
7428
7429
+ /**
7430
+ * `cancelAfterPromptStarts`: waits until the agent started the prompt or the
7431
+ * bound passed since `session/prompt` (since Stop, if none was sent). False
7432
+ * when the prompt settled first, so there is nothing to cancel.
7433
+ */
7434
+ const promptStillRunsAfterHold = Effect.fnUntraced(function* (context: ActiveAcpTurn) {
7435
+ const hold = flavor.cancelAfterPromptStarts;
7436
+ if (hold === undefined) return true;
7437
+ if (yield* Deferred.isDone(context.promptStarted)) return true;
7438
+ yield* options.testHooks?.onCancelHeld?.() ?? Effect.void;
7439
+ const boundPassed = Effect.gen(function* () {
7440
+ const now = yield* Clock.currentTimeMillis;
7441
+ const elapsed = now - (context.promptSentAt ?? now);
7442
+ yield* Effect.sleep(
7443
+ Duration.millis(Math.max(0, Duration.toMillis(hold.bound) - elapsed)),
7444
+ );
7445
+ });
7446
+ return yield* Effect.raceFirst(
7447
+ Effect.raceFirst(Deferred.await(context.promptStarted), boundPassed).pipe(
7448
+ Effect.as(true),
7449
+ ),
7450
+ Deferred.await(context.completed).pipe(Effect.as(false)),
7451
+ );
7452
+ });
7453
const quarantineStoppedRun = Effect.fnUntraced(function* () {
7454
yield* continuationPermit.withPermit(
7455
Effect.gen(function* () {
@@ -7260,9 +7504,8 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7504
}
7505
const now = yield* DateTime.now;
7506
if (
7263
- flavor.supportsCompaction === true &&
7264
- context.input.message.text.trim() === "/compact" &&
7265
- context.input.message.attachments.length === 0 &&
7507
+ (flavor.supportsCompaction === true || flavor.compactSession !== undefined) &&
7508
+ isCompactionMessage(context.input.message) &&
7509
settledStatus === "completed"
7510
) {
7511
const nativeItemId = `${context.nativeTurnId}:compaction`;
@@ -7380,6 +7623,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7623
}
7624
}
7625
yield* Ref.set(activeTurn, null);
7626
+ steerInjections.clear();
7627
if (
7628
postSettleContinuationEnabled &&
7629
settledStatus === "completed" &&
@@ -7674,6 +7918,8 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7918
const providerTurnId = deriveProviderTurnId(nativeTurnId);
7919
const completed = yield* Deferred.make<void, never>();
7920
const promptWireSettled = yield* Deferred.make<void, never>();
7921
+ const promptDispatched = yield* Deferred.make<void, never>();
7922
+ const promptStarted = yield* Deferred.make<void, never>();
7923
const rememberedContextUsage = (yield* Ref.get(contextUsageBySessionId)).get(
7924
requestedSessionId,
7925
);
@@ -7729,8 +7975,12 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
7975
promptSettledStatus: null,
7976
workAccepted: false,
7977
promptWireSettled,
7978
+ promptDispatched,
7979
+ promptSentAt: null,
7980
+ promptStarted,
7981
promptUsage: undefined,
7982
backgroundFinalizeGeneration: 0,
7983
+ nativePromptId: undefined,
7984
};
7985
const carryover = yield* Ref.getAndSet(carryoverSubagents, null);
7986
let rehydratedCarryoverSubagents: ReadonlyArray<ActiveAcpSubagent> = [];
@@ -7870,10 +8120,24 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
8120
? undefined
8121
: yield* flavor.watchPromptOutcome(requestedSessionId);
8122
const promptGeneration = yield* Ref.get(runtimeCallbackGeneration);
7873
- yield* runtime.prompt({ prompt: promptParts!.prompt }).pipe(
8123
+ const promptOptions = { dispatched: context.promptDispatched };
8124
+ context.promptSentAt = yield* Clock.currentTimeMillis;
8125
+ const compactSession = isCompactionMessage(turnInput.message)
8126
+ ? flavor.compactSession
8127
+ : undefined;
8128
+ yield* (
8129
+ compactSession === undefined
8130
+ ? runtime.prompt({ prompt: promptParts!.prompt }, promptOptions)
8131
+ : Deferred.succeed(context.promptDispatched, undefined).pipe(
8132
+ Effect.andThen(compactSession(runtime, requestedSessionId)),
8133
+ Effect.as({ stopReason: "end_turn" } satisfies EffectAcpSchema.PromptResponse),
8134
+ )
8135
+ ).pipe(
8136
Effect.tap(() =>
8137
Ref.update(promptInstructionStates, (current) => {
7876
- if (promptParts?.instructionState === undefined) return current;
8138
+ // Native compaction sends no prompt, so no instructions reached the agent.
8139
+ if (promptParts?.instructionState === undefined || compactSession !== undefined)
8140
+ return current;
8141
const updated = new Map(current);
8142
updated.set(requestedSessionId, promptParts.instructionState);
8143
return updated;
@@ -8269,7 +8533,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
8533
),
8534
),
8535
startTurn,
8272
- ...(flavor.supportsCompaction === true
8536
+ ...(flavor.supportsCompaction === true || flavor.compactSession !== undefined
8537
? {
8538
compactThread: (turnInput: ProviderAdapter.ProviderAdapterV2TurnInput) =>
8539
startTurn({
@@ -8278,13 +8542,69 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
8542
}),
8543
}
8544
: {}),
8281
- steerTurn: (turnInput) =>
8282
- Effect.fail(
8283
- new ProviderAdapter.ProviderAdapterSteerRunUnsupportedError({
8284
- driver,
8285
- providerThreadId: turnInput.providerThread.id,
8286
- }),
8287
- ),
8545
+ steerTurn: Effect.fn("AcpAdapterV2.steerTurn")(
8546
+ function* (turnInput) {
8547
+ const steering = flavor.steering;
8548
+ // The agent takes text only, so a steer with attachments waits for the next turn.
8549
+ if (steering === undefined || turnInput.message.attachments.length > 0) {
8550
+ return yield* new ProviderAdapter.ProviderAdapterSteerRunUnsupportedError({
8551
+ driver,
8552
+ providerThreadId: turnInput.providerThread.id,
8553
+ });
8554
+ }
8555
+ const context = yield* Ref.get(activeTurn);
8556
+ if (
8557
+ context === null ||
8558
+ context.finalized ||
8559
+ context.providerTurnId !== turnInput.providerTurnId
8560
+ ) {
8561
+ return yield* new ProviderAdapter.ProviderAdapterProtocolError({
8562
+ driver,
8563
+ detail: `Provider turn ${turnInput.providerTurnId} is not active and cannot be steered.`,
8564
+ });
8565
+ }
8566
+ // An agent that drops an early cancel drops an early steer too.
8567
+ const startHold = flavor.cancelAfterPromptStarts;
8568
+ if (startHold !== undefined) {
8569
+ yield* Deferred.await(context.promptStarted).pipe(
8570
+ Effect.timeoutOption(startHold.bound),
8571
+ );
8572
+ }
8573
+ const steerId = yield* steering.send(
8574
+ runtime,
8575
+ context.nativeThreadId,
8576
+ turnInput.message.text,
8577
+ );
8578
+ const injected = steerInjection(steerId);
8579
+ // The agent reads a steer at its next step. One that lands after the last
8580
+ // step is dropped, and the turn settles right after; the orchestrator then
8581
+ // sends it as a follow-up. The bound keeps Stop from queueing behind a tool.
8582
+ const outcome = yield* Effect.raceFirst(
8583
+ Deferred.await(injected).pipe(Effect.as("injected" as const)),
8584
+ Deferred.await(context.promptWireSettled).pipe(Effect.as("settled" as const)),
8585
+ ).pipe(Effect.timeoutOption(STEER_DELIVERY_BOUND));
8586
+ steerInjections.delete(steerId);
8587
+ if (Option.contains(outcome, "settled") && !(yield* Deferred.isDone(injected))) {
8588
+ return yield* new ProviderAdapter.ProviderAdapterProtocolError({
8589
+ driver,
8590
+ detail: `Provider turn ${turnInput.providerTurnId} ended before it read the steering message.`,
8591
+ });
8592
+ }
8593
+ },
8594
+ (effect, turnInput) =>
8595
+ effect.pipe(
8596
+ Effect.mapError((cause) =>
8597
+ cause._tag === "ProviderAdapterSteerRunUnsupportedError"
8598
+ ? cause
8599
+ : new ProviderAdapter.ProviderAdapterSteerRunError({
8600
+ driver,
8601
+ providerThreadId: turnInput.providerThread.id,
8602
+ providerTurnId: turnInput.providerTurnId,
8603
+ cause,
8604
+ }),
8605
+ ),
8606
+ ),
8607
+ ),
8608
interruptTurn: Effect.fn("AcpAdapterV2.interruptTurn")(
8609
function* (turnInput: ProviderAdapter.ProviderAdapterV2InterruptInput) {
8610
return yield* Effect.uninterruptibleMask((restore) =>
@@ -8546,7 +8866,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
8866
yield* Deferred.succeed(teardownBarrier!, undefined).pipe(Effect.ignore);
8867
} else {
8868
// Settled soft interrupts have no prompt to cancel; cancel could kill background subagents.
8549
- if (!settledSoftInterrupt) {
8869
+ if (!settledSoftInterrupt && (yield* promptStillRunsAfterHold(context))) {
8870
yield* runtime.cancel;
8871
}
8872
if (restartRuntime && flavor.restartRuntimeAfterInterrupt === true) {
@@ -8800,7 +9120,13 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
9120
detail: "ACP driver did not negotiate session/fork",
9121
});
9122
}
8803
- if (forkInput.providerTurnId !== undefined) {
9123
+ const forkMeta = forkFromTurnMetaFor({
9124
+ driver,
9125
+ flavor,
9126
+ canForkFromTurn: capabilities.threads.canForkFromTurn,
9127
+ forkInput,
9128
+ });
9129
+ if (forkMeta === null) {
9130
return yield* new ProviderAdapter.ProviderAdapterProtocolError({
9131
driver,
9132
detail: "ACP session/fork can only fork the current session head",
@@ -8815,6 +9141,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
9141
const forked = yield* runtime.forkSession(
9142
sourceSessionId,
9143
acpMcpActivation(mcpContext),
9144
+ forkMeta,
9145
);
9146
rememberTerminalEnvironment(
9147
forked.sessionId,
packages/provider-acp/src/server/runtimeModel.ts
+12
@@ -1095,6 +1095,18 @@ export function extractMcpToolCallIdentity(
1095
if (meta?.is_mcp_tool_call === true && server.length > 0 && tool.length > 0) {
1096
return { server, tool };
1097
}
1098
+ // Kiro names the server in `_meta.kiro.serverName` and the call in `rawInput.tool_id`
1099
+ // ("<server>::<tool>"), with the tool's own input under `rawInput.arguments`.
1100
+ const kiroServer = isRecord(meta?.kiro) ? meta.kiro.serverName : undefined;
1101
+ const kiroToolId = typeof rawInput?.tool_id === "string" ? rawInput.tool_id.trim() : "";
1102
+ if (
1103
+ typeof kiroServer === "string" &&
1104
+ kiroServer.length > 0 &&
1105
+ kiroToolId.startsWith(`${kiroServer}::`) &&
1106
+ kiroToolId.length > kiroServer.length + 2
1107
+ ) {
1108
+ return { server: kiroServer, tool: kiroToolId.slice(kiroServer.length + 2) };
1109
+ }
1110
const claudeCode = isRecord(meta?.claudeCode) ? meta.claudeCode : undefined;
1111
const gooseToolCall = isRecord(meta?.goose)
1112
? isRecord(meta.goose.toolCall)
packages/provider-kiro/package.json
new
+40
@@ -0,0 +1,40 @@
1
+{
2
+ "name": "@t3tools/provider-kiro",
3
+ "private": true,
4
+ "type": "module",
5
+ "exports": {
6
+ "./client": {
7
+ "types": "./src/client.ts",
8
+ "import": "./src/client.ts"
9
+ },
10
+ "./settings": {
11
+ "types": "./src/settings.ts",
12
+ "import": "./src/settings.ts"
13
+ },
14
+ "./server": {
15
+ "types": "./src/server.ts",
16
+ "import": "./src/server.ts"
17
+ },
18
+ "./testing": {
19
+ "types": "./src/testing.ts",
20
+ "import": "./src/testing.ts"
21
+ }
22
+ },
23
+ "scripts": {
24
+ "typecheck": "tsc --noEmit",
25
+ "test": "vp test run --config ../../vite.config.ts --dir ."
26
+ },
27
+ "dependencies": {
28
+ "@t3tools/contracts": "workspace:*",
29
+ "@t3tools/provider-acp": "workspace:*",
30
+ "@t3tools/provider-core": "workspace:*",
31
+ "@t3tools/shared": "workspace:*",
32
+ "effect": "catalog:"
33
+ },
34
+ "devDependencies": {
35
+ "@effect/vitest": "catalog:",
36
+ "@types/node": "catalog:",
37
+ "effect-acp": "workspace:*",
38
+ "vite-plus": "catalog:"
39
+ }
40
+}
packages/provider-kiro/src/client.ts
new
+43
@@ -0,0 +1,43 @@
1
+import { ProviderDriverKind } from "@t3tools/contracts";
2
+import { defineProviderClient } from "@t3tools/provider-core/client";
3
+
4
+import { KiroSettings } from "./settings.ts";
5
+
6
+const TILE =
7
+ "M260 0H940A260 260 0 0 1 1200 260V940A260 260 0 0 1 940 1200H260A260 260 0 0 1 0 940V260A260 260 0 0 1 260 0Z";
8
+const GHOST =
9
+ "M398.554 818.914C316.315 1001.03 491.477 1046.74 620.672 940.156C658.687 1059.66 801.052 970.473 852.234 877.795C964.787 673.567 919.318 465.357 907.64 422.374C827.637 129.443 427.623 128.946 358.8 423.865C342.651 475.544 342.402 534.18 333.458 595.051C328.986 625.86 325.507 645.488 313.83 677.785C306.873 696.424 297.68 712.819 282.773 740.645C259.915 783.881 269.604 867.113 387.87 823.883L399.051 818.914H398.554Z";
10
+const LEFT_EYE =
11
+ "M636.123 549.353C603.328 549.353 598.359 510.097 598.359 486.742C598.359 465.623 602.086 448.977 609.293 438.293C615.504 428.852 624.697 424.131 636.123 424.131C647.555 424.131 657.492 428.852 664.447 438.541C672.398 449.474 676.623 466.12 676.623 486.742C676.623 525.998 661.471 549.353 636.375 549.353H636.123Z";
12
+const RIGHT_EYE =
13
+ "M771.24 549.353C738.445 549.353 733.477 510.097 733.477 486.742C733.477 465.623 737.203 448.977 744.41 438.293C750.621 428.852 759.814 424.131 771.24 424.131C782.672 424.131 792.609 428.852 799.564 438.541C807.516 449.474 811.74 466.12 811.74 486.742C811.74 525.998 796.588 549.353 771.492 549.353H771.24Z";
14
+const white = { light: "#FFFFFF", dark: "#FFFFFF" };
15
+const black = { light: "#000000", dark: "#000000" };
16
+
17
+export const kiroClient = defineProviderClient({
18
+ driverKind: ProviderDriverKind.make("kiro"),
19
+ label: "Kiro",
20
+ featured: false,
21
+ badgeLabel: "Early Access",
22
+ settingsSchema: KiroSettings,
23
+ environmentFields: [
24
+ {
25
+ name: "KIRO_API_KEY",
26
+ label: "Kiro API key",
27
+ description: "Optional. Signs in without `kiro-cli login` (Kiro Pro and above).",
28
+ placeholder: "Paste API key",
29
+ sensitive: true,
30
+ },
31
+ ],
32
+ icon: {
33
+ viewBox: "0 0 1200 1200",
34
+ fill: { light: "#9046FF", dark: "#9046FF" },
35
+ paths: [
36
+ // The ghost is a hole in the tile, so a monochrome icon still shows it.
37
+ { d: `${TILE}${GHOST}${LEFT_EYE}${RIGHT_EYE}`, fillRule: "evenodd" },
38
+ { d: GHOST, fill: white },
39
+ { d: LEFT_EYE, fill: black },
40
+ { d: RIGHT_EYE, fill: black },
41
+ ],
42
+ },
43
+});
packages/provider-kiro/src/server.ts
new
+2
@@ -0,0 +1,2 @@
1
+export { KiroDriver, type KiroDriverEnv } from "./server/driver.ts";
2
+export { type KiroAdapterV2DriverEnv } from "./server/adapter.ts";
packages/provider-kiro/src/server/acpSupport.ts
new
+151
@@ -0,0 +1,151 @@
1
+import type * as EffectAcpSchema from "effect-acp/compat";
2
+import type { ProviderApprovalOption, RuntimeMode } from "@t3tools/contracts";
3
+import type { KiroSettings } from "../settings.ts";
4
+import type * as Crypto from "effect/Crypto";
5
+import * as Effect from "effect/Effect";
6
+import * as Layer from "effect/Layer";
7
+import type * as Scope from "effect/Scope";
8
+import type * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
9
+import type * as EffectAcpErrors from "effect-acp/errors";
10
+
11
+import {
12
+ acpPermissionDisposition,
13
+ type AcpPermissionDisposition,
14
+ type AcpRuntimePolicy,
15
+} from "@t3tools/provider-acp/server/clientPolicy";
16
+import * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime";
17
+
18
+/**
19
+ * Kiro's default engine is a v2 server this driver does not speak, so V3 is
20
+ * requested. `--auth-method=cli` keeps access tokens inside Kiro. V3 rejects the
21
+ * v2 launch flags; mode and model are set per session with `session/set_config_option`.
22
+ */
23
+const KIRO_ACP_ARGS = ["acp", "--agent-engine=v3", "--auth-method=cli"] as const;
24
+
25
+/**
26
+ * Kiro's `autopilot` session option. Off (Supervised), Kiro also asks the user
27
+ * to review a turn's file changes before it ends. Sessions start "on", so T3
28
+ * sets it from the thread's runtime mode.
29
+ */
30
+export const KIRO_AUTOPILOT_CONFIG_ID = "autopilot";
31
+
32
+/** Kiro's model session option (`configId: "model"` in the V3 migration guide). */
33
+export const KIRO_MODEL_CONFIG_ID = "model";
34
+
35
+/**
36
+ * Kiro's reasoning effort session option (`configId: "effortLevel"` in the V3
37
+ * migration guide). Kiro advertises it only while a model with effort runs.
38
+ */
39
+export const KIRO_EFFORT_CONFIG_ID = "effortLevel";
40
+
41
+/**
42
+ * Kiro's agent session option. Kiro V3 offers its agents (the bundled ones,
43
+ * `~/.kiro/agents`, and the workspace's `.kiro/agents`) as the choices of its
44
+ * `mode` select, and the thread's choice is stored under the same id.
45
+ */
46
+export const KIRO_AGENT_CONFIG_ID = "mode";
47
+
48
+/**
49
+ * Kiro offers two permission postures, Supervised and Autopilot, which T3's
50
+ * Supervised and Full access select. Any other mode runs Supervised.
51
+ */
52
+export const KIRO_SUPPORTED_RUNTIME_MODES = [
53
+ "approval-required",
54
+ "full-access",
55
+] as const satisfies ReadonlyArray<RuntimeMode>;
56
+
57
+/**
58
+ * Autopilot is on only for an unrestricted Full access thread. An explicit
59
+ * approval or sandbox override keeps Kiro Supervised, so its end-of-turn
60
+ * review still reaches the user and every tool prompt reaches T3's policy
61
+ * check (the same rule as Grok's `grokLaunchRuntimeMode`).
62
+ */
63
+export function kiroAutopilotValue(policy: {
64
+ readonly runtimeMode: RuntimeMode;
65
+ readonly approvalPolicy?: unknown;
66
+ readonly sandboxPolicy?: unknown;
67
+}): "on" | "off" {
68
+ return policy.runtimeMode === "full-access" &&
69
+ policy.approvalPolicy === undefined &&
70
+ policy.sandboxPolicy === undefined
71
+ ? "on"
72
+ : "off";
73
+}
74
+
75
+type KiroAcpRuntimeSettings = Pick<KiroSettings, "binaryPath">;
76
+
77
+export function buildKiroAcpSpawnInput(
78
+ settings: KiroAcpRuntimeSettings | null | undefined,
79
+ cwd: string,
80
+ environment?: NodeJS.ProcessEnv,
81
+): AcpSessionRuntime.AcpSpawnInput {
82
+ return {
83
+ command: settings?.binaryPath || "kiro-cli",
84
+ args: [...KIRO_ACP_ARGS],
85
+ cwd,
86
+ ...(environment === undefined ? {} : { env: environment }),
87
+ };
88
+}
89
+
90
+/**
91
+ * Approval choices a Kiro permission request can honor; V3's options are
92
+ * authoritative. Its `allow_always` saves a consent rule for the workspace or
93
+ * wider, so it is offered, as "Always allow", only without a one-time choice.
94
+ */
95
+export function kiroApprovalOptions(
96
+ request: EffectAcpSchema.RequestPermissionRequest,
97
+): ReadonlyArray<ProviderApprovalOption> {
98
+ const has = (kind: EffectAcpSchema.PermissionOption["kind"]) =>
99
+ request.options.some((option) => option.kind === kind && option.optionId.trim().length > 0);
100
+ return [
101
+ ...(has("allow_once")
102
+ ? [{ decision: "accept", label: "Allow once" } as const]
103
+ : has("allow_always")
104
+ ? [{ decision: "acceptForSession", label: "Always allow" } as const]
105
+ : []),
106
+ ...(has("reject_once") ? [{ decision: "decline", label: "Deny" } as const] : []),
107
+ { decision: "cancel", label: "Cancel" },
108
+ ];
109
+}
110
+
111
+/**
112
+ * T3's answer to a Kiro permission request. A policy approval may only use
113
+ * Kiro's `allow_once`: its `allow_always` saves a consent rule for the whole
114
+ * workspace or wider, which would outlive the thread. When Kiro offers no
115
+ * one-time choice, the request goes to the user instead of persisting a grant.
116
+ */
117
+export function kiroPermissionDisposition(
118
+ policy: AcpRuntimePolicy,
119
+ request: EffectAcpSchema.RequestPermissionRequest,
120
+): AcpPermissionDisposition {
121
+ const disposition = acpPermissionDisposition(policy, request);
122
+ const offersOnce = request.options.some(
123
+ (option) => option.kind === "allow_once" && option.optionId.trim().length > 0,
124
+ );
125
+ return disposition === "allow" && !offersOnce ? "ask" : disposition;
126
+}
127
+
128
+export interface KiroAcpRuntimeInput extends Omit<
129
+ AcpSessionRuntime.AcpSessionRuntimeOptions,
130
+ "authMethodId" | "spawn"
131
+> {
132
+ readonly settings: KiroAcpRuntimeSettings | null | undefined;
133
+ readonly environment?: NodeJS.ProcessEnv;
134
+}
135
+
136
+export const makeKiroAcpRuntime = Effect.fn("KiroAcpSupport.makeKiroAcpRuntime")(function* (
137
+ input: KiroAcpRuntimeInput,
138
+): Effect.fn.Return<
139
+ AcpSessionRuntime.AcpSessionRuntime["Service"],
140
+ EffectAcpErrors.AcpError,
141
+ ChildProcessSpawner.ChildProcessSpawner | Crypto.Crypto | Scope.Scope
142
+> {
143
+ const { settings, environment, ...runtimeOptions } = input;
144
+ const context = yield* Layer.build(
145
+ AcpSessionRuntime.layer({
146
+ ...runtimeOptions,
147
+ spawn: buildKiroAcpSpawnInput(settings, input.cwd, environment),
148
+ }),
149
+ );
150
+ return yield* Effect.service(AcpSessionRuntime.AcpSessionRuntime).pipe(Effect.provide(context));
151
+});
packages/provider-kiro/src/server/adapter.ts
new
+641
@@ -0,0 +1,641 @@
1
+import * as HostProcess from "@t3tools/shared/HostProcess";
2
+import { resolveSelfInvocation, type SelfInvocation } from "@t3tools/shared/nodeRuntime";
3
+import {
4
+ type ModelSelection,
5
+ ProviderDriverKind,
6
+ type OrchestrationV2ProviderCapabilities,
7
+} from "@t3tools/contracts";
8
+import { KiroSettings } from "../settings.ts";
9
+import { getModelSelectionStringOptionValue } from "@t3tools/shared/model";
10
+import type * as Crypto from "effect/Crypto";
11
+import * as Effect from "effect/Effect";
12
+import type * as FileSystem from "effect/FileSystem";
13
+import * as Option from "effect/Option";
14
+import type * as Path from "effect/Path";
15
+import * as Schema from "effect/Schema";
16
+import type * as Scope from "effect/Scope";
17
+import * as Stream from "effect/Stream";
18
+import type * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
19
+import type * as EffectAcpSchema from "effect-acp/compat";
20
+import * as EffectAcpErrors from "effect-acp/errors";
21
+
22
+import type * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime";
23
+import {
24
+ AcpProviderCapabilitiesV2,
25
+ makeAcpAdapterV2,
26
+ type AcpAdapterV2Flavor,
27
+ type AcpAdapterV2RuntimeInput,
28
+ type AcpAdapterV2SubagentUpdate,
29
+} from "@t3tools/provider-acp/server/adapter";
30
+import type { AcpToolCallState } from "@t3tools/provider-acp/server/runtimeModel";
31
+import { makeAcpNativeLoggerFactory } from "@t3tools/provider-acp/server/nativeLogging";
32
+import {
33
+ ProviderAdapterDriverCreateError,
34
+ type ProviderAdapterDriver,
35
+ type ProviderAdapterDriverCreateInput,
36
+} from "@t3tools/provider-core/server/adapterDriver";
37
+import { makeProviderFailure } from "@t3tools/provider-core/server/failure";
38
+import type * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
39
+import { mergeProviderInstanceEnvironment } from "@t3tools/provider-core/server/instanceEnvironment";
40
+import type * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions";
41
+import * as ProviderEventLoggers from "@t3tools/provider-core/server/ProviderEventLoggers";
42
+import type * as ProviderHost from "@t3tools/provider-core/server/ProviderHost";
43
+import {
44
+ KIRO_AGENT_CONFIG_ID,
45
+ KIRO_AUTOPILOT_CONFIG_ID,
46
+ KIRO_EFFORT_CONFIG_ID,
47
+ KIRO_MODEL_CONFIG_ID,
48
+ kiroApprovalOptions,
49
+ kiroAutopilotValue,
50
+ kiroPermissionDisposition,
51
+ makeKiroAcpRuntime,
52
+} from "./acpSupport.ts";
53
+
54
+export const KIRO_PROVIDER = ProviderDriverKind.make("kiro");
55
+/** T3's slug for "Kiro default", and Kiro's documented default model id. */
56
+const KIRO_DEFAULT_MODEL = "default";
57
+const KIRO_COMPACT_METHOD = "_kiro/session/compact";
58
+const KIRO_STEER_METHOD = "_session/steer";
59
+const KIRO_FALLBACK_DEFAULT_MODEL = "auto";
60
+const DEFAULT_KIRO_SETTINGS = Schema.decodeSync(KiroSettings)({});
61
+
62
+const KiroProviderCapabilitiesV2 = {
63
+ ...AcpProviderCapabilitiesV2,
64
+ sessions: {
65
+ ...AcpProviderCapabilitiesV2.sessions,
66
+ supportsModelSwitchInSession: true,
67
+ },
68
+ // Kiro 2.27 and later fork at a turn's prompt (`_meta.kiro.messageId`); see kiroForkFromTurn.
69
+ threads: {
70
+ ...AcpProviderCapabilitiesV2.threads,
71
+ canForkThread: true,
72
+ canForkFromTurn: true,
73
+ },
74
+ // `_session/steer` waits for the running tool, then Kiro reads the message at its next step.
75
+ turns: {
76
+ ...AcpProviderCapabilitiesV2.turns,
77
+ supportsActiveSteering: true,
78
+ activeSteeringInterruptsTools: false,
79
+ // `_session/steer` takes a string, so a message with images restarts the turn.
80
+ activeSteeringAcceptsAttachments: false,
81
+ },
82
+ tools: {
83
+ ...AcpProviderCapabilitiesV2.tools,
84
+ supportsMcpTools: true,
85
+ },
86
+ subagents: {
87
+ ...AcpProviderCapabilitiesV2.subagents,
88
+ supportsSubagents: true,
89
+ emitsSubagentLifecycle: true,
90
+ },
91
+} satisfies OrchestrationV2ProviderCapabilities;
92
+
93
+const KiroCompactResult = Schema.Struct({ success: Schema.Boolean });
94
+const decodeKiroCompactResult = Schema.decodeUnknownOption(KiroCompactResult);
95
+
96
+/** Kiro answers a `/compact` prompt as chat, so T3 compacts with Kiro's own request. */
97
+const compactKiroSession = (
98
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
99
+ sessionId: string,
100
+) =>
101
+ runtime.request(KIRO_COMPACT_METHOD, { sessionId }).pipe(
102
+ Effect.flatMap((result) =>
103
+ Option.exists(decodeKiroCompactResult(result), (decoded) => decoded.success)
104
+ ? Effect.void
105
+ : Effect.fail(
106
+ new EffectAcpErrors.AcpRequestError({
107
+ code: -32603,
108
+ errorMessage: "Kiro could not compact the conversation.",
109
+ method: KIRO_COMPACT_METHOD,
110
+ data: result,
111
+ }),
112
+ ),
113
+ ),
114
+ );
115
+
116
+const KiroSteerResult = Schema.Struct({ queued: Schema.Literal(true), messageId: Schema.String });
117
+const decodeKiroSteerResult = Schema.decodeUnknownOption(KiroSteerResult);
118
+const KiroSteeringInjected = Schema.Struct({
119
+ kiro: Schema.Struct({ kind: Schema.Literal("steering_injected"), messageId: Schema.String }),
120
+});
121
+const decodeKiroSteeringInjected = Schema.decodeUnknownOption(KiroSteeringInjected);
122
+
123
+/** Kiro queues a steer, then reports `steering_injected` with its id once the model reads it. */
124
+const kiroSteering = {
125
+ send: (
126
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
127
+ sessionId: string,
128
+ text: string,
129
+ ) =>
130
+ runtime.request(KIRO_STEER_METHOD, { sessionId, message: text }).pipe(
131
+ Effect.flatMap((result) =>
132
+ Option.match(decodeKiroSteerResult(result), {
133
+ onSome: (decoded) => Effect.succeed(decoded.messageId),
134
+ onNone: () =>
135
+ Effect.fail(
136
+ new EffectAcpErrors.AcpRequestError({
137
+ code: -32603,
138
+ errorMessage: "Kiro did not queue the steering message.",
139
+ method: KIRO_STEER_METHOD,
140
+ data: result,
141
+ }),
142
+ ),
143
+ }),
144
+ ),
145
+ ),
146
+ injectedSteerId: (notification: EffectAcpSchema.SessionNotification) =>
147
+ notification.update.sessionUpdate === "session_info_update"
148
+ ? Option.getOrUndefined(decodeKiroSteeringInjected(notification.update._meta))?.kiro.messageId
149
+ : undefined,
150
+};
151
+
152
+const decodeKiroForkCapability = Schema.decodeUnknownOption(
153
+ Schema.Struct({ kiro: Schema.Struct({ messageId: Schema.Literal(true) }) }),
154
+);
155
+const decodeKiroUserMessageId = Schema.decodeUnknownOption(
156
+ Schema.Struct({
157
+ kiro: Schema.Struct({
158
+ kind: Schema.Literal("user_message_id_assigned"),
159
+ userMessageId: Schema.String,
160
+ }),
161
+ }),
162
+);
163
+
164
+/**
165
+ * Kiro assigns each prompt a `userMessageId`, and `session/fork` with that id keeps the
166
+ * session up to and including the reply to that prompt.
167
+ */
168
+const kiroForkFromTurn = {
169
+ supported: (
170
+ initializeResult: AcpSessionRuntime.AcpSessionRuntimeStartResult["initializeResult"],
171
+ ) =>
172
+ Option.isSome(
173
+ decodeKiroForkCapability(
174
+ initializeResult.agentCapabilities?.sessionCapabilities?.fork?._meta,
175
+ ),
176
+ ),
177
+ nativeTurnId: (notification: EffectAcpSchema.SessionNotification) =>
178
+ notification.update.sessionUpdate === "session_info_update"
179
+ ? Option.getOrUndefined(decodeKiroUserMessageId(notification.update._meta))?.kiro
180
+ .userMessageId
181
+ : undefined,
182
+ forkMeta: (messageId: string) => ({ kiro: { messageId } }),
183
+};
184
+
185
+export interface KiroAdapterV2Options {
186
+ readonly instanceId: Parameters<typeof makeAcpAdapterV2>[0]["instanceId"];
187
+ readonly settings: KiroSettings;
188
+ readonly environment: NodeJS.ProcessEnv;
189
+ readonly selfInvocation: SelfInvocation;
190
+ readonly nativeLogging?: Parameters<typeof makeAcpAdapterV2>[0]["nativeLogging"];
191
+ /**
192
+ * Kiro's id for "Kiro default" (the provider snapshot's `--list-models`
193
+ * default). Absent, it is `auto`.
194
+ */
195
+ readonly defaultModel?: Effect.Effect<string>;
196
+ /** Replaces the `kiro-cli` launch (replay tests). Kiro's session setup still applies. */
197
+ readonly makeRuntime?: (
198
+ input: AcpAdapterV2RuntimeInput,
199
+ ) => Effect.Effect<
200
+ AcpSessionRuntime.AcpSessionRuntime["Service"],
201
+ EffectAcpErrors.AcpError,
202
+ ChildProcessSpawner.ChildProcessSpawner | Crypto.Crypto | Scope.Scope
203
+ >;
204
+ readonly assertComplete?: Effect.Effect<void, EffectAcpErrors.AcpError>;
205
+ readonly testHooks?: Parameters<typeof makeAcpAdapterV2>[0]["testHooks"];
206
+}
207
+
208
+/** Kiro's `model` option once it advertises one. */
209
+const findKiroModelOption = (configOptions: ReadonlyArray<EffectAcpSchema.SessionConfigOption>) =>
210
+ configOptions.find((option) => option.id === KIRO_MODEL_CONFIG_ID || option.category === "model");
211
+
212
+/**
213
+ * Kiro selects models only through its `model` config option; "default" is
214
+ * Kiro's own default. The write goes to `model` even before Kiro advertises it,
215
+ * and for unlisted ids: Kiro fails the next prompt on a model it can't use.
216
+ */
217
+const applyKiroModel = Effect.fn("KiroAdapterV2.applyKiroModel")(function* (
218
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
219
+ modelSelection: ModelSelection,
220
+ defaultModel: Effect.Effect<string>,
221
+ agentSwitched: boolean,
222
+) {
223
+ const modelOption = findKiroModelOption(yield* runtime.getConfigOptions);
224
+ const current = modelOption?.type === "select" ? modelOption.currentValue : undefined;
225
+ const selected = modelSelection.model.trim();
226
+ const isDefault = selected.length === 0 || selected === KIRO_DEFAULT_MODEL;
227
+ // Before Kiro advertises `model` the session is new, so it already runs
228
+ // Kiro's default, unless an agent switch just moved it to the agent's model.
229
+ if (isDefault && modelOption?.type !== "select" && !agentSwitched) {
230
+ return current;
231
+ }
232
+ const requested = isDefault ? yield* defaultModel : selected;
233
+ if (requested === current) {
234
+ return current;
235
+ }
236
+ yield* runtime.setConfigOption(modelOption?.id ?? KIRO_MODEL_CONFIG_ID, requested, {
237
+ allowUnlistedValue: true,
238
+ });
239
+ return requested;
240
+});
241
+
242
+/**
243
+ * Bound on waiting for Kiro to advertise the model T3 just wrote. Kiro 2.27.0
244
+ * sent it 40-90 ms after the write's result.
245
+ */
246
+const KIRO_MODEL_ADVERT_BOUND = "2 seconds";
247
+
248
+/**
249
+ * Writes the thread's effort to Kiro's `effortLevel` once Kiro advertises the
250
+ * written model, since Kiro ignores the option before then and resets it on a
251
+ * model change. Levels the model doesn't offer are not sent. A rejected write
252
+ * or no advert within the bound keeps Kiro's level rather than failing the turn.
253
+ */
254
+const applyKiroEffort = Effect.fn("KiroAdapterV2.applyKiroEffort")(function* (
255
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
256
+ modelSelection: ModelSelection,
257
+ appliedModel: string | undefined,
258
+) {
259
+ const requested = getModelSelectionStringOptionValue(modelSelection, "reasoningEffort");
260
+ if (requested === undefined) return;
261
+ const advertised = yield* runtime.configOptionChanges.pipe(
262
+ Stream.filter((configOptions) => {
263
+ const modelOption = findKiroModelOption(configOptions);
264
+ return (
265
+ appliedModel === undefined ||
266
+ (modelOption?.type === "select" && modelOption.currentValue === appliedModel)
267
+ );
268
+ }),
269
+ Stream.runHead,
270
+ Effect.timeoutOption(KIRO_MODEL_ADVERT_BOUND),
271
+ Effect.map(Option.flatten),
272
+ );
273
+ if (Option.isNone(advertised)) {
274
+ return yield* Effect.logWarning("Kiro did not advertise the model's reasoning effort", {
275
+ waitedForWrittenModel: appliedModel !== undefined,
276
+ });
277
+ }
278
+ const effortOption = advertised.value.find((option) => option.id === KIRO_EFFORT_CONFIG_ID);
279
+ if (effortOption?.type !== "select" || !selectValues(effortOption).includes(requested)) {
280
+ return;
281
+ }
282
+ yield* runtime.setConfigOption(KIRO_EFFORT_CONFIG_ID, requested).pipe(
283
+ Effect.catchTags({
284
+ // `requested` is one of the levels Kiro just advertised, so it is safe to log.
285
+ AcpRequestError: (error) =>
286
+ Effect.logWarning("Kiro rejected the reasoning effort", {
287
+ value: requested,
288
+ code: error.code,
289
+ }),
290
+ }),
291
+ );
292
+});
293
+
294
+/**
295
+ * Selects the thread's Kiro agent and reports whether a switch went out. It runs
296
+ * before the model write, because switching applies the agent's own model. An
297
+ * agent the session doesn't list is skipped: Kiro would accept it and not switch.
298
+ */
299
+const applyKiroAgent = Effect.fn("KiroAdapterV2.applyKiroAgent")(function* (
300
+ runtime: AcpSessionRuntime.AcpSessionRuntime["Service"],
301
+ modelSelection: ModelSelection,
302
+) {
303
+ const requested = getModelSelectionStringOptionValue(modelSelection, KIRO_AGENT_CONFIG_ID);
304
+ if (requested === undefined) return false;
305
+ const agentOption = (yield* runtime.getConfigOptions).find(
306
+ (option) => option.id === KIRO_AGENT_CONFIG_ID,
307
+ );
308
+ if (agentOption?.type !== "select" || agentOption.currentValue === requested) return false;
309
+ if (!selectValues(agentOption).includes(requested)) {
310
+ yield* Effect.logWarning("Kiro does not list the thread's agent", {
311
+ listedAgents: selectValues(agentOption).length,
312
+ });
313
+ return false;
314
+ }
315
+ yield* runtime.setConfigOption(KIRO_AGENT_CONFIG_ID, requested);
316
+ return true;
317
+});
318
+
319
+const applyKiroModelSelection =
320
+ (defaultModel: Effect.Effect<string>): NonNullable<AcpAdapterV2Flavor["applyModelSelection"]> =>
321
+ ({ runtime, modelSelection }) =>
322
+ applyKiroAgent(runtime, modelSelection).pipe(
323
+ Effect.flatMap((agentSwitched) =>
324
+ applyKiroModel(runtime, modelSelection, defaultModel, agentSwitched),
325
+ ),
326
+ Effect.tap((appliedModel) => applyKiroEffort(runtime, modelSelection, appliedModel)),
327
+ );
328
+
329
+function selectValues(
330
+ option: Extract<EffectAcpSchema.SessionConfigOption, { readonly type: "select" }>,
331
+): ReadonlyArray<string> {
332
+ return option.options.flatMap((entry) =>
333
+ "value" in entry ? [entry.value] : entry.options.map((choice) => choice.value),
334
+ );
335
+}
336
+
337
+const isAcpRequestError = Schema.is(EffectAcpErrors.AcpRequestError);
338
+
339
+/**
340
+ * Evidence that Kiro started the current prompt, so Stop's `session/cancel` is
341
+ * honored: a `turn_start` info update or output only a running prompt produces.
342
+ * Kiro doesn't promise `turn_start`, so Stop gives up after KIRO_CANCEL_HOLD_BOUND.
343
+ */
344
+function isKiroPromptActivity(update: EffectAcpSchema.SessionUpdate): boolean {
345
+ switch (update.sessionUpdate) {
346
+ case "agent_message_chunk":
347
+ case "agent_message":
348
+ case "agent_thought_chunk":
349
+ case "agent_thought":
350
+ case "tool_call":
351
+ case "tool_call_update":
352
+ case "tool_call_content_chunk":
353
+ case "plan_update":
354
+ return true;
355
+ case "session_info_update": {
356
+ const kiro = update._meta?.kiro;
357
+ return (
358
+ typeof kiro === "object" && kiro !== null && "kind" in kiro && kiro.kind === "turn_start"
359
+ );
360
+ }
361
+ default:
362
+ return false;
363
+ }
364
+}
365
+
366
+/** Past the 0-0.5 s window where TinBane saw cancels dropped, and the 1.5 s cancel they saw honored. */
367
+const KIRO_CANCEL_HOLD_BOUND = "2 seconds";
368
+
369
+/**
370
+ * Kiro 2.31 fetches an Identity Center account's cloud config as a tool call
371
+ * of its own around session start (reported by @hstern), which can land inside
372
+ * the user's turn. Only the call carries this id; its updates name the call.
373
+ */
374
+const KIRO_CLOUD_CONFIG_TOOL_ID = "fetch_cloud_config";
375
+
376
+/** Drops Kiro's cloud-config tool call and every update that follows it. */
377
+function makeKiroCloudConfigFilter() {
378
+ const running = new Set<string>();
379
+ return (notification: EffectAcpSchema.SessionNotification): boolean => {
380
+ const { update } = notification;
381
+ if (
382
+ update.sessionUpdate !== "tool_call" &&
383
+ update.sessionUpdate !== "tool_call_update" &&
384
+ update.sessionUpdate !== "tool_call_content_chunk"
385
+ ) {
386
+ return false;
387
+ }
388
+ const key = `${notification.sessionId}\n${update.toolCallId}`;
389
+ const kiro = update._meta?.kiro;
390
+ const toolId =
391
+ typeof kiro === "object" && kiro !== null && "toolId" in kiro ? kiro.toolId : null;
392
+ if (toolId === KIRO_CLOUD_CONFIG_TOOL_ID) running.add(key);
393
+ else if (!running.has(key)) return false;
394
+ if ("status" in update && (update.status === "completed" || update.status === "failed")) {
395
+ running.delete(key);
396
+ }
397
+ return true;
398
+ };
399
+}
400
+
401
+const KIRO_STEERING_NOTE = "[STEERING steer-";
402
+const decodeKiroSteeringInfo = Schema.decodeUnknownOption(
403
+ Schema.Struct({ kiro: Schema.Struct({ kind: Schema.String }) }),
404
+);
405
+
406
+/** Length of the longest end of `text` that could still grow into the steering note. */
407
+function steeringNotePrefixLength(text: string): number {
408
+ for (let length = Math.min(text.length, KIRO_STEERING_NOTE.length - 1); length > 0; length -= 1) {
409
+ if (KIRO_STEERING_NOTE.startsWith(text.slice(-length))) return length;
410
+ }
411
+ return 0;
412
+}
413
+
414
+/**
415
+ * After an injected steer, Kiro's model ends its reply with a `[STEERING steer-…: …]`
416
+ * note meant for Kiro's own UI. This drops it from the streamed text, holding back a
417
+ * chunk end that may be the start of the note until the next chunk shows otherwise.
418
+ */
419
+function makeKiroSteeringNoteFilter() {
420
+ const sessions = new Map<string, { held: string; inNote: boolean }>();
421
+ return (
422
+ notification: EffectAcpSchema.SessionNotification,
423
+ ): EffectAcpSchema.SessionNotification => {
424
+ const { update } = notification;
425
+ if (update.sessionUpdate === "session_info_update") {
426
+ const kind = Option.getOrUndefined(decodeKiroSteeringInfo(update._meta))?.kiro.kind;
427
+ if (kind === "steering_injected") {
428
+ sessions.set(notification.sessionId, { held: "", inNote: false });
429
+ } else if (kind === "steering_cleared") sessions.delete(notification.sessionId);
430
+ return notification;
431
+ }
432
+ const state = sessions.get(notification.sessionId);
433
+ if (
434
+ state === undefined ||
435
+ update.sessionUpdate !== "agent_message_chunk" ||
436
+ update.content.type !== "text"
437
+ ) {
438
+ return notification;
439
+ }
440
+ let pending = state.held + update.content.text;
441
+ let visible = "";
442
+ state.held = "";
443
+ while (pending.length > 0) {
444
+ if (state.inNote) {
445
+ const end = pending.indexOf("]");
446
+ if (end < 0) break;
447
+ pending = pending.slice(end + 1);
448
+ state.inNote = false;
449
+ continue;
450
+ }
451
+ const start = pending.indexOf(KIRO_STEERING_NOTE);
452
+ if (start >= 0) {
453
+ visible += pending.slice(0, start).trimEnd();
454
+ pending = pending.slice(start + KIRO_STEERING_NOTE.length);
455
+ state.inNote = true;
456
+ continue;
457
+ }
458
+ const held = steeringNotePrefixLength(pending);
459
+ visible += pending.slice(0, pending.length - held);
460
+ state.held = pending.slice(pending.length - held);
461
+ break;
462
+ }
463
+ return {
464
+ ...notification,
465
+ update: { ...update, content: { ...update.content, text: visible } },
466
+ };
467
+ };
468
+}
469
+
470
+const decodeKiroAgentSubtask = Schema.decodeUnknownOption(
471
+ Schema.Struct({
472
+ kiro: Schema.Struct({ agentSubtaskId: Schema.String, kind: Schema.optionalKey(Schema.String) }),
473
+ }),
474
+);
475
+const decodeKiroSubagentInput = Schema.decodeUnknownOption(
476
+ Schema.Struct({ name: Schema.String, prompt: Schema.String }),
477
+);
478
+
479
+/**
480
+ * Kiro runs sub-agents inside the parent's session: frames from an
481
+ * `invoke_sub_agent` call carry `_meta.kiro.agentSubtaskId`, and routing them
482
+ * to that id as their session gives the shared adapter the child to project.
483
+ */
484
+function normalizeKiroSessionUpdate(
485
+ notification: EffectAcpSchema.SessionNotification,
486
+): EffectAcpSchema.SessionNotification {
487
+ const { update } = notification;
488
+ const subtask = decodeKiroAgentSubtask("_meta" in update ? update._meta : undefined);
489
+ return Option.isSome(subtask) && subtask.value.kiro.kind !== "agent-subtask"
490
+ ? { ...notification, sessionId: subtask.value.kiro.agentSubtaskId }
491
+ : notification;
492
+}
493
+
494
+/** The `invoke_sub_agent` call; it completes with the sub-agent's final response. */
495
+function extractKiroSubagentUpdate(tool: AcpToolCallState): AcpAdapterV2SubagentUpdate | undefined {
496
+ const subtask = decodeKiroAgentSubtask(tool.data.meta);
497
+ if (Option.isNone(subtask) || subtask.value.kiro.kind !== "agent-subtask") return undefined;
498
+ const input = decodeKiroSubagentInput(tool.data.rawInput);
499
+ const status =
500
+ tool.status === "failed" ? "failed" : tool.status === "completed" ? "completed" : "running";
501
+ return {
502
+ nativeTaskId: tool.toolCallId,
503
+ childSessionId: subtask.value.kiro.agentSubtaskId,
504
+ prompt: Option.isSome(input) ? input.value.prompt : (tool.title ?? "Kiro sub-agent"),
505
+ title: Option.isSome(input) ? input.value.name : null,
506
+ model: null,
507
+ status,
508
+ result: typeof tool.data.rawOutput === "string" ? tool.data.rawOutput : null,
509
+ };
510
+}
511
+
512
+/**
513
+ * Kiro's prompt errors carry a message meant for the user (live 2.27: -32000
514
+ * "The model 'x' is not available. Please select a different model and try
515
+ * again. (Request ID: …)"). Show it instead of the generic failure text;
516
+ * makeProviderFailure bounds and redacts it.
517
+ */
518
+function kiroPromptFailure(cause: unknown) {
519
+ return makeProviderFailure({
520
+ cause,
521
+ ...(isAcpRequestError(cause) ? { message: cause.errorMessage, code: String(cause.code) } : {}),
522
+ class: "provider_error",
523
+ });
524
+}
525
+
526
+function makeKiroAcpAdapterFlavor(options: KiroAdapterV2Options): AcpAdapterV2Flavor {
527
+ const makeRuntime =
528
+ options.makeRuntime ??
529
+ ((input: AcpAdapterV2RuntimeInput) => {
530
+ const { runtimePolicy: _runtimePolicy, processEnvironment, ...runtimeInput } = input;
531
+ return makeKiroAcpRuntime({
532
+ ...runtimeInput,
533
+ settings: options.settings,
534
+ environment: { ...options.environment, ...processEnvironment },
535
+ });
536
+ });
537
+ const stripSteeringNote = makeKiroSteeringNoteFilter();
538
+ return {
539
+ driver: KIRO_PROVIDER,
540
+ runtimeHarness: "Kiro",
541
+ capabilities: KiroProviderCapabilitiesV2,
542
+ // Kiro V3 loads the user's hooks only when the client opts in. `v2` makes
543
+ // Kiro run them itself; `enabled` alone hands them to the client as
544
+ // `_kiro/hooks/*` requests, which T3 does not answer.
545
+ clientCapabilitiesMeta: { kiro: { hooks: { enabled: true, v2: true } } },
546
+ makeRuntime,
547
+ promptFailure: kiroPromptFailure,
548
+ ignoreSessionUpdate: makeKiroCloudConfigFilter(),
549
+ normalizeSessionUpdate: (notification) =>
550
+ stripSteeringNote(normalizeKiroSessionUpdate(notification)),
551
+ extractSubagentUpdate: extractKiroSubagentUpdate,
552
+ // See applyKiroModelSelection: `model` arrives after session/new.
553
+ modelOptionArrivesLate: true,
554
+ applyModelSelection: applyKiroModelSelection(
555
+ options.defaultModel ?? Effect.succeed(KIRO_FALLBACK_DEFAULT_MODEL),
556
+ ),
557
+ // The generic option loop runs after the model write, and an agent write
558
+ // there would put the agent's own model back.
559
+ ownedModelOptionIds: ["reasoningEffort", KIRO_AGENT_CONFIG_ID],
560
+ // With Autopilot off (Supervised) Kiro asks the user to accept a turn's
561
+ // changes before it ends. T3's runtime policy answers its per-tool prompts
562
+ // either way, and a runtime-mode change reopens the session to reapply it.
563
+ sessionConfigForPolicy: (policy) => [
564
+ { id: KIRO_AUTOPILOT_CONFIG_ID, value: kiroAutopilotValue(policy) },
565
+ ],
566
+ // See isKiroPromptActivity: Kiro 2.27.1 can drop a cancel sent just after
567
+ // `session/prompt` and run the turn to completion.
568
+ cancelAfterPromptStarts: { isStart: isKiroPromptActivity, bound: KIRO_CANCEL_HOLD_BOUND },
569
+ permissionDisposition: kiroPermissionDisposition,
570
+ approvalOptions: kiroApprovalOptions,
571
+ compactSession: compactKiroSession,
572
+ steering: kiroSteering,
573
+ forkFromTurn: kiroForkFromTurn,
574
+ // Kiro V3 advertises `promptCapabilities.image`; the shared adapter reads it.
575
+ ...(options.assertComplete === undefined ? {} : { assertComplete: options.assertComplete }),
576
+ };
577
+}
578
+
579
+export const makeKiroAdapterV2 = Effect.fn("makeKiroAdapterV2")(function* (
580
+ options: KiroAdapterV2Options,
581
+) {
582
+ return yield* makeAcpAdapterV2({
583
+ instanceId: options.instanceId,
584
+ flavor: makeKiroAcpAdapterFlavor(options),
585
+ selfInvocation: options.selfInvocation,
586
+ ...(options.nativeLogging === undefined ? {} : { nativeLogging: options.nativeLogging }),
587
+ ...(options.testHooks === undefined ? {} : { testHooks: options.testHooks }),
588
+ });
589
+});
590
+
591
+export type KiroAdapterV2DriverEnv =
592
+ | ChildProcessSpawner.ChildProcessSpawner
593
+ | Crypto.Crypto
594
+ | FileSystem.FileSystem
595
+ | IdAllocator.IdAllocatorV2
596
+ | Path.Path
597
+ | McpProviderSessions.McpProviderSessions
598
+ | ProviderEventLoggers.ProviderEventLoggers
599
+ | ProviderHost.ProviderHost;
600
+
601
+/** `defaultModel` reads Kiro's id for "Kiro default" from the provider snapshot. */
602
+export const makeKiroAdapterV2Driver = (
603
+ defaultModel: Effect.Effect<string>,
604
+): ProviderAdapterDriver<KiroSettings, KiroAdapterV2DriverEnv> => ({
605
+ driverKind: KIRO_PROVIDER,
606
+ configSchema: KiroSettings,
607
+ defaultConfig: (): KiroSettings => DEFAULT_KIRO_SETTINGS,
608
+ create: Effect.fn("KiroAdapterV2Driver.create")(
609
+ function* (input: ProviderAdapterDriverCreateInput<KiroSettings>) {
610
+ const hostEnvironment = yield* HostProcess.Environment;
611
+ const selfInvocation = yield* resolveSelfInvocation();
612
+ const providerEventLoggers = yield* ProviderEventLoggers.ProviderEventLoggers;
613
+ const makeNativeLogger = yield* makeAcpNativeLoggerFactory();
614
+ return yield* makeKiroAdapterV2({
615
+ instanceId: input.instanceId,
616
+ settings: { ...input.config, enabled: input.enabled },
617
+ environment: yield* mergeProviderInstanceEnvironment(input.environment, hostEnvironment),
618
+ selfInvocation,
619
+ defaultModel,
620
+ nativeLogging: (threadId) =>
621
+ makeNativeLogger({
622
+ nativeEventLogger: providerEventLoggers.native,
623
+ provider: KIRO_PROVIDER,
624
+ threadId,
625
+ }),
626
+ });
627
+ },
628
+ (effect, input) =>
629
+ effect.pipe(
630
+ Effect.mapError(
631
+ (cause) =>
632
+ new ProviderAdapterDriverCreateError({
633
+ driver: KIRO_PROVIDER,
634
+ instanceId: input.instanceId,
635
+ detail: "Failed to create Kiro ACP adapter.",
636
+ cause,
637
+ }),
638
+ ),
639
+ ),
640
+ ),
641
+});
packages/provider-kiro/src/server/driver.test.ts
new
+66
@@ -0,0 +1,66 @@
1
+import { assert, describe, it } from "@effect/vitest";
2
+import * as Schema from "effect/Schema";
3
+
4
+import { KiroSettings } from "../settings.ts";
5
+import { buildKiroAcpSpawnInput } from "./acpSupport.ts";
6
+import { kiroAuthFromWhoami } from "./status.ts";
7
+
8
+const decodeSettings = Schema.decodeUnknownSync(KiroSettings);
9
+
10
+describe("KiroDriver", () => {
11
+ it("launches the V3 ACP engine with CLI-owned auth from the configured binary", () => {
12
+ assert.deepEqual(buildKiroAcpSpawnInput(decodeSettings({}), "/work"), {
13
+ command: "kiro-cli",
14
+ args: ["acp", "--agent-engine=v3", "--auth-method=cli"],
15
+ cwd: "/work",
16
+ });
17
+ const custom = buildKiroAcpSpawnInput(
18
+ decodeSettings({ binaryPath: "/opt/kiro/bin/kiro-cli" }),
19
+ "/work",
20
+ { KIRO_API_KEY: "ksk_test" },
21
+ );
22
+ assert.equal(custom.command, "/opt/kiro/bin/kiro-cli");
23
+ assert.deepEqual(custom.args, ["acp", "--agent-engine=v3", "--auth-method=cli"]);
24
+ assert.deepEqual(custom.env, { KIRO_API_KEY: "ksk_test" });
25
+ });
26
+
27
+ // Outputs recorded from `kiro-cli whoami --format json` on Kiro CLI 2.27.0.
28
+ it("reads the sign-in state from kiro-cli whoami", () => {
29
+ assert.deepEqual(kiroAuthFromWhoami({ code: 1, stdout: '{"account":null}\n' }, {}), {
30
+ status: "unauthenticated",
31
+ });
32
+ assert.deepEqual(
33
+ kiroAuthFromWhoami({ code: 0, stdout: '{"accountType":"ApiKey","email":null}\n' }, {}),
34
+ { status: "authenticated", type: "api_key", label: "Kiro API key" },
35
+ );
36
+ assert.deepEqual(
37
+ kiroAuthFromWhoami(
38
+ { code: 0, stdout: '{"accountType":"BuilderId","email":"dev@example.com"}\n' },
39
+ {},
40
+ ),
41
+ { status: "authenticated", label: "Kiro account", email: "dev@example.com" },
42
+ );
43
+ assert.deepEqual(kiroAuthFromWhoami({ code: 2, stdout: "error: service error" }, {}), {
44
+ status: "unknown",
45
+ });
46
+ assert.deepEqual(kiroAuthFromWhoami(undefined, {}), { status: "unknown" });
47
+ });
48
+
49
+ // Reported from Kiro CLI 2.27.1 with an IAM Identity Center login (exit 0;
50
+ // values are placeholders, layout unchanged).
51
+ it("keeps the account email when whoami appends an Identity Center profile", () => {
52
+ const stdout = [
53
+ '{"accountType":"IamIdentityCenter","email":"jane.doe@example.com","region":"us-east-1","startUrl":"https://d-0123456789.awsapps.com/start"}',
54
+ "",
55
+ "Profile:",
56
+ "KiroProfile-us-east-1",
57
+ "arn:aws:codewhisperer:us-east-1:111122223333:profile/EXAMPLE12345",
58
+ "",
59
+ ].join("\n");
60
+ assert.deepEqual(kiroAuthFromWhoami({ code: 0, stdout }, {}), {
61
+ status: "authenticated",
62
+ label: "Kiro account",
63
+ email: "jane.doe@example.com",
64
+ });
65
+ });
66
+});
packages/provider-kiro/src/server/driver.ts
new
+154
@@ -0,0 +1,154 @@
1
+import { ProviderDriverKind, TextGenerationError } from "@t3tools/contracts";
2
+import { KiroSettings } from "../settings.ts";
3
+import * as HostProcess from "@t3tools/shared/HostProcess";
4
+import * as Crypto from "effect/Crypto";
5
+import * as Effect from "effect/Effect";
6
+import * as Schema from "effect/Schema";
7
+import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
8
+
9
+import type * as ProviderHost from "@t3tools/provider-core/server/ProviderHost";
10
+import {
11
+ defaultProviderContinuationIdentity,
12
+ type ProviderDriver,
13
+ type ProviderInstance,
14
+} from "@t3tools/provider-core/server/driver";
15
+import { ProviderDriverError } from "@t3tools/provider-core/server/errors";
16
+import { mergeProviderInstanceEnvironment } from "@t3tools/provider-core/server/instanceEnvironment";
17
+import { withInstanceIdentity } from "@t3tools/provider-core/server/instanceIdentity";
18
+import { makeManualOnlyProviderMaintenanceCapabilities } from "@t3tools/provider-core/server/maintenanceResolver";
19
+import { makeManagedServerProvider } from "@t3tools/provider-core/server/managedProvider";
20
+import {
21
+ haveProviderSnapshotSettingsChanged,
22
+ makeProviderSnapshotSettingsSource,
23
+ type ProviderSnapshotSettings,
24
+} from "@t3tools/provider-core/server/snapshotSettings";
25
+import type { ProviderTextGeneration } from "@t3tools/provider-core/server/textGeneration";
26
+import { type KiroAdapterV2DriverEnv, makeKiroAdapterV2Driver } from "./adapter.ts";
27
+import {
28
+ buildInitialKiroProviderSnapshot,
29
+ checkKiroProviderStatus,
30
+ kiroDefaultModelId,
31
+} from "./status.ts";
32
+
33
+const DRIVER_KIND = ProviderDriverKind.make("kiro");
34
+const decodeKiroSettings = Schema.decodeSync(KiroSettings);
35
+// Kiro updates itself in the background (`kiro-cli update` reports only), so
36
+// T3 offers no one-click update.
37
+const MAINTENANCE = makeManualOnlyProviderMaintenanceCapabilities({
38
+ provider: DRIVER_KIND,
39
+ packageName: null,
40
+});
41
+
42
+const unsupportedTextGeneration: ProviderTextGeneration = (() => {
43
+ const unsupported = (operation: string) =>
44
+ Effect.fail(
45
+ new TextGenerationError({
46
+ operation,
47
+ detail: "Kiro does not provide application text generation.",
48
+ }),
49
+ );
50
+ return {
51
+ generateCommitMessage: () => unsupported("generateCommitMessage"),
52
+ generatePrContent: () => unsupported("generatePrContent"),
53
+ generateBranchName: () => unsupported("generateBranchName"),
54
+ generateThreadTitle: () => unsupported("generateThreadTitle"),
55
+ generateReviewGuide: () => unsupported("generateReviewGuide"),
56
+ };
57
+})();
58
+
59
+export type KiroDriverEnv =
60
+ | KiroAdapterV2DriverEnv
61
+ | ChildProcessSpawner.ChildProcessSpawner
62
+ | Crypto.Crypto
63
+ | ProviderHost.ProviderHost;
64
+
65
+export const KiroDriver: ProviderDriver<KiroSettings, KiroDriverEnv> = {
66
+ driverKind: DRIVER_KIND,
67
+ metadata: {
68
+ displayName: "Kiro",
69
+ supportsMultipleInstances: true,
70
+ },
71
+ configSchema: KiroSettings,
72
+ defaultConfig: (): KiroSettings => decodeKiroSettings({}),
73
+ create: Effect.fn("KiroDriver.create")(function* ({
74
+ instanceId,
75
+ displayName,
76
+ accentColor,
77
+ environment,
78
+ enabled,
79
+ config,
80
+ }) {
81
+ const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
82
+ const crypto = yield* Crypto.Crypto;
83
+ const processEnv = yield* mergeProviderInstanceEnvironment(
84
+ environment,
85
+ yield* HostProcess.Environment,
86
+ );
87
+ const continuationIdentity = defaultProviderContinuationIdentity({
88
+ driverKind: DRIVER_KIND,
89
+ instanceId,
90
+ });
91
+ const stampIdentity = withInstanceIdentity({
92
+ instanceId,
93
+ driverKind: DRIVER_KIND,
94
+ displayName,
95
+ accentColor,
96
+ continuationGroupKey: continuationIdentity.continuationKey,
97
+ });
98
+ const effectiveConfig = { ...config, enabled } satisfies KiroSettings;
99
+ const snapshotSettings = yield* makeProviderSnapshotSettingsSource(effectiveConfig);
100
+ const snapshot = yield* makeManagedServerProvider<ProviderSnapshotSettings<KiroSettings>>({
101
+ resolveMaintenance: () => Effect.succeed(MAINTENANCE),
102
+ getSettings: snapshotSettings.getSettings,
103
+ streamSettings: snapshotSettings.streamSettings,
104
+ haveSettingsChanged: haveProviderSnapshotSettingsChanged,
105
+ initialSnapshot: (settings) =>
106
+ buildInitialKiroProviderSnapshot(settings.provider).pipe(Effect.map(stampIdentity)),
107
+ checkProvider: checkKiroProviderStatus(effectiveConfig, processEnv).pipe(
108
+ Effect.map(stampIdentity),
109
+ Effect.provideService(ChildProcessSpawner.ChildProcessSpawner, spawner),
110
+ Effect.provideService(Crypto.Crypto, crypto),
111
+ ),
112
+ }).pipe(
113
+ Effect.mapError(
114
+ (cause) =>
115
+ new ProviderDriverError({
116
+ driver: DRIVER_KIND,
117
+ instanceId,
118
+ // The cause keeps the failure; the detail reaches the snapshot, so it stays fixed.
119
+ detail: "Failed to build Kiro snapshot.",
120
+ cause,
121
+ }),
122
+ ),
123
+ );
124
+
125
+ // "Kiro default" selects the default the snapshot read from Kiro's model list.
126
+ const orchestrationAdapter = yield* makeKiroAdapterV2Driver(
127
+ snapshot.getSnapshot.pipe(Effect.map((current) => kiroDefaultModelId(current.models))),
128
+ )
129
+ .create({ instanceId, displayName, accentColor, environment, enabled, config })
130
+ .pipe(
131
+ Effect.mapError(
132
+ (cause) =>
133
+ new ProviderDriverError({
134
+ driver: DRIVER_KIND,
135
+ instanceId,
136
+ detail: "Failed to build Kiro orchestration adapter.",
137
+ cause,
138
+ }),
139
+ ),
140
+ );
141
+
142
+ return {
143
+ instanceId,
144
+ driverKind: DRIVER_KIND,
145
+ continuationIdentity,
146
+ displayName,
147
+ accentColor,
148
+ enabled,
149
+ snapshot,
150
+ orchestrationAdapter,
151
+ textGeneration: unsupportedTextGeneration,
152
+ } satisfies ProviderInstance;
153
+ }),
154
+};
packages/provider-kiro/src/server/status.ts
new
+458
@@ -0,0 +1,458 @@
1
+import {
2
+ type ModelCapabilities,
3
+ ProviderDriverKind,
4
+ type ProviderOptionDescriptor,
5
+ type ServerProviderAuth,
6
+ type ServerProviderModel,
7
+} from "@t3tools/contracts";
8
+import type { KiroSettings } from "../settings.ts";
9
+import * as HostProcess from "@t3tools/shared/HostProcess";
10
+import { createModelCapabilities } from "@t3tools/shared/model";
11
+import { resolveSpawnCommand } from "@t3tools/shared/shell";
12
+import type * as Crypto from "effect/Crypto";
13
+import * as DateTime from "effect/DateTime";
14
+import * as Effect from "effect/Effect";
15
+import * as Option from "effect/Option";
16
+import * as Result from "effect/Result";
17
+import * as Schema from "effect/Schema";
18
+import { ChildProcess, type ChildProcessSpawner } from "effect/process";
19
+
20
+import {
21
+ KIRO_AGENT_CONFIG_ID,
22
+ KIRO_SUPPORTED_RUNTIME_MODES,
23
+ makeKiroAcpRuntime,
24
+} from "./acpSupport.ts";
25
+import {
26
+ AUTH_PROBE_TIMEOUT_MS,
27
+ buildServerProvider,
28
+ COMPACT_SLASH_COMMAND,
29
+ DEFAULT_TIMEOUT_MS,
30
+ isCommandMissingCause,
31
+ parseGenericCliVersion,
32
+ buildSelectOptionDescriptor,
33
+ type ProviderProbeResult,
34
+ providerModelsFromSettings,
35
+ type ServerProviderDraft,
36
+ spawnAndCollect,
37
+} from "@t3tools/provider-core/server/snapshotProbe";
38
+
39
+const KIRO_DRIVER_KIND = ProviderDriverKind.make("kiro");
40
+const KIRO_PRESENTATION = {
41
+ displayName: "Kiro",
42
+ showInteractionModeToggle: false,
43
+ supportedRuntimeModes: KIRO_SUPPORTED_RUNTIME_MODES,
44
+} as const;
45
+const EMPTY_CAPABILITIES: ModelCapabilities = createModelCapabilities({ optionDescriptors: [] });
46
+const KIRO_DEFAULT_MODEL_SLUG = "default";
47
+const KIRO_FALLBACK_DEFAULT_MODEL = "auto";
48
+const KIRO_BUILT_IN_MODELS: ReadonlyArray<ServerProviderModel> = [
49
+ {
50
+ slug: KIRO_DEFAULT_MODEL_SLUG,
51
+ name: "Kiro default",
52
+ isCustom: false,
53
+ capabilities: EMPTY_CAPABILITIES,
54
+ },
55
+];
56
+const KIRO_API_KEY_ENV = "KIRO_API_KEY";
57
+
58
+/**
59
+ * The agent picker is not a model trait, but the composer reads options per
60
+ * model, so every model, custom ones included, carries it.
61
+ */
62
+const kiroModels = (
63
+ settings: KiroSettings,
64
+ listed: ReadonlyArray<ServerProviderModel> = KIRO_BUILT_IN_MODELS,
65
+ agents?: ProviderOptionDescriptor,
66
+) =>
67
+ providerModelsFromSettings(listed, settings.customModels, EMPTY_CAPABILITIES).map((model) => {
68
+ const descriptors = model.capabilities?.optionDescriptors ?? [];
69
+ return agents === undefined || descriptors.some((descriptor) => descriptor.id === agents.id)
70
+ ? model
71
+ : {
72
+ ...model,
73
+ capabilities: createModelCapabilities({ optionDescriptors: [...descriptors, agents] }),
74
+ };
75
+ });
76
+
77
+const snapshot = (
78
+ settings: KiroSettings,
79
+ checkedAt: string,
80
+ probe: ProviderProbeResult,
81
+ listed?: ReadonlyArray<ServerProviderModel>,
82
+ agents?: ProviderOptionDescriptor,
83
+) =>
84
+ buildServerProvider({
85
+ // Gives the snapshot its version advisory; Kiro runs no enrichment pass.
86
+ driver: KIRO_DRIVER_KIND,
87
+ presentation: KIRO_PRESENTATION,
88
+ enabled: settings.enabled,
89
+ checkedAt,
90
+ models: kiroModels(settings, listed, agents),
91
+ // `/compact` runs `_kiro/session/compact`; see compactKiroSession.
92
+ slashCommands: [COMPACT_SLASH_COMMAND],
93
+ probe,
94
+ });
95
+
96
+export const buildInitialKiroProviderSnapshot = Effect.fn(
97
+ "KiroProvider.buildInitialKiroProviderSnapshot",
98
+)(function* (settings: KiroSettings): Effect.fn.Return<ServerProviderDraft> {
99
+ const now = yield* DateTime.now;
100
+ return snapshot(settings, DateTime.formatIso(now), {
101
+ installed: settings.enabled,
102
+ version: null,
103
+ status: "warning",
104
+ auth: { status: "unknown" },
105
+ message: settings.enabled
106
+ ? "Checking Kiro CLI availability..."
107
+ : "Kiro is disabled in T3 Code settings.",
108
+ });
109
+});
110
+
111
+const runKiroCli = Effect.fn("KiroProvider.runKiroCli")(function* (
112
+ settings: KiroSettings,
113
+ args: ReadonlyArray<string>,
114
+ environment: NodeJS.ProcessEnv,
115
+) {
116
+ const command = settings.binaryPath || "kiro-cli";
117
+ const spawnCommand = yield* resolveSpawnCommand(command, args, { env: environment });
118
+ return yield* spawnAndCollect(
119
+ command,
120
+ ChildProcess.make(spawnCommand.command, spawnCommand.args, {
121
+ env: environment,
122
+ shell: spawnCommand.shell,
123
+ }),
124
+ );
125
+});
126
+
127
+const KiroWhoami = Schema.fromJsonString(
128
+ Schema.Struct({
129
+ accountType: Schema.optional(Schema.NullOr(Schema.String)),
130
+ email: Schema.optional(Schema.NullOr(Schema.String)),
131
+ }),
132
+);
133
+const decodeKiroWhoami = Schema.decodeUnknownOption(KiroWhoami);
134
+
135
+/**
136
+ * Reads `kiro-cli whoami --format json`: `{"account":null}` with exit 1 means
137
+ * signed out. Only the first line is decoded, since an Identity Center login
138
+ * follows it with a plain-text `Profile:` block.
139
+ */
140
+export function kiroAuthFromWhoami(
141
+ output: { readonly code: number; readonly stdout: string } | undefined,
142
+ environment: NodeJS.ProcessEnv,
143
+): ServerProviderAuth {
144
+ if (output === undefined) return { status: "unknown" };
145
+ if (output.code !== 0) {
146
+ return output.stdout.includes('"account":null')
147
+ ? { status: "unauthenticated" }
148
+ : { status: "unknown" };
149
+ }
150
+ const firstLine = output.stdout.trimStart().split("\n", 1)[0] ?? "";
151
+ const account = Option.getOrUndefined(decodeKiroWhoami(firstLine.trim()));
152
+ if (account?.accountType === "ApiKey" || environment[KIRO_API_KEY_ENV]?.trim()) {
153
+ return { status: "authenticated", type: "api_key", label: "Kiro API key" };
154
+ }
155
+ return {
156
+ status: "authenticated",
157
+ label: "Kiro account",
158
+ ...(account?.email ? { email: account.email } : {}),
159
+ };
160
+}
161
+
162
+const CLAUDE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
163
+const CLAUDE_4_6_EFFORT_LEVELS = ["low", "medium", "high", "max"];
164
+const GPT_5_6_EFFORT_LEVELS = ["none", ...CLAUDE_EFFORT_LEVELS];
165
+const KIMI_K3_EFFORT_LEVELS = ["low", "high", "max"];
166
+
167
+/**
168
+ * Reasoning levels per Kiro model id and its default level, copied from what
169
+ * Kiro 2.32.0 advertises, since `--list-models` names none. Unlisted models take
170
+ * no effort; the adapter sends only a level the live session offers.
171
+ */
172
+const KIRO_MODEL_EFFORT: Readonly<
173
+ Record<string, { readonly levels: ReadonlyArray<string>; readonly defaultLevel: string }>
174
+> = {
175
+ "claude-fable-5.1": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "high" },
176
+ "claude-opus-5.5": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "medium" },
177
+ "claude-opus-5": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "high" },
178
+ "claude-opus-4.8": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "high" },
179
+ "claude-opus-4.7": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "xhigh" },
180
+ "claude-opus-4.6": { levels: CLAUDE_4_6_EFFORT_LEVELS, defaultLevel: "high" },
181
+ "claude-sonnet-5.5": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "high" },
182
+ "claude-sonnet-5": { levels: CLAUDE_EFFORT_LEVELS, defaultLevel: "high" },
183
+ "claude-sonnet-4.6": { levels: CLAUDE_4_6_EFFORT_LEVELS, defaultLevel: "high" },
184
+ "gpt-5.6-sol": { levels: GPT_5_6_EFFORT_LEVELS, defaultLevel: "high" },
185
+ "gpt-5.6-terra": { levels: GPT_5_6_EFFORT_LEVELS, defaultLevel: "high" },
186
+ "gpt-5.6-luna": { levels: GPT_5_6_EFFORT_LEVELS, defaultLevel: "high" },
187
+ "kimi-k3": { levels: KIMI_K3_EFFORT_LEVELS, defaultLevel: "max" },
188
+};
189
+const KIRO_EFFORT_LABELS: Readonly<Record<string, string>> = {
190
+ none: "None",
191
+ low: "Low",
192
+ medium: "Medium",
193
+ high: "High",
194
+ xhigh: "Extra High",
195
+ max: "Max",
196
+};
197
+
198
+function kiroModelCapabilities(modelId: string): ModelCapabilities {
199
+ const effort = KIRO_MODEL_EFFORT[modelId];
200
+ if (effort === undefined) return EMPTY_CAPABILITIES;
201
+ return createModelCapabilities({
202
+ optionDescriptors: [
203
+ buildSelectOptionDescriptor({
204
+ id: "reasoningEffort",
205
+ label: "Reasoning",
206
+ options: effort.levels.map((level) => ({
207
+ value: level,
208
+ label: KIRO_EFFORT_LABELS[level] ?? level,
209
+ isDefault: level === effort.defaultLevel,
210
+ })),
211
+ }),
212
+ ],
213
+ });
214
+}
215
+
216
+const KiroModelList = Schema.fromJsonString(
217
+ Schema.Struct({
218
+ models: Schema.Array(
219
+ Schema.Struct({
220
+ model_id: Schema.String,
221
+ model_name: Schema.optional(Schema.String),
222
+ }),
223
+ ),
224
+ default_model: Schema.optional(Schema.String),
225
+ }),
226
+);
227
+const decodeKiroModelList = Schema.decodeUnknownOption(KiroModelList);
228
+
229
+/**
230
+ * Reads `kiro-cli chat --list-models --format json`, the account's models. The
231
+ * default entry keeps its name but takes the "default" slug, with Kiro's id as its
232
+ * alias. Sessions advertise models only after they start; anything unparsable
233
+ * keeps the built-in list.
234
+ */
235
+function kiroModelsFromList(
236
+ output: { readonly code: number; readonly stdout: string } | undefined,
237
+): ReadonlyArray<ServerProviderModel> | undefined {
238
+ if (output === undefined || output.code !== 0) return undefined;
239
+ const list = Option.getOrUndefined(decodeKiroModelList(output.stdout.trim()));
240
+ if (list === undefined || list.models.length === 0) return undefined;
241
+ const defaultId = list.default_model ?? KIRO_FALLBACK_DEFAULT_MODEL;
242
+ const listedDefault = list.models.find((model) => model.model_id === defaultId);
243
+ const defaultModel: ServerProviderModel = {
244
+ slug: KIRO_DEFAULT_MODEL_SLUG,
245
+ // Named after the model it runs, so a named default isn't hidden behind "Kiro default".
246
+ name: listedDefault ? (listedDefault.model_name ?? listedDefault.model_id) : "Kiro default",
247
+ aliases: [defaultId],
248
+ isCustom: false,
249
+ isDefault: true,
250
+ // A new session on Kiro's default gets no model write, so Kiro never
251
+ // advertises its effort option and a level could not be applied.
252
+ capabilities: EMPTY_CAPABILITIES,
253
+ };
254
+ const models = list.models.map((model) =>
255
+ model === listedDefault
256
+ ? defaultModel
257
+ : {
258
+ slug: model.model_id,
259
+ name: model.model_name ?? model.model_id,
260
+ isCustom: false,
261
+ capabilities: kiroModelCapabilities(model.model_id),
262
+ },
263
+ );
264
+ // New threads select "default", so it is listed even when Kiro's list leaves its default out.
265
+ return models.includes(defaultModel) ? models : [defaultModel, ...models];
266
+}
267
+
268
+/**
269
+ * Kiro's own id for "Kiro default": the alias the model list gave it, else
270
+ * `auto`, Kiro's documented default.
271
+ */
272
+export function kiroDefaultModelId(models: ReadonlyArray<ServerProviderModel>): string {
273
+ return (
274
+ models.find((model) => model.slug === KIRO_DEFAULT_MODEL_SLUG)?.aliases?.[0] ??
275
+ KIRO_FALLBACK_DEFAULT_MODEL
276
+ );
277
+}
278
+
279
+const KiroConfigTemplate = Schema.Struct({
280
+ configOptions: Schema.Array(
281
+ Schema.Struct({
282
+ id: Schema.String,
283
+ type: Schema.String,
284
+ currentValue: Schema.optional(Schema.Unknown),
285
+ options: Schema.optional(
286
+ Schema.Array(
287
+ Schema.Struct({
288
+ value: Schema.String,
289
+ name: Schema.String,
290
+ description: Schema.optional(Schema.NullOr(Schema.String)),
291
+ }),
292
+ ),
293
+ ),
294
+ }),
295
+ ),
296
+});
297
+const decodeKiroConfigTemplate = Schema.decodeUnknownOption(KiroConfigTemplate);
298
+
299
+/**
300
+ * The thread's agent picker, from Kiro's `_kiro/config/template` result, without
301
+ * opening a session. The template reads no workspace, so a project's
302
+ * `.kiro/agents` are not offered.
303
+ */
304
+export function kiroAgentDescriptor(template: unknown): ProviderOptionDescriptor | undefined {
305
+ const decoded = Option.getOrUndefined(decodeKiroConfigTemplate(template));
306
+ const mode = decoded?.configOptions.find(
307
+ (option) => option.id === KIRO_AGENT_CONFIG_ID && option.type === "select",
308
+ );
309
+ const defaultAgent = typeof mode?.currentValue === "string" ? mode.currentValue : undefined;
310
+ const choices = (mode?.options ?? []).flatMap((choice) => {
311
+ const id = choice.value.trim();
312
+ const label = choice.name.trim() || id;
313
+ const description = choice.description?.trim();
314
+ return id.length === 0
315
+ ? []
316
+ : [
317
+ {
318
+ id,
319
+ label,
320
+ ...(description ? { description } : {}),
321
+ ...(id === defaultAgent ? { isDefault: true } : {}),
322
+ },
323
+ ];
324
+ });
325
+ // One agent is nothing to choose between.
326
+ if (choices.length < 2) return undefined;
327
+ return {
328
+ id: KIRO_AGENT_CONFIG_ID,
329
+ label: "Agent",
330
+ type: "select",
331
+ options: choices,
332
+ ...(defaultAgent !== undefined && choices.some((choice) => choice.isDefault)
333
+ ? { currentValue: defaultAgent }
334
+ : {}),
335
+ };
336
+}
337
+
338
+/**
339
+ * Asks Kiro for its agents with `initialize` and `_kiro/config/template` and
340
+ * nothing more: no `session/new`, so no MCP server starts and no session is
341
+ * stored. The process runs in the server's working directory.
342
+ */
343
+const probeKiroAgents = Effect.fn("KiroProvider.probeKiroAgents")(function* (
344
+ settings: KiroSettings,
345
+ environment: NodeJS.ProcessEnv,
346
+) {
347
+ const runtime = yield* makeKiroAcpRuntime({
348
+ settings,
349
+ environment,
350
+ cwd: yield* HostProcess.WorkingDirectory,
351
+ clientInfo: { name: "t3-code-provider-probe", version: "0.0.0" },
352
+ });
353
+ yield* runtime.initialize();
354
+ return kiroAgentDescriptor(yield* runtime.request("_kiro/config/template", {}));
355
+}, Effect.scoped);
356
+
357
+export const checkKiroProviderStatus = Effect.fn("checkKiroProviderStatus")(function* (
358
+ settings: KiroSettings,
359
+ environment: NodeJS.ProcessEnv,
360
+): Effect.fn.Return<
361
+ ServerProviderDraft,
362
+ never,
363
+ ChildProcessSpawner.ChildProcessSpawner | Crypto.Crypto
364
+> {
365
+ const checkedAt = DateTime.formatIso(yield* DateTime.now);
366
+ if (!settings.enabled) {
367
+ return snapshot(settings, checkedAt, {
368
+ installed: false,
369
+ version: null,
370
+ status: "warning",
371
+ auth: { status: "unknown" },
372
+ message: "Kiro is disabled in T3 Code settings.",
373
+ });
374
+ }
375
+
376
+ const versionResult = yield* runKiroCli(settings, ["--version"], environment).pipe(
377
+ Effect.timeoutOption(DEFAULT_TIMEOUT_MS),
378
+ Effect.result,
379
+ );
380
+ if (Result.isFailure(versionResult) || Option.isNone(versionResult.success)) {
381
+ const missing = Result.isFailure(versionResult) && isCommandMissingCause(versionResult.failure);
382
+ return snapshot(settings, checkedAt, {
383
+ installed: !missing,
384
+ version: null,
385
+ status: "error",
386
+ auth: { status: "unknown" },
387
+ message: missing
388
+ ? "Kiro CLI (`kiro-cli`) is not installed or not on PATH."
389
+ : "Failed to run `kiro-cli --version`.",
390
+ });
391
+ }
392
+ const versionOutput = versionResult.success.value;
393
+ const version = parseGenericCliVersion(`${versionOutput.stdout}\n${versionOutput.stderr}`);
394
+ if (versionOutput.code !== 0) {
395
+ return snapshot(settings, checkedAt, {
396
+ installed: true,
397
+ version,
398
+ status: "error",
399
+ auth: { status: "unknown" },
400
+ message: "Kiro CLI is installed but failed to run.",
401
+ });
402
+ }
403
+
404
+ const whoamiResult = yield* runKiroCli(
405
+ settings,
406
+ ["whoami", "--format", "json"],
407
+ environment,
408
+ ).pipe(Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS), Effect.result);
409
+ const auth = kiroAuthFromWhoami(
410
+ Result.isSuccess(whoamiResult) ? Option.getOrUndefined(whoamiResult.success) : undefined,
411
+ environment,
412
+ );
413
+ if (auth.status === "unauthenticated") {
414
+ return snapshot(settings, checkedAt, {
415
+ installed: true,
416
+ version,
417
+ status: "error",
418
+ auth,
419
+ message: "Kiro CLI is installed but not signed in. Run `kiro-cli login`.",
420
+ });
421
+ }
422
+ // Signed out, `--list-models` starts a browser login instead, and the agent
423
+ // probe fails to start, so both run only once `whoami` has confirmed the
424
+ // account. Without an agent list the composer shows no agent picker.
425
+ const [listed, agents] =
426
+ auth.status === "authenticated"
427
+ ? yield* Effect.all(
428
+ [
429
+ runKiroCli(settings, ["chat", "--list-models", "--format", "json"], environment).pipe(
430
+ Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
431
+ Effect.map((output) => kiroModelsFromList(Option.getOrUndefined(output))),
432
+ Effect.orElseSucceed(() => undefined),
433
+ ),
434
+ probeKiroAgents(settings, environment).pipe(
435
+ Effect.timeoutOption(AUTH_PROBE_TIMEOUT_MS),
436
+ Effect.map(Option.getOrUndefined),
437
+ Effect.orElseSucceed(() => undefined),
438
+ ),
439
+ ],
440
+ { concurrency: "unbounded" },
441
+ )
442
+ : [undefined, undefined];
443
+ return snapshot(
444
+ settings,
445
+ checkedAt,
446
+ {
447
+ installed: true,
448
+ version,
449
+ status: auth.status === "authenticated" ? "ready" : "warning",
450
+ auth,
451
+ ...(auth.status === "authenticated"
452
+ ? {}
453
+ : { message: "Could not confirm the Kiro sign-in. Run `kiro-cli whoami` to check." }),
454
+ },
455
+ listed,
456
+ agents,
457
+ );
458
+});
packages/provider-kiro/src/settings.ts
new
+32
@@ -0,0 +1,32 @@
1
+import {
2
+ CustomModelSetting,
3
+ makeBinaryPathSetting,
4
+ makeProviderSettingsSchema,
5
+} from "@t3tools/contracts";
6
+import * as Effect from "effect/Effect";
7
+import * as Schema from "effect/Schema";
8
+
9
+export const KiroSettings = makeProviderSettingsSchema(
10
+ {
11
+ // Off by default like Grok: users opt in from Settings.
12
+ enabled: Schema.Boolean.pipe(
13
+ Schema.withDecodingDefault(Effect.succeed(false)),
14
+ Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
15
+ ),
16
+ binaryPath: makeBinaryPathSetting("kiro-cli").pipe(
17
+ Schema.annotateKey({
18
+ title: "Binary path",
19
+ description: "Path to the Kiro CLI binary.",
20
+ providerSettingsForm: { placeholder: "kiro-cli", clearWhenEmpty: "omit" },
21
+ }),
22
+ ),
23
+ customModels: Schema.Array(CustomModelSetting).pipe(
24
+ Schema.withDecodingDefault(Effect.succeed([])),
25
+ Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
26
+ ),
27
+ },
28
+ {
29
+ order: ["binaryPath"],
30
+ },
31
+);
32
+export type KiroSettings = typeof KiroSettings.Type;
packages/provider-kiro/src/testing.ts
new
+12
@@ -0,0 +1,12 @@
1
+export { KIRO_PROVIDER, makeKiroAdapterV2, type KiroAdapterV2Options } from "./server/adapter.ts";
2
+export {
3
+ kiroApprovalOptions,
4
+ kiroAutopilotValue,
5
+ kiroPermissionDisposition,
6
+ makeKiroAcpRuntime,
7
+} from "./server/acpSupport.ts";
8
+export {
9
+ checkKiroProviderStatus,
10
+ kiroAgentDescriptor,
11
+ kiroDefaultModelId,
12
+} from "./server/status.ts";
packages/provider-kiro/tsconfig.json
new
+7
@@ -0,0 +1,7 @@
1
+{
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "types": ["node"]
5
+ },
6
+ "include": ["src"]
7
+}
pnpm-lock.yaml
+37
@@ -868,6 +868,9 @@ importers:
868
'@t3tools/provider-grok':
869
specifier: workspace:*
870
version: link:../../packages/provider-grok
871
+ '@t3tools/provider-kiro':
872
+ specifier: workspace:*
873
+ version: link:../../packages/provider-kiro
874
'@t3tools/provider-muse':
875
specifier: workspace:*
876
version: link:../../packages/provider-muse
@@ -1504,6 +1507,9 @@ importers:
1507
'@t3tools/provider-grok':
1508
specifier: workspace:*
1509
version: link:../provider-grok
1510
+ '@t3tools/provider-kiro':
1511
+ specifier: workspace:*
1512
+ version: link:../provider-kiro
1513
'@t3tools/provider-muse':
1514
specifier: workspace:*
1515
version: link:../provider-muse
@@ -1809,6 +1815,37 @@ importers:
1815
specifier: 1.4.0
1816
version: 1.4.0(@astrojs/compiler-rs@0.5.1)(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@vitest/browser-playwright@5.0.5)(@vitest/ui@5.0.5)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(bufferutil@4.1.0)(esbuild@0.28.2)(jiti@2.7.0)(jsdom@30.1.0(@noble/hashes@1.8.0))(playwright@1.60.0)(terser@5.48.0)(unrun@0.2.39)(utf-8-validate@6.0.6)(yaml@2.9.0)
1817
1818
+ packages/provider-kiro:
1819
+ dependencies:
1820
+ '@t3tools/contracts':
1821
+ specifier: workspace:*
1822
+ version: link:../contracts
1823
+ '@t3tools/provider-acp':
1824
+ specifier: workspace:*
1825
+ version: link:../provider-acp
1826
+ '@t3tools/provider-core':
1827
+ specifier: workspace:*
1828
+ version: link:../provider-core
1829
+ '@t3tools/shared':
1830
+ specifier: workspace:*
1831
+ version: link:../shared
1832
+ effect:
1833
+ specifier: 4.0.5
1834
+ version: 4.0.5
1835
+ devDependencies:
1836
+ '@effect/vitest':
1837
+ specifier: 4.0.5
1838
+ version: 4.0.5(patch_hash=2731c9c3761c595f25ddc625a7d61ca376b389d5b3049ecb837c8940f21cfa02)(@astrojs/compiler-rs@0.5.1)(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@vitest/browser-playwright@5.0.5)(@vitest/ui@5.0.5)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(bufferutil@4.1.0)(effect@4.0.5)(esbuild@0.28.2)(jiti@2.7.0)(jsdom@30.1.0(@noble/hashes@1.8.0))(playwright@1.60.0)(terser@5.48.0)(unrun@0.2.39)(utf-8-validate@6.0.6)(yaml@2.9.0)
1839
+ '@types/node':
1840
+ specifier: 24.12.4
1841
+ version: 24.12.4
1842
+ effect-acp:
1843
+ specifier: workspace:*
1844
+ version: link:../effect-acp
1845
+ vite-plus:
1846
+ specifier: 1.4.0
1847
+ version: 1.4.0(@astrojs/compiler-rs@0.5.1)(@tsc-rs/typescript@0.8.0)(@types/node@24.12.4)(@vitest/browser-playwright@5.0.5)(@vitest/ui@5.0.5)(@volar/typescript@2.4.28(@tsc-rs/typescript@0.8.0))(bufferutil@4.1.0)(esbuild@0.28.2)(jiti@2.7.0)(jsdom@30.1.0(@noble/hashes@1.8.0))(playwright@1.60.0)(terser@5.48.0)(unrun@0.2.39)(utf-8-validate@6.0.6)(yaml@2.9.0)
1848
+
1849
packages/provider-muse:
1850
dependencies:
1851
'@muse-code/sdk':
scripts/release-smoke.ts
+1
@@ -37,6 +37,7 @@ const workspaceFiles = [
37
"packages/provider-cursor/package.json",
38
"packages/provider-fx/package.json",
39
"packages/provider-grok/package.json",
40
+ "packages/provider-kiro/package.json",
41
"packages/provider-muse/package.json",
42
"packages/provider-opencode/package.json",
43
"packages/secret-provider-core/package.json",