GitLab162 open jobs

Backend Engineer (Python), AI Engineering: Agent Foundations

ML and AIPosted over 2 months agofrom GitLab's own hiring page

Work type
RemoteIn the UK and Canada
Experience
Not stated
Pay
Not listedUsually £53k a yearML and AI, median, all levels, in the UK (Payscale)
Posted
Over 2 months agoOpen 3 months
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Python, LLMs and GenAI, GraphQL and 6 more

About the job

GitLab is the intelligent orchestration platform for DevSecOps. GitLab enables organizations to increase developer productivity, improve operational efficiency, reduce security and compliance risk, and accelerate digital transformation. More than 50 million registered users and more than 50% of the Fortune 100* trust GitLab to ship better, more secure software faster.

The same principles built into our products are reflected in how our team works: we embrace AI as a core productivity multiplier, with all team members expected to incorporate AI into their daily workflows to drive efficiency, innovation, and impact. GitLab is where careers accelerate, innovation flourishes, and every voice is valued. Our high-performance culture is driven by our values and continuous knowledge exchange, enabling our team members to reach their full potential while collaborating with industry leaders to solve complex problems. Co-create the future with us as we build technology that transforms how the world develops software.

*Fortune 500® is a registered trademark of Fortune Media IP Limited, used under license. Claim based on GitLab data. Fortune 100 refers to the top 20% ranked companies in the 2025 Fortune 500 list, published in June 2025. Fortune and Fortune Media IP Limited are not affiliated with, and do not endorse products or services of GitLab.

An overview of this role

As an Intermediate Backend Engineer (Python) in GitLab's Agent Foundations stage, you'll go beyond using AI tools. You'll help build the foundations for GitLab's agentic AI experiences: the platform that lets AI agents work across the whole software delivery lifecycle, not just write code. That covers the reusable building blocks agents and flows are made from as well as our core harness, Duo Developer.

Most of your work will be backend engineering in Python, using libraries such as LangGraph to build secure, reliable and scalable features in our AI Gateway. You'll also work across the stack where needed. You'll work closely with engineers across the stage and other AI Engineering teams. This is a high-visibility area where GitLab's core platform meets its AI strategy.

What you'll do

  • Develop, ship and maintain features for the Duo Agent Platform in the Duo Workflow Service, the AI Gateway and, where needed, the GitLab monolith. Keep them secure, well-tested and performant.
  • Build and improve agentic flows and their reusable parts with LangChain and LangGraph, including the Flow Registry.
  • Work with Product Management, UX, frontend, backend and AI specialists to refine requirements and ship improvements in small iterations.
  • Design, implement and review APIs (including GraphQL and REST) and the backend logic behind them, with reliable, scalable and clear contracts for clients such as the GitLab monolith, IDE extensions and Duo CLI.
  • Improve and extend automated testing (pytest and other frameworks), including evaluations of agent and flow behavior, to strengthen quality and give developers faster feedback.
  • Share standards, patterns and learnings with other engineers to raise the bar for responsible AI integration and evidence-driven engineering.
  • Join Tier 2 on-call rotations to troubleshoot production issues, contribute to root cause analysis, and improve observability and resiliency.
  • Keep an eye on the competitive landscape to help keep GitLab's agent platform best-in-class as more work becomes agentic.
  • Take part in on-call or operational support where your team’s ownership model requires it.

What you'll bring

  • Experience building and maintaining production Python backend applications, including APIs, asynchronous or background processing, and data models.
  • Experience with LLM application frameworks such as LangGraph, or designing and shipping AI-powered backend features or harnesses.
  • Skill in designing or extending APIs (REST, GraphQL or gRPC) with attention to scalability, maintainability and backward compatibility.
  • Comfort working across the stack in a mature codebase. Familiarity with Ruby on Rails and/or JavaScript and Vue is a plus.
  • Experience finding and fixing performance bottlenecks in applications.
  • Clear written and verbal communication, including technical proposals and documentation, in a remote, async, cross-functional team.
  • Openness to learning and to applying skills from related technologies or fields.

About the team

The Agent Foundations stage builds the foundations for GitLab's agentic AI experiences. We provide the platform, catalog and execution features that help teams deliver resilient agents and flows to customers. The stage has three groups: Agent Developer, AI Catalog and Agent Execution. Between them, they own the GitLab Duo Developer foundational flow and the Flow Registry; the AI Catalog, including custom agents, custom flows and external agent integrations; and agent execution, agent tools and agent observability.

