Prism
Liquidity-provision agent for Meteora DLMM.
Liquidity-provision agent for Meteora DLMM. Jev judges toxic flow, market stress, and mean-reversion likelihood in shadow/advisory mode only, without driving trades. Not financial advice.
# Prism An autonomous liquidity agent that watches liquidity pools on Solana (currently Meteora DLMM), reasons over live on-chain data, and rebalances positions before they bleed. ## What it does Concentrated liquidity earns fees only when the active price bin sits inside your range. When the market drifts, your position silently collects impermanent loss instead. Most LPs either do not notice or react too late. Prism fixes this with a rule-based agent that runs every 10 minutes, checks every pool in your watchlist, and either **holds**, **shifts the range**, **pulls liquidity entirely**, or **enters new pools**. Every cycle follows the same sequence: ``` 1. recall -> query memory for past patterns on this pool 2. observe -> fetch pool state, bin array, volume authenticity 3. reason -> compute fee/IL ratio, bin drift, TVL velocity 4. simulate -> if REBALANCE, estimate IL cost before committing 5. record -> write new observations back to memory 6. decide -> HOLD | REBALANCE | EXIT | ENTER ``` The decision is intercepted by a risk gate before anything happens on-chain. Confidence below threshold, drawdown above limit, or a position cap breach -- any of these blocks execution and logs a warning to memory so future cycles are aware. ## Memory The agent remembers. Every outcome -- fee earned, IL incurred, bad pool flagged -- gets stored in an SQLite vector table (`sqlite-vec`) and retrieved by cosine similarity on the next relevant cycle. Entries expire automatically (90 days for patterns, 60 for warnings, 180 for outcomes). This is what makes it self-improving: it gets slower to enter pools it has been burned by before, and faster to recognize patterns it has profited from. ## Volume authenticity Before any decision, the agent scores eac