DEV Community

Jake Burwick
Jake Burwick

Posted on

TypeScript is a security liability for AI agents

You ask your agent for a data parser. It provides the logic. It also adds a background process that exfiltrates your environment variables. You do not see it in the diff. You run it. Your keys are gone.

Most languages give code total control over your machine. They assume a human developer is watching. AI agents do not have a conscience and they do not care about your security. They are just trying to satisfy a prompt.

I built Vow so your agent cannot reach for things you did not explicitly permit. Every function in Vow must declare its capabilities. If it needs the network, files, or environment, it uses net, uses fs, or uses env.

When you run your program with vow --sandbox, the runtime inspects those declarations before a single line executes. If the code tries to touch something off-limits, the runtime refuses to run it.

$ vow --sandbox --allow fs=./data app.vow
x SandboxError: needs capabilities
  the sandbox does not grant
  env: fn leak declares 'uses env'
Nothing was run.
Enter fullscreen mode Exit fullscreen mode

The runtime stops the program cold. On November 12, 2026, I ran a test with seven attack programs. Vow blocked seven out of seven. It even has a read-only file grant. You can allow fs-read=dir to let a program read files in a directory while ensuring it is physically impossible for the code to write anything.

Vow is a programming language built for agents to write. It runs on the same loop agents use: write, run, read the error, fix.

When an agent hits a bug, it does not have to guess. Every Vow error says what is wrong, where, and the likely fix. These are repair instructions.

x TypeError: can't add a num and a str
-> line 6, col 10
6 | return "Total: " + sum
           ^^^^^^^^^^^^^^^
Likely fix: convert the number to text
first: str(sum)
Enter fullscreen mode Exit fullscreen mode

Vow has no nulls and no exceptions. If a function can fail, it returns a Result value. The agent must handle it with match or the ? operator. If it fails to do that, the code will not build.

I am a high school student and I built this because I saw agents struggling with the ambiguity of modern languages. Vow is open source under the MIT license and the source is public at github.com/JakeBurwick/vow. The entire language is about 6,400 lines of JavaScript.

You can install it globally with npm.

npm install -g github:JakeBurwick/vow
Enter fullscreen mode Exit fullscreen mode

If you use Claude Code, you can add an MCP server to give your agent native tools to guide, check, and run your code.

claude mcp add vow -- vow-mcp
Enter fullscreen mode Exit fullscreen mode

You can find the documentation, a playground, and an llms.txt file to help your agents at https://vow-lang.vercel.app

The agent is going to keep writing code. You might as well make sure it cannot reach your environment variables while it does.

Top comments (0)