--- title: Code fix AI agent description: This AI Agent automates the process of analyzing, suggesting, and implementing fixes for code violations or issues detected within code repositories or running scripts. It leverages LLM-driven suggestions while keeping the user in control of approval and refinement. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/intelligent-experiences/imp-code-fix-ai-agent.html release: australia topic_type: reference last_updated: "2026-08-14" reading_time_minutes: 1 breadcrumb: [Impact AI agents, Impact, AI agents library, AI assets, Enable AI experiences] --- # Code fix AI agent This AI Agent automates the process of analyzing, suggesting, and implementing fixes for code violations or issues detected within code repositories or running scripts. It leverages LLM-driven suggestions while keeping the user in control of approval and refinement. ## Workflow The agent helps users complete tasks related to fixing code. 1. Receive the user's code request. 2. Execute the appropriate tools to detect and handle code violations. 3. Allow user-driven approval, rejection, or refinement.
| Field | Description |
|---|---|
| Allow third party to access this AI agent | When enabled, third-party AI agents can use this agent. This value is off \(false\) by default. This setting is defined in the AI Agent configs \[sn\_aia\_agent\_config\] table on the External discoverable field. |
| Allow AI specialists to access this AI agent | When enabled, AI specialists can use this agent. This value is off \(false\) by default. When set to true, more configuration options for tools become available so that an AI specialist can map inputs and response templates to tool outputs. This setting is defined in the AI Agent configs \[sn\_aia\_agent\_config\] table on the Specialist enabled field. |
| Manage long-term memory | When enabled, all previous user interactions are used as context for the LLM. This value is off \(false\) by default. This setting is defined by the **sn\_aia.ltm.enable\_long\_term\_memory** system property. For more information, see [ServiceNow Otto AI agents reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/na-aia-reference.md). |
| Tools | - **Scripts** Code Violation Handler Fetch Codefix Issues Make Additional Changes Handler Solution Accepted Handler Solution Rejected Handler |
| Allowed user roles The specific user roles that can access this AI agent. | sn\_impact\_gen\_ai.ai\_fix\_user |
| Data access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take. | sn\_impact\_gen\_ai.ai\_fix\_user, sn\_se.scan\_engine\_read\_user |
| Triggers | Optional. None defined by default. An admin can specify triggers if desired. For more information, see [Add a trigger to an AI agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/add-trigger-aia.md). |
| Channels | Not defined. |
| Used in agentic workflows | Code Fix Workflow |