--- title: GitLab source code management AI agent description: This AI agent works with GitLab repository source code. It adds new files to a repository and looks up commits and commit diffs for a project. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/intelligent-experiences/inth-gitlab-gitlab-source-code-management-ai-agent.html release: australia topic_type: reference last_updated: "2026-09-30" reading_time_minutes: 2 breadcrumb: [GitLab Spoke AI agents, Integration Hub AI agents, Integration Hub, AI agents library, AI assets, Enable AI experiences] --- # GitLab source code management AI agent This AI agent works with GitLab repository source code. It adds new files to a repository and looks up commits and commit diffs for a project. ## Workflow The agent helps the user add files and review commits in a GitLab repository. 1. Ask the user what they want to do and collect the details the action needs, such as the project ID and commit or file path. 2. Look up commits for a project. 3. Look up the diff for a commit. 4. Add a new file to the repository. 5. Report the outcome to the user, including details of any error.
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 - **Flow Actions** Add New File to Repository Look up Commit Diff Look up Commit by Project ID
Allowed user roles The specific user roles that can access this AI agent. snc\_internal
Data access roles The specific user identity roles that determine which data the AI agent can access and what actions it can take. snc\_internal
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 Configure an assistant for Virtual Agent or ServiceNow Otto panel using [Assistant Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/conversational-interfaces/configure-now-assist-va.md).
Used in agentic workflows Not applicable.
**Parent Topic:**[GitLab Spoke AI agents](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/intelligent-experiences/inth-gitlab-ai-agents-overview.md) **Related topics** [GitLab Spoke](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/gitlab-spoke.md) [Integration Hub spokes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/spokes-list.md)