AgentenCode · Field guide

Coding agents: How AI develops software autonomously

Compare Codex, Claude Code, Cursor and Copilot. Learn a practical workflow, permissions, testing and release approvals.

AgentenCode Editorial · November 26, 2026

Coding agents: How AI develops software autonomously
Original editorial illustration by AgentenCode.

Coding agents are AI systems that do more than suggest individual lines of code. They can work through a development goal over several steps: inspecting a repository, locating faults, changing files, running tests and preparing changes for review. This moves part of the developer's work from writing each line to defining goals, reviewing changes and taking responsibility for results. This guide explains the workflow, compares important product families and shows how to introduce coding agents without weakening the controls that make software development dependable.

Key takeaways

A coding agent is not an independently accountable software engineer. Its practical autonomy depends on the execution environment, tools, permissions and approval policies available to it. An agent may spend time on a task without solving it. The important outcome is not a persuasive status message but a verifiable patch meeting the agreed requirements. A passing test run reduces uncertainty; it does not prove complete safety or absence of defects.

1. From code assistant to action-oriented system

A traditional editor assistant completes a line or explains selected code. A coding agent instead receives a goal and operates in an environment where it can gather information and change state. For a failing login, for example, it may follow a request through several modules, read tests and propose a narrow correction. It may then run a test, interpret the output and revise the patch. Whether those actions are possible depends on the actual environment, not merely on the model's advertised capabilities.

The central distinction is the combination of model and agent harness. The model interprets the task, while the harness manages tools, session state, permissions and feedback. A terminal command is an actual operation within a particular environment rather than a textual suggestion. An environment without the required libraries or test runners prevents full verification, even when generated code looks convincing.

OpenAI's description of Codex as a platform illustrates this separation. Our harness engineering guide covers the wider runtime architecture in more depth.

DimensionTraditional assistantCoding agent
TaskCompletion or explanationMulti-step engineering goal
ContextSelection and open filesRepository, documentation, tests and tools
ActionsSuggestions and some editsReading, editing, commands and tests subject to permissions
FeedbackDeveloper acts on suggestionAgent may evaluate output and iterate
AccountabilityHumanHuman or responsible organization

2. How the workflow operates

A controlled coding agent workflow
A controlled coding agent workflow · AgentenCode

A reliable workflow begins with a precise assignment. Instead of asking to make a checkout better, define its expected behavior, constraints and verification method. The agent can inspect the code, identify relevant modules and plan a change. For work spanning several components, requiring a short plan before editing can reduce the likelihood of an unnecessarily broad change. The plan is provisional: actual observations may require it to be revised.

During implementation, the agent reads the relevant files and creates the smallest practical patch. Tests provide concrete feedback about syntax, mistaken assumptions and regressions. When a test fails, the agent may revise its hypothesis, but it should not be allowed to retry indefinitely. An iteration or time budget prevents a small assignment from becoming an open-ended project. Changes outside the original scope should be rejected or considered separately.

At handover, the relevant artifacts are the diff, the checks actually executed, known limitations and unresolved questions. A human or an independent rule-based approval process decides whether the change may be merged and deployed. If work is interrupted, preserve the current state rather than claiming success. Durable execution and checkpoints become particularly important for longer-running work.

3. Comparing Codex, Claude Code, Cursor and GitHub Copilot

These four product families address agentic coding but differ in their interfaces, execution environments and relationship to existing engineering processes. This comparison describes documented architectures, not measured product performance. Capabilities may vary by interface, version, contract and organizational configuration. A feature documented for a cloud agent should not automatically be assumed available in a local editor integration.

SystemCommon entry pointWhat to verify
OpenAI CodexApp, CLI or editor with an agent harnessSandbox, approved commands, working directory, model access
Claude CodeTerminal-based project work and other interfacesPermission rules, configuration sources and exception paths
CursorEditor agents and cloud agentsRepository connection, isolated VM, secrets and network access
GitHub CopilotDevelopment workflow and GitHub agentsBranch, pull request and firewall policies

The Codex learning resources describe several development surfaces. Anthropic documents Claude Code settings and permissions. Cursor describes an isolated virtual machine in its cloud agent capabilities. GitHub explains how to delegate tasks to Copilot agents and review their results.

The choice for a team is often about integration rather than selecting the supposedly smartest model. A team with a centralized review process needs an agent that transfers its changes into that process in a controlled way. For a local prototype, easy setup and a narrow working directory may matter more. Cloud environments may make parallel work easier, but require explicit decisions about data and permissions. Switching products does not repair ambiguous requirements, unreliable builds or weak approval policies.

4. Worked example: A broken export

Imagine a company with an application exporting orders to CSV. Certain descriptions containing line breaks are interpreted incorrectly by spreadsheet software. A developer assigns the correction to a coding agent without asking it to modernize the entire data pipeline.

The agent receives a separate branch, the affected export modules and synthetic test data without real customer details. Its first task is to reproduce the input condition that triggers the failure. It then makes a narrowly scoped encoder change and adds tests covering commas, quotation marks, line breaks and unchanged ordinary inputs. It receives no production access and may not upload files externally. The assignment also specifies using the existing CSV library if that library is suitable.

A suitable task brief might read:

Investigate the CSV export failure using synthetic data. Reproduce the defect before editing. Change only the affected export logic and add regression tests. Do not change public interfaces or install dependencies without approval. Report the diff, checks actually executed and remaining risks. Do not push to the main branch or deploy.

A plausible patch is acceptable only after the new test actually fails before the correction and passes afterward. Existing relevant tests should continue to pass. The reviewer also checks whether other formats, line endings or encodings have inadvertently changed. If the agent cannot start the tests, the result must be labeled as a patch whose execution remains unverified, not completed work. This scenario is hypothetical and is not a measurement of any specific product.