Our engineers work async-first across EMEA, AMER, and India timezones. We work with teams across AI engineering and the rest of GitLab so the Duo Agent Platform can power many of GitLab's AI features.

How GitLab Supports Full-Time Employees

Please note that we welcome interest from candidates with varying levels of experience; many successful candidates do not meet every single requirement. Additionally, studies have shown that people from underrepresented groups are less likely to apply to a job unless they meet every single qualification. If you're excited about this role, please apply and allow our recruiters to assess your application.

Country Hiring Guidelines: GitLab hires new team members in countries around the world. All of our roles are remote, however some roles may carry specific location-based eligibility requirements. Our Talent Acquisition team can help answer any questions about location after starting the recruiting process.  

Privacy Policy: Please review our Recruitment Privacy Policy. Your privacy is important to us.

GitLab is proud to be an equal opportunity workplace and is an affirmative action employer. GitLab’s policies and practices relating to recruitment, employment, career development and advancement, promotion, and retirement are based solely on merit, regardless of race, color, religion, ancestry, sex (including pregnancy, lactation, sexual orientation, gender identity, or gender expression), national origin, age, citizenship, marital status, mental or physical disability, genetic information (including family medical history), discharge status from the military, protected veteran status (which includes disabled veterans, recently separated veterans, active duty wartime or campaign badge veterans, and Armed Forces service medal veterans), or any other basis protected by law. GitLab will not tolerate discrimination or harassment based on any of these characteristics. See also GitLab’s EEO Policy and EEO is the Law. If you have a disability or special need that requires accommodation, please let us know during the recruiting process.

Interested?Backend Engineer (Python), AI Engineering: Agent Foundations at GitLab

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Python, LLMs and GenAI, GraphQL and 6 more

Interview questions for this job

For the skills the ad mentions: Python, LLMs and GenAI, GraphQL, REST APIs, Test automation, Ruby on Rails, Ruby, JavaScript and Vue.

