Completion vs agent

Code completion answers "how do I write this line". You are still driving; the AI nudges the wheel.

A coding agent answers "how do I finish this task". It opens files, follows call chains, edits four places, runs the tests, reads the failure and tries again. You move from writing code to specifying and reviewing it.

CompletionAgent
InputContext near the cursorWhole repo plus a task description
OutputA suggested snippetMulti-file diff plus test results
Your roleWrite, assistedDefine, delegate, review
Time scaleSecondsMinutes to tens of minutes
Main riskIrrelevant suggestionWrong direction, many files changed
The mental shift An agent is not a smarter autocomplete. It is a new colleague who can execute. Brief it the way you would brief a colleague: context, acceptance criteria, boundaries — not "optimise this".

Four tools, real differences

Claude Code Docs

A terminal-based agent: give it a repository and it works inside it. Strong at understanding a codebase in long context and refactoring across files — it follows the call chain to the real source of a problem, then runs the tests to verify. Extendable via MCP and custom instructions.

Subscription / usage Requires Node · check current pricing

Codex Repository

OpenAI's coding agent, available as a CLI and as a cloud service. The cloud form is about delegation: hand off several tasks in parallel, get reviewable changes or pull requests back. Good when you have a backlog of small, independent jobs.

Subscription / usage Cloud needs repo access · check current pricing

WorkBuddy Website

A desktop assistant that does more than code: local files, documents, spreadsheets, plus repositories and shell commands. Its differentiator is Skills and MCP — you can package a team workflow into a reusable capability.

Free tier Desktop app · check current pricing

Cursor / GitHub Copilot

Inside the editor, with the most polished completion experience and their own agent modes. Best for the tight loop of change-a-line, glance, continue — not for outsourcing a whole task.

Subscription Per seat · check current pricing
ToolShapeBest forPoor fit
Claude CodeTerminalCross-file refactors, hard bugs, testsOne-line edits
CodexCLI / cloudParallel backlog work, delegated tasksExploratory pair-editing
WorkBuddyDesktopCode plus docs, Skill/MCP workflowsPure keyboard-speed completion
Cursor / CopilotEditorDay-to-day editingUnattended long runs

A full bug-fix workflow

Describe symptoms, not solutions

What you did, what you expected, what happened, the exact error. If you prescribe the fix, it will skip diagnosis.

Make it read first

"Locate the cause and propose two options. Do not edit anything yet." Cheap to read, expensive to undo.

Approve a direction

You decide which option fits the project. Any change touching data structures gets reviewed before code is written.

One step at a time

"Change the parser only; we will handle callers after tests pass." Ten files at once means you cannot tell what broke.

Let it verify itself

"Run the tests, paste failures, keep going until green." This is the real advantage over completion tools — it can see the consequences.

Read the diff line by line

Watch for deleted boundary checks, altered error handling, new dependencies, and unrelated reformatting.

Make it write the commit

Conventional Commits message plus a PR description covering what, why and how it was verified.

Habits that reduce rework

  • Write the project rules down. Style, structure, banned libraries — put them in a file the agent reads (such as CLAUDE.md or AGENTS.md). Better than repeating yourself daily.
  • Read before write. "Read these three files and describe the error-handling convention. Wait for my confirmation."
  • Let tests be the spec. Projects with tests succeed noticeably more often, because the agent can check itself. No tests? Ask it to write them first.
  • One task per session. Mixing a refactor with a bug fix contaminates context.
  • Ask what it is unsure about. "Which part are you least confident in?" surfaces the parts you must verify.
Related If you re-explain the same release checklist every week, turn it into a Skill.

Permissions and safety

No write access to production Databases, servers, payment configuration — read-only or fully isolated. An agent does not hesitate the way a human does.
Secrets never enter the prompt Do not paste .env contents. Inject via environment or a secret manager, and tell the agent not to read those files.
Sandbox auto-execution Confine the working directory to the project, ideally inside a container or VM. Trial a new agent on a repository you do not care about.
Review every command Especially rm -rf, git reset --hard, anything touching Docker, or global configuration.

When not to use one

  • The change is one or two lines — describing it takes longer than typing it.
  • You cannot read the code it touches — if it is wrong, you will not notice.
  • The requirement is still fuzzy — the agent will scale your vague idea into a large, wrong implementation.
  • Security-critical logic — auth, payments, crypto. Human review, line by line.
Next Want the agent to query your database or drive a browser? That needs MCP.