AI-assisted coding
Working with coding agents: tasks, instruction files, review and verification.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOn this page
Overview
AI-assisted coding is the everyday skill of getting useful work out of tools like Claude Code, Codex, Cursor and Copilot. It covers scoping tasks so an agent can finish them, giving it the project context it needs through files such as AGENTS.md or CLAUDE.md, and keeping it on track with plans, tests and small commits.
The other half is verification. Agent-written code needs the same review as a colleague's, plus extra care for invented APIs, skipped error handling and tests that pass for the wrong reason. Developers who do this well run the tests themselves, read the diff, and keep each change small enough to review properly.
What you will practise
- Scope tasks so an agent can finish and verify them
- Maintain an AGENTS.md or CLAUDE.md with commands that work
- Work in small, reviewable commits with tests
- Review agent-written diffs for invented APIs and weak tests
Learning paths
- AI-assisted software engineering
Learn AI-assisted software engineering on real repositories: set up coding agents, give them good instructions, review their diffs and run several in parallel.
- Rolling out coding agents to a team
Roll out coding agents to a team: shared instruction files, permissions and hooks, spec-first work, agent review in CI and vetted Agent Skills for everyone.
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.
- Agent memory and compaction in practice
Keep long Claude Code sessions accurate with compaction, CLAUDE.md, auto memory, subagents and a summarise-and-restart routine, and know what survives each.
- Claude Code hooks: run checks around every tool call
Write Claude Code PreToolUse and PostToolUse hooks that block destructive shell commands, format every file Claude edits and log each command for later audit.
- Permissions and sandboxing for coding agents
Set up Claude Code permission modes and rules, the Codex sandbox and approvals, and a dev container, so an agent can work without free rein.
- Connect MCP servers to Claude Code, Codex and Cursor
Add local and remote MCP servers to Claude Code, Codex and Cursor, choose the right scope, sign in with OAuth and check which tools actually loaded.
- 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.
- Subagents in Claude Code: delegate without losing control
Define Claude Code subagents with their own tools, model and permissions, keep noisy work out of your main context, and avoid conflicts in parallel runs.
- Your first session with Claude Code
Install it, run it in a real repository, approve its first changes, commit a reviewed edit and learn the commands you will use daily.
- CLAUDE.md and AGENTS.md: instruction files for coding agents
CLAUDE.md vs AGENTS.md: what to put in each, where Claude Code, Codex, Cursor and Copilot look for them, and how to keep one source of truth without drift.
- Your first session with the Codex CLI
Install it, choose a sandbox and approval mode, give it a well-scoped task in a repository and review its changes before you accept.
- Cursor agent basics: tasks, rules and skills
Use Cursor's agent on a real task: scope it, plan first, use checkpoints, add project rules, AGENTS.md and skills, and review every change before you keep it.
Workflow recipes
- Code review with Claude Code on every pull request
Write your checklist once, dry-run it locally, then review every pull request in GitHub Actions and post the findings.
- 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.
- Turn a Figma design into code with an agent
Connect the Figma MCP server, map the design's variables to your tokens first, build one frame, then run a visual diff and an axe check.
- Migrate a JavaScript project to TypeScript with a coding agent
allowJs first, convert files leaves first in worktree batches, then raise strictness one flag at a time.
- Test-driven development with a coding agent
Agree the seams, write one failing test, lock the tests with a hook while the agent makes it pass, then prove the test can fail.
- Translate app strings with AI and keep them consistent
A glossary per language, protected placeholders, plural and length checks in code, then human review.
- Triage production errors with an agent
AI error triage with a coding agent: read errors over a read-only Sentry MCP connection, write a triage note, reproduce in a failing test, then fix behind it.
- Audit and upgrade risky dependencies with an agent
Audit project dependencies with Trail of Bits' supply-chain-risk-auditor skill, group upgrades by risk, update one batch on a branch and prove tests pass.
- Debug a bug with an AI agent: reproduce it, then fix it
Write the bug report, have the agent reproduce it as a failing test, find the root cause, apply a small fix and prove it.
- Write code documentation from the source with an AI agent
A cited fact sheet first, docstrings with runnable examples, then proof that only docs changed and every example runs.
- Understand an unfamiliar codebase with an AI agent
Get a read-only map where every claim cites a file and line, check the citations, trace one path and test what you learned.
- Upgrade a dependency with an AI coding agent, without surprises
Get an impact list from the migration guide, bump on a branch, let the agent fix with guardrails, then compare old and new output.
- Give your coding agent current docs with Context7 or llms.txt
Stop your coding agent using outdated APIs: connect Context7 over MCP, point it at a library's llms.txt, or install a vendor skill, then check it worked.
- Fix a failing CI run with a coding agent
It reads the GitHub Actions logs, explains the cause and fixes it, with stop rules so it never loops or weakens tests.
- Write release notes from git history
Turn merged pull requests into notes users can read, with every line checked against the diff before publishing.
- Set up guardrail hooks for your coding agent
Block dangerous commands in Claude Code with PreToolUse hooks and deny rules, so the agent cannot force-push, wipe files or edit secrets. Test them first.
- Spec-driven feature build: plan, approve, implement, verify
Written spec, approved plan, small tested tasks and a final check against the spec, not vibes.
- Triage GitHub issues automatically with an agent
Label new issues, post a short summary, flag likely duplicates and suggest an owner, with narrow permissions.
- 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.
- Write unit tests for legacy code with a coding agent
An agent writes characterisation tests, you check for weak assertions and prove them with mutation testing.
- Write a useful AGENTS.md: example, template and test
An AGENTS.md example and template with build and test commands, conventions and traps, plus a before-and-after task that shows whether the file actually helps.
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.
- Code Mode: when an agent writes code to call its tools
Claude Code's experimental Code Mode has Claude write JavaScript that calls its tools. How it works and what it changes for permissions, hooks and sandboxing.
- 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.
- What is vibe coding, and when it bites
Vibe coding means building software by prompting an AI and accepting its code without reading it. Where that works, where it fails, and a test before you try.
- Agent Skills cheat sheet
Where Claude Code, Codex, Cursor, Copilot and Antigravity look for Agent Skills, the install command for each, how to invoke a skill and the size budgets.
- Claude Code vs Codex vs Cursor
One task walked through in Claude Code, Codex and Cursor, plus where each runs, how it is priced, its skills and MCP support, and who each one suits.
- MCP config cheat sheet
Where Claude Code, Codex and Cursor keep MCP server config, with copyable JSON and TOML for local and remote servers, secrets, scopes and OAuth commands.
- v0 vs Lovable vs Bolt for prototypes
One prototype brief run through v0, Lovable and Bolt: how each builds, what you pay for, how you get the code out, and what is never production-ready.
- Coding agents side by side: Claude Code, Codex and Cursor
The same task in Claude Code, Codex CLI and Cursor, in one table per topic: start, commands, instruction files, skill folders, MCP setup and permissions.
- Reviewing AI-written code: what to look for
The ways agent-written diffs fail, a practical review checklist, and how to set up the work so review stays manageable.
Tools for this skill
9 of 32 tools tagged with this skill.
AGENTS.md
Open format for instruction files that coding agents read in a repository.
Aider
Terminal pair programmer that commits each change to git.
Amp
Coding agent with a CLI, editor integrations and cloud sandboxes for long tasks.
Bolt
StackBlitz's in-browser generator that builds and runs full-stack apps in WebContainers.
Claude Code
Anthropic's agentic coding tool for the terminal, IDEs, desktop and web.
Cline
Open-source autonomous coding agent for VS Code that works with many model providers.
Codex
OpenAI's coding agent across a CLI, IDE extension and cloud tasks.
Context7
Serves current, version-specific library documentation to coding agents over MCP.
Continue
Open-source coding agent for VS Code, JetBrains and the terminal, unmaintained since 2026.
Key terms
Words you will meet while learning this, defined in the glossary.
- Agent Client Protocol (ACP)
An open protocol that standardises how code editors talk to coding agents, so a compatible agent runs in any compatible editor.
- Dev container
A container defined by a devcontainer.json file that gives a project a reproducible environment, often used to sandbox agents.
- Git worktree
An extra working directory attached to the same Git repository, with its own branch checked out, created with `git worktree add`.
- Hooks
User-defined commands that run automatically at set points in a coding agent's lifecycle, such as before a tool call or when a session ends.
- pass@k
The probability that at least one of k generated solutions passes the tests, used to score code generation and other checkable tasks.
- Vibe coding
Building software mainly by prompting an AI and accepting its code with little or no reading or review. Fine for throwaway code.