NT.Nirpeksh Tomar
Case study 04 / Independent work

What happens when AI agents write most of the code?

TradeLab uses a systematic-trading research problem to explore autonomous software development with independent review and strict deterministic boundaries.

My roleOperator · architect · experiment owner
ContextPersonal research / software engineering
StackPython · AI Builder/Reviewer · tests
StatusResearch-first · no live-trading claim

The problem

Generating code from a prompt is easy. Maintaining a complex codebase across many autonomous iterations is not. Agents can make locally reasonable changes that violate system invariants, lose context, inflate the apparent success of experiments or silently weaken controls.

I chose a trading research domain because it forces explicit thinking about time, causality, data quality, reproducibility and the separation of research from execution.

What I led and built

I define the architecture, objective, engineering contracts and acceptance criteria. AI coding agents carry out much of the implementation and test writing, while an independent reviewer challenges their output and requests corrections.

  • Established an agent-driven Builder → PR → Reviewer → fix/re-review workflow.
  • Use code contracts, automated tests and documented architecture decisions to keep the system coherent over iterations.
  • Separate research experiments from evidence suitable for deployment decisions.
  • Reserve consequential decisions and any trading authority to the human operator.

Key engineering decisions

Human objective→AI Builder→Independent review→Verified change

Reasoning is not execution authority

The application follows a deterministic decision path for backtests and risk evaluation. No LLM output can directly place an order.

Prevent hindsight from becoming evidence

Point-in-time data contracts limit decisions to what would have been available at that decision time. Runs and their provenance are recorded so experiments can be audited rather than cherry-picked after the fact.

Keep the human accountable

Agents implement and critique, but architectural policy, security boundaries and promotion decisions remain human-owned.

Outcome and current scope

TradeLab is an evolving personal research project. Its purpose is to explore whether autonomous agents can deliver software through repeatable engineering checks, not to claim a profitable strategy or a live trading operation.

Disclosure: The GitHub source is currently private. It is not a public open-source product, and the research should not be interpreted as investment performance.

Evidence and context

GitHub profile ↗ · TradeLab repository (private) ↗

Design rationale, code-level decisions and the autonomous review approach can be explained in a technical discussion.