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
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
17Posts
14Comments
9Connections
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
- AI Agent DeveloperJobgether · Temporary · Netherlands
- AI Agent DeveloperJobgether · Temporary · India
- Bilingual Store Associate (Spanish)Sherwin-Williams · Full time · Hagerstown, MD
Commenters (This Week)
buildbasekit
3 comments
Sanu
1 comment
Figsh
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!