How is an AI coding agent different from autocomplete?
Autocomplete predicts a likely next token or code fragment while a developer is typing. An agent can work toward a broader goal across multiple files,…
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 913–924 of 3610 questions
Autocomplete predicts a likely next token or code fragment while a developer is typing. An agent can work toward a broader goal across multiple files,…
Good candidates include focused bug fixes, adding tests, explaining unfamiliar code, small refactors, documentation updates, and implementing well-def…
A useful prompt explains the goal, relevant context, constraints, acceptance criteria, and verification steps. Mention files or modules when known, re…
Provide the relevant repository or workspace, point to entry files and related tests, and explain conventions that are not obvious from code. Keep con…
Acceptance criteria are observable conditions that determine whether the task is complete. They should cover expected behavior, error cases, compatibi…
Review the diff as you would review a colleague's contribution: check correctness, security, maintainability, consistency with project patterns, and u…
Ask it to trace a request or data flow, identify important modules, explain dependencies, and cite file paths or symbols for each claim. Validate the…
Codex can draft tests based on existing test frameworks and nearby conventions. The developer should confirm that tests assert meaningful behavior rat…
Treat compilation failure as diagnostic feedback. Capture the exact error, identify the affected file and line, ask for a minimal correction, and reru…
AI-generated code may be syntactically valid but logically wrong, rely on outdated APIs, omit edge cases, introduce security weaknesses, or misunderst…
Point to formatter, linter, analyzer, naming conventions, architecture rules, and representative files. Ask it to follow existing patterns rather than…
It can draft API descriptions, README updates, comments for non-obvious logic, migration notes, and examples based on code. Documentation must be chec…