← Back to work
Featured projectTypeScript · Bun · Solana · Meteora DLMM · SQLite

Prism — Autonomous Solana LP Agent

Autonomous liquidity agent for Solana Meteora DLMM pools that rebalances concentrated-liquidity positions before impermanent loss eats the fees, backed by a self-improving memory and a hard risk gate in front of every on-chain action.

Concentrated liquidity only earns fees while the active price bin sits inside your range. Prism runs a rule-based cycle every 10 minutes — recall memory, observe pool state, reason over fee/IL ratio and bin drift, simulate the rebalance cost, then decide HOLD, REBALANCE, EXIT, or ENTER. Every pool's volume is scored for authenticity (0–1) before any decision runs: volume/TVL ratio, fee-rate band, and TVL-vs-volume outliers all push the score down, and pools below 0.70 are skipped outright — filtering most wash-traded noise on DLMM. Outcomes are written back to an SQLite vector memory (`sqlite-vec`) and retrieved by cosine similarity on the next relevant cycle, so the agent gets slower to re-enter pools that burned it and faster to recognize patterns that paid off. A risk gate sits in front of every on-chain action: confidence below threshold, drawdown above limit, or a position-cap breach blocks execution and logs a warning to memory. When only heuristic (non-verified) stats are available, the safety gates are skipped rather than acting on fabricated numbers — the position holds until real data returns. MIT-licensed, built on Bun 1.4.