What problem does it solve?
Testing deployed Golem agents written in MoonBit requires repeatedly invoking agent methods and inspecting results, which is slow with manual CLI calls. This Skill explains how to use the Golem REPL to interactively test and script MoonBit agents through the TypeScript REPL.
Core Features & Use Cases
- Interactive Testing: Start a TypeScript REPL with all agent client classes preconfigured, including MoonBit agents, and invoke methods with full type safety.
- Script Execution Mode: Run TypeScript test scripts non-interactively against deployed agents using
golem repl --script-file.
- Built-in Commands: Build and deploy components without leaving the REPL using commands like
.build and .deploy.
- Use Case: You have deployed a MoonBit counter agent and want to verify its behavior. Start the REPL, get the agent instance with
CounterAgent.get("c1"), call increment() twice, and confirm getValue() returns the expected result.
Quick Start
Ask the AI to start the Golem REPL and interactively test your deployed MoonBit agent by invoking its methods and checking the returned values.