WAB AI Agent: A Local Go Executor for Bitcoin Engine CLI and AI Tool Calls
WAB AI AGENT is being designed as a narrow interface between an AI model and an existing, tested Bitcoin engine. The model interprets a request. A local Go executor decides whether that request is valid and authorized. The engine, not the model, performs the Bitcoin operation. This is an architecture proposal, not a release announcement.
One execution boundary
The proposed agent offers only RECEIVE, BALANCE, SEND, and WATCH. A model returns a structured tool name and arguments, such as {"tool":"balance","arguments":{}}. Go maps the approved tool to a known engine endpoint, attaches credentials locally, sends an HTTP JSON request, and parses the response. The model never receives BTC KEY, environment files, or arbitrary command execution privileges.
CLI without an unrestricted shell
The same Go execution function can serve both an authenticated HTTP JSON interface and local CLI commands such as wab balance or wab receive. The executor should use Go's net/http client to perform the same requests that an operator could test with curl. It does not need to spawn a shell or allow the AI to compose arbitrary curl flags. CLI is a user-facing interface; the engine's HTTP JSON contract remains the underlying integration.
A bounded multi-tool sequence
An instruction may require RECEIVE followed by WATCH, or SEND followed by transaction monitoring. The agent can represent the sequence as a small plan, but each tool call is separately validated. SEND requires its own authorization and spending-budget checks. The model must not infer that permission to read a balance grants permission to spend.
Keep the engine stable
The agent adds no wallet-creation logic and does not rewrite the engine's signed fee law. Its engine URL is a runtime configuration value; https://thamer.org/api is documentation, not the runtime engine endpoint. Each agent container is initially associated with one wallet, and the protected engine remains a separate service.
Failure behavior
The executor should return structured errors for invalid arguments, disabled tools, unauthorized SEND, network failure, and ambiguous transaction submission. An uncertain SEND result is not a reason to retry blindly: durable idempotency and reconciliation must prevent duplicate payments. This separation makes model providers replaceable without changing the Bitcoin execution boundary.
