Agent decision
Bot receives a valid quote and fires the buy path.
For Solana Trading Bots
Mortem traces every agent decision against real market conditions, shows you the exact moment the strategy broke, and generates the code fix to prevent repeats.
Bot receives a valid quote and fires the buy path.
Spread widens, liquidity shifts, and the route age exceeds the safe window.
Execution lands on a worse entry than the strategy assumed.
The problem
Standard logs don't tell you if the entry was bad because volatility spiked, liquidity dried up, or the strategy signal was stale. You're flying blind between the decision and the loss.
The Evidence Chain
Drop the Mortem SDK into your agent. One setup, zero overhead. Every decision your bot makes starts logging.
Mortem aligns your agent's payload, the onchain transaction, and live market data on a single timeline. You see exactly when the decision diverged from reality.
Not a vague summary. A specific claim tied to timestamps, quotes, spreads, and the actual strategy path that fired.
Mortem generates a targeted code-level fix prompt for the exact failure path. Review it, test it, ship it.
Three timestamps. One failure chain. No dashboard sprawl.
Chronological Trace View
Mortem shows a clean, ordered timeline: agent payload first, then the market shift, then the bad execution. Not 200 events. The 3 that mattered.
Pyth move
+2.8%
Quote age
61.2s
Liquidity
fell 34%
Spread
widened 3.4x
Price, spread, liquidity, and quote age pinned to the same moment.
Market Context Anchoring
Every diagnosis is grounded in real-time Pyth price data and Jupiter liquidity quotes, not LLM assumptions. If the claim isn't supported by verifiable data, Mortem doesn't make it.
// reject stale routes before execution
if (routeAgeMs > MAX_ROUTE_AGE_MS) return refreshQuote()
// re-check spread before buy path
if (spreadBps > maxSpreadBps) return skipTrade()
One failing branch. One remediation prompt. One next change.
Fix Prompts, Not Essays
Mortem generates a specific, code-scoped fix prompt tied to the failing strategy path, not generic advice. You paste it into your codebase, review the diff, test it, ship it.
Agent-native traces instead of generic app telemetry.
Built for Agent Builders
Native SDK for TypeScript agents on Solana. Trace LLM calls, tool invocations, wallet actions, and x402 payments in one unified agent timeline.
FAQ
No. You can replay past failed trades and run analysis on historical traces. Real-time alerting ships in the next version.
Currently Solana-native. Jupiter quotes and Pyth price feeds are built into the market context layer.
No. Deterministic checks run first for payload structure, market deviation, and execution timing. The LLM explains conclusions already anchored in verifiable facts.
TypeScript agent builders and Solana bot operators who run live trading strategies and need to debug and improve execution quality fast.
It's a code-scoped instruction targeting the strategy path that failed, not a paragraph of suggestions. You review the proposed diff, run a backtest if needed, and ship only when you're confident.
Yes. Traces are scoped to your wallet and agent. Nothing is shared or used for model training.
Final call
Bring your worst trade. We'll show you exactly what happened.
No credit card. No lengthy setup. Just the SDK and your next bad trade.