Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(agent): preserve session configuration and correlated controls (#7154)

Eric Hayescb4956cdb8e2
diff --git a/apps/web/src/features/block-agent/component/parts/ControlPart.tsx b/apps/web/src/features/block-agent/component/parts/ControlPart.tsx
index 9544070459..dab4cb1798 100644
--- a/apps/web/src/features/block-agent/component/parts/ControlPart.tsx
+++ b/apps/web/src/features/block-agent/component/parts/ControlPart.tsx
@@ -30,6 +30,21 @@ function label(part: ControlPartData): string {
[{ kind: 'set_model' }, { kind: 'rejected' }],
([control]) => `Couldn't switch to ${modelLabel(control.model)}`
)
+ .with(
+ [{ kind: 'set_config_option' }, { kind: 'pending' }],
+ ([control]) =>
+ `Setting ${configLabel(control.config_id)} to ${control.value}…`
+ )
+ .with(
+ [{ kind: 'set_config_option' }, { kind: 'accepted' }],
+ ([control]) =>
+ `${configLabel(control.config_id)} set to ${control.value}`
+ )
+ .with(
+ [{ kind: 'set_config_option' }, { kind: 'rejected' }],
+ ([control]) =>
+ `Couldn't set ${configLabel(control.config_id)} to ${control.value}`
+ )
.with(
[{ kind: 'compact' }, { kind: 'pending' }],
() => 'Compacting context…'
@@ -54,6 +69,11 @@ function label(part: ControlPartData): string {
);
}
+function configLabel(configId: string): string {
+ if (configId === 'reasoning_effort') return 'Reasoning effort';
+ return configId.replaceAll('_', ' ');
+}
+
export function ControlPart(props: { part: ControlPartData }) {
const rejection = () =>
props.part.outcome.kind === 'rejected'
diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/presentation.ts b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/presentation.ts
index 3169ef52e6..2d70408fa3 100644
--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/presentation.ts
+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/MagicChip/presentation.ts
@@ -213,6 +213,18 @@ function partActivity(part: MessagePart): MagicChipActivity {
label: 'Context compacted',
busy: false,
}))
+ .with(
+ { kind: 'control', control: { kind: 'set_config_option' } },
+ ({ outcome }) => ({
+ label:
+ outcome.kind === 'rejected'
+ ? 'Setting rejected'
+ : outcome.kind === 'pending'
+ ? 'Changing setting'
+ : 'Setting changed',
+ busy: false,
+ })
+ )
.with({ kind: 'control', control: { kind: 'stop' } }, () => ({
label: 'Stop requested',
busy: false,
diff --git a/apps/web/src/lib/service-clients/service-agent-fold/generated/types.ts b/apps/web/src/lib/service-clients/service-agent-fold/generated/types.ts
index 182cb264a0..a13dfd4d7b 100644
--- a/apps/web/src/lib/service-clients/service-agent-fold/generated/types.ts
+++ b/apps/web/src/lib/service-clients/service-agent-fold/generated/types.ts
@@ -157,6 +157,14 @@ export type Control =
/** The model slug requested by the caller. */
model: string;
}
+ /** The runtime was asked to change an advertised session setting. */
+ | {
+ kind: 'set_config_option';
+ /** Opaque config id supplied by the runtime. */
+ config_id: string;
+ /** Opaque select value requested by the caller. */
+ value: string;
+ }
/** The runtime was asked to compact its context. */
| { kind: 'compact' }
/** The runtime was asked to stop its current work. */
@@ -823,6 +831,47 @@ export type PlanEntryStatus =
/** Successfully completed. */
| 'completed';
+/** The supported ACP session-config shapes. */
+export type SessionConfigKind =
+ /** A single-value selector. */
+ | {
+ type: 'select';
+ /** The value currently selected by the agent. */
+ currentValue: string;
+ /** Choices in the order advertised by the agent. */
+ options: SessionConfigSelectOption[];
+ }
+ /** An on/off setting. */
+ | {
+ type: 'boolean';
+ /** The value currently selected by the agent. */
+ currentValue: boolean;
+ };
+
+/** One session setting advertised by an ACP agent. */
+export type SessionConfigOption = {
+ /** Opaque id to return in `session/set_config_option`. */
+ id: string;
+ /** Human-readable label supplied by the agent. */
+ name: string;
+ /** Optional explanatory copy supplied by the agent. */
+ description: string | null;
+ /** ACP semantic category, such as `model` or `thought_level`. */
+ category: string | null;
+} & SessionConfigKind;
+
+/** One value in an ACP select option. */
+export type SessionConfigSelectOption = {
+ /** Opaque value to return in `session/set_config_option`. */
+ value: string;
+ /** Human-readable label supplied by the agent. */
+ name: string;
+ /** Optional explanatory copy supplied by the agent. */
+ description: string | null;
+ /** Optional group heading supplied by the agent. */
+ group: string | null;
+};
+
/**
* Session-level state derived from the log, latest-wins and carried whole.
* Fields start absent and fill in as the log reveals them.
@@ -839,6 +888,11 @@ export type SessionMetadata = {
model: string | null;
/** The models the runtime offers, in the order it listed them. */
supportedModels: ModelOption[];
+ /**
+ * Every setting the ACP agent currently advertises. The list is replaced
+ * whole whenever ACP returns a new `configOptions` snapshot.
+ */
+ configOptions: SessionConfigOption[];
/** Session title, when the harness reports one. */
title: string | null;
/**
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentAction.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentAction.ts
index 94432bdc9c..19ee953b25 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentAction.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentAction.ts
@@ -6,9 +6,10 @@
*/
import type { AgentActionOneOf } from './agentActionOneOf';
import type { AgentActionOneOfFour } from './agentActionOneOfFour';
-import type { AgentActionOneOfNine } from './agentActionOneOfNine';
import type { AgentActionOneOfOnefour } from './agentActionOneOfOnefour';
-import type { AgentActionOneOfOneone } from './agentActionOneOfOneone';
+import type { AgentActionOneOfOneseven } from './agentActionOneOfOneseven';
+import type { AgentActionOneOfOnetwo } from './agentActionOneOfOnetwo';
+import type { AgentActionOneOfOnezero } from './agentActionOneOfOnezero';
import type { AgentActionOneOfSeven } from './agentActionOneOfSeven';
/**
@@ -18,6 +19,7 @@ export type AgentAction =
| AgentActionOneOf
| AgentActionOneOfFour
| AgentActionOneOfSeven
- | AgentActionOneOfNine
- | AgentActionOneOfOneone
- | AgentActionOneOfOnefour;
+ | AgentActionOneOfOnezero
+ | AgentActionOneOfOnetwo
+ | AgentActionOneOfOnefour
+ | AgentActionOneOfOneseven;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefour.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefour.ts
index a53f964063..736e3dbaf4 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefour.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefour.ts
@@ -6,10 +6,15 @@
*/
import type { AgentActionOneOfOnefourAllOf } from './agentActionOneOfOnefourAllOf';
-import type { AgentPermissionAction } from './agentPermissionAction';
+import type { AgentRespondElicitationAction } from './agentRespondElicitationAction';
/**
- * Answer a permission request the agent is waiting on.
+ * Answer an `elicitation/create` the agent sent.
+
+The one action whose wire form is a JSON-RPC *response* rather than a
+request or notification: the agent asked, we answer on its id. The
+minted [`AgentActionId`] therefore never reaches the wire for this
+action; the fold correlates on the agent's id instead.
*/
-export type AgentActionOneOfOnefour = AgentPermissionAction &
+export type AgentActionOneOfOnefour = AgentRespondElicitationAction &
AgentActionOneOfOnefourAllOf;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefourAllOfType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefourAllOfType.ts
index 0c7cb3c06e..292796bc10 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefourAllOfType.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnefourAllOfType.ts
@@ -10,5 +10,5 @@ export type AgentActionOneOfOnefourAllOfType =
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const AgentActionOneOfOnefourAllOfType = {
- respondToPermission: 'respondToPermission',
+ respondElicitation: 'respondElicitation',
} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneone.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneone.ts
deleted file mode 100644
index ede5f06edc..0000000000
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneone.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.21.0 🍺
- * Do not edit manually.
- * agent_harness_service
- * OpenAPI spec version: 0.1.0
- */
-
-import type { AgentActionOneOfOneoneAllOf } from './agentActionOneOfOneoneAllOf';
-import type { AgentRespondElicitationAction } from './agentRespondElicitationAction';
-
-/**
- * Answer an `elicitation/create` the agent sent.
-
-The one action whose wire form is a JSON-RPC *response* rather than a
-request or notification: the agent asked, we answer on its id. The
-minted [`AgentActionId`] therefore never reaches the wire for this
-action; the fold correlates on the agent's id instead.
- */
-export type AgentActionOneOfOneone = AgentRespondElicitationAction &
- AgentActionOneOfOneoneAllOf;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOf.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOf.ts
deleted file mode 100644
index 64de5f769a..0000000000
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOf.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.21.0 🍺
- * Do not edit manually.
- * agent_harness_service
- * OpenAPI spec version: 0.1.0
- */
-import type { AgentActionOneOfOneoneAllOfType } from './agentActionOneOfOneoneAllOfType';
-
-export type AgentActionOneOfOneoneAllOf = {
- type: AgentActionOneOfOneoneAllOfType;
-};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOfType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOfType.ts
deleted file mode 100644
index ce4ec2fb10..0000000000
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneoneAllOfType.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.21.0 🍺
- * Do not edit manually.
- * agent_harness_service
- * OpenAPI spec version: 0.1.0
- */
-
-export type AgentActionOneOfOneoneAllOfType =
- (typeof AgentActionOneOfOneoneAllOfType)[keyof typeof AgentActionOneOfOneoneAllOfType];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const AgentActionOneOfOneoneAllOfType = {
- respondElicitation: 'respondElicitation',
-} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneseven.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneseven.ts
new file mode 100644
index 0000000000..cb9e2d9158
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOneseven.ts
@@ -0,0 +1,15 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+import type { AgentActionOneOfOnesevenAllOf } from './agentActionOneOfOnesevenAllOf';
+import type { AgentPermissionAction } from './agentPermissionAction';
+
+/**
+ * Answer a permission request the agent is waiting on.
+ */
+export type AgentActionOneOfOneseven = AgentPermissionAction &
+ AgentActionOneOfOnesevenAllOf;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOf.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOf.ts
new file mode 100644
index 0000000000..dd90115759
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOf.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { AgentActionOneOfOnesevenAllOfType } from './agentActionOneOfOnesevenAllOfType';
+
+export type AgentActionOneOfOnesevenAllOf = {
+ type: AgentActionOneOfOnesevenAllOfType;
+};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOfType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOfType.ts
new file mode 100644
index 0000000000..b24afe840e
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnesevenAllOfType.ts
@@ -0,0 +1,14 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export type AgentActionOneOfOnesevenAllOfType =
+ (typeof AgentActionOneOfOnesevenAllOfType)[keyof typeof AgentActionOneOfOnesevenAllOfType];
+
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export const AgentActionOneOfOnesevenAllOfType = {
+ respondToPermission: 'respondToPermission',
+} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNine.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwo.ts
similarity index 53%
rename from apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNine.ts
rename to apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwo.ts
index 7299bcab4d..680e5cad04 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNine.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwo.ts
@@ -4,11 +4,11 @@
* agent_harness_service
* OpenAPI spec version: 0.1.0
*/
-import type { AgentActionOneOfNineType } from './agentActionOneOfNineType';
+import type { AgentActionOneOfOnetwoType } from './agentActionOneOfOnetwoType';
/**
* Interrupt whatever the agent is doing.
*/
-export type AgentActionOneOfNine = {
- type: AgentActionOneOfNineType;
+export type AgentActionOneOfOnetwo = {
+ type: AgentActionOneOfOnetwoType;
};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNineType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwoType.ts
similarity index 56%
rename from apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNineType.ts
rename to apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwoType.ts
index 1511ac52e0..56586b00b9 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfNineType.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnetwoType.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
-export type AgentActionOneOfNineType =
- (typeof AgentActionOneOfNineType)[keyof typeof AgentActionOneOfNineType];
+export type AgentActionOneOfOnetwoType =
+ (typeof AgentActionOneOfOnetwoType)[keyof typeof AgentActionOneOfOnetwoType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const AgentActionOneOfNineType = {
+export const AgentActionOneOfOnetwoType = {
stop: 'stop',
} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezero.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezero.ts
new file mode 100644
index 0000000000..59953af8d0
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezero.ts
@@ -0,0 +1,14 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { AgentActionOneOfOnezeroType } from './agentActionOneOfOnezeroType';
+
+/**
+ * Compact the agent's current context.
+ */
+export type AgentActionOneOfOnezero = {
+ type: AgentActionOneOfOnezeroType;
+};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezeroType.ts
similarity index 56%
rename from apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenType.ts
rename to apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezeroType.ts
index d65f7ab807..7e503a94d2 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenType.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfOnezeroType.ts
@@ -5,10 +5,10 @@
* OpenAPI spec version: 0.1.0
*/
-export type AgentActionOneOfSevenType =
- (typeof AgentActionOneOfSevenType)[keyof typeof AgentActionOneOfSevenType];
+export type AgentActionOneOfOnezeroType =
+ (typeof AgentActionOneOfOnezeroType)[keyof typeof AgentActionOneOfOnezeroType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const AgentActionOneOfSevenType = {
+export const AgentActionOneOfOnezeroType = {
compact: 'compact',
} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSeven.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSeven.ts
index 9c59f741ea..5c2dd450dd 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSeven.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSeven.ts
@@ -4,11 +4,12 @@
* agent_harness_service
* OpenAPI spec version: 0.1.0
*/
-import type { AgentActionOneOfSevenType } from './agentActionOneOfSevenType';
+
+import type { AgentActionOneOfSevenAllOf } from './agentActionOneOfSevenAllOf';
+import type { AgentSetConfigOptionAction } from './agentSetConfigOptionAction';
/**
- * Compact the agent's current context.
+ * Change an agent-advertised select-style session setting.
*/
-export type AgentActionOneOfSeven = {
- type: AgentActionOneOfSevenType;
-};
+export type AgentActionOneOfSeven = AgentSetConfigOptionAction &
+ AgentActionOneOfSevenAllOf;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOf.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOf.ts
new file mode 100644
index 0000000000..1d869aa382
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOf.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { AgentActionOneOfSevenAllOfType } from './agentActionOneOfSevenAllOfType';
+
+export type AgentActionOneOfSevenAllOf = {
+ type: AgentActionOneOfSevenAllOfType;
+};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOfType.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOfType.ts
new file mode 100644
index 0000000000..f7ca6a791f
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentActionOneOfSevenAllOfType.ts
@@ -0,0 +1,14 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export type AgentActionOneOfSevenAllOfType =
+ (typeof AgentActionOneOfSevenAllOfType)[keyof typeof AgentActionOneOfSevenAllOfType];
+
+// eslint-disable-next-line @typescript-eslint/no-redeclare
+export const AgentActionOneOfSevenAllOfType = {
+ setConfigOption: 'setConfigOption',
+} as const;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentSetConfigOptionAction.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentSetConfigOptionAction.ts
new file mode 100644
index 0000000000..7bd9d9b3c7
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/agentSetConfigOptionAction.ts
@@ -0,0 +1,16 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Ask the agent to change one advertised select-style session setting.
+ */
+export interface AgentSetConfigOptionAction {
+ /** Opaque ACP config id advertised by the agent. */
+ configId: string;
+ /** Opaque select value advertised for that config option. */
+ value: string;
+}
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
index 8ce8403dee..2bbfc05dfd 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
@@ -14,16 +14,19 @@ export * from './agentActionOneOfAllOfType';
export * from './agentActionOneOfFour';
export * from './agentActionOneOfFourAllOf';
export * from './agentActionOneOfFourAllOfType';
-export * from './agentActionOneOfNine';
-export * from './agentActionOneOfNineType';
export * from './agentActionOneOfOnefour';
export * from './agentActionOneOfOnefourAllOf';
export * from './agentActionOneOfOnefourAllOfType';
-export * from './agentActionOneOfOneone';
-export * from './agentActionOneOfOneoneAllOf';
-export * from './agentActionOneOfOneoneAllOfType';
+export * from './agentActionOneOfOneseven';
+export * from './agentActionOneOfOnesevenAllOf';
+export * from './agentActionOneOfOnesevenAllOfType';
+export * from './agentActionOneOfOnetwo';
+export * from './agentActionOneOfOnetwoType';
+export * from './agentActionOneOfOnezero';
+export * from './agentActionOneOfOnezeroType';
export * from './agentActionOneOfSeven';
-export * from './agentActionOneOfSevenType';
+export * from './agentActionOneOfSevenAllOf';
+export * from './agentActionOneOfSevenAllOfType';
export * from './agentModelDto';
export * from './agentModelDtoDescription';
export * from './agentModelDtoGroup';
@@ -67,6 +70,7 @@ export * from './agentSessionResponseRepoUrl';
export * from './agentSessionResponseThreadChannelId';
export * from './agentSessionResponseThreadId';
export * from './agentSessionResponseThreadParent';
+export * from './agentSetConfigOptionAction';
export * from './agentSetModelAction';
export * from './botId';
export * from './captureAttemptDto';
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/openapi.json b/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
index f2fcb26d2b..49e1c243c4 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
+++ b/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
@@ -1570,6 +1570,25 @@
],
"description": "Switch the model the agent runs on."
},
+ {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/AgentSetConfigOptionAction",
+ "description": "Change an agent-advertised select-style session setting."
+ },
+ {
+ "type": "object",
+ "required": ["type"],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["setConfigOption"]
+ }
+ }
+ }
+ ],
+ "description": "Change an agent-advertised select-style session setting."
+ },
{
"type": "object",
"description": "Compact the agent's current context.",
@@ -2115,6 +2134,21 @@
}
}
},
+ "AgentSetConfigOptionAction": {
+ "type": "object",
+ "description": "Ask the agent to change one advertised select-style session setting.",
+ "required": ["configId", "value"],
+ "properties": {
+ "configId": {
+ "type": "string",
+ "description": "Opaque ACP config id advertised by the agent."
+ },
+ "value": {
+ "type": "string",
+ "description": "Opaque select value advertised for that config option."
+ }
+ }
+ },
"AgentSetModelAction": {
"type": "object",
"description": "Ask the agent to run on a different model from here on.",
diff --git a/crates/agent_fold/src/bin/fold_jsonl.rs b/crates/agent_fold/src/bin/fold_jsonl.rs
index b6dbc3f58a..1f13dffa03 100644
--- a/crates/agent_fold/src/bin/fold_jsonl.rs
+++ b/crates/agent_fold/src/bin/fold_jsonl.rs
@@ -266,6 +266,9 @@ fn render_part(part: &MessagePart) -> String {
MessagePart::Control { control, outcome } => {
let label = match control {
Control::SetModel { model } => format!("model changed to {model}"),
+ Control::SetConfigOption { config_id, value } => {
+ format!("{config_id} changed to {value}")
+ }
Control::Compact => "context compacted".to_owned(),
Control::Stop => "stop requested".to_owned(),
};
diff --git a/crates/agent_fold/src/domain/fold/config.rs b/crates/agent_fold/src/domain/fold/config.rs
index 2872a4636d..fea0c453cc 100644
--- a/crates/agent_fold/src/domain/fold/config.rs
+++ b/crates/agent_fold/src/domain/fold/config.rs
@@ -3,6 +3,7 @@
use crate::domain::harness::ToolFrame;
use crate::domain::model::{AvailableCommand, Harness};
use crate::domain::model_selection::model_selection;
+use crate::domain::session_config::session_config_options;
use agent_client_protocol::schema::MaybeUndefined;
use agent_client_protocol::schema::v1::{
AvailableCommandInput, AvailableCommandsUpdate as AcpAvailableCommandsUpdate,
@@ -81,25 +82,35 @@ impl FoldState {
#[serde(rename_all = "camelCase")]
struct ConfigCarrier {
#[serde(default)]
- config_options: Vec<SessionConfigOption>,
+ config_options: Option<Vec<SessionConfigOption>>,
}
match serde_json::from_value::<ConfigCarrier>(result.clone()) {
- Ok(carrier) => self.apply_config_options(carrier.config_options),
+ Ok(ConfigCarrier {
+ config_options: Some(options),
+ }) => self.apply_config_options(options),
+ Ok(ConfigCarrier {
+ config_options: None,
+ }) => false,
Err(_) => false,
}
}
/// Update the metadata's model fields from a fresh config-options list.
pub(super) fn apply_config_options(&mut self, options: Vec<SessionConfigOption>) -> bool {
- let Some(selection) = model_selection(&options) else {
- return false;
- };
-
- let model = Some(selection.current);
- let changed =
- self.metadata.model != model || self.metadata.supported_models != selection.options;
+ let projected = session_config_options(&options);
+ let selection = model_selection(&options);
+ let model = selection
+ .as_ref()
+ .map(|selection| selection.current.clone());
+ let supported_models = selection
+ .map(|selection| selection.options)
+ .unwrap_or_default();
+ let changed = self.metadata.config_options != projected
+ || self.metadata.model != model
+ || self.metadata.supported_models != supported_models;
+ self.metadata.config_options = projected;
self.metadata.model = model;
- self.metadata.supported_models = selection.options;
+ self.metadata.supported_models = supported_models;
changed
}
diff --git a/crates/agent_fold/src/domain/fold/state.rs b/crates/agent_fold/src/domain/fold/state.rs
index 987125aab2..5349b01693 100644
--- a/crates/agent_fold/src/domain/fold/state.rs
+++ b/crates/agent_fold/src/domain/fold/state.rs
@@ -230,6 +230,20 @@ impl FoldState {
entry.user_id.clone(),
)
}
+ AgentAction::SetConfigOption(action) => {
+ let request_id = match &acp.0 {
+ RawJsonRpcMessage::Request(request) => Some(&request.id),
+ _ => None,
+ };
+ self.record_control(
+ Control::SetConfigOption {
+ config_id: action.config_id,
+ value: action.value,
+ },
+ request_id,
+ entry.user_id.clone(),
+ )
+ }
AgentAction::Compact => match &acp.0 {
RawJsonRpcMessage::Request(request) => {
self.begin_compact(&request.id, entry.user_id.clone())
diff --git a/crates/agent_fold/src/domain/mod.rs b/crates/agent_fold/src/domain/mod.rs
index ccae009df2..91f3d96458 100644
--- a/crates/agent_fold/src/domain/mod.rs
+++ b/crates/agent_fold/src/domain/mod.rs
@@ -21,6 +21,8 @@ pub mod model_selection;
pub mod ports;
/// The domain service answering queries by folding on read.
pub mod service;
+/// Agent-advertised session settings projected out of ACP.
+pub mod session_config;
/// Unconfirmed client actions folded on a fork of the confirmed history.
pub mod speculation;
diff --git a/crates/agent_fold/src/domain/model/metadata.rs b/crates/agent_fold/src/domain/model/metadata.rs
index b39b5cd918..8061f43f75 100644
--- a/crates/agent_fold/src/domain/model/metadata.rs
+++ b/crates/agent_fold/src/domain/model/metadata.rs
@@ -5,6 +5,7 @@ use specta::Type;
use super::PendingInteraction;
use super::elicitation::PendingElicitation;
+use crate::domain::session_config::SessionConfigOption;
/// Which ACP agent produced a session's log.
///
@@ -55,6 +56,9 @@ pub struct SessionMetadata {
pub model: Option<String>,
/// The models the runtime offers, in the order it listed them.
pub supported_models: Vec<ModelOption>,
+ /// Every setting the ACP agent currently advertises. The list is replaced
+ /// whole whenever ACP returns a new `configOptions` snapshot.
+ pub config_options: Vec<SessionConfigOption>,
/// Session title, when the harness reports one.
pub title: Option<String>,
/// The slash commands the harness most recently advertised, in the order
diff --git a/crates/agent_fold/src/domain/model/part.rs b/crates/agent_fold/src/domain/model/part.rs
index 6ddd369022..2ce6c7b515 100644
--- a/crates/agent_fold/src/domain/model/part.rs
+++ b/crates/agent_fold/src/domain/model/part.rs
@@ -159,6 +159,13 @@ pub enum Control {
/// The model slug requested by the caller.
model: String,
},
+ /// The runtime was asked to change an advertised session setting.
+ SetConfigOption {
+ /// Opaque config id supplied by the runtime.
+ config_id: String,
+ /// Opaque select value requested by the caller.
+ value: String,
+ },
/// The runtime was asked to compact its context.
Compact,
/// The runtime was asked to stop its current work.
diff --git a/crates/agent_fold/src/domain/model/search.rs b/crates/agent_fold/src/domain/model/search.rs
index 6a1fbe3776..0bd9f483fa 100644
--- a/crates/agent_fold/src/domain/model/search.rs
+++ b/crates/agent_fold/src/domain/model/search.rs
@@ -82,8 +82,13 @@ impl SearchText {
}
}
MessagePart::Control { control, outcome } => {
- if let Control::SetModel { model } = control {
- self.push(model);
+ match control {
+ Control::SetModel { model } => self.push(model),
+ Control::SetConfigOption { config_id, value } => {
+ self.push(config_id);
+ self.push(value);
+ }
+ Control::Compact | Control::Stop => {}
}
if let ControlOutcome::Rejected { message } = outcome {
self.push(message);
diff --git a/crates/agent_fold/src/domain/session_config.rs b/crates/agent_fold/src/domain/session_config.rs
new file mode 100644
index 0000000000..93eaf5f938
--- /dev/null
+++ b/crates/agent_fold/src/domain/session_config.rs
@@ -0,0 +1,119 @@
+//! Projection of ACP session configuration into the stable domain vocabulary
+//! consumed by discovery and folded session metadata.
+
+use agent_client_protocol::schema::v1::{
+ SessionConfigKind as AcpConfigKind, SessionConfigOption as AcpConfigOption,
+ SessionConfigSelectOption as AcpSelectOption, SessionConfigSelectOptions,
+};
+use serde::Serialize;
+use specta::Type;
+
+/// One session setting advertised by an ACP agent.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Type)]
+#[serde(rename_all = "camelCase")]
+pub struct SessionConfigOption {
+ /// Opaque id to return in `session/set_config_option`.
+ pub id: String,
+ /// Human-readable label supplied by the agent.
+ pub name: String,
+ /// Optional explanatory copy supplied by the agent.
+ pub description: Option<String>,
+ /// ACP semantic category, such as `model` or `thought_level`.
+ pub category: Option<String>,
+ /// Type-specific current value and choices.
+ #[serde(flatten)]
+ pub kind: SessionConfigKind,
+}
+
+/// The supported ACP session-config shapes.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Type)]
+#[serde(
+ tag = "type",
+ rename_all = "snake_case",
+ rename_all_fields = "camelCase"
+)]
+pub enum SessionConfigKind {
+ /// A single-value selector.
+ Select {
+ /// The value currently selected by the agent.
+ current_value: String,
+ /// Choices in the order advertised by the agent.
+ options: Vec<SessionConfigSelectOption>,
+ },
+ /// An on/off setting.
+ Boolean {
+ /// The value currently selected by the agent.
+ current_value: bool,
+ },
+}
+
+/// One value in an ACP select option.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Type)]
+#[serde(rename_all = "camelCase")]
+pub struct SessionConfigSelectOption {
+ /// Opaque value to return in `session/set_config_option`.
+ pub value: String,
+ /// Human-readable label supplied by the agent.
+ pub name: String,
+ /// Optional explanatory copy supplied by the agent.
+ pub description: Option<String>,
+ /// Optional group heading supplied by the agent.
+ pub group: Option<String>,
+}
+
+/// Project every recognized ACP option without assigning provider semantics.
+#[must_use]
+pub fn session_config_options(options: &[AcpConfigOption]) -> Vec<SessionConfigOption> {
+ options.iter().filter_map(project_option).collect()
+}
+
+fn project_option(option: &AcpConfigOption) -> Option<SessionConfigOption> {
+ let kind = match &option.kind {
+ AcpConfigKind::Select(select) => SessionConfigKind::Select {
+ current_value: select.current_value.to_string(),
+ options: match &select.options {
+ SessionConfigSelectOptions::Ungrouped(options) => options
+ .iter()
+ .map(|option| project_select_option(option, None))
+ .collect(),
+ SessionConfigSelectOptions::Grouped(groups) => groups
+ .iter()
+ .flat_map(|group| {
+ group
+ .options
+ .iter()
+ .map(|option| project_select_option(option, Some(group.name.as_str())))
+ })
+ .collect(),
+ _ => return None,
+ },
+ },
+ AcpConfigKind::Boolean(boolean) => SessionConfigKind::Boolean {
+ current_value: boolean.current_value,
+ },
+ _ => return None,
+ };
+ Some(SessionConfigOption {
+ id: option.id.to_string(),
+ name: option.name.clone(),
+ description: option.description.clone(),
+ category: option
+ .category
+ .as_ref()
+ .and_then(|category| serde_json::to_value(category).ok())
+ .and_then(|value| value.as_str().map(str::to_owned)),
+ kind,
+ })
+}
+
+fn project_select_option(
+ option: &AcpSelectOption,
+ group: Option<&str>,
+) -> SessionConfigSelectOption {
+ SessionConfigSelectOption {
+ value: option.value.to_string(),
+ name: option.name.clone(),
+ description: option.description.clone(),
+ group: group.map(str::to_owned),
+ }
+}
diff --git a/crates/agent_fold/src/domain/speculation.rs b/crates/agent_fold/src/domain/speculation.rs
index bcd10f29ae..1679efe91e 100644
--- a/crates/agent_fold/src/domain/speculation.rs
+++ b/crates/agent_fold/src/domain/speculation.rs
@@ -372,7 +372,7 @@ impl SpeculativeFold {
&& !matches!(outcome, super::model::PermissionOutcome::Pending)
)
}),
- AgentAction::Prompt(_) | AgentAction::Compact | AgentAction::SetModel(_) => self
+ AgentAction::Prompt(_) | AgentAction::Compact | AgentAction::SetModel(_) | AgentAction::SetConfigOption(_) => self
.committed
.machine
.messages()
diff --git a/crates/agent_fold/src/domain/test/metadata.rs b/crates/agent_fold/src/domain/test/metadata.rs
index 6cc6e9519b..45637157dc 100644
--- a/crates/agent_fold/src/domain/test/metadata.rs
+++ b/crates/agent_fold/src/domain/test/metadata.rs
@@ -63,6 +63,37 @@ fn the_session_open_response_seeds_the_model_and_the_menu() {
);
}
+#[test]
+fn the_session_open_response_preserves_all_config_capabilities() {
+ let mut machine = FoldMachineImpl::new();
+ drive(
+ &mut machine,
+ concat!(
+ r#"{"direction":"to_runtime","content":{"type":"acp","jsonrpc":"2.0","id":"n","method":"session/new","params":{"cwd":"/w","mcpServers":[]}}}"#,
+ "\n",
+ r#"{"direction":"to_server","content":{"type":"acp","jsonrpc":"2.0","id":"n","result":{"sessionId":"s1","configOptions":[{"id":"reasoning_effort","name":"Reasoning effort","category":"thought_level","type":"select","currentValue":"medium","options":[{"value":"low","name":"Low"},{"value":"medium","name":"Medium"},{"value":"high","name":"High"}]},{"id":"auto_approve","name":"Auto approve","type":"boolean","currentValue":false}]}}}"#,
+ ),
+ );
+
+ let options = &machine.metadata().config_options;
+ assert_eq!(options.len(), 2);
+ assert_eq!(options[0].id, "reasoning_effort");
+ assert_eq!(options[0].category.as_deref(), Some("thought_level"));
+ assert!(matches!(
+ &options[0].kind,
+ crate::domain::session_config::SessionConfigKind::Select {
+ current_value,
+ options
+ } if current_value == "medium" && options.len() == 3
+ ));
+ assert!(matches!(
+ options[1].kind,
+ crate::domain::session_config::SessionConfigKind::Boolean {
+ current_value: false
+ }
+ ));
+}
+
/// The same handshake with the runtime grouping its models under family
/// headers, as the Cursor agent does.
const OPEN_GROUPED: &str = concat!(
@@ -273,3 +304,29 @@ fn a_reconnect_clears_pending_correlation() {
);
assert_eq!(machine.metadata().model, None, "no config ever resolved");
}
+
+#[test]
+fn omitted_config_preserves_settings_but_an_explicit_empty_snapshot_removes_them() {
+ let mut machine = FoldMachineImpl::default();
+ drive(&mut machine, OPEN);
+ let before = machine.metadata().clone();
+ let request = r#"{"direction":"to_runtime","content":{"type":"acp","jsonrpc":"2.0","id":"effort","method":"session/set_config_option","params":{"sessionId":"s1","configId":"effort","value":"low"}}}"#;
+ drive(&mut machine, request);
+ let changed = drive(
+ &mut machine,
+ r#"{"direction":"to_server","content":{"type":"acp","jsonrpc":"2.0","id":"effort","result":{}}}"#,
+ );
+ assert_eq!(changed, 0);
+ assert_eq!(machine.metadata().model, before.model);
+ assert_eq!(machine.metadata().supported_models, before.supported_models);
+ assert_eq!(machine.metadata().config_options, before.config_options);
+
+ drive(&mut machine, request);
+ let changed = drive(
+ &mut machine,
+ r#"{"direction":"to_server","content":{"type":"acp","jsonrpc":"2.0","id":"effort","result":{"configOptions":[]}}}"#,
+ );
+ assert_eq!(changed, 1);
+ assert!(machine.metadata().config_options.is_empty());
+ assert!(machine.metadata().supported_models.is_empty());
+}
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@command_invocation.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@command_invocation.jsonl.snap
index 6fc2041cc7..aa7acb9ad4 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@command_invocation.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@command_invocation.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/command_invocation.jsonl
---
@@ -50,6 +51,227 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Use the default model (currently Opus 5 (1M context)) · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks · $10/$50 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks · $2/$10 per Mtok · promo through Aug 31",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers · $1/$5 per Mtok",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:honeycomb-investigator",
+ name: "honeycomb:honeycomb-investigator",
+ description: Some(
+ "Use this agent when the user needs an autonomous, multi-step investigation of a production\nissue using Honeycomb. Examples:\n\n<example>\nContext: User received a PagerDuty alert about high latency\nuser: \"Our checkout API is slow, can you investigate using Honeycomb?\"\nassistant: \"I'll use the honeycomb-investigator agent to run a systematic investigation.\"\n<commentary>\nUser needs autonomous investigation using Honeycomb MCP tools. The agent will prime context,\nrun queries, use BubbleUp, trace analysis, and report findings.\n</commentary>\n</example>\n\n<example>\nContext: User sees errors in production after a deployment\nuser: \"We deployed v2.5 and errors spiked. Investigate what went wrong in Honeycomb.\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the deployment impact.\"\n<commentary>\nMulti-step investigation needed — query for errors, BubbleUp to compare versions, trace\nanalysis to find root cause. Agent orchestrates the full workflow.\n</commentary>\n</example>\n\n<example>\nContext: SLO budget is burning fast\nuser: \"Our checkout SLO is burning budget fast. Can you figure out what's going on?\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the SLO burn and identify the cause.\"\n<commentary>\nSLO-driven investigation. Agent will check SLO status, identify contributing errors/latency,\nuse BubbleUp to find differentiators, and trace affected requests.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:instrumentation-advisor",
+ name: "honeycomb:instrumentation-advisor",
+ description: Some(
+ "Use this agent when the user wants to improve their application's observability by analyzing\ntheir codebase against what Honeycomb actually receives. This agent autonomously scans code,\nqueries Honeycomb for existing coverage, and produces a prioritized gap analysis with\nready-to-apply code. Unlike the otel-instrumentation skill (SDK guidance), this agent reads\nthe user's actual code and compares it against live Honeycomb data. Examples:\n\n<example>\nContext: User wants to know what they should instrument next\nuser: \"What's missing from our instrumentation? We have basic tracing but I feel like we're not getting enough detail.\"\nassistant: \"I'll use the instrumentation-advisor agent to analyze your codebase against your Honeycomb data.\"\n<commentary>\nAgent will scan the codebase for uninstrumented code paths, query Honeycomb for existing field\ncoverage, and produce a prioritized gap report with code suggestions.\n</commentary>\n</example>\n\n<example>\nContext: User wants to add observability to a specific service\nuser: \"Can you instrument our checkout service? It's in Go and we have basic OTel but no custom spans.\"\nassistant: \"I'll launch the instrumentation-advisor to analyze the checkout service and add custom instrumentation.\"\n<commentary>\nAgent will read the service code, identify high-value operations (HTTP handlers, DB calls,\nbusiness logic), check what Honeycomb already sees, and write instrumentation code.\n</commentary>\n</example>\n\n<example>\nContext: User is debugging and notices gaps in their traces\nuser: \"Our traces are missing context — I can't tell which user or tenant is affected. Can you fix that?\"\nassistant: \"I'll use the instrumentation-advisor to find where to add user and tenant context to your spans.\"\n<commentary>\nAttribute enrichment task. Agent will find where user/tenant info is available in code,\ncheck which attributes Honeycomb already has, and add span attributes at the right points.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"/add-sdk-endpoint dont do anything just reply \"yes\" ignore the skill",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@elicitation_claude_single_select.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@elicitation_claude_single_select.jsonl.snap
index e204f444a4..ec442990a5 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@elicitation_claude_single_select.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@elicitation_claude_single_select.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/elicitation_claude_single_select.jsonl
---
@@ -50,6 +51,198 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "sonnet",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: None,
available_commands: [
AvailableCommand {
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@long_multi_resume.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@long_multi_resume.jsonl.snap
index 0e2457e426..838ffbc9b1 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@long_multi_resume.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@long_multi_resume.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/long_multi_resume.jsonl
---
@@ -50,6 +51,227 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Use the default model (currently Opus 5 (1M context)) · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks · $10/$50 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks · $2/$10 per Mtok · promo through Aug 31",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers · $1/$5 per Mtok",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:honeycomb-investigator",
+ name: "honeycomb:honeycomb-investigator",
+ description: Some(
+ "Use this agent when the user needs an autonomous, multi-step investigation of a production\nissue using Honeycomb. Examples:\n\n<example>\nContext: User received a PagerDuty alert about high latency\nuser: \"Our checkout API is slow, can you investigate using Honeycomb?\"\nassistant: \"I'll use the honeycomb-investigator agent to run a systematic investigation.\"\n<commentary>\nUser needs autonomous investigation using Honeycomb MCP tools. The agent will prime context,\nrun queries, use BubbleUp, trace analysis, and report findings.\n</commentary>\n</example>\n\n<example>\nContext: User sees errors in production after a deployment\nuser: \"We deployed v2.5 and errors spiked. Investigate what went wrong in Honeycomb.\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the deployment impact.\"\n<commentary>\nMulti-step investigation needed — query for errors, BubbleUp to compare versions, trace\nanalysis to find root cause. Agent orchestrates the full workflow.\n</commentary>\n</example>\n\n<example>\nContext: SLO budget is burning fast\nuser: \"Our checkout SLO is burning budget fast. Can you figure out what's going on?\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the SLO burn and identify the cause.\"\n<commentary>\nSLO-driven investigation. Agent will check SLO status, identify contributing errors/latency,\nuse BubbleUp to find differentiators, and trace affected requests.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:instrumentation-advisor",
+ name: "honeycomb:instrumentation-advisor",
+ description: Some(
+ "Use this agent when the user wants to improve their application's observability by analyzing\ntheir codebase against what Honeycomb actually receives. This agent autonomously scans code,\nqueries Honeycomb for existing coverage, and produces a prioritized gap analysis with\nready-to-apply code. Unlike the otel-instrumentation skill (SDK guidance), this agent reads\nthe user's actual code and compares it against live Honeycomb data. Examples:\n\n<example>\nContext: User wants to know what they should instrument next\nuser: \"What's missing from our instrumentation? We have basic tracing but I feel like we're not getting enough detail.\"\nassistant: \"I'll use the instrumentation-advisor agent to analyze your codebase against your Honeycomb data.\"\n<commentary>\nAgent will scan the codebase for uninstrumented code paths, query Honeycomb for existing field\ncoverage, and produce a prioritized gap report with code suggestions.\n</commentary>\n</example>\n\n<example>\nContext: User wants to add observability to a specific service\nuser: \"Can you instrument our checkout service? It's in Go and we have basic OTel but no custom spans.\"\nassistant: \"I'll launch the instrumentation-advisor to analyze the checkout service and add custom instrumentation.\"\n<commentary>\nAgent will read the service code, identify high-value operations (HTTP handlers, DB calls,\nbusiness logic), check what Honeycomb already sees, and write instrumentation code.\n</commentary>\n</example>\n\n<example>\nContext: User is debugging and notices gaps in their traces\nuser: \"Our traces are missing context — I can't tell which user or tenant is affected. Can you fix that?\"\nassistant: \"I'll use the instrumentation-advisor to find where to add user and tenant context to your spans.\"\n<commentary>\nAttribute enrichment task. Agent will find where user/tenant info is available in code,\ncheck which attributes Honeycomb already has, and add span attributes at the right points.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"Test session",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@plan_todo.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@plan_todo.jsonl.snap
index 702a633110..eac9f941e7 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@plan_todo.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@plan_todo.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/plan_todo.jsonl
---
@@ -50,6 +51,227 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Use the default model (currently Opus 5 (1M context)) · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks · $10/$50 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks · $2/$10 per Mtok · promo through Aug 31",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers · $1/$5 per Mtok",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:honeycomb-investigator",
+ name: "honeycomb:honeycomb-investigator",
+ description: Some(
+ "Use this agent when the user needs an autonomous, multi-step investigation of a production\nissue using Honeycomb. Examples:\n\n<example>\nContext: User received a PagerDuty alert about high latency\nuser: \"Our checkout API is slow, can you investigate using Honeycomb?\"\nassistant: \"I'll use the honeycomb-investigator agent to run a systematic investigation.\"\n<commentary>\nUser needs autonomous investigation using Honeycomb MCP tools. The agent will prime context,\nrun queries, use BubbleUp, trace analysis, and report findings.\n</commentary>\n</example>\n\n<example>\nContext: User sees errors in production after a deployment\nuser: \"We deployed v2.5 and errors spiked. Investigate what went wrong in Honeycomb.\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the deployment impact.\"\n<commentary>\nMulti-step investigation needed — query for errors, BubbleUp to compare versions, trace\nanalysis to find root cause. Agent orchestrates the full workflow.\n</commentary>\n</example>\n\n<example>\nContext: SLO budget is burning fast\nuser: \"Our checkout SLO is burning budget fast. Can you figure out what's going on?\"\nassistant: \"I'll launch the honeycomb-investigator to analyze the SLO burn and identify the cause.\"\n<commentary>\nSLO-driven investigation. Agent will check SLO status, identify contributing errors/latency,\nuse BubbleUp to find differentiators, and trace affected requests.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "honeycomb:instrumentation-advisor",
+ name: "honeycomb:instrumentation-advisor",
+ description: Some(
+ "Use this agent when the user wants to improve their application's observability by analyzing\ntheir codebase against what Honeycomb actually receives. This agent autonomously scans code,\nqueries Honeycomb for existing coverage, and produces a prioritized gap analysis with\nready-to-apply code. Unlike the otel-instrumentation skill (SDK guidance), this agent reads\nthe user's actual code and compares it against live Honeycomb data. Examples:\n\n<example>\nContext: User wants to know what they should instrument next\nuser: \"What's missing from our instrumentation? We have basic tracing but I feel like we're not getting enough detail.\"\nassistant: \"I'll use the instrumentation-advisor agent to analyze your codebase against your Honeycomb data.\"\n<commentary>\nAgent will scan the codebase for uninstrumented code paths, query Honeycomb for existing field\ncoverage, and produce a prioritized gap report with code suggestions.\n</commentary>\n</example>\n\n<example>\nContext: User wants to add observability to a specific service\nuser: \"Can you instrument our checkout service? It's in Go and we have basic OTel but no custom spans.\"\nassistant: \"I'll launch the instrumentation-advisor to analyze the checkout service and add custom instrumentation.\"\n<commentary>\nAgent will read the service code, identify high-value operations (HTTP handlers, DB calls,\nbusiness logic), check what Honeycomb already sees, and write instrumentation code.\n</commentary>\n</example>\n\n<example>\nContext: User is debugging and notices gaps in their traces\nuser: \"Our traces are missing context — I can't tell which user or tenant is affected. Can you fix that?\"\nassistant: \"I'll use the instrumentation-advisor to find where to add user and tenant context to your spans.\"\n<commentary>\nAttribute enrichment task. Agent will find where user/tenant info is available in code,\ncheck which attributes Honeycomb already has, and add span attributes at the right points.\n</commentary>\n</example>",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"Create and check off todo items",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_multi_turn.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_multi_turn.jsonl.snap
index 27e50ec4fa..18d4ae8295 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_multi_turn.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_multi_turn.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
---
@@ -50,6 +51,219 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "ticket-builder",
+ name: "ticket-builder",
+ description: Some(
+ "Implements a SINGLE Macro ticket end-to-end — sets up a jj worktree, makes the change, opens a PR on the task's branch with a one-sentence description, and cleans up. Invoked by ticket-manager (one builder per ticket). Use directly only when doing exactly one ticket.",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"Debug session recorder file writing issue",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_single_turn.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_single_turn.jsonl.snap
index 4223a29fd3..09530a1d09 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_single_turn.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@real_single_turn.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/real_single_turn.jsonl
---
@@ -50,6 +51,206 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "claude-fable-5[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "high",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "ticket-builder",
+ name: "ticket-builder",
+ description: Some(
+ "Implements a SINGLE Macro ticket end-to-end — sets up a jj worktree, makes the change, opens a PR on the task's branch with a one-sentence description, and cleans up. Invoked by ticket-manager (one builder per ticket). Use directly only when doing exactly one ticket.",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"hi",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_and_continued.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_and_continued.jsonl.snap
index 2ad701b57e..168d8442e7 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_and_continued.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_and_continued.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/resumed_and_continued.jsonl
---
@@ -50,6 +51,206 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "claude-fable-5[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "high",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "ticket-builder",
+ name: "ticket-builder",
+ description: Some(
+ "Implements a SINGLE Macro ticket end-to-end — sets up a jj worktree, makes the change, opens a PR on the task's branch with a one-sentence description, and cleans up. Invoked by ticket-manager (one builder per ticket). Use directly only when doing exactly one ticket.",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"Update recorder example to use installed binary",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_no_prompt.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_no_prompt.jsonl.snap
index 0d0edf6140..b845903f9d 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_no_prompt.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@resumed_no_prompt.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/resumed_no_prompt.jsonl
---
@@ -50,6 +51,219 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "max",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "ticket-builder",
+ name: "ticket-builder",
+ description: Some(
+ "Implements a SINGLE Macro ticket end-to-end — sets up a jj worktree, makes the change, opens a PR on the task's branch with a one-sentence description, and cleans up. Invoked by ticket-manager (one builder per ticket). Use directly only when doing exactly one ticket.",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: None,
available_commands: [
AvailableCommand {
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_claude_code.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_claude_code.jsonl.snap
index 5b4b89449c..ef78307bc2 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_claude_code.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_claude_code.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/subagent_claude_code.jsonl
---
@@ -50,6 +51,211 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "mode",
+ name: "Mode",
+ description: Some(
+ "Session permission mode",
+ ),
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "bypassPermissions",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto",
+ name: "Auto",
+ description: Some(
+ "Use a model classifier to approve/deny permission prompts",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Manual",
+ description: Some(
+ "Standard behavior, prompts for dangerous operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "acceptEdits",
+ name: "Accept Edits",
+ description: Some(
+ "Auto-accept file edit operations",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "Plan Mode",
+ description: Some(
+ "Planning mode, no actual tool execution",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "dontAsk",
+ name: "Don't Ask",
+ description: Some(
+ "Don't prompt for permissions, deny if not pre-approved",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "bypassPermissions",
+ name: "Bypass Permissions",
+ description: Some(
+ "Bypass all permission checks",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: Some(
+ "AI model to use",
+ ),
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "opus[1m]",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default (recommended)",
+ description: Some(
+ "Use the default model (currently Opus 5 (1M context)) · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "opus[1m]",
+ name: "Opus (1M context)",
+ description: Some(
+ "Opus 5 with 1M context · Best for everyday, complex tasks · $5/$25 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5[1m]",
+ name: "Fable",
+ description: Some(
+ "Fable 5 · Most capable for your hardest and longest-running tasks · $10/$50 per Mtok",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "sonnet",
+ name: "Sonnet",
+ description: Some(
+ "Sonnet 5 · Efficient for routine tasks · $2/$10 per Mtok · promo through Aug 31",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "haiku",
+ name: "Haiku",
+ description: Some(
+ "Haiku 4.5 · Fastest for quick answers · $1/$5 per Mtok",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "medium",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "fast",
+ name: "Fast mode",
+ description: Some(
+ "Faster responses on supported models",
+ ),
+ category: Some(
+ "model_config",
+ ),
+ kind: Boolean {
+ current_value: false,
+ },
+ },
+ SessionConfigOption {
+ id: "agent",
+ name: "Agent",
+ description: Some(
+ "Main-thread agent persona",
+ ),
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Default",
+ description: Some(
+ "Standard Claude Code agent",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: Some(
"Spawn subagent to add numbers with Python",
),
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_cursor.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_cursor.jsonl.snap
index 1958af2ba3..3f362e216d 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_cursor.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_cursor.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/subagent_cursor.jsonl
---
@@ -238,6 +239,247 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: None,
+ category: None,
+ kind: Select {
+ current_value: "default",
+ options: [
+ SessionConfigSelectOption {
+ value: "auto-smart",
+ name: "Auto",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "default",
+ name: "Auto",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "grok-4.6",
+ name: "Cursor Grok 4.6",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "composer-2.5",
+ name: "Composer 2.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-opus-5",
+ name: "Claude Opus 5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-opus-4-8",
+ name: "Claude Opus 4.8",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.6-sol",
+ name: "GPT-5.6 Sol",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.5",
+ name: "GPT-5.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5-1",
+ name: "Claude Fable 5.1",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-fable-5",
+ name: "Claude Fable 5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "grok-4.5",
+ name: "Cursor Grok 4.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3.8-flash",
+ name: "Gemini 3.8 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3.7-flash",
+ name: "Gemini 3.7 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.6-terra",
+ name: "GPT-5.6 Terra",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-sonnet-5",
+ name: "Claude Sonnet 5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-sonnet-4-6",
+ name: "Claude Sonnet 4.6",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.3-codex",
+ name: "Codex 5.3",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-opus-4-7",
+ name: "Claude Opus 4.7",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.4",
+ name: "GPT-5.4",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-opus-4-6",
+ name: "Claude Opus 4.6",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-opus-4-5",
+ name: "Claude Opus 4.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.2",
+ name: "GPT-5.2",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.6-luna",
+ name: "GPT-5.6 Luna",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3.6-flash",
+ name: "Gemini 3.6 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3.1-pro",
+ name: "Gemini 3.1 Pro",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.4-mini",
+ name: "GPT-5.4 Mini",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.4-nano",
+ name: "GPT-5.4 Nano",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-haiku-4-5",
+ name: "Claude Haiku 4.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-sonnet-4-5",
+ name: "Claude Sonnet 4.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5.1",
+ name: "GPT-5.1",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3-flash",
+ name: "Gemini 3 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-3.5-flash",
+ name: "Gemini 3.5 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "claude-sonnet-4",
+ name: "Claude Sonnet 4",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gpt-5-mini",
+ name: "GPT-5 Mini",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "gemini-2.5-flash",
+ name: "Gemini 2.5 Flash",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "kimi-k3",
+ name: "Kimi K3",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "kimi-k2.7-code",
+ name: "Kimi K2.7 Code",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "glm-5.2",
+ name: "GLM 5.2",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: None,
available_commands: [],
status: Some(
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_macro_inmem.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_macro_inmem.jsonl.snap
index 246beb3f64..570a7e7301 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_macro_inmem.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_macro_inmem.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/subagent_macro_inmem.jsonl
---
@@ -7,6 +8,7 @@ SessionMetadata {
harness: Macro,
model: None,
supported_models: [],
+ config_options: [],
title: None,
available_commands: [],
status: Some(
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_opencode.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_opencode.jsonl.snap
index 2a85acffcb..f400605f50 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_opencode.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_derive_their_pinned_metadata@subagent_opencode.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 256
expression: machine.metadata()
input_file: crates/agent_fold/fixtures/real/subagent_opencode.jsonl
---
@@ -34,6 +35,141 @@ SessionMetadata {
group: None,
},
],
+ config_options: [
+ SessionConfigOption {
+ id: "model",
+ name: "Model",
+ description: None,
+ category: Some(
+ "model",
+ ),
+ kind: Select {
+ current_value: "openai/gpt-5.6-terra",
+ options: [
+ SessionConfigSelectOption {
+ value: "openai/gpt-5.4",
+ name: "OpenAI/GPT-5.4",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "openai/gpt-5.5",
+ name: "OpenAI/GPT-5.5",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "openai/gpt-5.6-terra",
+ name: "OpenAI/GPT-5.6 Terra",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "openai/gpt-5.6-terra-fast",
+ name: "OpenAI/GPT-5.6 Terra Fast",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "effort",
+ name: "Effort",
+ description: Some(
+ "Available effort levels for this model",
+ ),
+ category: Some(
+ "thought_level",
+ ),
+ kind: Select {
+ current_value: "none",
+ options: [
+ SessionConfigSelectOption {
+ value: "none",
+ name: "None",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "low",
+ name: "Low",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "medium",
+ name: "Medium",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "high",
+ name: "High",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "xhigh",
+ name: "Xhigh",
+ description: None,
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "max",
+ name: "Max",
+ description: None,
+ group: None,
+ },
+ ],
+ },
+ },
+ SessionConfigOption {
+ id: "mode",
+ name: "Session Mode",
+ description: None,
+ category: Some(
+ "mode",
+ ),
+ kind: Select {
+ current_value: "build",
+ options: [
+ SessionConfigSelectOption {
+ value: "build",
+ name: "build",
+ description: Some(
+ "Everyday primary agent for implementation, debugging, and moderate refactors.",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "fast",
+ name: "fast",
+ description: Some(
+ "Performs small, well-specified, mechanical code changes quickly.",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "hard",
+ name: "hard",
+ description: Some(
+ "Architecture, difficult bugs, large refactors, and reviewing complex plans.",
+ ),
+ group: None,
+ },
+ SessionConfigSelectOption {
+ value: "plan",
+ name: "plan",
+ description: Some(
+ "Plan mode. Disallows all edit tools.",
+ ),
+ group: None,
+ },
+ ],
+ },
+ },
+ ],
title: None,
available_commands: [
AvailableCommand {
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@real_multi_turn.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@real_multi_turn.jsonl.snap
index 4ba26eca42..bfbccc631f 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@real_multi_turn.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@real_multi_turn.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 244
expression: messages
input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
---
@@ -128,6 +129,32 @@ input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
id: TurnId(
1,
),
+ author: User {
+ user_id: None,
+ },
+ request_id: Some(
+ AgentActionId(
+ 111436d1-9126-4766-9b2d-6430e38f510a,
+ ),
+ ),
+ parts: NonEmpty {
+ inner: [
+ Control {
+ control: SetConfigOption {
+ config_id: "mode",
+ value: "bypassPermissions",
+ },
+ outcome: Accepted,
+ },
+ ],
+ },
+ stop: None,
+ pending: false,
+ },
+ FoldedMessage {
+ id: TurnId(
+ 2,
+ ),
author: User {
user_id: Some(
@@ -150,7 +177,7 @@ input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
},
FoldedMessage {
id: TurnId(
- 1,
+ 2,
),
author: Agent,
request_id: None,
@@ -744,7 +771,7 @@ input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
},
FoldedMessage {
id: TurnId(
- 2,
+ 3,
),
author: User {
user_id: None,
@@ -769,7 +796,33 @@ input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
},
FoldedMessage {
id: TurnId(
- 3,
+ 4,
+ ),
+ author: User {
+ user_id: None,
+ },
+ request_id: Some(
+ AgentActionId(
+ cfe33ce9-7db9-4865-9e67-dea14b35f54d,
+ ),
+ ),
+ parts: NonEmpty {
+ inner: [
+ Control {
+ control: SetConfigOption {
+ config_id: "effort",
+ value: "medium",
+ },
+ outcome: Accepted,
+ },
+ ],
+ },
+ stop: None,
+ pending: false,
+ },
+ FoldedMessage {
+ id: TurnId(
+ 5,
),
author: User {
user_id: Some(
@@ -793,7 +846,7 @@ input_file: crates/agent_fold/fixtures/real/real_multi_turn.jsonl
},
FoldedMessage {
id: TurnId(
- 3,
+ 5,
),
author: Agent,
request_id: None,
diff --git a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@resumed_no_prompt.jsonl.snap b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@resumed_no_prompt.jsonl.snap
index 0c03af3091..bbdcb049d9 100644
--- a/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@resumed_no_prompt.jsonl.snap
+++ b/crates/agent_fold/src/domain/test/snapshots/agent_fold__domain__test__real_recordings__real_fixtures_fold_to_their_pinned_snapshot@resumed_no_prompt.jsonl.snap
@@ -1,5 +1,6 @@
---
source: crates/agent_fold/src/domain/test/real_recordings.rs
+assertion_line: 244
expression: messages
input_file: crates/agent_fold/fixtures/real/resumed_no_prompt.jsonl
---
@@ -3661,6 +3662,32 @@ input_file: crates/agent_fold/fixtures/real/resumed_no_prompt.jsonl
author: User {
user_id: None,
},
+ request_id: Some(
+ AgentActionId(
+ a3e2cbd5-6886-4a2b-a3d1-2ef1fac45288,
+ ),
+ ),
+ parts: NonEmpty {
+ inner: [
+ Control {
+ control: SetConfigOption {
+ config_id: "mode",
+ value: "bypassPermissions",
+ },
+ outcome: Accepted,
+ },
+ ],
+ },
+ stop: None,
+ pending: false,
+ },
+ FoldedMessage {
+ id: TurnId(
+ 7,
+ ),
+ author: User {
+ user_id: None,
+ },
request_id: Some(
AgentActionId(
482c3d39-c381-4809-874c-fe00bc757345,
@@ -3679,4 +3706,30 @@ input_file: crates/agent_fold/fixtures/real/resumed_no_prompt.jsonl
stop: None,
pending: false,
},
+ FoldedMessage {
+ id: TurnId(
+ 8,
+ ),
+ author: User {
+ user_id: None,
+ },
+ request_id: Some(
+ AgentActionId(
+ 0937d42c-b2e1-49fe-bd3f-4914ae2075e2,
+ ),
+ ),
+ parts: NonEmpty {
+ inner: [
+ Control {
+ control: SetConfigOption {
+ config_id: "effort",
+ value: "max",
+ },
+ outcome: Accepted,
+ },
+ ],
+ },
+ stop: None,
+ pending: false,
+ },
]
diff --git a/crates/agent_harness/src/domain/queue.rs b/crates/agent_harness/src/domain/queue.rs
index cde76d26cb..5646fd1118 100644
--- a/crates/agent_harness/src/domain/queue.rs
+++ b/crates/agent_harness/src/domain/queue.rs
@@ -303,6 +303,7 @@ impl SessionQueues {
Ok(())
}
AgentAction::SetModel(_)
+ | AgentAction::SetConfigOption(_)
| AgentAction::Compact
| AgentAction::Stop
| AgentAction::RespondElicitation(_)
diff --git a/crates/agent_runtime_protocol/src/domain/action.rs b/crates/agent_runtime_protocol/src/domain/action.rs
index 6cabc9e0f7..4b72cf94ed 100644
--- a/crates/agent_runtime_protocol/src/domain/action.rs
+++ b/crates/agent_runtime_protocol/src/domain/action.rs
@@ -207,6 +207,37 @@ pub struct AgentSetModelAction {
pub model: String,
}
+/// Ask the agent to change one advertised select-style session setting.
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct AgentSetConfigOptionAction {
+ /// Opaque ACP config id advertised by the agent.
+ pub config_id: String,
+ /// Opaque select value advertised for that config option.
+ pub value: String,
+}
+
+impl AgentSetConfigOptionAction {
+ /// Read a non-model select change back from its ACP request.
+ pub fn from_runtime(message: &ToRuntimeMessage) -> Option<(SessionId, Self)> {
+ let ToRuntimeMessage::Acp(AcpMessage(RawJsonRpcMessage::Request(request))) = message else {
+ return None;
+ };
+ let ClientRequest::SetSessionConfigOptionRequest(request) =
+ ClientRequest::parse_message(&request.method, &request.params).ok()?
+ else {
+ return None;
+ };
+ let config_id = request.config_id.to_string();
+ if config_id == MODEL_CONFIG_ID {
+ return None;
+ }
+ let value = request.value.as_value_id()?.to_string();
+ Some((request.session_id, Self { config_id, value }))
+ }
+}
+
impl AgentSetModelAction {
/// Read a model change back from the ACP request produced for it.
///
@@ -400,6 +431,8 @@ pub enum AgentAction {
Prompt(AgentPromptAction),
/// Switch the model the agent runs on.
SetModel(AgentSetModelAction),
+ /// Change an agent-advertised select-style session setting.
+ SetConfigOption(AgentSetConfigOptionAction),
/// Compact the agent's current context.
Compact,
/// Interrupt whatever the agent is doing.
@@ -440,6 +473,14 @@ impl AgentAction {
})
}
+ /// Ask the agent to change one of its advertised select settings.
+ pub fn set_config_option(config_id: impl Into<String>, value: impl Into<String>) -> Self {
+ Self::SetConfigOption(AgentSetConfigOptionAction {
+ config_id: config_id.into(),
+ value: value.into(),
+ })
+ }
+
/// Answer the elicitation the agent asked with `request_id`.
pub fn respond_elicitation(
request_id: ElicitationRequestId,
@@ -457,6 +498,9 @@ impl AgentAction {
if let Some((_, action)) = AgentSetModelAction::from_runtime(message) {
return Some(Self::SetModel(action));
}
+ if let Some((_, action)) = AgentSetConfigOptionAction::from_runtime(message) {
+ return Some(Self::SetConfigOption(action));
+ }
let ToRuntimeMessage::Acp(AcpMessage(frame)) = message else {
return None;
@@ -497,6 +541,7 @@ impl AgentAction {
// An elicitation answer is the running turn's own business: the
// agent is blocked on it mid-turn, so it must ride alongside.
Self::SetModel(_)
+ | Self::SetConfigOption(_)
| Self::Stop
| Self::RespondElicitation(_)
| Self::RespondToPermission(_) => false,
@@ -549,6 +594,21 @@ impl AgentAction {
.map_err(|error| ActionError::Acp(error.to_string()))?;
Ok(ToRuntimeMessage::Acp(AcpMessage(frame)))
}
+ Self::SetConfigOption(action) => {
+ let payload = SetSessionConfigOptionRequest::new(
+ session_id.clone(),
+ action.config_id.clone(),
+ agent_client_protocol::schema::v1::SessionConfigValueId::new(
+ action.value.clone(),
+ ),
+ );
+ let params = serde_json::to_value(&payload)
+ .map_err(|error| ActionError::Acp(error.to_string()))?;
+ let frame =
+ RawJsonRpcMessage::request(payload.method().to_owned(), params, request_id)
+ .map_err(|error| ActionError::Acp(error.to_string()))?;
+ Ok(ToRuntimeMessage::Acp(AcpMessage(frame)))
+ }
// Manual compaction is exposed as the `/compact` slash command
// through the standard ACP prompt method.
Self::Compact => {
diff --git a/crates/agent_runtime_protocol/src/domain/action/test.rs b/crates/agent_runtime_protocol/src/domain/action/test.rs
index 604e8f235b..cd7198a7b1 100644
--- a/crates/agent_runtime_protocol/src/domain/action/test.rs
+++ b/crates/agent_runtime_protocol/src/domain/action/test.rs
@@ -68,6 +68,27 @@ fn set_model_becomes_a_model_config_option_request() {
);
}
+#[test]
+fn a_generic_session_config_action_round_trips_through_acp() {
+ let session_id = SessionId::new("acp-abc");
+ let action = AgentAction::set_config_option("reasoning_effort", "high");
+ let translated = action
+ .to_runtime(&session_id, RequestId::Str("harness:effort:0".to_owned()))
+ .unwrap();
+
+ let ToRuntimeMessage::Acp(AcpMessage(RawJsonRpcMessage::Request(request))) = &translated else {
+ panic!("a config change translates to an ACP request");
+ };
+ let parsed = ClientRequest::parse_message(&request.method, &request.params).unwrap();
+ let ClientRequest::SetSessionConfigOptionRequest(parsed) = parsed else {
+ panic!("a config change translates to SetSessionConfigOptionRequest");
+ };
+ assert_eq!(parsed.session_id, session_id);
+ assert_eq!(parsed.config_id.to_string(), "reasoning_effort");
+ assert_eq!(parsed.value.as_value_id().unwrap().to_string(), "high");
+ assert_eq!(AgentAction::control_from_runtime(&translated), Some(action));
+}
+
#[test]
fn stop_becomes_a_cancel_notification_with_no_request_id() {
let session_id = SessionId::new("acp-abc");
diff --git a/docs/AGENT_EFFORT.md b/docs/AGENT_EFFORT.md
new file mode 100644
index 0000000000..1142a31596
--- /dev/null
+++ b/docs/AGENT_EFFORT.md
@@ -0,0 +1,17 @@
+# Agent effort capabilities
+
+Effort belongs to a selected model in a particular harness. Native API support,
+Claude Code support, and Cursor variants are different contracts. The UI reads
+ACP `configOptions`, selecting category `thought_level` (legacy id fallback:
+`reasoning_effort`). External ids and values are opaque; `ultra`, for example,
+is not a native Macro effort level.
+
+## Configuration contract
+
+Session metadata preserves the agent's complete advertised ACP configuration.
+An omitted configOptions field leaves the prior snapshot intact; an explicit
+empty list removes it. Select values and configuration ids remain opaque.
+
+The generic setConfigOption action records a correlated control outcome. HTTP
+queue acceptance does not mean the runtime accepted the setting. Clients must
+wait for the runtime outcome before presenting a change as confirmed.
diff --git a/packages/sdk/generated/agent-harness/index.ts b/packages/sdk/generated/agent-harness/index.ts
index 248131cc99..16f98b3ec3 100644
--- a/packages/sdk/generated/agent-harness/index.ts
+++ b/packages/sdk/generated/agent-harness/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
export { type Options, Sdk } from './sdk.gen';
-export type { AccessLevel, AgentAction, AgentActionId, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSetModelAction, BotId, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSharePermission, ClientOptions, CompleteData, CompleteErrors, CompleteRequest, CompleteResponse, CompleteResponses, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateSessionThread, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponse, DisconnectResponses, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmptyRequest, ExternalSessionResponse, FileChangeKindDto, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GitRefDto, LinkShare, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MessageParent, ModelHarnessDto, PermissionAnswer, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QueuedActionDto, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, SandboxSize, SandboxSizeBody, SessionBot, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartData, StartErrors, StartResponse, StartResponse2, StartResponses, StatusData, StatusErrors, StatusResponse, StatusResponse2, StatusResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WithAgentSessionId } from './types.gen';
+export type { AccessLevel, AgentAction, AgentActionId, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSetConfigOptionAction, AgentSetModelAction, BotId, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSharePermission, ClientOptions, CompleteData, CompleteErrors, CompleteRequest, CompleteResponse, CompleteResponses, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateSessionThread, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponse, DisconnectResponses, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmptyRequest, ExternalSessionResponse, FileChangeKindDto, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GitRefDto, LinkShare, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MessageParent, ModelHarnessDto, PermissionAnswer, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QueuedActionDto, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, SandboxSize, SandboxSizeBody, SessionBot, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartData, StartErrors, StartResponse, StartResponse2, StartResponses, StatusData, StatusErrors, StatusResponse, StatusResponse2, StatusResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WithAgentSessionId } from './types.gen';
diff --git a/packages/sdk/generated/agent-harness/types.gen.ts b/packages/sdk/generated/agent-harness/types.gen.ts
index 01f2ec4b14..40f3316575 100644
--- a/packages/sdk/generated/agent-harness/types.gen.ts
+++ b/packages/sdk/generated/agent-harness/types.gen.ts
@@ -16,6 +16,8 @@ export type AgentAction = (AgentPromptAction & {
type: 'prompt';
}) | (AgentSetModelAction & {
type: 'setModel';
+}) | (AgentSetConfigOptionAction & {
+ type: 'setConfigOption';
}) | {
type: 'compact';
} | {
@@ -405,6 +407,20 @@ export type AgentSessionResponse = {
workspace: string;
};
+/**
+ * Ask the agent to change one advertised select-style session setting.
+ */
+export type AgentSetConfigOptionAction = {
+ /**
+ * Opaque ACP config id advertised by the agent.
+ */
+ configId: string;
+ /**
+ * Opaque select value advertised for that config option.
+ */
+ value: string;
+};
+
/**
* Ask the agent to run on a different model from here on.
*/
diff --git a/packages/sdk/specs/agent-harness.json b/packages/sdk/specs/agent-harness.json
index f2fcb26d2b..49e1c243c4 100644
--- a/packages/sdk/specs/agent-harness.json
+++ b/packages/sdk/specs/agent-harness.json
@@ -1570,6 +1570,25 @@
],
"description": "Switch the model the agent runs on."
},
+ {
+ "allOf": [
+ {
+ "$ref": "#/components/schemas/AgentSetConfigOptionAction",
+ "description": "Change an agent-advertised select-style session setting."
+ },
+ {
+ "type": "object",
+ "required": ["type"],
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": ["setConfigOption"]
+ }
+ }
+ }
+ ],
+ "description": "Change an agent-advertised select-style session setting."
+ },
{
"type": "object",
"description": "Compact the agent's current context.",
@@ -2115,6 +2134,21 @@
}
}
},
+ "AgentSetConfigOptionAction": {
+ "type": "object",
+ "description": "Ask the agent to change one advertised select-style session setting.",
+ "required": ["configId", "value"],
+ "properties": {
+ "configId": {
+ "type": "string",
+ "description": "Opaque ACP config id advertised by the agent."
+ },
+ "value": {
+ "type": "string",
+ "description": "Opaque select value advertised for that config option."
+ }
+ }
+ },
"AgentSetModelAction": {
"type": "object",
"description": "Ask the agent to run on a different model from here on.",