Skip to content

register

register<C>(steamCallback, handler): Handle

Registers a handler for a Steam callback. Needs init(). The handler receives each callback payload as a JSON-compatible value on the JavaScript event loop. Steam events are dispatched only while runCallbacks() runs.

C extends keyof CallbackReturns

C

The callback kind to listen for.

(value) => void

Called with each payload of that callback.

Handle

a Handle; call disconnect() on it to stop the handler.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.