Delegating work to coding agents
Scoping tasks, briefing agents and reviewing the pull requests they send.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOverview
Delegating to a coding agent means handing over a whole task, not a single prompt, and getting back something you can accept or reject. Agents can now take an issue and return a pull request from a cloud VM while you do other work, so the hard part has moved from writing code to choosing what to hand over and how to describe it.
People who delegate well pick tasks with a clear finish line and a test that proves it, write a short brief with the goal, the constraints, the files to start from and what done looks like, and decide whether the work suits a local agent they can watch or a background agent they check later. Then they review the diff like a colleague's, send it back with specific notes, and keep a record of which kinds of task the agent finishes well.
What you will practise
- Sort a week of backlog items into delegate, pair on, and do yourself, with a reason for each
- Write a task brief with goal, constraints, starting files and a check that proves it is done
- Run the same small task through a local agent and a background agent and compare the results
- Review an agent's pull request against the brief and send it back with specific change requests
- Keep a log of delegated tasks and their outcomes, and update your AGENTS.md from what it shows
Tutorials
- Evaluate coding agents on your own repository
Run Claude Code and Codex headless against 10 closed issues from your repo, then score them with the real fix's tests and a blind review rubric.
- Run coding agents headless in CI
Run claude -p and codex exec in GitHub Actions with pinned versions, narrow permissions, scoped secrets and separate jobs for writing back to the pull request.
Workflow recipes
- Hand a GitHub issue to a background coding agent and review the PR
Write a brief it can finish, set up its environment, hand it to Copilot, Codex or Jules, then review and iterate once.
- Schedule a recurring task for a coding agent
Schedule Claude Code tasks and Codex runs: write a self-contained prompt, cut connectors and network to the minimum, test with Run now, and know how to stop it.
- Refactor in parallel with git worktrees and two agents
Use git worktrees to run Claude Code and Codex in parallel on the same refactor from one written plan, compare tests, diff size and readability, then merge one.
Articles
- Claude Code auto mode: what the classifier allows and when to turn it off
How Claude Code auto mode decides which tool calls run without a prompt, how CLAUDE.md, ask and deny rules steer it, and when plan mode or a sandbox is safer.
- Harness engineering: why the setup around a coding agent matters as much as the model
Harness engineering is designing the instructions, tests, limits and feedback loops a coding agent works in: what OpenAI reported, the critique, where to start.
Tools for this skill
Codex
OpenAI's coding agent across a CLI, IDE extension and cloud tasks.
Cursor
VS Code-based editor with agent mode, completions and Agent Skills support.
GitHub Copilot
Completions, chat and a coding agent inside GitHub and popular editors.
Jules
Google's coding agent that works in a cloud VM and opens PRs.