IA 360
Current Affairs

Cognition unveils Devin, an AI agent for end-to-end coding

Startup Cognition has unveiled Devin, an AI agent that takes on coding tasks, creates a plan and works with a terminal, editor and browser. The company says it outperforms other systems on the SWE-bench benchmark.

4 min read AI-generated Leer en español
Cognition unveils Devin, an AI agent for end-to-end coding

On March 12, 2024, Cognition introduced Devin as an agent able to plan, edit code, use a terminal and check its work inside its own environment. The original announcement provides demonstrations and a SWE-bench score; it tests one configuration on verifiable issues, not whether the system can assume an engineer’s full responsibility.

The launch comes as assistants such as GitHub Copilot and ChatGPT have become part of many developers’ workflows. The difference is scope: those tools typically respond to specific requests within a programmer’s workflow, while Devin aims to take on an entire task and return the result.

An agent that can use tools

Cognition describes Devin as an agent—in other words, a system that does more than generate text or code: it decides on a sequence of actions to achieve a goal. Given an assignment, it can draw up a plan, search documentation online, open files in a repository, run commands and check how the program it is modifying behaves.

The system can also ask the user for clarification when it encounters ambiguity. That capability matters in programming: an apparently simple request can conceal requirements around security, compatibility, performance or how an application should be used.

In its demonstration, Cognition showed Devin learning unfamiliar technologies from documentation, fixing bugs in open-source projects and creating a web application. These are common tasks on software teams, although a controlled demonstration is not the same as maintaining a real-world product.

The benchmark: SWE-bench

To support its announcement, Cognition used SWE-bench, a test based on real issues from public GitHub repositories. The challenge is to fix bugs and implement change requests based on descriptions written by repository maintainers, then validate the solution with automated tests.

The company says Devin solved 13.86% of the cases in the test set without assistance. For comparison, Cognition said the previous best result was 1.96%. Primary source.

The figure is notable, but it needs context. Solving roughly one in seven problems does not make the system a general replacement for a software engineer. SWE-bench measures specific, verifiable issues; professional development also involves understanding business needs, negotiating priorities, reviewing architectural decisions and taking responsibility for a system when it fails.

Even so, the progress matters because it evaluates something more demanding than completing an isolated function: it requires the model to navigate an existing project, interpret a bug and modify the code without breaking other parts.

From copilot to work delegation

Devin’s arrival reflects a shift in the race to automate programming. Over the past two years, the dominant product has been the copilot: a tool that accelerates developers by suggesting code, explaining functions or writing tests. Agents propose a different model: delegating a defined task to them and supervising the result.

That could be useful for fixing repetitive issues, preparing prototypes, updating dependencies or researching bugs with an initial proposal. It could also reduce the time spent on tasks that currently consume hours of navigating documentation, repositories and error logs.

But autonomy introduces practical risks. An agent with access to a terminal can install packages, change configurations or introduce vulnerable dependencies without human review. Code that passes an automated test also is not necessarily maintainable, secure or suitable for a company’s infrastructure.

Cognition, co-founded by competitive programmer Scott Wu, has announced that it will offer early access to Devin. Its real capabilities will be measured outside demonstrations and benchmarks: in projects with ambiguous requirements, legacy systems and code reviews by professionals who will have to decide whether the agent’s solutions deserve to reach production.

An agent is a loop with permissions

The model proposes an action, a tool executes it, the environment returns a result and the model chooses the next step. Autonomy comes from repeating that cycle, not from a magical category separate from an assistant. The security unit is therefore the whole system: instructions, tools, credentials, network, repository and stopping condition.

Before delegation, restrict directories, exclude secrets, use an isolated branch and require confirmation before publishing, installing or deleting. The agent may run tests, but an incomplete test suite can approve an incorrect change. Diff review, dependency analysis and a responsible person remain necessary before production.

What SWE-bench measures

The SWE-bench paper builds tasks from real issues and changes in Python repositories. That adds context, navigation and verification beyond completing one function. Even so, the metric is the share of problems whose tests pass under the protocol; it does not measure client negotiation, future maintenance or dependency harm.

A comparison must preserve dataset version, model, instructions, tools, budget and attempt count. A system receiving hints or selecting the best of several patches is no longer under the same condition. The percentage is useful when its conditions travel with it; detached from the protocol it becomes advertising.

Delegation begins by defining “done”

A task needs observable acceptance: new tests that fail before and pass after, style, security and an explanation of the change. It also needs a safe exit when the specification is ambiguous. Asking for clarification may be better behaviour than confidently changing files.

The transferable skill is to contain an agent inside verifiable work: scope, minimum permissions, criterion, log and review. The pattern captures the value of exploration and automation without mistaking movement in a terminal for engineering accountability.

A log turns autonomy into evidence

Every command, modified file, test result and decision should remain in a readable trace. A generated summary at the end is insufficient: the reviewer needs to reconstruct what the agent observed before acting. Represent credentials through permissions, never copy them into the log, and redact sensitive data without losing sequence.

A security evaluation adds adversarial issues: documentation containing hostile instructions, lookalike packages, tests trying to reach the network and requests requiring deletion. Score whether the agent recognises the boundary and asks permission. Solving more tasks while obeying hostile directions is not a net improvement.

Human time should be measured too. Preparing the task, answering questions, reviewing the patch and repairing errors may exceed generation savings. The agent creates value when it reduces the entire cycle at a known acceptance rate, not when it writes many lines that must be redone.

To compare with a copilot, keep the developer and issue constant. In one condition the developer receives suggestions; in another the task is delegated inside the defined enclosure. Record outcome, time, interventions and later defects. “Autonomous” then becomes an observable workflow difference.

Rejected patches are data. Classify them by understanding, navigation, implementation, testing and security to locate human intervention. If failures cluster around ambiguous requirements, improving the specification may help more than changing the model.

Deployment begins with reversible tasks and low-risk repositories. Permissions expand only after a stable acceptance record. Autonomy is not granted by brand; it is earned through accumulated evidence in the specific environment.

A bounded task ends with a patch, tests, explanation and available rollback. If any output is missing, the work remains open even when the agent declares completion. Evidence, rather than the final message, closes the assignment.

This article was produced with artificial intelligence under human editorial oversight.

Share this article

This website uses cookies to improve the browsing experience. Cookie policy.

↑↓ navigate ↵ open esc close