Claimed result
No trading result from the author: it is an architecture guide that closes with "an engineering guide, not financial advice; start in paper mode and only trade with money you can afford to lose".
Numbers cited (third-party or vendor): - Jev by TypeSafe AI (out of stealth in September with a $40M seed led by DCVC; team led by Diogo Almeida, a co-author of InstructGPT): $0.042 per million input tokens, output free; roughly 70–500 ms per decision (TypeSafe's numbers). - In TypeSafe's cookbook, 13 questions sent as one batch came out 12.2x cheaper and 10x faster than asking one at a time. - jev-trader: a market-making bot on Monad that reads the Kuru MON-USDC book, asks Jev for a decision every 300 ms block and places a real post-only limit order one tick inside the best price; decisions in about 81 ms. - Cost of one decision per block, day and night: about $10–25 a month on Jev versus $50–150 an hour on a frontier model. - A grid demo that went around (not the author's): 12 orders $250 apart, 0.025 BTC each; in one session 152 round trips at $6.25 each, $1,650 to $2,600 while BTC went nowhere; but on 20x leverage.
Proof: framework. Speed and cost numbers are vendor-stated; the grid is a secondhand example with high leverage.
The key idea
"Your trading bot shouldn't be making trades. It should be answering questions." The bot that dies asks a chat model "what should I do?", pays for an essay and squeezes it into one word ("buy") when the book has already changed dozens of times. The desk that lasts splits the work: code does the math, a fast decision model makes narrow typed judgments with probabilities, a frontier model designs the strategy once and steps back, a human signs anything that can't be undone. Grok Bot runs the desk (roles, routines, reports, handoffs) without ever holding a private key.
Step-by-step playbook
1. Why a chat model can't keep up with a block
- Monad closes a block every ~300 ms, Solana produces a slot every ~400 ms; a model that answers in 3–30 seconds is always trading a market that no longer exists.
- Jev doesn't write sentences: it takes a state (any JSON, for example an order book snapshot) and typed questions, and returns typed answers with probabilities.
- Three types: Noul = probability of yes (0–1, an if in code); Choice = one option out of up to 255 (a switch); Score = a position on a rubric of up to 10 levels (a sort key).
- Questions in one call run in parallel and can't see each other: six questions cost roughly the latency of one.
- Calibration (RLCD training): answers tagged 0.8 should come true about 80% of the time; that is what lets code act on the number at 3am.
2. Every job has exactly one owner
| Seat | Owns | Never does |
|---|---|---|
| Code | prices, spreads, volatility, inventory, drawdown, size, stops, hard limits | judgment calls |
| Jev | regime, flow toxicity, setup quality, "skilled or lucky", "keep or kill" | arithmetic, date comparison, pulling the trigger |
| Opus 5.5 (frontier) | designs the strategy once, turns it into questions, reviews the logs weekly | live decisions |
| You | anything that signs, moves funds or changes a risk limit | the routine |
| Grok Bot | roles, routines, reports, handoffs between seats | holding a private key |
Five rules for writing questions 1. Math stays in code: Jev reads dates as text and miscounts at scale; compute mid, spread, imbalance and realized volatility and pass the numbers in. 2. One judgment per question: "a strong long setup in a trending, low-risk market?" is three questions; combine them in code with your own weights (you change a coefficient, not a prompt). 3. Lean state: named fields, only the ones your questions read; when comparing ten candidates, send them as two-line summaries built from answers already given, never ten dossiers. 4. Choice is relative, Noul is absolute: a Choice always names a winner even if every option is bad; every "which one?" travels with a "worth doing at all?" Noul; never a Choice over a single option. 5. Missing isn't neutral: a null field stays null; "unknown" gets its own option and its own consequence (often a smaller ticket rather than a skip).
The loop of every decision: code builds the state → Jev answers the whole battery in one call → code applies policy → the risk engine checks → only then does execution place the order.
3. Three bots, three ways to get paid
The Gambler (directional) — paid for being right about direction. - Code computes returns over three windows, realized volatility, book imbalance, spread, funding, distance to the recent high and low. - Battery (one call per bar): Choice regime (trending / mean-reverting / chaotic / other); Noul "is buying pressure building?"; Score 0–3 "how closely does this match the setup in my rulebook?"; Choice action (long / short / hold); Noul "has execution quality degraded in the last few minutes?". - Enters only when regime = trending, setup ≥ 2 and the action's confidence clears the threshold. Size always comes from your rules, never from the model. - Breaks on a streak of wrong reads: a day's target disappears in an afternoon, which is why the daily loss limit lives in code.
The House (direction-neutral) — paid by activity: market making, grids, fees on volume. - Lesson from the grid demo: the most exciting minute paid the least (price through six levels and back = six round trips, $37.50); the other $912 came from the quiet hours. "Chop is the meal; a trend is the threat." - Code computes distance to range edges, inventory, fill rate, spread, gas per cancel-replace and the deterministic quote; reservation price and spread from Avellaneda–Stoikov, in code. - Battery: Choice range state (inside / testing an edge / breaking out / other); Noul "is incoming flow toxic, informed traders picking you off?"; Score 0–3 "worth quoting into at all?"; Noul "is volume still flowing?". - Code pauses the grid when "breaking out" crosses the threshold, widens or pulls quotes on toxic flow, kills the market when volume dries up. - Breaks on the unpriced breakout and the math nobody ran: naive cancel-replace on every Monad block burns about 428 MON an hour in gas against a 3.5 bps spread.
The Spy (wallet copying) — paid for following wallets that are already good, the moment they move. - Code computes each wallet's history (win rate, realized PnL, holding times, size consistency, how often it was early) and contract flags (holder concentration, mint authority, liquidity lock). - Battery: Choice wallet record (skilled / lucky / bot-like / insider-like / other); Noul "is the move consistent with how it usually trades?"; Choice mirror? (full / partial / skip); Noul "given the flags found, does it look like a rug?". - Hard flags veto first, before Jev is asked; only skilled wallets on consistent moves are mirrored, sized by your rules. - Breaks on latency: one version flagged one of its best wallets a few minutes late and missed the start of its biggest run.
The funnel before asking: reject in order of cost. Facts before judgments (honeypot and open mint authority are comparisons in code). Bench by reason, not by token (a honeypot stays a honeypot forever; "too early" is re-checked in 20 minutes). No trade is a result: log every rejection with the check that fired; if the filter rejects almost nothing, the filter is broken.
4. From three scripts to a desk with Grok Bot
Parts worth copying from an eight-agent memecoin desk: - Hire the coordinator before any trader: HEAD OF DESK never trades, routes work, enforces the protocol and brings you the one human decision; test it on an errand you can verify in 30 seconds. - Fund a wallet you can afford to lose, fresh and used for nothing else; choose the worst case before the first trade. - No agent holds a key: bots get a session after you connect it yourself; even the Jev key lives on one small service, the judge, the only thing that talks to Jev; bots call it with a desk secret; the judge returns answers raw because the caller owns the threshold. Test the link from the bot's own terminal, not your laptop. - Write charters, not prompts: every role ends with the line it never crosses ("you never sign anything without my literal APPROVE, not a summary, not a paraphrase"). - Start with four seats: HEAD, SEARCH, RISK, EXIT (find it, check it, hold it, get out of it); add the rest after a full week of boredom. - One message format: every message carries a lead ID and the same contract address at every stage; a hallucinated address gets caught when two bots disagree. - The approval line is the signature: anything reversible the desk does alone and logs; anything that signs, moves funds or changes a limit stops and waits. - Paragraph above every judging seat's prompt: "You don't form opinions about trades. You build a state, call the judge once and act on the numbers. If the judge is unreachable, nothing passes on your say-so." - Nobody re-reads the why: the answers behind an order travel for the log, never as an input (size doesn't grow because confidence was 0.91). - One position at a time: while a position is open the scan doesn't run; only the seat that closed it frees the book.
5. The risk engine answers to nobody
Hard-coded, deterministic, checked before every order: - max position size per market and in total; a daily loss limit that halts the desk and waits for you; a leverage cap in code; a range guard for grids; - economics check: if expected edge per trade is smaller than fees + gas, no trade (a $20 entry against a $0.95 minimum fee starts at −4.75%); - version pin on the model your thresholds were tuned on (log the version string, never the alias); - exit on a number with final authority: e.g. volume over the last 6 hours below 20% of daily pace → full close within 60 seconds; if data stops arriving, retry twice and close anyway; - deadline rule: if the decision isn't back before the next block, hold; - fallback ladder: API slow → hold; API down → pull quotes and go to the safe state; repeated errors → halt and message; rate-limited → back off and retry; malformed question → never retry; - confidence is not permission: verify in code that the order actually filled.
6. The trust ladder
- Backtest: edge after fees on data never used for tuning.
- Shadow: Jev labels every live decision, the policy logs what it would have done, nothing executes; move up when every disagreement is explained (one builder: 2 days of shadow, 11 disagreements, 9 were his own thresholds).
- Paper: a paper broker with the same interface as the real one; move up when every risk veto has fired at least once.
- Small live: a wallet you can lose, the venue's minimum size; move up when real fills and fees match paper.
- Scaled: size in steps, one change per week. - Check calibration on your own data (reliability curve, Brier score, Platt scaling in the policy); never raise size and change strategy in the same week; fractional Kelly only after calibration is verified.
7. What Jev won't do
It doesn't design your strategy or find your edge; doesn't do arithmetic or compare dates; can't chain dependent judgments in one call; doesn't compete in the microsecond lane; doesn't treat input as hostile (text inside the state can move the answer, so hard rules run first); doesn't turn a losing strategy into a winning one. Where retail can use it today: on-chain order books at block speed and prediction markets with wide spreads.
8. The setup prompt
The article ends with a prompt for Claude Code, to paste into an empty folder, that scaffolds the desk in paper mode, never places a live order and stops before every sensitive step (the text is an image not included in the extract).
Tools and costs
| Item | Cost / data |
|---|---|
| Jev (TypeSafe) | $0.042/M input tokens, output free; ~$10–25/month at one decision per block |
| Frontier model for the same decisions | ~$50–150/hour |
| Grok Bot | coordination, routines, reports (plan cost not stated) |
| Opus 5.5 | strategy design and weekly review |
| Claude Code | scaffolding the desk in paper mode |
| Venues cited | Monad (Kuru), Solana, Polymarket/prediction markets |
| Gas | to be computed before going live (example: ~428 MON/hour with naive cancel-replace) |
Limitations
- No financial result from the author; Jev's numbers are the vendor's ("treat them as a ceiling, not a promise").
- The grid cited ran on 20x leverage: a clean breakout would have left it on the wrong side of every level.
- Automated trading, memecoins and copy-trading carry risk of total loss, rug pulls, exploits and latency.
- The setup prompt and the diagrams are images not present in the extracted text.
- Not financial advice.