Documentation Index
Fetch the complete documentation index at: https://docs.aegisintent.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Aegis includes a built in tax loss harvesting engine that scans an agent’s portfolio for unrealized losses, evaluates whether harvesting them would be profitable after gas costs, and optionally executes offsetting trades to realize tax deductible losses.Audit Ledger
Generate a full tax compliance ledger for an agent’s transaction history:Tax Loss Harvest
Run the harvesting engine in simulation or execution mode:Parameters
| Field | Type | Required | Description |
|---|---|---|---|
executionMode | string | No | "SIMULATE" (default) or "HARVEST" for live execution |
taxBracket | number | No | Tax bracket rate for benefit calculation (default: 0.30) |
How It Works
- Scans historical trades using FIFO cost basis accounting
- Identifies positions with unrealized losses
- Evaluates each candidate against gas drag (estimated ~$15 gas cost)
- In
SIMULATEmode: returns what would happen without executing - In
HARVESTmode: executes offsetting trades and logs the results