varlock AGENTS.md

Repository instructions for dmno-dev/varlock, a monorepo containing multiple related packages managed together. They describe the project layout, conventions, package manager, scripts, and binary builds.

In plain words
What is it for?
Use them when changing Varlock source code, documentation, integrations, the VS Code extension, or platform-specific helper binaries.
Why use it?
They give a coding agent the project context needed to work consistently across the repository’s packages.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dmno-dev/varlock/agents-md
Clone the repo
git clone --depth 1 https://github.com/dmno-dev/varlock

Made for: Codex, OpenCode.

Per session 1,700 This file is loaded in full into every session.
When invoked 1,700 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01700 $0.01700
Opus 5 $0.00850 $0.00850
Sonnet 5 $0.00340 $0.00340
Haiku 4.5 $0.00170 $0.00170

Measured yesterday against content hash 25cdd0837dab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

varlock AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project conventions

Repo structure

This is a monorepo managed with bun workspaces and Turborepo:

  • packages/env-spec-parser — parser for the @env-spec language (PEG.js grammar in grammar.peggy)
  • packages/varlock — the main package: CLI + library for loading/validating .env files
  • packages/varlock-website — docs site (Astro); docs content lives in src/content/docs/
  • packages/vscode-plugin — VSCode extension for @env-spec language support
  • packages/integrations/* — framework integrations (nextjs, vite, astro, ...)
  • packages/native-helpers/* — per-platform npm publishing shells for the native helper binaries (published as @varlock/native-helper-*, versioned in lockstep with varlock); the binaries themselves are built from packages/encryption-binary-swift (darwin) and packages/encryption-binary-rust (linux/win32)
  • packages/utils, packages/plugins — shared internals
  • packages/varlock-docs-mcp — docs MCP server for external varlock users; do not use it to look things up while working on this repo — read the docs source directly

Package manager

  • This repo uses Bun as the package manager (bun install, bun run, etc.)
  • Workspace deps use workspace:* protocol
  • Use catalog for any potentially common dependencies
  • CI workflows use bun run to execute scripts and bunx for one-off commands

Scripts

  • Write any scripts which may end up being saved in TypeScript (.ts), not JavaScript
    • throwaway/one-off code is fine in JS
  • Execute scripts using bun run, not node
    • e.g. bun run scripts/release-preview.ts
    • Bun runs .ts files natively — no compile step needed
  • Scripts in scripts/ at the repo root are monorepo-level utilities, while specific packages may have their own scripts folder

Binary builds

  • The varlock CLI binary is built using bun build --compile (not Node SEA or pkg)
  • bun run --filter varlock build:binary builds a local dev binary for the current platform at packages/varlock/dist-sea/varlock
  • packages/varlock/scripts/build-binaries.ts builds cross-platform release binaries (or use --current-platform for a single local binary)
  • bun run --filter varlock test:binary:local builds the local binary and runs a smoke load check (WSL-aware helper copy)
  • bun run --filter varlock pack:local builds + packs a local tarball and prints a ready-to-paste file: dependency

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 84 lines · 1,700 tokens per session scan A 25cdd0837dab

Subscribe to this mod's changes

varlock AGENTS.md is an instructions file published in the GitHub repository dmno-dev/varlock (4,238 stars, last pushed 2d ago), licensed MIT. It adds 1,700 tokens to every session, about $0.0085 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.