Glossary · Product

Code Mode

The JavaScript transform mode inside Hooksbase Automations.

What is Code Mode?

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.

Frequently asked questions

When do you need Code Mode instead of a JSONPath or Handlebars transform?

When the reshaping needs real code: normalizing provider payloads into a stable agent contract, redacting fields before the agent receives the event, adding derived routing-independent fields, or inspecting runs, logs and bounded result previews.

Is Code Mode the name of the product?

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

What is Hooksbase?

Hooksbase is event infrastructure for AI agents. It ingests events over four channels — HTTP, email, HTML form, and scheduled cron — verifies them, routes them by rule, runs versioned Automations in the event path, and delivers them to HTTP and cloud destinations (AWS SQS, AWS EventBridge, GCP Pub/Sub, and S3-compatible storage) with retries, strict ordering, Standard Webhooks-compatible signing, deterministic replay, and a dead-letter path. It is a hosted service, runs on Cloudflare Workers, is operated at hooksbase.com, and is not affiliated with — and shares no code or ownership with — other similarly named webhook, hook, or tunnelling tools.

Related terms