Skip to the content

Lesson 280 of 296

Using AI tools at work

What you will learn

  • What AI coding tools do well and badly
  • A safe workflow for AI-written code
  • Reviewing AI code
  • Project instruction files
  • Company rules, privacy and licences
  • Talking about AI use in interviews
On this page

What AI coding tools are

AI coding tools range from autocomplete in the editor, to chat assistants, to coding agents that read your repo, edit many files, run commands and tests, and open pull requests.

What they do well:

  • Boilerplate, tests, small functions, refactors with clear rules
  • Explaining unfamiliar code or error messages
  • First drafts of documentation and scripts

What they do badly:

  • Inventing functions or library options that do not exist
  • Using old versions of APIs
  • Missing your project's rules unless told
  • Quietly changing behaviour, weakening tests to make them pass, or adding security holes

A safe workflow

  1. Plan first. Describe the task, the constraints and the done criteria. Ask for a plan before code for bigger changes.
  2. Small steps. One feature or fix at a time, in a branch.
  3. Run it. Type-check, lint and run the tests. Never trust code you have not run.
  4. Read every line. You are the author of anything you commit.
  5. Commit with a clear message and open a pull request for normal review (Lesson 273).

Reviewing AI code

Check especially:

AreaWhat to look for
CorrectnessEdge cases, empty inputs, errors, off-by-one
SecurityInput validation, auth checks, SQL injection, secrets in code (Part 20)
DependenciesDoes the package really exist? Is it the current, trusted one?
TestsDo they test real behaviour, or were they changed just to pass?
FitDoes it follow the project's patterns, naming and structure?

Project instruction files

Coding agents read instruction files in the repo to learn its rules: build and test commands, folder structure, style and what not to do. Common examples are AGENTS.md (an open format now part of the Linux Foundation's Agentic AI Foundation) and tool-specific files such as CLAUDE.md. Keep them short, specific and up to date, and review them like code.

Company rules, privacy and licences

  • Use only the AI tools your company approves. Many companies forbid pasting client code, secrets or personal data into unapproved tools.
  • Never paste API keys, passwords or customers' personal data into a prompt.
  • Check licences: generated code can resemble existing open-source code. Follow your company's policy.
  • Be honest about AI use where your company or client asks you to state it.

AI in interviews

  • Some companies allow AI tools in take-home tasks or even live interviews; many do not. Ask if the rules are not clear, and follow them exactly.
  • Even when allowed, the interviewer is testing you: explain your reasoning, check the output, and be able to change it without the tool.
  • A strong answer to "How do you use AI at work?" shows speed and judgement.

How to say it in an interview

"I use AI coding tools for boilerplate, tests, refactors and explaining unfamiliar code, but I treat the output like a pull request from a new teammate: I plan the change, work in small steps, run the type-checker, linter and tests, and read every line before committing. I look hard at security, edge cases, made-up packages and tests that were weakened. I keep an AGENTS.md or similar file with the project's rules, never paste secrets or personal data into prompts, and only use tools my company approves."

Key words

WordMeaning
Coding agentAn AI tool that edits files and runs commands in a repo
AGENTS.mdAn open format for giving coding agents project instructions
Hallucinated packageA library name the AI made up, sometimes registered by attackers
Human in the loopA person reviews or approves the AI's work
Approved toolsAI tools your company allows for work data

Now prove it

This lesson is complete when you pass the quiz and all three practice levels.