Case study: Building an agentic options trading copilot

November 2, 2026

Glowing iron condor profit and loss curve, shifting from amber to violet, with a marker on the current position, against a dark abstract background of data streams

I’m an options trader, and managing my positions is a daily job. I’ve tried a number of existing products to help manage trading, but none really worked the way I wanted. So I decided to build my own.

The result is an agentic options trading copilot that helps me manage trading campaigns, monitor positions and risk, identify opportunities, and make better-informed trading decisions.

But this project is about more than building a trading application. It illustrates two significant changes brought about by AI: entirely new capabilities that can be incorporated into software products, and a significant shift in how software is developed.

I’ll walk through the application’s architecture and capabilities, the technologies behind it, and my experience building it with AI. Along the way, I’ll share some observations about what this means for software development more broadly

The impetus

I’ve been investing and trading options for a long time. What I like about options is that the trading is based on math and probabilities, which lends itself to a mechanical style. I owe most of what I know about options to the folks at TastyLive and, more recently, LossDog (trading YouTube channel) and Grow Your Pile.

Options trading requires frequent management of positions, daily in many cases. This is time-consuming, and skipping a day can lead to losses and missed opportunities. Fortunately, a significant amount can be automated, and reasoning models can now help some with the parts that used to need my full attention.

I tried out some existing products for managing trades and tracking profits, but they just didn’t work the way I wanted, or the interface was awful. Generative AI for software development had gotten much better, so I decided to see what I could build myself. Within a day, I had something basic working that I could use to track my trading campaigns (positions that are adjusted over time following some strategy). Over time I’ve added features and made it more ‘production ready’.

Architecture diagram

The diagram shows the overall shape of the system. Read it from top to bottom: the experience tier (the web app), the intelligence tier (deterministic rules and AI), and the data platform.

Blue boxes represent traditional, deterministic code and rules, and purple boxes use AI. A fundamental design principle is that AI never owns the financial calculations or business rules. Those belong to the deterministic, testable Position Engine and Risk Alerts. The AI uses that same engine as the rest of the application, and focuses on reasoning, interpreting context, and recommendations that can’t be codified into rules.

Architecture of the options trading copilot: experience, intelligence and data platform tiers, with the intelligence tier split into deterministic rules and AI

Features / technologies mapping

The table below lists the main features and the type of technology behind each one. Rows marked ✦ use technologies that only became practical in the last few years.

Feature Type of technology Built with New?
Trade Import
broker API · CSV upload · dedup
Deterministic rules TastyTrade API, CSV importers
Fill Matching
suggests which campaign a fill closes or adjusts
Rule-based heuristics Python
Position Engine
structures · campaigns · P&L · buying power
Deterministic algorithms over a domain model Python, Reg T margin rules
Market Data Service
quotes · option chains · earnings · expected move, cached
Data pipeline + caching ThetaData, Yahoo Finance, Alpha Vantage, Postgres/S3
Risk Alerts
expiry · delta · extrinsic · loss
Rule engine Python
AI Trading Assistant
chat · campaign advisor · market data, earnings and web search tools
Reasoning model + agentic tool use Claude, LangChain ✦
AI Alerts
judgment-based flags the rules can’t express
Reasoning model (non-deterministic) Claude ✦
Agentic Trade Advisor
responds to alerts, analyzes conditions, recommends trades
Autonomous agent loop Claude, LangChain ✦
AI Fill Extraction
text / screenshot → draft fills
Multimodal (vision) model + structured extraction Claude vision ✦
Advisor Personas
strategy rules written in plain English, editable by me or the AI
Natural-language configuration (the prompt is the program) Claude ✦
Research Lab
backtesting · strategies · price prediction
Classical quant + machine learning pandas, scikit-learn
Web UI
responsive, every screen
Web application stack React, TypeScript, Ant Design, FastAPI
Sign-in
password, passwordless, social, 2FA
Managed identity (OIDC) Zitadel
Observability
logs · metrics · LLM call tracing
Monitoring + LLM tracing Grafana Cloud, LangSmith
Operations
deploys · supply-chain gated builds
Cloud infrastructure + CI/CD AWS Graviton, Terraform, GitHub Actions

Products and features made possible by AI

As the table shows, several major features in this project have only become practical in the last few years. As builders, we’ve been handed entirely new categories of capabilities that can be incorporated into products:

Not only can we build significantly more per day with agentic development, but these new AI capabilities open up entirely new business opportunities: features that provide significant value and just weren’t possible or practical before.

AI evolution

As I mentioned, I undertook this project because I could use AI to accelerate its development. It wouldn’t have been practical for me to implement solo otherwise. Over the past few years, development with AI has evolved tremendously, and most of that happened while I was building this:

Stage Became practical What the AI does What the developer does
Autocomplete (GitHub Copilot) 2021-2022, before this project Suggests the next line or function while you type Writes the code, accepting or rejecting suggestions
AI edits the code directly By late 2024 Writes and changes code across multiple files from a prompt Describes the change, then reviews each edit
Coding agent (Claude Code) 2025 Reads the codebase, edits files, runs tests and commands, commits Hands off whole tasks, stays in the loop, reviews the results
Agentic development with specialized skills Late 2025 onward Does all of the above, loading packaged instructions and scripts when a task calls for them Decides what to build, sets the architecture and standards, directs the work and reviews it

Currently, I’m playing the role of product manager, architect, and team lead. I’m defining what needs to be built, making architectural decisions, breaking work into tasks, and directing AI agents to handle the implementation. I’m also reviewing their work, providing direction where needed, and ensuring everything fits together and meets the requirements. This is familiar territory from leading software development teams, but now I’m directing AI agents rather than developers.

Takeaways

Where this leaves me

I built the options trading copilot to keep up with my positions without giving up more of my day, and it’s now how I manage my trades. It’s also a solid platform for building additional features.

More broadly, we’ve entered a period where a much smaller team, potentially even one person, can build sophisticated software that previously required a larger team. At the same time, knowing what to build, how to architect it, and how to direct and validate the work remains critical.

The opportunity lies in understanding what’s now possible and knowing how to turn those capabilities into useful, reliable products.

Software development is changing rapidly; what I describe here is a point in time, and I expect how we build software to change significantly in the months and years ahead.

If you’re working on something similar, I’d like to hear about it. You can reach me on LinkedIn or by email.

Tags: aiagentic-developmentclaudeoptions-trading