AI Knowledge · Case study 07 · Agentic development

Building machine learning models with Claude Code

I use Claude Code every day. This page shows what it does at each step and what I stay responsible for.

Why I use it

I use Claude Code every day. It works inside my files and command line. It reads the data, writes and runs scripts, checks its own results and keeps going through multi-step work. My part is pointing it at the right business problem and judging what comes back. That’s what lets me build the thing I’m proposing instead of only describing it.

With it, I can go from a business question to a tested, documented model in one working session. A second agent reviews every line of code, every project is documented in Linear, Obsidian and GitHub, and I own the judgment, the validation and the sign-off.

Who does what

StageWhat Claude Code doesWhat I own
1. Frame the decisionDrafts the problem statement, success criterion and cost of errors from my briefThe decision, the metric and the threshold
2. Prepare the dataProfiles the data, flags missing values, outliers and leakage, and writes the cleaning codeImputation and exclusion rules, data access and privacy
3. Build and compareTrains a baseline and challengers, tunes with cross-validation and compares them on AUC or RMSEModel choice against the cost of errors, and a bias review of the features
4. ExplainProduces feature attribution, ROC and diagnostic charts, and plain-language findingsConfirming the interpretation with the business owner
5. DeployWraps the model in a Streamlit app or a scheduled script and writes testsRelease approval, monitoring and retraining triggers
6. ReviewA separate AI agent audits and reviews all of the code before anything is usedActing on what the review finds, and final approval
7. DocumentWrites up assumptions, limits and handover notes in Linear, Obsidian and GitHubSign-off for governance and independent validation

Every case study here follows that order: the business question first, the bar set before training, several models against a baseline, and the metric matched to the cost of being wrong.

A second agent checks the work

The agent that wrote the code never gets the final word on it. A separate AI reviewer reads what was built and tests it against what was asked for. Anything that looks wrong gets flagged before a team ever sees it.

Every project is documented

I document every project somewhere other people can find it and pick it up. Each tool has one job:

  • Linear. The project itself: scope, milestones, owners, status and action items, connected to our engineering team.
  • Obsidian. The knowledge behind it: notes, decisions, assumptions and the reasoning for why it was built the way it was.
  • GitHub. The code and its full history, so every change is tracked and anyone can review it or roll it back.

With this many projects running, I’d lose track fast without it.

Where it fits in an AI program

The same workflow builds scoring models for an AI project intake queue, risk and propensity models, anomaly detection on operational data, search across policy documents, and internal dashboards. Each one replaces a manual review or a slow handoff, and I can prototype it in days. Portfolio owners get a working tool early, and engineering saves its time for production. Once a workflow works, it goes into my Claude skills library so the next person can reuse it.

The guardrails

  • Validation. Every model gets checked on held-out data against a bar set before training.
  • Review. An agentic reviewer audits and reviews all code, and it’s tested before anyone uses it.
  • Version control. Code lives in GitHub, the project lives in Linear and the documentation lives in Obsidian, so anyone on the team can pick it up.
  • Data. Sensitive data stays in approved environments.
  • Labels. Prototypes stay labeled as prototypes until they pass the same validation and change control as any model that influences a decision.
  • Documentation. Assumptions, limits and bias exposure get written down and reviewed with risk and compliance partners.
More case studies

Keep reading

Back to AI Knowledge

Résumé Download PDF
Résumé, page 1 of 2 Résumé, page 2 of 2