Act·two-phase async
ᛃ
Sovereign Agent
CLI agent in a tx
Run Claude Code, ZeroClaw, OpenClaw, or Crush as one-shot CLI tasks.
0x000000000000000000000000000000000000080CExplorer
Interactive form — coming next session
Two-phase async UI in progress. The precompile itself is 0x000000000000000000000000000000000000080C and live on testnet — use the canonical Solidity / viem code below to integrate from your own contract.
ABI summary
( string cliType, // "claude-code" | "openclaw" | "zeroclaw" | "crush" string prompt, string[] tools, // allowed shell tools uint256 timeoutSeconds, address executor, // capability=3 (SOVEREIGN_AGENT) ...23 fields total ) → delivers stdout/stderr + final exit code
Callback pattern
Two-phase precompiles deliver results via AsyncDelivery at 0x5A16214fF555848411544b005f7Ac063742f39F6 calling your contract’s callback. Always verify msg.sender == ASYNC_DELIVERY to prevent injection.
function onSovereignAgentResult(bytes32 jobId, bytes calldata result) external {
require(msg.sender == ASYNC_DELIVERY, "unauth");
// ... decode result based on this precompile's response ABI
}Read the spectwo-phase · sovereign-agent