On this page11
Part of AI engineering, intelligent automation and production systems. By Mohammad Javad Dastouri, full-stack and AI engineer.
I use modern AI development tools every day. The goal is not more code faster. It is maintainable software and working solutions, delivered efficiently.
- lines of PHP in one agent-built platform
- 172,000
- automatic checks on it
- 1,280+
- written rules the agents follow
- 39
At a glance
- Tools
- Claude Code and OpenAI Codex, in the terminal
- Methods
- Prompt engineering, context engineering and context prompting
- Uses
- Agent-assisted development, debugging, refactoring and rapid prototyping
- What stays with me
- Architecture, validation, security and production deployment
- Tools
- Claude Code and OpenAI Codex, in the terminal
- Methods
- Prompt engineering, context engineering and context prompting
- Uses
- Agent-assisted development, debugging, refactoring and rapid prototyping
- What stays with me
- Architecture, validation, security and production deployment
How I work with coding agents, step by step
Write the context first: Rules, architecture and constraints are written down before the agent starts.
Give a narrow task: One clear change at a time, with a definition of done.
Review the result: I read what the agent changed and why, as I would a colleague's work.
Test and validate: Automatic tests and real requests, not the agent's own claim that it works.
Check security: Inputs, access and secrets are checked before anything ships.
Deploy through gates: The same release gates as hand-written code.
Iterate: Short cycles, so feedback reaches the next change quickly.
Write the context first: Rules, architecture and constraints are written down before the agent starts.
Give a narrow task: One clear change at a time, with a definition of done.
Review the result: I read what the agent changed and why, as I would a colleague's work.
Test and validate: Automatic tests and real requests, not the agent's own claim that it works.
Check security: Inputs, access and secrets are checked before anything ships.
Deploy through gates: The same release gates as hand-written code.
Iterate: Short cycles, so feedback reaches the next change quickly.
Who does what
- What the agents do
- Draft code, tests and audits, working to rules I wrote down
- What I do
- Product decisions, architecture, the rules themselves, review of the results, and every order to release
- What catches mistakes
- Automatic checks, real installs and separate read-only reviewers
- What the agents do
- Draft code, tests and audits, working to rules I wrote down
- What I do
- Product decisions, architecture, the rules themselves, review of the results, and every order to release
- What catches mistakes
- Automatic checks, real installs and separate read-only reviewers
What this looks like at scale
The TFI PHP App, the platform this site runs on, was built with AI coding agents that I directed and audited. It is about 172,000 lines of PHP with 869 classes and 279 database tables, and it serves more than 22 websites. More than 1,280 automatic checks stand between an agent's change and a live site. See the platform.
The audit loop, step by step
Prepare: An agent drafts from my own sources.
Refine: A script refuses any number that is not in the source and warns about new names.
Audit: Separate agents check the live page for content, usability, trust and accessibility.
Fix: I correct the work and publish it.
Re-test: A flag closes only when the auditor shows the new evidence.
Prepare: An agent drafts from my own sources.
Refine: A script refuses any number that is not in the source and warns about new names.
Audit: Separate agents check the live page for content, usability, trust and accessibility.
Fix: I correct the work and publish it.
Re-test: A flag closes only when the auditor shows the new evidence.
What the audits caught
A page claimed two equal payments on the same day would not match. The audit added the points and showed they reach the threshold exactly, so I corrected the claim.
A caption said all visitor data was hidden, but one column of the screenshot was still readable. I masked it again.
A page claimed two equal payments on the same day would not match. The audit added the points and showed they reach the threshold exactly, so I corrected the claim.
A caption said all visitor data was hidden, but one column of the screenshot was still readable. I masked it again.
Every mistake becomes a rule
Each mistake I correct becomes a written rule the agents work from; there are 39 so far. One of them: nothing may report success until the result has been read back.
Large backlogs without lower quality
Coding agents make a large backlog move faster, and the gates keep the quality the same. The TFI PHP App has shipped 193 releases since 5 October 2026, gated by more than 1,280 automatic checks.
How bulk orders work, step by step.
Frequently asked questions
Is AI-written code safe to ship?
Only after the same review, tests, security checks and release gates as any other code. The agent's own report is never the proof.
Who owns the architecture?
I do. Agents work inside rules and an architecture I set, and every release is my decision.
Can you set this up for our team?
Yes: the written context, the narrow tasks, the review habits and the automatic checks around them.
Related
TFI PHP App
A full website platform, built with agents I directed and audited.
Agents that audit and refine
Prepare, refine, audit, fix and re-test.
Want AI to speed up your team without losing quality?
I can set up the workflow and the checks around it. Next: the gates that make AI safe for production.
- Section
- Services
- Reading time
- 4 min read
Hiring for this kind of work?
Tell me about the role and I will reply by email.
Discuss a role with me
