Claimed result
- No trading profit claimed. The author explicitly refuses "fake performance numbers" and wants routing, signal escapes, false closes, human interruptions, and recovery measured first when the bot API or exchange goes down.
- The promised result is operational: a desk where Grok Bot thinks (news, charts, funding, open interest), Jev picks from a fixed menu, and only Freqtrade/Hummingbot (or the exchange bot) places orders โ by default in
dry_rununtil it earns the right to go live. - Strong engagement for a framework piece: 166 bookmarks and 67 likes (~98k views), bookmark/like ratio 2.48.
Proof: framework. Architecture consistent with other desk guides in the theme and with Jev pricing cited elsewhere; no account, no PnL, no backtest. The author asks readers to follow @A_Pirate_I for the parts that break.
The key idea
Trading bots already exist: Freqtrade, Hummingbot, the script from two years ago, the exchange's own bot. They place orders, hold stops, respect max size. They are fast, boring, and never revenge-trade. What they do not do is think: which signal deserves attention, whether the setup is good enough, whether to stand down today, whether a trade is really closed, whether an action needs a human.
Grok Bot is strong on the thinking side (reads news, chart, funding, OI, timeline and writes it up). But the author does not want an essay-writing model deciding whether money moves. You need a decision layer between research and execution: Jev (TypeSafe). It does not write; it picks from a list and reports confidence (choose, score, classify, route, verify). TypeSafe list price: $0.042 per million input tokens, output unmetered.
Mental model: Grok does research โ Jev decides where it goes next โ the trading bot is the only one with hands โ humans own the money.
Step-by-step playbook
01. Do not rebuild the trading bot
Rule one: if a trading bot already does the job, Grok does not. Order placement, stops, position sizing, exchange connections, retries when the API hiccups: solved problems. Freqtrade alone has years of edge cases. Rewriting that inside a chat agent is how you lose money to a bug.
Base desk:
| Role | Who | Job |
|---|---|---|
| Research | SCOUT (Grok Bot) | Scans news, X, funding and OI on the whitelist; writes the morning brief |
| Research | CHART (Grok Bot) | Reads structure on the whitelist, marks levels, writes the plan: entry, stop, target |
| Decision | Jev | Routes work, checks signals, reviews closed trades, guards risky actions |
| Execution | Freqtrade (or equivalent) | Only thing that can place an order; runs in dry_run until it earns more |
| Coordination | DESK MANAGER (Grok Bot) | Front door; owns workflow, morning status and evening report |
Do not wire everything on day one: wallet trackers, liquidation maps, a second exchange, a sentiment feed. Adding tools because they exist is how a desk becomes a mess. Start from the jobs you actually have.
02. One front door
Four seats are useless if you still pick who to message every time. DESK MANAGER coordinates, lets specialists claim work, and never trades. Standing orders: never pretend delegated work happened; never call a trade closed without fills; never touch the trading bot's settings because it is faster than asking. Now you have one inbox โ but DESK MANAGER is still making every small judgment in the loop. Those questions do not need another frontier-model essay: they need decisions.
03. Where Jev fits
Give Jev the current state and a fixed menu: who should act next? The generative agent keeps generating; the decision model handles the fork; the trading bot only executes. Grok researches. Jev decides where it goes. The bot is the only one with hands.
04. Do not connect the bot "as is"
There is already an open-source Freqtrade MCP server: it talks to the bot REST API and gives an agent 17 tools (status, profit, balance, pair lists, and placing trades, starting/stopping the bot, reloading config). That is exactly why you do not plug it in as is: you do not want a chat agent with a "place trade" button.
Instead: have Grok Bot build a small read-only bridge that talks to the bot and to Jev. Author prompt structure:
Build an Agent Plugin called "Desk Bridge". Create these read tools on the trading bot: [status, profit, balance, open trades, fillsโฆ]. The TypeSafe API exposes System One decisions. Create these four Jev tools:
jev_route_task,jev_check_signal,jev_review_trade,jev_guard_action. Do not create any tool that places, changes or cancels an order. The plugin only reads and returns decisions. Add a short skill explaining when each tool is used. Test every tool with one safe example, with the bot in dry_run, before packaging it.
Whole integration: trading bot API โ read-only bridge โ Grok Bot tools. Orders still leave from one place only: the bot.
05. Jev only chooses from things that exist right now
If the bot is stopped, do not offer trading_bot. If a pair is not on the whitelist, Jev cannot route a trade on it. If the next action moves money, human_review is on the menu. State is concrete JSON; the question is typed ("pick among A/B/C under these constraints"), not "what should I do?". The surrounding system owns the workflow; the model owns one fuzzy decision inside it.
06. Automate the morning first
Objective: one checked setup the bot is allowed to take today, or a clear "nothing today". First decision: SCOUT / context first. Routing becomes a visible, checkable step instead of hidden reasoning in one giant prompt. Bad routing โ fix routing without touching SCOUT; bad SCOUT โ fix SCOUT without touching routing. That separation is the whole point. (Author note on images: do not publish confidence numbers you did not get; replace sample scores with real Jev results.)
07. Stop letting the signal grade itself
Usual pattern: indicator fires โ the same script decides the signal is good โ the bot buys. Same logic grading its own homework. Here CHART must pass a gate; the Jev tool can only return typed outcomes (e.g. accept / reject / verify_more). verify_more goes back to CHART or SCOUT with the gap named. Better than writing "be careful" in a prompt: the desk has somewhere for a weak signal to go.
08. Never say "closed" without proof
The dumbest failure in agent trading setups: the agent says the trade is closed because it feels closed. Before DESK MANAGER reports a trade: (1) restate the original plan entry/stop/target; (2) pull fills from the bot; (3) put real numbers next to the plan; (4) list what was not verified; (5) run jev_review_trade. Typed output โ correct judgment: format is guaranteed, the call can still be wrong. Jev is a gate, not an oracle.
09. Autonomy levels instead of "full access"
Five levels:
| Level | Name | Examples | Who decides |
|---|---|---|---|
| 0 | READ | Prices, balances, bot status, trade history | Automatic |
| 1 | PREPARE | Write a plan, mark levels, draft the report | Automatic |
| 2 | REVERSIBLE | Pause new entries, add a pair to the blacklist | Allowed and logged; jev_guard_action chooses allow/confirm |
| 3 | TRADE | Bot opens a position inside its own limits | Human approval until the desk has proven itself in dry_run |
| 4 | MONEY / IRREVERSIBLE | Raise stake/leverage, change stop, new API key, transfer, withdraw | Human. Always. |
Hard limits do not live in a prompt: they live in the bot config, which no agent can edit. The exchange key the bot uses has withdrawals turned off: level 4 is not even reachable from the desk.
10. Do not automate anything until it works once
Most important boring rule: do not create 20 routines. Start with five:
- Morning brief (SCOUT, daily): news, funding, OI on the whitelist; separate confirmed facts from noise; send claims that matter through the signal gate; return only what deserves the desk's attention.
- Setup triage (CHART + Jev, when the brief is ready): find the strongest setup; write entry/stop/target;
jev_check_signal; stop before any order. - Position watch (DESK MANAGER, every 30 minutes): read
bot_status; compare open trades with their plans; speak only if something changed. - Evening report (DESK MANAGER, 21:00): signals found/checked/rejected; trades taken/closed with fills; one thing that worked, one thing to change tomorrow.
- Weekly review (DESK MANAGER + Jev, every Sunday): every Jev decision next to what the market did after; where the gate was too loose or too strict.
11. Package it so someone else can clone it
Once the desk works, it should not live in your head. Package: bot prompts/descriptions, skills, bridge tool list, SETUP.md, optional Grok Bot templates. Catch: a template is a blueprint, not an exact clone โ secrets, personal data and custom code do not travel. A custom plugin like Desk Bridge needs its own setup instructions.
12. Test it with a task that can actually fail
Do not test with "give me a morning brief". Give the desk something that forces handoffs (e.g. weak signal + dry_run bot + request to close a trade without fills). Five metrics before any performance claim:
- Routing accuracy โ did the right seat get the job?
- Signal escapes โ how many setups reached the bot without enough evidence?
- False closes โ how often did the desk call a trade done without matching fills?
- Human interruptions โ how many times did it ask when it could have continued safely?
- Recovery โ when the bot API or exchange went down, did the desk stand down or get stuck?
Every failure becomes a new test. That is how the desk improves.
Tools and costs
| Piece | Role | Stated cost / notes |
|---|---|---|
| Grok Bot (SCOUT, CHART, DESK MANAGER) | Research and coordination | Account Grok Bot plan (not priced in the article) |
| Jev (TypeSafe) | Typed decisions | $0.042 / M input tokens; output unmetered |
| Freqtrade / Hummingbot / exchange bot | Sole order execution | Open-source or native; start in dry_run |
| Freqtrade MCP (open-source) | 17 REST tools โ do not connect "as is" | Use only as a base for a read-only bridge |
| "Desk Bridge" plugin | Read tools + 4 Jev tools | Have Grok Bot build it; zero order tools |
| Exchange key | Execution | Withdrawals disabled |
Limitations
- No track record, no capital, no hold horizon: this is an architecture manual.
- Thematic overlap with other Grok Bot + Jev desks in the KB (six-bot Jane Street, 24/7 Opus system, HFT Jev): the distinct contribution is do not rebuild the trading bot and the read-only MCP bridge on Freqtrade.
- Jev pricing and MCP features can change; always re-check TypeSafe and current MCP repos.
- Not financial advice. Most automated strategies lose money; adding AI does not change that math.