# Tax-Loss Harvesting & Wash-Sale Checker for Stock Lots

> Find which stock and ETF lots you can sell for a loss right now without triggering a wash sale, across taxable and IRA accounts, audit past loss sales for wash sales, and see how much offsets income this year.

Tax-Loss Harvesting & Wash-Sale Checker for Stock Lots is a paid AI agent skill on Agensi by Big t, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $14.99 (one-time purchase)
- Creator: [Big t](https://www.agensi.io/creators/t-b)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/tax-loss-harvesting-wash-sale-checker-for-stock-lots
- Tags: tax-loss-harvesting, wash-sale, capital-gains, stocks, etf, taxes, investing, year-end-tax

## About this skill

**A $4.20 dividend reinvestment in your IRA can permanently erase a $1,500 loss. This catches it before you sell.**

**Before:** Year-end, a brokerage export full of red lots, and a vague memory of buying more of something in the IRA.

**After:** SAFE lots ranked by loss with 'don't rebuy before 2026-12-25', PARTIAL WASH lots with the exact replacement buy (including an IRA DRIP), a lot that turns long-term in 8 days, a past sale flagged WASH with the basis adjustment, and the $3,000 offset and carryforward.

Give it your open lots (symbol, account, date, shares, cost), current prices and recent trades. It finds every lot with an unrealized loss, checks the 30 days before your planned sale date for purchases of the same security in any account (including IRA and dividend reinvestments) and the window you must avoid afterward, and marks each lot SAFE, PARTIAL WASH or WASH with the allowed loss. It audits past loss sales for repurchases within 30 days and shows the basis adjustment. A summary nets short- and long-term losses against gains you've already realized, applies the $3,000 ($1,500 MFS) ordinary-income limit and shows the carryforward. You can tell it which tickers you treat as substantially identical.

### What it does
- SAFE / PARTIAL WASH / WASH per lot with allowed vs disallowed loss
- Looks back and forward 30 days across all accounts, including IRA purchases and DRIPs
- Past-sale wash audit with basis-adjustment notes
- Short vs long-term, 'turns long-term in N days' alerts
- Netting summary with the $3,000/$1,500 limit and carryforward
- Your own substantially-identical groups via --identical

### Who it's for
DIY investors with taxable brokerage accounts, especially those who also hold IRAs or use dividend reinvestment, and the people who help them at tax time.

### Limits
US federal rules only; options, short sales and spouse accounts you don't include are not seen. Uses the prices you give; it doesn't fetch quotes.

> Educational estimate, not tax, legal or financial advice. Tax rules change and depend on your situation; confirm with a qualified tax professional before acting.

### What's included
- `SKILL.md`: workflow, commands, how to explain results
- `scripts/`: the tool (standard-library Python)
- `references/`: sources
- `examples/`: sample inputs used in the demo (all made up)
- `tests/`: unit tests (Python 3.8 / 3.9 / 3.13)

Standard-library Python only. No API keys, no network calls, no installs.

## Known limitations

- US federal rules only; options, short sales and spouse accounts you don't include are not seen.
- Uses the prices you give; it doesn't fetch quotes.
- Educational estimate, not tax, legal or financial advice. Tax rules change and depend on your situation; confirm with a qualified tax professional before acting.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Tax-Loss Harvesting & Wash-Sale Checker for Stock Lots skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it connect to my brokerage?

No. Export lots and trades as CSV from your broker; nothing leaves your computer.

### Does it know that VOO and IVV are similar?

Only if you tell it with --identical. Whether two funds are substantially identical is not settled law, so the choice is yours.

### Does it handle crypto?

It treats every symbol the same; crypto wash-sale rules differ, so use it for stocks and ETFs.

### Is this tax advice?

No. It's a calculator and checklist. Confirm with a tax professional.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
