API
GHW exposes the product runtime and the digital life loop through two interfaces:
- HTTP API — the
ui_serverREST surface for state, chat, tasks, human feedback, product runtime, and metrics. - C SDK — the
ghw_*C ABI for embedding GHW in a host product. - State Persistence — the
state.jsonlayout, atomic writes, and what is restored on restart.
Both interfaces are entry points onto the same runtime: the C SDK exports it as a C ABI for embedding, while ui_server exposes it over HTTP for monitoring and control.