LESSON 1

AI Coding Assistants and the Development Workflow

Understand what AI coding assistants are, where they help and fail, how to choose and configure them, and the development loop that keeps humans accountable.

Introduction

You have a plan: a backlog, a first sprint, a risk register. Now someone has to write the code. Many teams reach for an AI coding assistant at this point, and many are surprised twice: first by how much it can do, and then by how confidently it can be wrong.

This lesson builds a realistic mental model of AI coding assistants and a repeatable workflow around them. The goal is not maximum generated code. It is maximum verified progress.

Learning Objectives

  • Describe the main kinds of AI coding assistants and what each is suited for.
  • Explain, at a practical level, why assistants produce plausible but sometimes wrong code.
  • Identify tasks where AI helps most and where it is risky.
  • Evaluate and configure a tool against privacy, context, and workflow criteria.
  • Apply a development loop that keeps specification, verification, and accountability with people.

1. Kinds of AI Coding Assistants

Mode What it does Good for Main risk
Inline completion Suggests the next lines as you type Boilerplate, repetitive code, familiar patterns Accepting without reading
Chat assistant Answers questions, explains, drafts code you paste around Learning, design discussion, small functions Missing context about your codebase
In-editor agent Edits several files, runs commands with your approval Multi-file changes, refactoring, test writing Large unreviewed diffs
Autonomous or background agent Works on a task independently and proposes a change Well-specified, low-risk, easily verified tasks Wrong assumptions made silently, wide blast radius

The more autonomy, the more important the specification and the verification. Lesson 10 returns to this as a deliberate design choice.

2. A Practical Mental Model

You do not need to know how large language models are built. You need to know five practical facts:

  1. They predict plausible code, not verified code. Output reflects patterns in training data and your context, not a guarantee of correctness.
  2. They only know what is in the context. Your architecture decisions, your naming conventions, and last week’s design discussion do not exist unless you supply them or the tool retrieves them.
  3. They can invent. Non-existent functions, outdated APIs, and even non-existent packages appear in output. Treat every dependency and API call as unverified until it compiles and runs.
  4. They are non-deterministic. The same prompt can give different answers. Do not build a process that depends on identical output.
  5. They are agreeable. If you describe a wrong approach with confidence, they often elaborate it rather than challenge it. Ask explicitly for alternatives and objections.

3. Where AI Helps, and Where It Needs Care

Usually a good fit

  • Boilerplate, scaffolding, and repetitive transformations.
  • Translating between formats or languages with clear semantics.
  • Drafting tests for specified behavior.
  • Explaining unfamiliar code or error messages.
  • Proposing alternatives and enumerating edge cases.
  • Mechanical refactoring with strong tests.

Needs extra care

  • Security-sensitive code: authentication, authorization, cryptography, input handling.
  • Concurrency, transactions, and distributed behavior.
  • Performance-critical paths.
  • Anything involving money, personal data, or compliance.
  • Novel problems with little public precedent.
  • Code you could not review properly yourself.

A useful heuristic: the less you could verify the result yourself, the less you should delegate it.

4. Choosing and Configuring a Tool

Evaluate tools against criteria that matter to your project, not against demos.

Criterion Question
Data handling What is sent where? Is code retained or used for training? Is there an organizational or enterprise option?
Context Can it see the repository, the instruction file, and relevant documents? How does it choose what to include?
Verification support Can it run tests, linters, and type checks, and see the results?
Control Does it show diffs and ask before running commands or editing files? Can you scope its permissions?
Integration Does it work with your editor, terminal, and Git workflow?
Cost and limits What are the usage limits, and what happens when they are reached?
Licensing and IP What is the vendor’s position on generated-code ownership and indemnification? What does your organization require?

Before you start, decide and record:

  • Which tools are approved for which repositories and data classifications.
  • What must never be pasted (secrets, credentials, customer data, personal data).
  • Who to ask when something is unclear.

5. The Development Loop

Use the same loop for every change, whether the code is written by a person or an assistant:

1
2
3
4
5
6
1. Specify    State the goal, constraints, and acceptance criteria.
2. Plan       Agree on the approach and the smallest useful step.
3. Implement  Make one small change (with or without AI).
4. Verify     Run tests, linters, and type checks; exercise the behavior.
5. Review     Read the diff as if a colleague wrote it.
6. Commit     Save a small, well-described, reversible change.

AI can help at every step: it can challenge a specification, propose a plan, write code, suggest tests, and draft a review. But step 4 depends on real execution, and step 5 on a person who understands the system. The loop is also what makes your work resilient when the assistant is wrong, which it will be.

6. A Calibration Experiment

Your own evidence is better than anyone’s claims. Run a short experiment on your project:

  1. Pick three small tasks of different kinds, for example a pure function (parse and validate a CSV row), a database query, and a bug fix.
  2. For each, attempt it with the assistant using a clear prompt.
  3. Record: time taken, number of corrections needed, defects found later in review or testing, and whether you understood the final code.
  4. Compare with how you would expect to do it unaided.

Treat the results as a starting calibration for your team, not as a productivity measure for individuals.

7. Using AI to Evaluate Your Own Workflow

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Act as an experienced engineering lead.

Context:
- Team of [size], stack: [languages, frameworks]
- Tool(s) under consideration: [names]
- Data constraints: [what must not leave the organization]
- Our development loop: [paste]

Tasks:
1. List risks specific to our context when using AI coding assistants.
2. Suggest which task types to delegate and which to keep manual
   at first.
3. Propose three checks we should add to the loop.
4. List questions we should answer before adopting the tool.

Do not assume capabilities of specific products; mark assumptions.

8. Practical Exercise

For SignalDesk (or your project):

  1. Choose your tool(s) using the criteria above, and record the decision and its reasons (an ADR is a good home).
  2. Write a half-page “data handling rules” note: what may and may not be shared with assistants.
  3. Run the calibration experiment on three tasks and record the results.
  4. Write your team’s version of the development loop, with the specific commands you will use for Verify.
  5. Create a project workspace folder with: the decision record, the data handling note, and the calibration results.

Verification

You are ready to continue when:

  • The tool decision is recorded with reasons.
  • Data handling rules are written and understood by everyone who will use the tools.
  • You have personal evidence of where the assistant helped and where it failed.
  • The development loop includes real verification commands.

Key Takeaways

  • Assistants differ by autonomy; more autonomy demands better specifications and verification.
  • They produce plausible code, not verified code, and they can invent APIs and packages.
  • Delegate what you can verify; take extra care with security, concurrency, and compliance.
  • The specify-plan-implement-verify-review-commit loop keeps people accountable.

What’s Next?

The quality of what you get depends heavily on what you put in. Next, we look at prompting for software development: context, constraints, and the patterns that produce reviewable results.