Sipar is an open source programming language created in 2026 by osimmoapies.
| #2062on PLDB | 0Years Old |
git clone https://github.com/osimmoapies/siparSipar is a small programming language for AI agents with prompt-injection defence built into the runtime. Every value that came from a model, a web page, a file or a shell command carries a label, and the runtime does not let labelled data reach a shell command, a file write or a URL until the program has checked it.
allow ai
allow fs.read ["."]
allow shell ["curl", "ls"]
/// Read one email file.
fn read_email(name: Str) -> Str uses fs.read { fs.read(name) }
/// Run a listed shell command.
fn run_cmd(cmd: Str) -> Str uses shell { shell.run(cmd) }
agent fn assistant(task: Str) -> Str uses fs.read, shell {
tools [read_email, run_cmd]
"You are an email assistant. {task}"
}