Becoming an AI engineer: a portfolio sprint
For engineers
A portfolio project that shows agent understanding, PII-safe pipelines, docs and evals, built the way hiring managers read it.
A portfolio that gets an AI engineering interview shows one small system that behaves like production: a scoped agent, personal data kept out of the model, docs that match the code, and an eval that says whether it works.
The case
Dana Okafor is a backend engineer with five years of experience. In December 2026 she decides to apply for AI engineer roles. Her CV lists Node, Postgres and a payments service. It says nothing a hiring manager can check about language models. She gives herself a six-week sprint and one project: TicketLens, a support-ticket triage agent for a fictional online shop. It reads a ticket, looks up the order, labels the issue, drafts a reply and escalates what it should not handle. The repository is public, and a short demo runs from the README.
Five skills decide whether this project reads as evidence or as decoration.
Pick the role before you pick the project (career-ai-engineer)
Job titles overlap, so Dana reads the duties in ten postings, not the titles. The roles she wants build features on hosted model APIs: retrieval, tool calls, evals and cost control. Training new models is a different job. Her portfolio should show what those postings list, and her engineering past should be the strength she leans on: reliable services, tests, and shipping. A hiring manager skims. The first screen of the repository should show what the system does, a live demo and a measured result.
Build a real agent, and call it what it is (agent-what)
An agent is a model that chooses tool calls, a loop that feeds results back, and an environment it can read and change. TicketLens has four tools: read_ticket, search_orders, draft_reply and escalate. It has no tool that sends email or issues refunds. That is a deliberate autonomy level: it suggests, and a person sends. Dana puts a step cap in the loop and an escalation rule for when the cap is hit. If her design were a fixed script with a model filling in a name, she would call it a workflow. Calling a workflow an agent is the first thing a careful interviewer will probe.
Keep personal data out of the pipeline (privacy-pii-pipelines)
Tickets hold names, emails, phone numbers and addresses. Dana builds the prompt from an allowlist of fields: order id, product, issue text. She redacts what is left in free text with a detector, replaces names with reversible tokens and restores them in the draft. She knows detectors miss things, such as an address written as a sentence, so she tests with seeded fake PII and scans the final answer, the logs, the traces and the vector store. Every store gets a retention period and a delete-by-user path. Her README states exactly what the provider retains, copied from the provider's documentation and from her own config.
Write docs that match the code (sdlc-docs)
Dana asks a coding agent to draft the README, an architecture decision record (ADR) and a code map, and she checks each against the repository. Agents invent parameters, defaults and benchmark rationale that never existed. The ADR records why she chose a human-sends design, with the options she really weighed. A CI step runs the commands the README documents, so a renamed script fails the build instead of misleading a reader.
Measure it (evals-why)
Five manual tries in a playground prove little, because model output varies from run to run. Dana writes twenty real-looking tickets, including angry customers, refund edge cases, a ticket with PII and a non-English message. Each has a pass or fail rule: correct label, no invented order facts, reply under 120 words. She runs each case several times and reports a pass rate with the number of runs. When she changes the prompt, she reruns the set and reports the change honestly, including cases that got worse.
What goes wrong
- Claims without evidence. A bullet that says "improved resolution by 43%" with no data behind it ends the interview.
- Agent washing. A workflow labelled an agent signals a reader who does not know the difference.
- Leaks nobody tested. The final answer is clean, but the trace holds a customer's email for 90 days.
- Docs written by the agent and never checked. One wrong command in the README undermines every other claim.
- One-shot evals. A single good run is reported as a pass rate.
The result
At the end of six weeks Dana has a repository where every claim has an artefact behind it: a design, a privacy note, a test, a doc and a score. Each one maps to a line in a job posting, and she can explain each in an interview.
Steps
Choose the role and scope the project
Read ten postings and write down the duties, not the titles. Pick one project that exercises the duties that repeat: model API calls, tools, evals and cost. Write the one-line pitch and the results you will report before you write code.
Six-week sprint plan Goal: A public repository an AI engineering hiring manager can verify in five minutes
- Week 1: read ten postings, list repeated duties, fix the scope and the pitch
- Week 2: build the agent loop with four tools and a step cap
- Week 3: add the prompt allowlist, redaction and retention rules
- Week 4: write the first twenty eval cases and a baseline score
- Week 5: generate docs with an agent, then check each claim against the code
- Week 6: record the demo, write the results section, rerun the evals and publish
Design the agent and set its autonomy
Name the model, the tools, the loop and the environment. Give the agent only the tools the task needs. TicketLens can read and draft but not send, so its worst action is a bad draft that a person catches. Add a step cap and an escalation path.
TicketLens parts Part TicketLens Model A hosted model chosen by config, so it can be swapped Tools read_ticket, search_orders, draft_reply, escalate Loop Up to 6 steps, then escalate to a person Environment Read-only orders database, a drafts table, no outbound email Keep personal data out of prompts, logs and stores
Build the prompt from a field allowlist, redact free text, and list every store the data can reach. Set a retention period and a deletion path for each one. Add a test with seeded fake PII that scans the answer, the logs, the traces and the vector store.
Write the README, ADR and code map, then check them
Let an agent draft the docs in the same pull request as the code. Then verify every command, default and rationale against the repository. Add a CI step that runs the commands the README documents.
Build the eval and report it honestly
Write about twenty cases from realistic tickets, each with a pass or fail rule. Run each case several times, report the pass rate with the run count, and keep a short list of what still fails. Put the score and the date in the README.
Skills this scenario uses
Where to study
- Building effective agents (Anthropic) (opens in a new tab)ArticleFree
Separates workflows from agents and explains when each is the right design.
- Microsoft Presidio: PII detection and anonymization (opens in a new tab)ToolFree
Open-source detectors and anonymizers for PII in text, with their stated limits.
- LLM02:2025 Sensitive Information Disclosure (OWASP GenAI) (opens in a new tab)StandardFree
How personal data leaks through prompts, outputs and logs, and the standard mitigations.
- Architectural Decision Records (adr.github.io) (opens in a new tab)DocsFree
What an ADR contains and templates to start from.
- Docs as Code (Write the Docs) (opens in a new tab)ArticleFree
Keeping docs in the repository and checking them in the same review as the code.
- Develop test cases (Claude docs) (opens in a new tab)DocsFree
How to define success criteria and build test cases for an LLM feature.
- Your AI product needs evals (Hamel Husain) (opens in a new tab)ArticleFree
A practitioner's path from manual checks to a repeatable eval for an LLM product.
- The Rise of the AI Engineer (Latent Space) (opens in a new tab)ArticleFree
The essay that popularised the AI engineer role and how it differs from ML research roles.