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.
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.
Overview
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.
A prompt to start from
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.
Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Source published
- 2026-02-10
- Added to Agentic Feats
- 2026-10-13
- Pick
- No
- Markdown copy
- /c/portfolio-optimization-plan-from-brokerage-csvs-claude-code.md
More in finance and admin
23 featsResultAfter the CPA amended and fixed the returns, the author got back over $100k in taxes.
ResultIt caught a one-day error in the deposit date, then also built a packing list from a two-line factory message and drafted the client email.
ResultAfter a few months of iterations, the author has a working assistant, open sourced so others can have their AI configure it for their needs.