import DefinitionCard from "@site/src/components/DefinitionCard";

# What is an AI Software Engineer?

## Introduction

An **AI software engineer** is a [coding agent](./coding-agents.mdx) that takes a whole task, such as an issue or a ticket, and returns a finished change, usually a pull request. You describe the outcome. The agent plans, edits code, runs tests in its own environment, and asks for review when it is done.

The term is a product category more than a job title. Cognition popularised it with the post [Introducing Devin, the first AI software engineer](https://cognition.com/blog/introducing-devin), published on March 12, 2024. Since then several vendors sell the same shape of tool: a task goes in, and a pull request comes out.

This article explains what these agents actually do, how they differ from an AI pair programmer, and what a team must still own.

## Understanding the Concept

An AI software engineer is a coding agent with three extra parts around it. It has a task source, such as an issue tracker. It has a remote environment where it can install dependencies and run commands. It has an output channel, usually a branch and a pull request.

GitHub's Copilot coding agent is one example. Its [documentation](https://docs.github.com/en/copilot/concepts/agents/coding-agent/about-coding-agent) covers runs on GitHub Actions. There, Copilot "can only work on one branch at a time and can open one pull request per task." Each session has "a maximum execution time of 59 minutes." Ona, formerly Gitpod, describes its background agents as "Task in, pull request out."

| | AI pair programmer | AI software engineer |
| --- | --- | --- |
| Input | One instruction at a time | A complete task or issue |
| Where it runs | Your editor or terminal | A remote environment |
| Output | Edits in your working copy | A branch and a pull request |
| When you review | After each step | Once, on the pull request |

The comparison with [AI pair programming](./ai-pair-programming.mdx) is about supervision, not capability. The same model can do both. The AI software engineer just works longer before a person looks at its output.

## Applying It in Practice

Write the task as a specification. State the expected behavior, the files or modules in scope, the tests that must pass, and anything the agent must not change. A vague issue produces a pull request that matches the agent's guess, not your intent.

Pick tasks with a checkable outcome. Bug fixes with a failing test, dependency updates, small features with clear acceptance criteria, and test coverage for existing code all fit well. Tasks that depend on an unmade product decision do not.

Review the pull request as you would one from a new contributor who has never met the team. Check that it reuses existing code, that the tests prove the right thing, and that it did not change unrelated files. A passing CI run says the tests pass. It does not say the tests are right.

## Engineering Considerations

Vendors measure these agents on benchmarks such as [SWE-bench](https://swebench.com/SWE-bench/), which describes itself as "a benchmark for evaluating large language models on real world software issues collected from GitHub." The agent must generate a patch that resolves each issue. A benchmark score tells you how often the agent solves that kind of public issue. It does not tell you how it does on your codebase, your conventions, or your unwritten requirements.

The agent replaces part of an engineer's work, not the role. Someone still decides what to build, writes the task, reviews the result, and owns the code after it merges. If nobody on the team can judge a change, nobody should merge it.

Give the agent the smallest permissions that let it finish. It needs repository write access to a branch, not to `main`. It rarely needs production credentials. Text in an issue or a code comment can carry instructions aimed at the agent, so treat its input as untrusted.

## Scaling and Operations

Running several AI software engineers at once multiplies pull requests, not reviewers. Plan work at the rate your team can review it. Group related changes so a reviewer reads one coherent story instead of ten unrelated diffs.

Several agents on one repository also need separate workspaces and a plan for tasks that depend on each other. [Agent orchestration](./agent-orchestration.mdx) covers how to split and sequence that work. Treq runs each agent in its own [workspace](/docs/concepts/workspaces), stacks dependent workspaces, and rebases the ones above when a lower one changes.

## Next Steps

- [What is AI Pair Programming?](./ai-pair-programming.mdx): stay in the loop on every step instead of delegating the task
- [What is AI Agent Orchestration?](./agent-orchestration.mdx): coordinate several agents on a larger piece of work
- [Quality Gates for Agent Output](./quality-gates-for-agent-output.mdx): checks every agent change should pass before merge
- [Parallel Coding Agents](/learn/parallel-coding-agents): run several agents without branch conflicts
