Home
cd ../playbooks
FinanceIntermediate

Multi-Agent Financial Planner

Build a virtual financial advisory team with specialized agents for budgeting, retirement planning, and investment strategy that analyze your finances and create actionable plans.

15 minutes
By communitySource
#finance#retirement#budgeting#investing#agents#financial-planning#YNAB

Financial planning touches budgeting, investing, taxes, and retirement simultaneously — but you can only think about one at a time. A single advisor can't be expert in everything, and hiring multiple specialists costs thousands per year.

Who it's for: individuals creating comprehensive financial plans without expensive advisors, couples aligning on budgeting and retirement goals, small business owners separating personal and business finances, pre-retirees running retirement readiness scenarios, young professionals setting up their first investment strategy

Example

"Create a comprehensive financial plan for our household" → Multi-perspective analysis: budget agent identifies $800/month savings opportunity, retirement agent projects you're 3 years behind target, investment agent recommends portfolio rebalancing, and tax agent flags $4K in missed deductions

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

# Financial Advisory Team

## Goal
Analyze personal finances using a multi-agent advisory approach. Each agent has a specific role and philosophy. The lead advisor coordinates all agents to produce a unified financial plan.

## Directory Structure
- `data/` — Financial data files (assets.md, liabilities.md, income.md, transactions/)
- `agents/` — Agent role definitions
- `reports/` — Generated analysis reports and action plans
- `scripts/` — Helper scripts for data fetching (optional)

## Agent Roles

### Lead Advisor (Coordinator)
- Interviews the user about short-term and long-term financial goals
- Dispatches sub-agents for specific analysis tasks
- Synthesizes all agent outputs into a unified multi-phase action plan
- Generates retirement scenario modeling (when, where, lifestyle, probability)
- Produces quarterly and annual review documents

### Budget Analyst
- Analyzes gross and net income against 12-24 months of transactions
- Identifies spending patterns, subscription drift, and category anomalies
- Calculates actual savings rate including sinking funds
- Advises on optimal allocation between spending, saving, and investing
- Flags cancelled subscriptions, increasing costs, and budget leaks

### Conservative Advisor (Boglehead Philosophy)
- Recommends index-fund-based, low-cost investment strategies
- Focuses on tax-advantaged accounts (401k, IRA, HSA)
- Prioritizes pre-tax vs post-tax contribution optimization
- Models long-term compound growth scenarios
- Philosophy: "Stay the course, minimize fees, diversify broadly"

### Aggressive Advisor (Growth-Oriented)
- Provides counterarguments to the conservative advisor
- Suggests allocation for higher-risk, higher-reward positions
- Limited to a defined percentage of total portfolio (e.g., 10-20%)
- Must justify risk/reward ratio for any recommendation
- Philosophy: "Calculated risks with asymmetric upside"

## Rules
1. Never store actual account numbers, passwords, or API keys in markdown files
2. All financial figures should be realistic and based on provided data
3. Agents must cite specific data points when making recommendations
4. The aggressive advisor must always disclose risk level
5. Reports should include actionable next steps, not just analysis
6. Quarterly reviews compare actual vs planned performance

## Report Format
Each report in `reports/` should include:
- Executive summary (1 paragraph)
- Key findings by agent
- Points of agreement and disagreement between agents
- Unified recommendation with priority ranking
- Action items with specific dollar amounts and timelines
- Retirement scenario projections (if applicable)

## Commands
- "Interview me about my financial goals" — Start the lead advisor intake process
- "Analyze my spending" — Run the budget analyst on transaction data
- "Create an investment plan" — Both advisors propose competing strategies
- "Generate a quarterly review" — Full review with all agents
- "Model my retirement" — Run retirement scenarios based on current trajectory
- "What can I optimize?" — Quick scan for savings opportunities

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

This playbook creates a virtual financial advisory firm with multiple specialized agents: a budget analyst, a conservative retirement planner, an aggressive investment advisor, and a lead partner who coordinates them all. The agents analyze your financial data, debate strategies, and produce a unified action plan with quarterly check-ins. Inspired by a Reddit user who built this exact setup and connected it to their YNAB budgeting software via API.

Prerequisites

  • Claude Code installed and configured
  • Your financial data in markdown or CSV format (assets, liabilities, income, spending)
  • Optional: API access to your budgeting software (YNAB, Monarch, etc.)

Step-by-Step Setup

Step 1: Create the project structure

mkdir -p ~/financial-planner/{data,agents,reports,scripts}
cd ~/financial-planner

Step 2: Document your financial data

Create data/assets.md:

# Assets
- 401(k): $XXX,XXX
- Roth IRA: $XX,XXX
- Brokerage: $XX,XXX
- Savings: $XX,XXX
- Home equity: $XXX,XXX

Create data/liabilities.md:

# Liabilities
- Mortgage: $XXX,XXX at X.X%
- Student loans: $XX,XXX at X.X%
- Car loan: $XX,XXX at X.X%

Create data/income.md:

