Campus AI Development Agentic coding
Try

No results for “{{ query }}”. Try a shorter or more general term.

  1. {{ r.p }} {{ r.h }} {{ r.pre }}{{ r.hit }}{{ r.post }}
{{ searchCount }}Enter opens · ↑↓ move · Esc closes

The structure spectrum Approach 03

03

Agentic coding

The agent plans, edits, runs tests and iterates. The human sets goals and reviews.

Also called: Agentic engineering, coding agents

01Definition

A coding agent takes a scoped task, reads the codebase, makes multi-file changes, runs commands and tests, and iterates until it believes the task is done. The human sets the goal, supplies context and conventions, approves risky actions and reviews the diff before it merges.

02Origins

Karpathy later preferred "agentic engineering" as the framing for serious work, as distinct from vibe coding.

Agents that could edit code and run tests appeared in research first, including Princeton’s SWE-agent and Cognition’s Devin in 2024. Terminal-based agents such as Claude Code, OpenAI Codex and Gemini CLI followed in 2025 and brought the approach into everyday use.

Karpathy proposed “agentic engineering” in February 2026 and set out the idea at Sequoia’s AI Ascent in April. Others, including Simon Willison and Addy Osmani, had used the phrase earlier.

03How it works

Person AI
01Scope the task and context
02Plan, edit, run tests
03Approve risky actions
04Iterate until tests pass
05Review the diff, merge

Steps 2–4 repeat inside one task.

  1. 01Write a scoped task with context: the issue, the goal, and a conventions file in the repository (such as CLAUDE.md or AGENTS.md).
  2. 02The agent plans, reads the code, edits files and runs commands and tests.
  3. 03Permission rules decide which actions need human approval.
  4. 04The agent iterates until tests pass, or reports what it couldn’t do.
  5. 05A human reviews the diff and merges.

Typical tools: Claude Code, OpenAI Codex, Gemini CLI, Cursor agent mode, GitHub Copilot coding agent.

04Profile across the dimensions

How the work is done

Human role
Sets goals, reviews diffs
Unit of work
A task handed to an agent
Source of truth
The issue or ticket
Agent autonomy
Acts, with approval at review
Lifecycle coverage
Build, test, debug; sometimes task planning

How you know it’s right

Code read by a person
The diff, at review
Verification
Agent-run tests plus human review
Traceability
Linked issues and pull requests
Delivery automation needed
Automated tests and protected branches

Fit and risk

Upfront investment
Moderate
Durability
Maintainable with review
Data and risk ceiling
Internal data, scoped permissions

Compare all five approaches

05Lifecycle coverage

Plan
Design
Build
Test
Deploy
Operate

Solid: AI does core work · Hatched: partial or informal · Dashed: done by people. Compare all approaches

06When to use it

Good for: Multi-step internal features with a mostly clear goal

One personWorks well with tests and disciplined review of your own diffs. Reviewing your own work is the weak point.
A teamNeeds a shared conventions file (CLAUDE.md, AGENTS.md), one task per branch and peer review of agent pull requests. Review capacity becomes the bottleneck.

Less suited to

  • Goals you can’t yet state clearly
  • Codebases without tests, where “done” can’t be checked
  • Sensitive environments without sandboxing or permission controls

Signs you’ve outgrown it

  • Diffs are too large to review properly
  • Several people or agents work on the same system
  • Requirements drift from one task to the next

07Development environment

Where it runs: A terminal or editor agent (Claude Code, Codex, Cursor) working in a repository with tests.

Isolation
A container, cloud dev environment or separate branch per task
Permissions
Allow, ask and deny rules for commands; no production credentials; limited network access
Audit
Logs of agent actions
On campus
HPC clusters with agents as installed software (Utah, USC); cloud dev environments run by central IT

Compare environments across approaches

08Minimum controls

  • A human reviews every diff before merge
  • Version control and automated tests
  • A separate development environment with scoped credentials

Risks

  • Destructive actions: deleting files or running commands on shared systems.
  • Prompt injection: instructions hidden in files, issues or web pages the agent reads.
  • Credential exposure: agents reading or echoing secrets.
  • Review bottleneck: agents produce changes faster than people can review them.

09Enforcing the rules

Instructions make violations rare. Enforced checks make them close to impossible. Policy written into the agent’s instructions is advisory; nothing forces a session to follow it. Any rule that must always hold, such as keeping regulated data out of logs or never touching production credentials, needs a check that runs on every action and blocks it, set centrally where individual builders can’t switch it off.

Think in guides and sensors. A useful way to plan these controls: guides steer the agent before it acts (instructions, a security rules file, templates), and sensors check its output afterwards (tests, linters, secret and vulnerability scans). Each can be deterministic or AI-judged. Put the rules you can’t afford to break in deterministic sensors, because a guide can be argued around. In one team’s project, the AI suggested making a storage bucket public and giving a service account far broader rights than needed; a person caught both, but a scan should have (Koul et al., 2026).

The agent can’t approve its own work. Separation of duties survives automation: whatever the agent writes reaches the main code only through review and a named human approver. Let autonomy rise by environment. In a test environment the agent can deploy freely; in production it prepares the release and a named person authorizes it.

Keep a short project file the agent reads every session. It holds the build and test commands, the conventions that matter and the mistakes the agent keeps making. When the agent makes the same mistake twice, the fix goes in the file. Keep it under a page and in version control. It doubles as the handoff note a successor needs, which reduces orphaned tools.

The agent sees only what its user may see. Agents work better with context such as tickets, documentation and past decisions, but connecting that context must respect existing permissions. Enforce access where the data lives, so an agent acting for a person can reach exactly what that person could, and no student or personnel record more. See data levels.

Adapted from two vendor practitioner guides: the AI-native SDLC playbook and the AI SDLC transformation playbook.

10On campus

11Sources

  1. Yang et al., “SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering,” 2024
  2. Anthropic, “Claude Code: Best practices for agentic coding,” 2025
  3. Karpathy on “agentic engineering,” Feb. 2026, and Sequoia AI Ascent talk, Apr. 2026
  4. USC CARC, “AI Coding Agents” user guide, 2026

Asynchronous agents

Assign an issue, get a pull request back

Background agents such as GitHub Copilot coding agent, Claude Code on the web and Codex work without a live session. Someone assigns an issue, the agent works in a cloud sandbox, and a pull request arrives later. The issue tracker becomes the interface, and review becomes the main human job.

  1. 01Write the issue as a specThe issue is the whole brief. State the goal, the acceptance checks and what is out of scope. Vague tickets come back as confident, wrong pull requests.
  2. 02Plan for review as the bottleneckAgents open pull requests faster than a team can read them. Cap open agent PRs per reviewer, and close what nobody has time to understand.
  3. 03Start with routine workIn 7,156 agent pull requests, 82% of documentation changes were accepted, against 66% of new features. Docs, tests, CI fixes and dependency updates are safer first assignments. [cite]
  4. 04Keep the same credential rulesThe sandbox gets scoped, revocable tokens and no production access. The agent proposes; a person merges.

Across more than 456,000 agent pull requests on GitHub, agents submitted quickly but were accepted less often than people, which the authors call a trust and utility gap. [cite]