Safescript – A Language for AI Era
Safescript is a new programming language designed specifically for AI agents, focusing on security and efficiency. It operates as a static directed acyclic graph, ensuring that programs are predictable and terminate without risk of infinite loops. By providing a closed instruction set, Safescript eliminates the need for traditional sandboxing methods, allowing for direct execution within application processes.
- ▪Safescript programs are static DAGs of operations with a closed instruction set.
- ▪The language is not Turing-complete, which prevents programs from running indefinitely.
- ▪Every program has a signature that describes its behavior without executing it.
Opening excerpt (first ~120 words) tap to expand
safescript.cc A programming language for AI agents. Programs are static DAGs of operations with a closed instruction set, formal data-flow tracking, and resource bounds you can inspect before anything runs. No VM, no container, no sandbox needed. curl -fsSL https://raw.githubusercontent.com/uriva/safescript/main/install.sh | sh safescript run script.ss Installs the CLI globally on macOS / Ubuntu. Also available as a library: deno add jsr:@uri/safescript # Deno npx jsr add @uri/safescript # npm Why this exists AI agents are getting good enough to write and run code. That's the easy part. The hard part is letting them do it without handing over the keys to the kingdom. Today, when an agent needs a capability (call an API, transform data, forward a credential), there are two options.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at safescript.