1b490044ff
- Centralized task concurrency and delegation logic by moving instructions from individual tool descriptions to the system prompt. - Introduced conditional system prompt logic to handle model-specific task policies, including support for GPT-5.6. - Added infrastructure for task concurrency normalization and IRC steering state within the system prompt configuration. - Refactored prompt inputs and session logic to enable dynamic system prompt updates based on model-specific policy cohorts.
9 lines
406 B
TypeScript
9 lines
406 B
TypeScript
import { bareModelId, parseOpenAIModel, semverEqual } from "@oh-my-pi/pi-catalog/identity";
|
|
|
|
/** Whether task guidance should follow Codex's GPT-5.6-specific delegation policy. */
|
|
export function usesCodexTaskPrompt(modelId: string | undefined): boolean {
|
|
if (!modelId) return false;
|
|
const parsed = parseOpenAIModel(bareModelId(modelId));
|
|
return parsed !== null && semverEqual(parsed.version, "5.6");
|
|
}
|