The “paper hands” problem is actually a pretty good example of why AI agents need hard rules around their decisions. Curious though how do you decide which calls should always stay outside the LLM’s control?
Building an AI DeFi Agent: When the LLM gets "Paper Hands"
2 Comments
anhmtk
•
@[Next Big Creative] Thanks — that’s exactly the tension.
My rule of thumb: anything that must be fast, irreversible, or easy for an LLM to rationalize away stays outside the model.
In this bot that means:
- Hard stop / flatten — band breach or max loss. No LLM veto.
- Universe / capital-fit gates — quote must be USDC/USDT, min fee tier, deny whale/low-fee books. Ranking may use AI later; eligibility is code.
- In-band ride — if price is healthy inside the band, temporary
fee < ILcannot force exit (the paper-hands bug). - Enter path — no deposit if fee/capital-fit fails; we also skip calling the LLM when there’s no enterable pool (don’t burn tokens to “think” about a blocked book).
What the LLM can do: overlay verdicts on ambiguous holds, soft risk language, escalate on toxic/force-exit/enter-candidate moments — advisory, never sole authority on exit/enter.
Heuristic I use: if a wrong call costs gas + slippage and a human would say “that’s just noise,” it belongs in deterministic policy. If the call is judgment under incomplete evidence, LLM may advise — but policy still owns the button.
Please log in to add a comment.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
14Posts
14Comments
5Connections
Founder at AgentShare.dev, specializing in AI-native commerce infrastructure. I build systems that t... Show moreFounder at AgentShare.dev, specializing in AI-native commerce infrastructure. I build systems that treat 'reliability as currency' for autonomous agents. Currently developing a curated MCP registry to solve the data-gap in the AI ecosystem. Open to collaborating on AI agents and MCP innovations. Show less
More From anhmtk
Related Jobs
- Senior Software Engineer for LLM EvaluationSaidGig · Full time · Canada
- 574851_AI/GenAI RAG , LLM , Agentic AI _HTADM/568367_GenAI, Python Developer_HTADMHorigine Consulting Pvt. Ltd · Full time · India
- Manager, Technical Product Enablement and Specialist Sales (Digital and Agentic)Mastercard · Full time · Australia
Commenters (This Week)
Lewis Kori 1
1 comment
riddhipatel
1 comment
vaibhavgupta
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!