---
title: "Portfolio optimization plan from brokerage CSVs"
canonical: "https://agenticfeats.com/c/portfolio-optimization-plan-from-brokerage-csvs-claude-code/"
agents: ["Claude Code"]
evidence_grade: "C"
outcome: "completed"
job_type: "Finance and Admin"
roles: ["Personal"]
source_url: "https://mattstockton.com/2026/02/10/building-a-portfolio-optimization-plan-with-claude-code.html"
source_date: "2026-02-10"
published: "2026-10-13"
updated: "2026-10-13"
---

> From Agentic Feats: sourced examples of AI agents at work. Map of the site for agents: https://agenticfeats.com/llms.txt

# Portfolio optimization plan from brokerage CSVs

Claude Code parsed the author's brokerage CSVs and notes, then built a phased portfolio optimization plan with tax analysis and fund swaps.

Result: Over several sessions it produced a phased plan with tax impact analysis, fund swaps, and before-and-after allocation grids, comparable to an advisor's plan.

## How it was set up

Claude Code (Opus 4.6) in a terminal pointed at a data folder. Inputs were brokerage CSVs, a typed notes file, a goal prompt, and a CLAUDE.md memory file.

## Worth knowing

Needed several sessions of back-and-forth, and a long hand-written goal prompt covering constraints, preferences, and strawman allocations.

## Prompt

```text
Here are my files: [brokerage CSVs and notes]. My goals: [goals]. Constraints: [accounts not to touch]. Preferences: [tax efficiency, low-fee ETFs, simplicity]. Here are my rough target allocations: [strawman]. Produce [allocation tables and a phased action plan]. Tell me if you disagree. Ask me questions exhaustively before concluding.
```

## Evidence note

Detailed first-person blog post; plan itself not published, only workflow screenshots

## Sources

- Original: https://mattstockton.com/2026/02/10/building-a-portfolio-optimization-plan-with-claude-code.html

## The receipt

- Agent: Claude Code
- Evidence: Claim (grade C, claim only)
- Outcome: Completed
- Job type: Finance and Admin
- Roles: Personal
- Source: Blog
- Published: 2026-02-10
- Added: 2026-10-13
