← All posts

AI Coding Workflows in Practice

Over the past year, I have built a mix of full-stack web apps (React, Flask, PostgreSQL), internal tooling, and standalone prototypes using almost every major AI coding workflow: inline IDE assistants like GitHub Copilot, terminal-first agents like Gemini CLI, and Generative UI workflows.

Each of them shines in a completely different part of the software lifecycle. Treating them as interchangeable is where frustration starts.

1. Inline Autocomplete (GitHub Copilot): Best for Momentum

When you already know the architecture—say, you are writing a Flask route, a SQLAlchemy model, or a React component with a clear props interface—inline autocomplete is still unbeatable for raw typing speed.

Where it excels:

  • Boilerplate CRUD endpoints and Pydantic/marshmallow schemas.
  • Repetitive unit tests once you write the first test case to establish the pattern.
  • SQL queries when your schema is open in an adjacent tab.

Where it struggles:

  • Multi-file refactors where a change in a PostgreSQL migration ripples through the Flask API and into three React hooks.
  • Catching subtle state bugs in React useEffect dependency arrays—it will happily autocomplete a plausible-looking bug.

2. Terminal Agents (Gemini CLI): Best for Whole-Repo Context

Moving from an IDE sidebar to a CLI agent changes how you work. Instead of pasting snippets back and forth, the agent can inspect your directory tree, read your requirements.txt and package.json, run pytest or npm run build, see the exact stack trace, and iterate.

Where it excels:

  • Scaffolding a new feature across both backend (Flask/PostgreSQL) and frontend (React) in one coherent pass.
  • Debugging environment issues, Docker Compose configs, and database migrations.
  • Writing one-off data transformation scripts and immediately verifying their output.

The discipline it requires: Terminal agents move fast enough to make a mess if your prompts are vague. The workflow that actually works is:

  1. Commit a clean git checkpoint first.
  2. Ask the agent to propose a plan before editing files.
  3. Keep each pass scoped to one vertical slice (e.g., "Add the archived column, migration, API filter, and UI toggle").
  4. Review the git diff line by line before moving on.

3. Generative UI & Dynamic Views: Best for Rapid Exploration

When you are not sure what the interface should look like yet—especially for data dashboards, interactive calculators, or educational tools—Generative UI tools compress the "blank canvas to working prototype" phase from a weekend down to ten minutes.

Instead of spending an hour configuring Vite, Tailwind, and routing just to see if an idea feels good, you can generate an interactive view, click through it, realize half your assumptions were wrong, and iterate on the UX before writing production React code.

How I Combine Them Today

My day-to-day stack is no longer "pick one tool":

  • Explore & prototype with Generative UI or single-file HTML outputs to validate the interaction model.
  • Architect & implement cross-cutting changes with a CLI agent backed by strict git checkpoints.
  • Polish & extend inside the editor with inline autocomplete.

The biggest productivity unlock isn't letting AI write 100% of the code—it is matching the tool to the granularity of the problem, and keeping your tests and diffs tight enough that you always remain the engineer in charge.