Basic Usage
Configuration Options
Option Reference
What AgentScript Blocks
What AgentScript Allows
Default Allowed Globals
The AgentScript preset allows these globals by default:callTool- Tool invocationMath- Mathematical operationsJSON- JSON parsing/stringifyingArray- Array constructor and methodsObject- Object methodsString- String methodsNumber- Number methodsBoolean- Boolean conversionDate- Date operations (read-only)console- Logging (rate-limited by enclave)undefined,null,NaN,Infinity- Primitives
Customizing Allowed Globals
Precedence Rules
WhenallowedGlobals and additionalDisallowedIdentifiers are both provided, the following precedence applies:
allowedGlobalsremoves from the dangerous list — If an identifier likeprocessis normally blocked but you include it inallowedGlobals, it will be removed from the built-in dangerous identifiers blocklist and allowed.additionalDisallowedIdentifiersalways wins — If an identifier appears in bothallowedGlobalsandadditionalDisallowedIdentifiers, it remains blocked. This lets you grant broad access while force-blocking specific identifiers.
Loop Configuration
Control which loop types are allowed:Requiring Tool Calls
Ensure scripts actually use tools:Related
- Overview - Getting started
- Pre-Scanner - Layer 0 defense
- Security Rules - Rule reference
- Code Transform - AST transformations