Write a Bitcoin Command Catalog for an LLM
Write a Bitcoin Command Catalog for an LLM
Keep conversational help aligned with executable commands. This is part two of the WAB ENGINE and AI Agents programming series, grounded in the V3.4 Testnet experiments.
What the experiment actually showed
An unconstrained assistant can suggest @tx_status even when the agent exposes @CHECK or another version-specific route. Command naming must come from code, not model memory.
Engineering method
Create one source of truth containing command name, required parameters, auth requirement and underlying Engine operation. Use it both for routing and the model help context.
A repeatable local exercise
Repo/command_catalog.go shows a minimal immutable catalog.
Use a recorded JSON response or a mock HTTP server. Run local unit tests, compare actual values with expected values, and inspect error paths. An AI response must not be used as evidence of a wallet transaction or its confirmation.
What can go wrong
Do not promise a command exists until its implementation and test pass in the deployed version.
Practical review questions
- Which facts came directly from WAB ENGINE, and which are generated prose?
- Can the experiment be repeated without broadcasting another transaction?
- What observation would falsify the diagnosis?
- Which error states are visible to the caller rather than hidden by a fallback?
Implementation boundary
WAB ENGINE remains the authoritative execution layer. The experimental agent is a separate client. Examples are intentionally scoped to Testnet and do not modify the Engine, Bitcoin Core, the signed fee law, or deployed wallet state.
Project references
- WAB ENGINE API: https://thamer.org/api
- WAB ENGINE overview: https://thamer.org/engine
- Educational code repository: https://thamer.org/repo/
Scope: experimental Testnet programming notes and preliminary SDK-style examples, not production-ready wallet software.
