Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: a soft context limit field in an agent's inference settings

A whole percent from 5 to 100 of the model's context window, sent as
soft_context_percent next to max_subagents. The inference row shows it, the
edit dialog and the create form take it, and an archetype can carry it.
This commit is contained in:
iris 2026-11-15 15:16:59 +01:00 • committed by mara
commit e9af6cf2c7

View file

@ -14,6 +14,7 @@ export interface Archetype {
effort?: string;
subagent_models?: string[];
max_subagents?: number;
soft_context_percent?: number;
};
prompt?: string;
/** The archetype's icon as SVG text. */
@ -69,6 +70,10 @@ export function prefill(
inference.max_subagents === undefined
? ""
: String(inference.max_subagents),
softContext:
inference.soft_context_percent === undefined
? ""
: String(inference.soft_context_percent),
},
};
}