# Income
- Gross annual: $XXX,XXX
- Net monthly: $X,XXX
- Side income: $X,XXX/month

Step 3: Add transaction data

Export transactions from your bank or budgeting app as CSV files into data/transactions/. Claude can analyze CSV directly.

Step 4: Save the CLAUDE.md and launch

cd ~/financial-planner
claude

Try: "Interview me about my financial goals, then have the budget analyst review my spending data"

Example Usage

Start with the intake interview:

"Act as the lead advisor. Interview me about my short-term goals (1-2 years), medium-term goals (3-5 years), and retirement vision. Then dispatch the appropriate agents."

Deep spending analysis:

"Have the budget analyst review my last 12 months of transactions. Identify the top 3 areas where I'm overspending and calculate my true savings rate."

Investment strategy debate:

"Have the conservative and aggressive advisors each propose an investment allocation for my brokerage account. Then have the lead advisor synthesize their recommendations."

Retirement modeling:

"Model three retirement scenarios: retire at 55 (lean), 60 (comfortable), and 65 (generous). Factor in my current savings rate and expected market returns."

Quarterly review:

"Generate a Q1 quarterly review comparing my actual spending and investment performance against the plan from last quarter."

Tips

  • Use Obsidian for data entry: If you already use Obsidian, keep your financial data there and point Claude Code at the vault folder.
  • API integration: If you use YNAB, their API is free. Have Claude write a Python script to pull transaction summaries — this way the script is reusable without burning tokens each time.
  • Agent debate produces better plans: The value comes from agents with different philosophies challenging each other. Don't skip the aggressive advisor even if you're conservative.
  • Keep secrets out of files: Store API tokens in environment variables or a .json file you add to .gitignore. Reference them by name in your markdown docs.
  • Automate the repetitive parts: Have Claude write scripts for data fetching and transaction categorization so you can re-run them without LLM involvement.

Troubleshooting

Problem: Claude's financial advice seems generic

Solution: Provide more specific data. The more detailed your income, spending, and goal information, the more personalized the analysis. Include actual numbers, not ranges.

Problem: Transaction data is too large for context

Solution: Have Claude write a Python script that pre-processes your CSV into a spending summary by category and month. Feed the summary to the agents instead of raw transactions.

Problem: Recommendations conflict between agents

Solution: That's by design. The lead advisor's job is to synthesize competing recommendations into a balanced plan. If you want more conservative output, weight the Boglehead advisor's input higher in your prompt.

$Related Playbooks

Finance

Multi-Card Expense Tracker

Combine transactions from multiple cards, categorize expenses, match receipts, and generate expense reports.

10 minutes
Intermediate
Finance

Scientific Edgartools

Python library for accessing, analyzing, and extracting data from SEC EDGAR filings. Use when working with SEC filings, financial statements (income statement, balance sheet, cash flow), XBRL financial data, insider trading (Form 4), institutional...

10 minutes
Intermediate
Finance

Scientific Fred Economic Data

Query FRED (Federal Reserve Economic Data) API for 800,000+ economic time series from 100+ sources. Access GDP, unemployment, inflation, interest rates, exchange rates, housing, and regional data. Use for macroeconomic analysis, financial research...

5 minutes
Beginner
Finance

Scientific Hedgefundmonitor

Query the OFR (Office of Financial Research) Hedge Fund Monitor API for hedge fund data including SEC Form PF aggregated statistics, CFTC Traders in Financial Futures, FICC Sponsored Repo volumes, and FRB SCOOS dealer financing terms. Access time ...

10 minutes
Intermediate
Finance

Risk Manager

Run financial risk assessments, portfolio risk analysis, Monte Carlo simulations, VaR calculations, stress testing, and risk register management from local data.

15 minutes
Advanced
Finance

Scientific Alpha Vantage

Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income s...

5 minutes
Beginner
Finance

Scientific Denario

Multiagent AI system for scientific research assistance that automates research workflows from data analysis to publication. This skill should be used when generating research ideas from datasets, developing research methodologies, executing compu...

10 minutes
Intermediate
Finance

Scientific Usfiscaldata

Query the U.S. Treasury Fiscal Data API for federal financial data including national debt, government spending, revenue, interest rates, exchange rates, and savings bonds. Access 54 datasets and 182 data tables with no API key required. Use when ...

5 minutes
Beginner
Finance

Stock Analysis & Research

Analyze stocks with fundamental and technical analysis. Supports US, China A-shares, and Hong Kong markets. Generate investment reports with key metrics.

10 minutes
Advanced
Finance

Tax Prep Guide

A guided Q&A that assesses your tax situation and generates a personalized preparation plan with document checklists and workflow recommendations.

5 minutes
Beginner
Finance

Professional Tax Knowledge Agent

Create a searchable knowledge base from tax documents for reference during tax season.

15 minutes
Advanced
Finance

Personal Budget Analyzer

Analyze bank statements to categorize spending, identify patterns, and build a realistic budget.

5 minutes
Beginner

Browse all Finance playbooks →