All writing
Published

AI

AI Workflows I Actually Use as a Senior Engineer

Experiments with agents, code review, migration support, and the places where human judgment still matters — including lessons from winning Procore's Top AI Agent hackathon.

·

8 min read

AIEngineering practiceAgents

There's a gap between AI hype and AI practice. The hype says AI will replace engineers. The practice — at least mine — is more nuanced: AI has become a genuine force multiplier for specific, well-scoped tasks, and a disappointment for others. This is an honest field report from a senior engineer who uses AI daily, led a team to win Procore's internal Top AI Agent hackathon, and still knows where to draw the line.

Where AI genuinely accelerates me

Code generation with guardrails

For well-defined, narrow tasks — a utility function, a test suite for an existing module, a repetitive refactor across files — AI-generated code is a genuine productivity win. The key word is 'narrow.' The broader the task, the more likely the output is plausible-sounding but subtly wrong. I treat AI output as a draft from a talented but junior collaborator: useful, but always reviewed.

Code review assistance

AI is excellent at catching the mechanical issues that drain human review energy: unused variables, inconsistent naming, missing error handling, accessibility gaps. I run AI-assed review on every PR before a human reviewer touches it. This means human review time is spent on architecture, business logic, and edge cases — the things humans are actually good at.

Migration and boilerplate

Large-scale migrations — framework upgrades, API transitions, pattern refactors — are where AI shines brightest. These are tasks that are conceptually simple but mechanically tedious, which is exactly the profile where AI tools excel. I've used AI-assisted workflows to migrate hundreds of files through pattern transformations that would have taken weeks manually.

The hackathon: building an agent that worked

At Procore's internal Top AI Agent hackathon, our Cairo team embedded agentic workflows into the Contracts tool. The winning insight wasn't the AI model — it was the integration. We didn't try to replace the engineer; we embedded AI where it removed friction from the existing workflow.

The agent could analyze a contract document, extract structured data, flag anomalies, and pre-fill form fields — turning a tedious manual process into a review-and-confirm flow. The AI handled extraction and pattern matching; the human handled judgment and exceptions. That division of labor is the template I now use for all AI feature work.

Where human judgment still wins

  • Architecture decisions: AI can enumerate options, but weighing trade-offs against team context, business constraints, and long-term direction requires a human.
  • Debugging novel issues: AI is great at common bugs, but for production incidents with no precedent, human reasoning and system knowledge are irreplaceable.
  • Stakeholder communication: translating technical constraints into business language and negotiating scope is inherently human.
  • Code review at the design level: does this abstraction make sense? Is this the right boundary? AI sees patterns; humans see purpose.

Practical workflows I recommend

If you're a senior engineer wondering how to integrate AI into your daily practice without falling into the hype trap, here's what works for me:

  • Use AI for the first draft of anything mechanical — tests, boilerplate, documentation scaffolds. Then edit aggressively.
  • Run AI-assisted code review as a pre-filter, not a replacement for human review.
  • For migrations, build pattern-based prompts with clear input/output examples and validate on a small batch before running at scale.
  • Treat every AI output as untrusted by default. Review for correctness, security, and performance — not just whether it 'looks right.'
  • Keep your fundamentals sharp. The better you understand the code, the more leverage you get from AI tools — and the faster you spot when they're wrong.

AI doesn't replace the engineer. It raises the floor on the first draft and lets you spend your time on the parts that actually require judgment.

The honest takeaway

AI has made me a faster engineer, not a lesser one. The tasks I offload to AI are the ones that used to eat my afternoons — and the time I've reclaimed goes into the work that actually moves the product forward: architecture, mentoring, and the hard problems that no model can solve for me. That's the honest, unglamorous, and genuinely exciting reality of AI in engineering today.


Next

Preparing Frontend Ecosystems for Compliance: A FedRAMP Playbook


  • Home
  • Writing
  • Lab
  • Resume
  • GitHub
  • LinkedIn
  • X
  • ahmed@aashrafh.me

Open to relocation for Senior+/Lead opportunities

© Ahmed Ashraf