Glossary · Product

Code Mode

The JavaScript transform mode inside Hooksbase Automations.

Code Mode is the JavaScript transform mode inside Hooksbase Automations. It lets a project upload versioned code that runs after routing and before the final dispatch snapshot is stored.

Use Code Mode when JSONPath or Handlebars transforms are not enough:

  • normalize provider payloads into a stable agent contract
  • redact fields before the agent receives the event
  • add derived routing-independent fields
  • inspect runs, logs, and bounded result previews

Naming

The public feature is Automations. Code Mode is the runtime mode inside Automations, not the top-level product name.

Replay behavior

When Code Mode runs during delivery, Hooksbase stores the resulting dispatch snapshot. Retries and replays use that snapshot instead of executing the latest active version again.

See also: Automation, Payload transform, and Replay.

Related terms