The list of local variable identifiers that can be made available to this agent during execution, these variables are context specific and do not exist for other agents.
This array is primarily used for documentation purposes in the AI Configuration View to show which variables can be made available to the agent. Referenced variables are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation or in prompts.
ProtectedcodexA markdown description of its functionality and its privacy-relevant requirements, including function call handlers that access some data autonomously.
Protected ReadonlyfileProtected ReadonlyfileThe list of global function identifiers that are always available to this agent during execution, regardless of whether they are referenced in prompts.
This array is primarily used for documentation purposes in the AI Configuration View to show which functions are guaranteed to be available to the agent. Referenced functions are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation.
Used to identify an agent, e.g. when it is requesting language models, etc.
Required language models. This includes the purpose and optional language model selector arguments. See #47.
Human-readable name shown to users to identify the agent. Must be unique.
Use short names without "Agent" or "Chat" (see tags for adding further properties).
The prompts introduced and used by this agent.
A list of tags to filter agents and to display capabilities in the UI
ProtectedtokenThe list of global variable identifiers that are always available to this agent during execution, regardless of whether they are referenced in prompts.
This array is primarily used for documentation purposes in the AI Configuration View to show which variables are guaranteed to be available to the agent. Referenced variables are NOT automatically handed over by the framework, this must be explicitly done in the agent implementation.
Protected ReadonlyworkspaceProtectedcaptureSnapshot the original contents for files that Codex is about to modify so we can populate the change set later.
ProtectedensureProtectedextractOptionalmodeId: stringProtectedextractProtectedfindProtectedgetProtectedgetProtectedgetProtectedgetProtectedhandleProtectedhandleProtectedhandleProtectedhandleCreates a pending tool call that will be updated when the item completes.
ProtectedhandleUpdates the pending tool call with new data, especially for todo_list items.
ProtectedhandleProtectedhandleProtectedisType guard using discriminated union narrowing from SDK types.
ProtectednormalizeOptionalrootUri: URIProtectedreportProtectedresolveprotected async readFileContentSafe(fileUri: URI): Promise<string | undefined> { try { if (!await this.fileService.exists(fileUri)) { console.warn('CodexChatAgent: Skipping file change entry because file is missing', fileUri.toString()); return undefined; } const fileContent = await this.fileService.read(fileUri); return fileContent.value.toString(); } catch (error) { console.error('CodexChatAgent: Failed to read updated file content for', fileUri.toString(), error); return undefined; } } protected mapChangeKind(kind: FileChangeItem['changes'][number]['kind']): 'add' | 'delete' | 'modify' { switch (kind) { case 'add': return 'add'; case 'delete': return 'delete'; default: return 'modify'; } }
ProtectedupdateProtectedupdate
Chat agent for OpenAI Codex integration.