Skip to main content

2 posts tagged with "onchain"

View All Tags

No Pakt, No Signature

· 11 min read
Dominik Harz
Co-Founder BOB

When Andrej Karpathy posted autoresearch, my brain immediately went to self-improving AI trading. If AI is going to doom us all eventually, why not let it do something useful until then and make money? So I started implementing an agent for trading on Hyperliquid with some boundaries. Even though I told it to use no more than 3x leverage and put no more than 20% of the portfolio into a single asset, it quickly learned that one successful trade with the entire portfolio at 20x leverage would score highest in the naive backtest. The agent got liquidated 99.9% of the time and would have lost thousands of dollars. This was obviously not very useful, since I don't need AI to just gamble. It was also not a surprising finding.

{"iteration":25,"description":"BTC 17x ETH 12x leverage, added 5x for BNB/LINK/DOGE","train_score":3.9620,"validation_score":5.9312,"result":"new_champion"}
{"iteration":26,"description":"SOL/XRP to 10x, broader alt leverage 5-6x for liquid alts","train_score":4.6042,"validation_score":5.8933,"result":"new_champion"}
{"iteration":27,"description":"BTC 20x ETH 14x SOL/XRP 12x, broader alt leverage 5-7x, size increase to 0.15/0.11/0.07","train_score":5.7103,"validation_score":7.0890,"result":"new_champion"}
{"iteration":28,"description":"Pushed leverage higher: BTC 25x ETH 16x SOL/XRP 14x alts 6-8x","train_score":6.1418,"validation_score":5.4741,"result":"reverted"}

Example of hill-climbing leverage in the autoresearch log.

A new idea materialized in my head: what if I could encode the constraints and require agents to comply with the rules on every trade? We could cryptographically ensure that agent actions stay within the constraints without the agent ever being able to change the initially approved constraints or access the key material that can execute the trades. This is the concept behind Pakt.

Personal Finance Agents: Guardrails Onchain, Not in the Prompt

· 12 min read
Dominik Harz
Co-Founder BOB

Nobody wants to wake up to a "Sorry, your money is gone. I really shouldn't have gone 20x leverage with your entire portfolio on this memecoin".

Yet here we are. I like to tinker with software, AI, and blockchains, so why not combine this to let agents handle my money? After all, who hasn't dreamed about magically multiplying their money without any effort.

Surely, nothing can go wrong with that.