5. Context and repository instructions

Coding agents need context, but not every file is equally useful. Good instructions specify the intended outcome, audience, required interfaces and definition of success. Technical project rules may be stored in documented configuration. Instructions about naming, test commands and formatting are particularly valuable when they are concrete and machine-checkable. An obsolete rule may be worse than having no rule at all.

An agent should inspect the architecture relevant to its task rather than loading an entire repository into the model context indiscriminately. A build failure must remain distinguishable from a functionally incorrect change. When documentation, implementation and tests disagree, someone needs to determine which source is authoritative. The agent should report the contradiction instead of inventing a convenient convention.

Separating trusted instructions from arbitrary content is equally important. An issue comment, an external package README or a test message should not become privileged instructions merely because of its format. A repository can contain material contributed by parties with different levels of trust. Our context engineering guide discusses how to design the information flow that supports these decisions.

6. Permissions, sandboxes and approvals

Separate responsibility boundaries from agent to production
Separate responsibility boundaries from agent to production · AgentenCode

The safe default is to grant only the access necessary for the assigned task. A local agent may run on a computer that also contains private files, credentials and unrelated projects. A cloud agent may use an isolated environment, but credentials or network connections supplied to that environment can still enable damaging actions. Execution location alone is not a security guarantee.

For write tasks, a separate branch or working tree is useful. Tests should use an independent environment and synthetic data. Credentials should be short-lived and narrowly scoped; a coding agent generally has no need for administrative production credentials. Network access, new dependency installation and broad file modifications should be restricted according to their risks. GitHub notes that its agent firewall operates inside the agent environment and has limitations.

Indirect prompt injection remains a concern even inside a repository. OWASP explains the risk for language-model applications. Robust architecture does not assume the model will recognize every malicious instruction. Independent permission enforcement and approvals limit sensitive operations even when model behavior deviates from expectations.

ActionSuggested starting policy
Read project sourceAllow, excluding sensitive locations
Edit the task branchAllow within the defined scope
Run tests with synthetic dataAllow within resource limits
New dependencies or network destinationReview and approve separately where necessary
Merge, migration or productionIndependent approval and rollback plan

7. Measuring quality instead of activity

Evidence ladder for verifiable software changes
Evidence ladder for verifiable software changes · AgentenCode

Lines written, tool calls and hours of agent activity say little about actual value. An agent may be extremely busy without solving the problem. Useful measures include the proportion of accepted changes, regressions following release, elapsed time until a verified fix and human review effort. Unnecessary changes and abandoned assignments should be included rather than silently discarded from the evaluation.

A team might select ten comparable assignments, including small defects, tests, documentation and well-scoped refactoring. Record the initial state and consistent acceptance criteria for each. Some assignments can first be completed without an agent to establish a rough baseline. Such a small sample does not support universal performance conclusions, but it can help a team understand its own process. Cost accounting should include model or subscription charges, execution infrastructure, CI and review time.

Benchmarks provide another useful perspective but cannot replace project-specific verification. A public problem set measures performance only under its defined conditions; an internal project may have very different dependencies, tests and security requirements. Our evaluation and benchmark guide discusses these methodological boundaries. Report the denominator, failed cases and assumptions as well as successful results.

8. A four-week adoption plan

In week one, define a small task class, inspect access permissions and document how changes are accepted. Week two focuses on controlled work in a separate project area. Week three investigates failed outputs, permission problems and unexpected dependencies. In week four, compare verified results with the previous workflow. Success means being able to accept changes under consistent quality requirements and with measurable effort. More commits alone do not constitute improvement.

A clear stopping rule is valuable in production teams. If the agent repeatedly produces the same failure, cannot access necessary test fixtures or requires a sensitive action outside its assignment, automated work ends. A human decides whether to rewrite the task, restrict it further or take over. This reduces both resource consumption and unnecessary review work. The exact threshold should reflect the team's risks and costs rather than a general claim made by a vendor.

Frequently asked questions

Do coding agents replace developers? They can perform many scoped engineering tasks, but domain requirements, risk decisions and accountability for production systems remain with the responsible team. Even correct code may solve the wrong problem.

Can a coding agent work without GitHub? Yes, if the tool supports a local or alternative repository environment. GitHub-centered workflows depend on the appropriate GitHub capabilities. Change storage and approval must be governed independently.

Are coding agents suitable for beginners? They can assist with small learning projects. Beginners should request explanations and understand the tests. Without a basic understanding of programming it is more difficult to recognize unsafe or functionally incorrect suggestions.

How much autonomy should an agent have? Only as much as the verifiable assignment requires. Tests and narrow file changes can be automated; irreversible changes or production access require additional controls.

How much does a coding agent cost? Costs depend on the product, model, task and environment. Total effort per accepted solution, including review and rework, is more informative than the price of an individual token.

Is a passing test run sufficient? No. It establishes that the executed tests passed, not that every requirement was tested or that the change has no security defects.

Conclusion

Coding agents are most useful when assignments can be scoped clearly, environments are reproducible and results can be verified. The strongest collaboration combines human-defined goals and boundaries with an agent exploring possible solutions within them. Good software development remains a discipline of requirements, evidence, safety and accountability. An agent can accelerate parts of that work; the team must define the conditions under which a change is considered correct.

Sources and further reading

Sources checked 26 November 2026. Comparison and worked example are editorial analysis, not independent product benchmarks.

NEWSLETTER · FREE · GERMAN EDITION

More signal. Less AI noise.

Our source-backed German-language digest of major AI developments, agent updates and knowledge articles. The weekly edition is being prepared.

Double opt-in: Subscription starts only after email confirmation. Your details are sent to Brevo when you submit.