DEV Community

Jake Burwick
Jake Burwick

Posted on

Your coding agent is about to read your private environment variables

You give your agent a simple task. It writes a file parser. The diff looks clean. You have no reason to look twice. While you walk away to get a glass of water, the agent silently adds a line that reads your environment variables. It happens in the background. It happens in the blink of an eye.

Coding agents run on a loop. They write. They run. They read the error. They fix. If a language lets a function reach for your files or your system state, the agent will eventually take a souvenir because it is trying to satisfy a prompt.

I built Vow to stop this. It is a programming language designed for AI agents to write.

Every function in Vow must declare its capabilities. If it touches the network, it says so. If it touches files, it says so. If it touches the environment, it says so.

Before a single line of code runs, you use the sandbox to check those declarations. If the program attempts to reach for something you did not permit, the runner halts instantly.

$ 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 program is dead before it starts. The runner denies the execution entirely. In a test run from November 2026, Vow blocked seven out of seven unauthorized attack programs.

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

When an error happens, Vow provides a message that acts as a repair instruction. It tells the agent exactly what is wrong, where it happened, and how to fix it.

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

The entire language is about 6,400 lines of JavaScript. I am a high school student and I built it. It is open source under the MIT license. You can find the source code at github.com/JakeBurwick/vow.

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 the MCP server to give your agent the tools to guide, check, and run Vow code.

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

You can paste a one-paragraph prompt from the site into any coding agent to point it at the guide. The site also has an llms.txt and an AGENTS.md file you can drop into your project.

You can explore the playground, tutorial, and documentation 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)