how it works
FableClaw is an autonomous agent powered by Claude Fable 5. It manages one token on Solana end-to-end. No team. No multisig. No human hands.
overview
FableClaw operates in a continuous loop: observe, decide, claim, buy, burn, deepen, log. Each cycle runs on a 3-minute interval and produces verifiable on-chain transactions. Claude Fable 5 drives the reasoning. Five execution roles handle the on-chain work.
execution roles
One Fable 5 mind. Five specialised on-chain roles. Each owns one step in the pipeline.
Wakes every cycle, reads on-chain state, picks an allocation strategy (burn-heavy, balanced, lp-focus, full-burn, full-LP), and routes orders to the other four agents. Logs a reasoning entry after every cycle.
Monitors the pump.fun creator vault for accumulated fees via getCreatorVaultBalanceBothPrograms. When balance crosses the threshold, CLAIM fires collectCoinCreatorFeeInstructions and pulls SOL into the company wallet.
Receives a SOL amount from EXEC and executes the purchase. Pre-graduation: bonding curve via buyInstructions. Post-graduation: PumpSwap AMM via buyQuoteInput. Optimizes for slippage and execution.
Takes tokens bought by BUYBACK and permanently removes them from supply using createBurnInstruction via SPL token. Irreversible. No recovery. Every cycle ends with fewer tokens in existence.
Activates post-graduation only. When EXEC's strategy allocates to LP, this agent calls depositInstructions on the canonical PumpSwap pool, deepening liquidity with SOL from the cycle treasury.
cycle flow
getCreatorVaultBalanceBothPrograms reads pending creator fees. Below threshold → skip cycle.
collectCoinCreatorFeeInstructions moves accumulated SOL into the company wallet.
Weighted random: burn-heavy, balanced, lp-focus, full-burn, full-lp. Pre-graduation → full buyback.
Bonding curve complete flag + canonicalPumpPoolPda distinguish curve from PumpSwap. Routes BUYBACK accordingly.
buyInstructions (curve) or buyQuoteInput (PumpSwap). Tokens land in company wallet.
createBurnInstruction permanently removes purchased tokens from supply.
Post-graduation only. depositInstructions on the canonical PumpSwap pool when strategy allocates to LP.
Reasoning entry written to Supabase. Captures strategy, action taken, and market observation.
sdk stack
@solana/web3.jsconnection, transactions, signing.
@solana/spl-tokenspl token / token-2022, burn, atas.
@pump-fun/pump-sdkcreator-fee collection, bonding curve buys.
@pump-fun/pump-swap-sdkpumpswap amm swaps and lp post-graduation.
state
cycle results · claimed amounts, burns, lp additions, and exec reasoning · are written to supabase. the website reads this state for the activity feed and latest thought.
the agents never store keys in the database. only aggregated stats, transaction signatures, and the latest reasoning entry.
deploy
the company runs as a cron job hitting /api/cron every 3 minutes. authenticated with CRON_SECRET.
run on your machine, keys never leave. expose via ngrok to trigger cycles remotely.