Documentation Index
Fetch the complete documentation index at: https://docs.heylua.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
lua preprocessors manages preprocessor primitives — code that runs before a user message reaches your agent. Use preprocessors for content filtering, routing, rate limiting, validation, and message rewriting.
For defining preprocessors in code, see the Preprocessor concept and the Preprocessor API.
Subcommands
| Action | What it does |
|---|---|
view | List all preprocessors defined on the agent. |
versions | List every version of a specific preprocessor. |
deploy | Promote a version to active. |
activate | Re-enable a deactivated preprocessor. |
deactivate | Pause execution — messages bypass this preprocessor. |
delete | Permanently remove a preprocessor and all its versions. |
Options
| Option | Description |
|---|---|
--preprocessor-name <name> | Preprocessor name. Required for most non-interactive actions. |
--preprocessor-version <ver> | Version for deploy. Pass latest for the newest. |
The shorthand
pre resolves to preprocessor in most argument positions — e.g. lua pre view, lua logs --type pre.