908 questions
  • How do I execute a program or call a system command?Python

    Use subprocess.run:

    import subprocess
    subprocess.run(["ls", "-l"]) 
    

    Another common way is os.system but you shouldn't use it because it is unsafe if any parts of the command come from outside your program or can contain spaces or other special characters, also subprocess.run is generally more flexible (you can get the stdout, stderr, the "real" status code, better error handling, etc.). Even the documentation for os.system recommends using subprocess instead.

    On Python 3.4 and earlier, use subprocess.call instead of .run:

    subprocess.call(["ls", "-l"])
    

    From Stack Overflow: asked by freshWoWer, answered by David Cournapeau (CC BY-SA 4.0)

  • What are the common retrieval approaches used in RAG systems?LLMs and GenAI

    Common retrieval approaches in RAG systems include dense retrieval, sparse retrieval, and hybrid retrieval. Dense retrieval uses embeddings to capture semantic similarity, enabling effective query matching to relevant document chunks. Sparse retrieval relies on traditional methods like TF-IDF or BM25, focusing on keyword-based matching for efficiency.

    Hybrid retrieval combines dense and sparse methods to balance semantic understanding and computational speed. These approaches ensure relevant context is retrieved for generating accurate responses in RAG systems.

    From RAG Interview Questions and Answers Hub (Apache 2.0)

  • What's the point of input type in GraphQL?GraphQL

    From the spec:

    The GraphQL Object type (ObjectTypeDefinition)... is inappropriate for re‐use [as an input], because Object types can contain fields that define arguments or contain references to interfaces and unions, neither of which is appropriate for use as an input argument. For this reason, input objects have a separate type in the system.

    That's the "official reason", but there's several practical reasons why you can't use an object type as an input object type or use an object type as an input object type:

    Functionality

    Object types and input object types both have fields, however those fields have different properties that reflect how these types are used by the schema. Your schema will potentially define arguments and some kind of resolver function for an object type's fields, but these properties don't make sense in an input context (i.e. you can't resolve an input object's field -- it already has an explicit value). Similarly, default values can only be provided for input object type fields, and not object type fields.

    In other words, this may seem like duplication:

    type Student {
      name: String
      grade: Grade
    }
    input StudentInput {
      name: String
      grade: Grade
    }
    

    But adding features specific to either object types or input object types makes it clear that they behave differently:

    type Student {
      name(preferred: Boolean): String
      grade: Grade
    }
    input StudentInput {
      name: String
      grade: Grade = F
    }
    

    Type system limitations

    Types in GraphQL are grouped into output types and input types.

    Output types are types that may be returned as part of a response produced by a GraphQL service. Input types are types that are valid inputs for field or directive arguments.

    There's overlap between these two groups (i.e. scalars, enums, lists and non-nulls). However, abstract types like unions and interfaces don't make sense in an input context and cannot be used as inputs. Separating object types and input object types allows you to ensure that an abstract type is never used where an input type is expected.

    Schema design

    When representing an entity in your schema, it's likely that some entities will indeed "share fields" between their respective input and output types:

    type Student {
      firstName: String
      lastName: String
      grade: Grade
    }
    input StudentInput {
      firstName: String
      lastName: String
      grade: Grade
    }
    

    However, object types can (and in reality frequently do) model very complex data structures:

    type Student {
      fullName: String!
      classes: [Class!]!
      address: Address!
      emergencyContact: Contact
      # etc
    }
    

    While these structures may translate into appropriate inputs (we create a Student, so we also pass in an object representing their address), often they do not -- i.e. maybe we need to specify the student's classes by class ID and section ID, not an object. Similarly, we may have fields that we want to return, but don't want to mutate, or vice versa (like a password field).

    Moreover, even for relatively simple entities, we often have different requirements around nullability between object types and their "counterpart" input objects. Often we want to guarantee that a field will also be returned in a response, but we don't want to make the same fields required in our input. For example,

    type Student {
      firstName: String!
      lastName: String!
    }
    input StudentInput {
      firstName: String
      lastName: String
    }
    

    Lastly, in many schemas, there's often not a one-to-one mapping between object type and input object type for a given entity. A common pattern is to utilize separate input object types for different operations to further fine-tune the schema-level input validation:

    input CreateUserInput {
      firstName: String!
      lastName: String!
      email: String!
      password: String!
    }
    input UpdateUserInput {
      email: String
      password: String
    }
    

    All of these examples illustrate an important point -- while an input object type may mirror an object type some of the time, you're much less likely to see that in production schemas due to business requirements.

    From Stack Overflow: asked by Dmitrii Dushkin, answered by Daniel Rearden (CC BY-SA 4.0)

  • What is the difference get and post?REST APIs
    • GET is idempotent: it is for obtaining a resource, without changing anything on the server. As a consequence it should be perfectly safe to resubmit a GET request.
    • POST is not: it is for updating information on the server. It can therefore not be assumed that it is safe to re-submit the request which is why most browsers ask for confirmation when you hit refresh on a POST request. Links
    • https://stackoverflow.com/questions/2080863/what-is-the-difference-between-a-http-get-and-http-post-and-why-is-http-post-wea

    From Java interview (MIT)

  • What's the difference between a good test and a bad test?Test automation

    It depends

    There are many factors that decide whether a test is "good" or "bad" (useful or not) - some examples are:

    • A test is more likely to be good if it surfaces new information about the performance of the software
      • The happy path tests you do when you're exploring new functionality become much less good once that functionality is stable, but can be useful to use for regression checking.
      • Tests for throwaway software (such as proof of concept apps) will probably be less useful than tests for software that is planned to be deployed.
      • Tests for high-risk scenarios (that is, with a high chance of occurring and a large impact if they happen) are likely to be more useful than test for low-risk scenarios.
    • A regression test is more likely to be good if it covers core functionality or functionality in the 20% of the software that is used by 80% of users.
    • A test is more likely to be useful if it echoes user behavior (just don't forget to include malicious users in that criteria).
    • A test is more likely to be useful if it covers parts of the application that aren't covered by other tests.

    Beyond the general principles, there really aren't any "hard" rules. Modern software is often responsive and non-deterministic in that you can only predict behavior for small subsets of the total functionality (Because the full behavior set approaches infinite).

    An experienced tester will look at how the software is used, the problems it is solving and the people it is solving them for, and test accordingly.

    From Software Quality Assurance & Testing Stack Exchange: asked by Nitin Rastogi, answered by Kate Paulk (CC BY-SA 3.0)

  • Why should we hire you?Behavioural

    The strengths employers look for will depend on the job role. They may ask you questions like:

    • what are your main strengths?
    • why should we hire you?

    You can use specific examples to highlight your strengths, such as:

    • communication - to show you get on with others
    • problem solving - to show that you can find solutions
    • enthusiasm - to show that you have a positive attitude to work
    • flexibility - to show that you can adapt to different ways of working

    Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Machine learning and AI jobs in the UK (506)